lkml.org 
[lkml]   [2009]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] fs/proc/: fix input sanity check.
    On Wed, 12 Aug 2009, Vincent Li wrote:

    > I re-read the clear_refs_write() in fs/proc/task_mmu.c, If I understand it
    > correctly, The old code takes non-zero string
    > from userspace and convert it to unsigned long interger value. for

    strict_strtol() converts to long.

    > example,It accepts:
    >
    > echo 1 > /proc/pid/clear_refs
    > echo 12foo > /proc/pid/clear_refs
    >

    http://userweb.kernel.org/~akpm/mmotm/broken-out/pagemap-clear_refs-modify-to-specify-anon-or-mapped-vma-clearing.patch
    changes that, so you'll need to rebase on mmotm.


    \
     
     \ /
      Last update: 2009-08-12 21:19    [W:0.020 / U:1.184 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site