[lkml]   [2009]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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
changes that, so you'll need to rebase on mmotm.

 \ /
  Last update: 2009-08-12 21:19    [W:0.034 / U:24.768 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site