]> git.hungrycats.org Git - linux/commit
ecryptfs: forbid opening files without mmap handler
authorJann Horn <jannh@google.com>
Wed, 1 Jun 2016 09:55:06 +0000 (11:55 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 20 Jun 2016 03:47:47 +0000 (23:47 -0400)
commitdd536b607688315b3043ab5fd5243c3f530922a2
tree400d582a4499deaac5b06725e292074a01be39ee
parent70e21269e3ec8e4345e7fcd263f9a8f2a43f42df
ecryptfs: forbid opening files without mmap handler

[ Upstream commit 2f36db71009304b3f0b95afacd8eba1f9f046b87 ]

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>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/ecryptfs/kthread.c