diff options
author | Mike Krinkin <krinkin.m.u@gmail.com> | 2015-12-15 10:56:40 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-22 18:42:48 +0100 |
commit | e8271201462710dbbaa0448b768428606724ca90 (patch) | |
tree | 260d20e53c36bf3ec9eec08b65af06012bd237c0 /drivers/block/smart1,2.h | |
parent | block: ensure to split after potentially bouncing a bio (diff) | |
download | linux-e8271201462710dbbaa0448b768428606724ca90.tar.xz linux-e8271201462710dbbaa0448b768428606724ca90.zip |
null_blk: fix use-after-free error
blk_end_request_all may free request, so we need to save
request_queue pointer before blk_end_request_all call.
The problem was introduced in commit cf8ecc5a8455266f8d51
("null_blk: guarantee device restart in all irq modes")
and causes general protection fault with slab poisoning
enabled.
Fixes: cf8ecc5a8455266f8d51 ("null_blk: guarantee device
restart in all irq modes")
Signed-off-by: Mike Krinkin <krinkin.m.u@gmail.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/smart1,2.h')
0 files changed, 0 insertions, 0 deletions