lkml.org 
[lkml]   [2012]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block: reject invalid queue attribute values
On 2012-09-08 17:55, Dave Reisner wrote:
> Instead of using simple_strtoul which "converts" invalid numbers to 0,
> use strict_strtoul and perform error checking to ensure that userspace
> passes us a valid unsigned long. This addresses problems with functions
> such as writev, which might want to write a trailing newline -- the
> newline should rightfully be rejected, but the value preceeding it
> should be preserved.

Thanks, applied to for-3.7/core.

--
Jens Axboe



\
 
 \ /
  Last update: 2012-09-09 12:41    [W:0.043 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site