]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nfsd: fix vm overcommit crash fix #2
authorJunjiro R. Okajima <hooanon05@yahoo.co.jp>
Tue, 2 Dec 2008 18:31:46 +0000 (10:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Dec 2008 23:50:40 +0000 (15:50 -0800)
commit1b79cd04fab80be61dcd2732e2423aafde9a4c1c
treeb9ff5f0de1c0ef011ac62096218d2fd4bc70c56b
parent061e41fdb5047b1fb161e89664057835935ca1d2
nfsd: fix vm overcommit crash fix #2

The previous patch from Alan Cox ("nfsd: fix vm overcommit crash",
commit 731572d39fcd3498702eda4600db4c43d51e0b26) fixed the problem where
knfsd crashes on exported shmemfs objects and strict overcommit is set.

But the patch forgot supporting the case when CONFIG_SECURITY is
disabled.

This patch copies a part of his fix which is mainly for detecting a bug
earlier.

Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Junjiro R. Okajima <hooanon05@yahoo.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/security.h