Skip to content

test/sqpoll-disable-exit: pass real output pointers to the setup helper - #1650

Open
ManoharPaturi wants to merge 1 commit into
axboe:masterfrom
ManoharPaturi:sqpoll-disable-exit-null-out
Open

ManoharPaturi wants to merge 1 commit into
axboe:masterfrom
ManoharPaturi:sqpoll-disable-exit-null-out

Conversation

@ManoharPaturi

Copy link
Copy Markdown

syz_io_uring_setup() stores the mapped ring and SQE pointers through its last two arguments, but execute_one() passes NULL for both, so every one of the 100 forked iterations crashes storing the ring mapping into a NULL pointer. The reproduction never reaches the exit path it is meant to exercise, and the run leaves 100 crashes behind, with core dumps wherever those are enabled.

Give the helper the addresses of two local variables so the setup runs to completion, matching the original syzkaller program, which passed proper storage for both outputs.

Fixes issue #1632. Verified on an Ubuntu 24.04 runner: the test now completes all iterations instead of crashing in every child.

syz_io_uring_setup() stores the mapped ring and SQEs pointers through
its last two arguments, but execute_one() passes NULL for both, so every
forked iteration crashes on a NULL write right after the first mmap().
The reproduction therefore never reaches the exit path it is meant to
exercise, and the run spams crashes (and core dumps, where enabled) for
all 100 iterations.

Hand it the addresses of local variables instead, so the setup runs to
completion like the original syzkaller program.

Fixes: axboe#1632
Copilot AI balanced review requested due to automatic review settings October 4, 2026 02:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants