Re: [PATCH] null_blk: fix use-after-free error

2015-12-22 Thread Jens Axboe
On 12/15/2015 02:56 AM, Mike Krinkin wrote: 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 protect

Re: [PATCH] null_blk: fix use-after-free error

2015-12-21 Thread Ming Lei
On Tue, Dec 15, 2015 at 5:56 PM, Mike Krinkin wrote: > 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 cau

[PATCH] null_blk: fix use-after-free error

2015-12-15 Thread Mike Krinkin
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: