From: wzt.wzt@gmail.com Date: Fri, 2 Apr 2010 06:41:14 +0000 (+0200) Subject: Block: Fix block/elevator.c elevator_get() off-by-one error X-Git-Tag: v2.6.34-rc4~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a506aedc51093544ff0f9610af6066d18cb6abbe;p=pandora-kernel.git Block: Fix block/elevator.c elevator_get() off-by-one error 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. Signed-off-by: Zhitong Wang Signed-off-by: Jens Axboe --- Reading git-diff-tree failed