mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
blktrace: fix unlocked access to init/start-stop/teardown
commit1f2cac107cupstream. sg.c calls into the blktrace functions without holding the proper queue mutex for doing setup, start/stop, or teardown. Add internal unlocked variants, and export the ones that do the proper locking. Fixes:6da127ad09("blktrace: Add blktrace ioctls to SCSI generic devices") Tested-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
f3f6031fd1
commit
0dea4044c7
1 changed files with 48 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue