ecryptfs: forbid opening files without mmap handler
authorJann Horn <jannh@google.com>
Wed, 1 Jun 2016 09:55:06 +0000 (11:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jun 2016 17:18:20 +0000 (10:18 -0700)
commitdea2cf7c0c6e42ccb1eea2baba028163597bcf22
tree3c8a6beccef08e03dfd271fdaf394e2e4c68f4e5
parentd3f97524ef1b2b12df6669a701e66c02f1da523d
ecryptfs: forbid opening files without mmap handler

commit 2f36db71009304b3f0b95afacd8eba1f9f046b87 upstream.

This prevents users from triggering a stack overflow through a recursive
invocation of pagefault handling that involves mapping procfs files into
virtual memory.

Signed-off-by: Jann Horn <jannh@google.com>
Acked-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ecryptfs/kthread.c