Re: [PATCH] block: reject invalid queue attribute values

From: Jens Axboe
Date: Sun Sep 09 2012 - 05:55:36 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/