diff options
author | Jens Axboe | 2017-02-24 21:19:32 +0100 |
---|---|---|
committer | Jens Axboe | 2017-02-24 21:19:32 +0100 |
commit | 61febef40bfe8ab68259d8545257686e8a0d91d1 (patch) | |
tree | 94d52c7e6d62b1f7381fc615c8964e0751e7ca08 /block/sed-opal.c | |
parent | blk-mq-sched: separate mark hctx and queue restart operations (diff) | |
download | kernel-qcow2-linux-61febef40bfe8ab68259d8545257686e8a0d91d1.tar.gz kernel-qcow2-linux-61febef40bfe8ab68259d8545257686e8a0d91d1.tar.xz kernel-qcow2-linux-61febef40bfe8ab68259d8545257686e8a0d91d1.zip |
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>
Diffstat (limited to 'block/sed-opal.c')
0 files changed, 0 insertions, 0 deletions