Messages in this thread | | | Date | Sun, 09 Sep 2012 11:54:41 +0200 | From | Jens Axboe <> | Subject | Re: [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
| |