Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information