]> git.baikalelectronics.ru Git - kernel.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)
commit9168d8c4340fc25b453336f55db56d0a384cca4a
treeb9ff5f0de1c0ef011ac62096218d2fd4bc70c56b
parent174a6add35b300bf83979989e4110233b9e26aaf
nfsd: fix vm overcommit crash fix #2

The previous patch from Alan Cox ("nfsd: fix vm overcommit crash",
commit 06a283f6a815b99457af35d044666638e60e3aad) 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