All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Dave Reisner <dreisner@archlinux.org>
Cc: linux-kernel@vger.kernel.org, alan@lxorguk.ukuu.org.uk
Subject: Re: [PATCH] block: reject invalid queue attribute values
Date: Sun, 09 Sep 2012 11:54:41 +0200	[thread overview]
Message-ID: <504C6761.6010904@kernel.dk> (raw)
In-Reply-To: <1347119745-7044-1-git-send-email-dreisner@archlinux.org>

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


  reply	other threads:[~2012-09-09  9:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-08 15:55 [PATCH] block: reject invalid queue attribute values Dave Reisner
2012-09-09  9:54 ` Jens Axboe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-09-04 12:27 Dave Reisner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=504C6761.6010904@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=dreisner@archlinux.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.