Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 61febef4 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Fixes: eb8db831 ("dm: always defer request allocation to the owner of the request_queue")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent d38d3515
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment