Skip to content
Commit e8271201 authored by Mike Krinkin's avatar Mike Krinkin Committed by Jens Axboe
Browse files

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 cf8ecc5a
("null_blk: guarantee device restart in all irq modes")
and causes general protection fault with slab poisoning
enabled.

Fixes: cf8ecc5a

 ("null_blk: guarantee device
       restart in all irq modes")

Signed-off-by: default avatarMike Krinkin <krinkin.m.u@gmail.com>
Reviewed-by: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 23688bf4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment