Skip to content

block: Use struct_size() helper in kmalloc()#632

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

block: Use struct_size() helper in kmalloc()#632
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1062399=>linus-master

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Mar 10, 2026

Pull request for series with
subject: block: Use struct_size() helper in kmalloc()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1062399

@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 10, 2026

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

@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 11, 2026

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

Make use of the struct_size() helper instead of an open-coded version,
in order to avoid any potential type mistakes or integer overflows that,
in the worst scenario, could lead to heap overflows.

Signed-off-by: luoqing <luoqing@kylinos.cn>
@blktests-ci blktests-ci bot force-pushed the series/1062399=>linus-master branch from 08a471d to 2edc344 Compare March 11, 2026 08:09
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