summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorHongyan Xu <getshell@seu.edu.cn>2026-08-06 14:04:41 +0800
committerJens Axboe <axboe@kernel.dk>2026-08-15 17:45:38 -0600
commit68940f841d013192086a0f6d7cfbac2cd079e228 (patch)
treee2005ddee12a2ca87eb68849039b48d5dc36c9fd /scripts/Makefile.thinlto
parent4fd66a7f829f3f38f92a79081f0f2688aed644f0 (diff)
downloadlinux-stable-68940f841d013192086a0f6d7cfbac2cd079e228.tar.gz
linux-stable-68940f841d013192086a0f6d7cfbac2cd079e228.zip
block: mtip32xx: synchronize ioctls with device removal
The ioctl handlers only test REMOVE_PENDING before entering mtip_hw_ioctl(). Removal can set that bit immediately afterwards and free dd->port in mtip_hw_exit() while an ioctl still dereferences it. An already open block device can reach the handlers while del_gendisk() is in progress. Serialize both native and compat ioctls with removal. Set REMOVE_PENDING before taking the mutex so new callers fail after an in-flight ioctl has drained, and hold the mutex until the port has been torn down. Fixes: 88523a61558a ("block: Add driver for Micron RealSSD pcie flash cards") Signed-off-by: Hongyan Xu <getshell@seu.edu.cn> Link: https://patch.msgid.link/20260806060441.676-1-getshell@seu.edu.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions