From: Jens Axboe <jens.axboe@oracle.com>
To: wzt.wzt@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Block: Fix block/elevator.c elevator_get() off-by-one error
Date: Fri, 2 Apr 2010 08:40:53 +0200 [thread overview]
Message-ID: <20100402064053.GU23510@kernel.dk> (raw)
In-Reply-To: <20100330092132.GB2713@localhost.localdomain>
On Tue, Mar 30 2010, wzt.wzt@gmail.com wrote:
> elevator_get() not check the name length, if the name length > sizeof(elv),
> elv will miss the '\0'. And elv buffer will be replace "-iosched" as something
> like aaaaaaaaa, then call request_module() can load an not trust module.
Thanks, good catch! Applied.
--
Jens Axboe
next prev parent reply other threads:[~2010-04-02 6:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 9:21 wzt.wzt
2010-04-02 6:40 ` Jens Axboe [this message]
2010-04-02 7:14 ` Xiaotian Feng
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=20100402064053.GU23510@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wzt.wzt@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®