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

2015-07-22 Thread Jens Axboe
On 07/19/2015 12:53 AM, Mike Krinkin wrote: end_cmd finishes request associated with nullb_cmd struct, so we should save pointer to request_queue in a local variable before calling end_cmd. The problem was causes general protection fault with slab poisoning enabled. Thanks, applied. -- Jens A

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

2015-07-18 Thread Mike Krinkin
end_cmd finishes request associated with nullb_cmd struct, so we should save pointer to request_queue in a local variable before calling end_cmd. The problem was causes general protection fault with slab poisoning enabled. Fixes: 8b70f45e2eb2 ("null_blk: restart request processing on compl