public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* __vm_enough_memory(), OVERCOMMIT_NEVER, current->mm, kernel thread
@ 2008-10-21 15:14 hooanon05
  2008-10-21 15:46 ` Alan Cox
  0 siblings, 1 reply; 9+ messages in thread
From: hooanon05 @ 2008-10-21 15:14 UTC (permalink / raw)
  To: linux-kernel


Hello all,

When sysctl_overcommit_memory is set OVERCOMMIT_NEVER,
__vm_enough_memory() refers current->mm.

For example,
# exportfs -i -o ... localhost:/tmpfs
# mkdir /tmp/w
# mount -o ... localhost:/tmpfs /tmp/w
# yes > /tmp/w/fileA

In this case, NFSD (kernel thread) calls shmem_file_write() or
shmem_write_begin() and __vm_enough_memory() is called. But current->mm
is NULL and the kernel crashes.
If a user have to set OVERCOMMIT_NEVER, where should we fix?


Junjiro R. Okajima

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-10-22 13:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 15:14 __vm_enough_memory(), OVERCOMMIT_NEVER, current->mm, kernel thread hooanon05
2008-10-21 15:46 ` Alan Cox
2008-10-21 23:10   ` hooanon05
2008-10-22  5:35     ` hooanon05
2008-10-22  8:27     ` Alan Cox
2008-10-22 11:26       ` hooanon05
2008-10-22 12:09         ` Alan Cox
2008-10-22 12:46           ` hooanon05
2008-10-22 13:37           ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox