Jens Axboe 61febef40b dm-rq: don't dereference request payload after ending request
Bart reported a case where dm would crash with use-after-free
poison. This is due to dm_softirq_done() accessing memory
associated with a request after calling end_request on it.
This is most visible on !blk-mq, since we free the memory
immediately for that case.

Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Fixes: eb8db831be80 ("dm: always defer request allocation to the owner of the request_queue")
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-02-24 13:19:32 -07:00
..
2017-02-20 17:55:15 -08:00
2017-02-22 11:54:49 -07:00
2016-12-25 10:47:44 +01:00
2016-12-18 15:49:10 -08:00
2017-02-20 14:23:40 +01:00
2017-02-20 16:42:43 -08:00
2016-12-25 17:21:22 +01:00
2017-02-16 10:22:41 -08:00
2017-02-21 10:57:33 -08:00
2016-12-15 12:46:48 -08:00
2016-12-25 10:47:44 +01:00
2016-12-14 10:49:33 -08:00
2016-12-15 11:45:13 -08:00
2017-02-20 17:23:57 -08:00
2017-02-20 17:55:15 -08:00
2017-02-21 10:57:33 -08:00
2017-02-20 14:22:50 +01:00
2017-02-20 16:42:43 -08:00
2016-12-24 11:27:45 -08:00