Skip to content

blktrace: reject buf_size smaller than blk_io_trace2#792

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

blktrace: reject buf_size smaller than blk_io_trace2#792
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1088908=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 3, 2026

Pull request for series with
subject: blktrace: reject buf_size smaller than blk_io_trace2
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1088908

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 3, 2026

Upstream branch: 66edb90
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088908
version: 2

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 4, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088908
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1088908=>linus-master branch from ae81b98 to 9150aaf Compare May 4, 2026 11:00
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 6f75bd1 to 1f0d33a Compare May 5, 2026 15:39
blk_trace_setup() accepts any non-zero buf_size from
userspace and passes it directly to relay_open(). If
buf_size is smaller than sizeof(struct blk_io_trace2),
relay_reserve() always returns NULL and all trace
events are silently dropped.

Reject such values early with -EINVAL.

Signed-off-by: Deepanshu Kartikey <Kartikey406@gmail.com>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 5, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088908
version: 2

@blktests-ci blktests-ci Bot force-pushed the series/1088908=>linus-master branch from 9150aaf to 3639d6f Compare May 5, 2026 15:42
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