Re: [PATCH] Block: Fix block/elevator.c elevator_get() off-by-oneerror

From: Jens Axboe
Date: Fri Apr 02 2010 - 02:41:06 EST


On Tue, Mar 30 2010, wzt.wzt@xxxxxxxxx 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

--
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/