Skip to content

block: clear ia_ranges on sysfs registration failure - #1142

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

block: clear ia_ranges on sysfs registration failure#1142
blktests-ci-kpd[bot] wants to merge 1 commit into
linus-master_basefrom
series/1146317=>linus-master

Conversation

@blktests-ci-kpd

Copy link
Copy Markdown

Pull request for series with
subject: block: clear ia_ranges on sysfs registration failure
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1146317

@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: 3aa1dca
series: https://patchwork.kernel.org/project/linux-block/list/?series=1146317
version: 1

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the linus-master_base branch 2 times, most recently from d89ab11 to fdba928 Compare August 16, 2026 18:34
@blktests-ci-kpd

Copy link
Copy Markdown
Author

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

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from fb4d437 to 680de08 Compare August 16, 2026 19:48
@blktests-ci-kpd

Copy link
Copy Markdown
Author

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

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from 680de08 to 790e26c Compare August 17, 2026 08:08
@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: 8d3ae59
series: https://patchwork.kernel.org/project/linux-block/list/?series=1146317
version: 1

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from 790e26c to 9969805 Compare August 17, 2026 16:36
@blktests-ci-kpd

Copy link
Copy Markdown
Author

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

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from 9969805 to 4f08f92 Compare August 19, 2026 05:42
@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: 66498c7
series: https://patchwork.kernel.org/project/linux-block/list/?series=1146317
version: 1

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from 4f08f92 to c7a2e9b Compare August 25, 2026 03:50
@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: 502d457
series: https://patchwork.kernel.org/project/linux-block/list/?series=1146317
version: 1

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from c7a2e9b to 4a06a75 Compare August 26, 2026 21:09
@blktests-ci-kpd

Copy link
Copy Markdown
Author

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

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from 4a06a75 to d5c73ce Compare August 29, 2026 07:08
@blktests-ci-kpd

Copy link
Copy Markdown
Author

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

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from d5c73ce to 28d8d65 Compare August 31, 2026 10:54
@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: 89a3129
series: https://patchwork.kernel.org/project/linux-block/list/?series=1146317
version: 1

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from 28d8d65 to cb2a0a1 Compare September 2, 2026 09:26
@blktests-ci-kpd

Copy link
Copy Markdown
Author

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

@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from cb2a0a1 to 3a2c6ad Compare September 4, 2026 06:41
@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: df29080
series: https://patchwork.kernel.org/series/1146317/
version: 1

Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/series/1146317/
error message:

Cmd('git') failed due to: exit code(128)
  cmdline: git am --3way
  stdout: 'Patch is empty.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To record the empty patch as an empty commit, run "git am --allow-empty".
To restore the original branch and stop patching, run "git am --abort".'

conflict:


@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: 28924df
series: https://patchwork.kernel.org/series/1146317/
version: 1

@blktests-ci-kpd

Copy link
Copy Markdown
Author

Upstream branch: 893e117
series: https://patchwork.kernel.org/series/1146317/
version: 1

disk_register_independent_access_ranges() clears disk->ia_ranges when
creating the top-level kobject fails. However, if adding one of the range
kobjects fails, the cleanup drops the final reference to iars and frees it
while disk->ia_ranges still points at it.

A concurrent disk revalidation can wait for q->sysfs_lock and then call
disk_unregister_independent_access_ranges(), which dereferences the stale
pointer after registration releases the mutex.

Clear disk->ia_ranges before dropping the kobject references on the child
registration error path, matching the top-level error handling.

Fixes: a2247f1 ("block: Add independent access ranges support")
Cc: stable@vger.kernel.org
Signed-off-by: Shuangpeng Bai <shuangpeng.kernel@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
@blktests-ci-kpd
blktests-ci-kpd Bot force-pushed the series/1146317=>linus-master branch from be04b19 to 487b7d8 Compare September 9, 2026 08:25
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.

1 participant