Skip to content

block: mtip32xx: synchronize ioctls with device removal - #1101

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1141180=>linus-master
Open

block: mtip32xx: synchronize ioctls with device removal#1101
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1141180=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown

Pull request for series with
subject: block: mtip32xx: synchronize ioctls with device removal
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1141180

@blktests-ci

blktests-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: 2d2338c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1141180
version: 1

@blktests-ci

blktests-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: 0d83957
series: https://patchwork.kernel.org/project/linux-block/list/?series=1141180
version: 1

@blktests-ci
blktests-ci Bot force-pushed the series/1141180=>linus-master branch from 086605b to ed7e723 Compare August 6, 2026 09:46
@blktests-ci
blktests-ci Bot force-pushed the linus-master_base branch from 23d8cf0 to 612ae31 Compare August 9, 2026 06:23
@blktests-ci

blktests-ci Bot commented Aug 9, 2026

Copy link
Copy Markdown
Author

Upstream branch: 06cf618
series: https://patchwork.kernel.org/project/linux-block/list/?series=1141180
version: 1

@blktests-ci
blktests-ci Bot force-pushed the series/1141180=>linus-master branch from ed7e723 to c98d0d4 Compare August 9, 2026 07:20
@blktests-ci
blktests-ci Bot force-pushed the linus-master_base branch from 612ae31 to 863d43a Compare August 9, 2026 07:24
@blktests-ci

blktests-ci Bot commented Aug 9, 2026

Copy link
Copy Markdown
Author

Upstream branch: 06cf618
series: https://patchwork.kernel.org/project/linux-block/list/?series=1141180
version: 1

@blktests-ci
blktests-ci Bot force-pushed the series/1141180=>linus-master branch from c98d0d4 to e2e5537 Compare August 9, 2026 07:38
@blktests-ci
blktests-ci Bot force-pushed the linus-master_base branch from 863d43a to 29ac21d Compare August 10, 2026 22:28
@blktests-ci

blktests-ci Bot commented Aug 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: d58772d
series: https://patchwork.kernel.org/project/linux-block/list/?series=1141180
version: 1

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: 88523a6 ("block: Add driver for Micron RealSSD pcie flash cards")
Signed-off-by: Hongyan Xu <getshell@seu.edu.cn>
@blktests-ci
blktests-ci Bot force-pushed the series/1141180=>linus-master branch from e2e5537 to 197be43 Compare August 10, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants