Skip to content

drivers: block: rnbd: Handle generic ERR_PTR returns safely in find_and_get_or_create_sess()#281

Closed
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1013849=>linus-master
Closed

drivers: block: rnbd: Handle generic ERR_PTR returns safely in find_and_get_or_create_sess()#281
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1013849=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented Oct 23, 2025

Pull request for series with
subject: drivers: block: rnbd: Handle generic ERR_PTR returns safely in find_and_get_or_create_sess()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1013849

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Oct 23, 2025

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

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Oct 27, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from b108349 to 68e37f5 Compare October 27, 2025 04:04
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 3167cf1 to 151715e Compare October 27, 2025 06:55
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Oct 27, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 68e37f5 to 6ba73f3 Compare October 27, 2025 06:56
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 151715e to 629ead1 Compare October 28, 2025 06:54
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Oct 28, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 6ba73f3 to 1d28b48 Compare October 28, 2025 06:59
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 629ead1 to c01bcb5 Compare November 3, 2025 05:23
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 3, 2025

Upstream branch: 6146a0f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1013849
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 1d28b48 to be0000a Compare November 3, 2025 05:34
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c01bcb5 to e65f0f5 Compare November 4, 2025 09:06
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 4, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from be0000a to ae9b7d2 Compare November 4, 2025 09:19
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e65f0f5 to d9a4e6e Compare November 4, 2025 10:54
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 4, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from ae9b7d2 to 1b05f40 Compare November 4, 2025 11:06
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from d9a4e6e to 4919429 Compare November 7, 2025 02:15
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 7, 2025

Upstream branch: 4a0c9b3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1013849
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 1b05f40 to d4c706b Compare November 7, 2025 02:28
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 434ff52 to 4e56068 Compare November 7, 2025 06:59
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 7, 2025

Upstream branch: 4a0c9b3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1013849
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from d4c706b to 66959fe Compare November 7, 2025 07:11
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 4e56068 to a3901cb Compare November 10, 2025 02:25
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 10, 2025

Upstream branch: 4a0c9b3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1013849
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 66959fe to 63672be Compare November 10, 2025 02:46
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a3901cb to f699346 Compare November 10, 2025 12:52
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 10, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 63672be to 659d84e Compare November 10, 2025 13:15
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from f699346 to 83d3e2f Compare November 14, 2025 03:26
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 14, 2025

Upstream branch: 6da43bb
series: https://patchwork.kernel.org/project/linux-block/list/?series=1013849
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 659d84e to 8a49a3d Compare November 14, 2025 03:47
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 83d3e2f to 00d5e5c Compare November 16, 2025 07:35
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 16, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 8a49a3d to fc4734b Compare November 16, 2025 07:56
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 00d5e5c to d782508 Compare November 17, 2025 00:45
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 17, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from fc4734b to 69d422c Compare November 17, 2025 01:06
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from d782508 to 6099a4d Compare November 17, 2025 23:44
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 18, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 69d422c to 03b97bc Compare November 18, 2025 00:08
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 6099a4d to 5121c4d Compare November 18, 2025 02:19
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 18, 2025

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

@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 03b97bc to 3b0481b Compare November 18, 2025 02:41
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5121c4d to 4458758 Compare November 19, 2025 00:24
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Nov 19, 2025

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

…nd_get_or_create_sess()

Fix the issue detected by the smatch tool.
drivers/block/rnbd/rnbd-clt.c:1241 find_and_get_or_create_sess()
error: 'sess' dereferencing possible ERR_PTR()

find_and_get_or_create_sess() only checks for ERR_PTR(-ENOMEM) after
calling find_or_create_sess(). In other encoded failures, the code
may dereference the error pointer when accessing sess->nr_poll_queues,
resulting ina kernel oops.

By preserving the existing -ENOMEM behaviour and log unexpected
errors to assist in debugging. This change eliminates a potential
invalid pointer dereference without altering the function's logic
or intenet.

Tested by compiling using smatch tool.

Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
@blktests-ci blktests-ci Bot force-pushed the series/1013849=>linus-master branch from 3b0481b to b1c8182 Compare November 19, 2025 00:46
@kawasaki kawasaki closed this Nov 20, 2025
@blktests-ci blktests-ci Bot deleted the series/1013849=>linus-master branch November 21, 2025 16:19
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.

2 participants