summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMike Krinkin <krinkin.m.u@gmail.com>2015-07-19 08:53:17 +0200
committerJens Axboe <axboe@fb.com>2015-07-22 21:30:20 +0200
commit21974061cfb3c4b0b1a83447fb5e7cdcd06e56dc (patch)
tree558b1e88e86088c9500ffecb7d873c9dc0898c7d /block
parentRevert "fsnotify: fix oops in fsnotify_clear_marks_by_group_flags()" (diff)
downloadlinux-21974061cfb3c4b0b1a83447fb5e7cdcd06e56dc.tar.xz
linux-21974061cfb3c4b0b1a83447fb5e7cdcd06e56dc.zip
null_blk: fix use-after-free problem
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 completion handler") Tested-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Mike Krinkin <krinkin.m.u@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions