2010-04-02 06:41:02

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH] Block: Fix block/elevator.c elevator_get() off-by-one error

On Tue, Mar 30 2010, [email protected] 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