lkml.org 
[lkml]   [2008]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject__vm_enough_memory(), OVERCOMMIT_NEVER, current->mm, kernel thread
    Date

    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


    \
     
     \ /
      Last update: 2008-10-21 17:31    [W:6.200 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site