Skip to content

bpf: Compare iterator types during state pruning - #8697

Closed
kernel-patches-daemon-bpf-rc[bot] wants to merge 2 commits into
bpf-next_basefrom
series/1143786=>bpf-next
Closed

bpf: Compare iterator types during state pruning#8697
kernel-patches-daemon-bpf-rc[bot] wants to merge 2 commits into
bpf-next_basefrom
series/1143786=>bpf-next

Conversation

@kernel-patches-daemon-bpf-rc

Copy link
Copy Markdown

Pull request for series with
subject: bpf: Compare iterator types during state pruning
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1143786

An iterator stack slot can be MEM_RCU or PTR_UNTRUSTED. These states
must not be equal, or the verifier can prune an unsafe path.

Compare the pointer type for STACK_ITER slots.

Fixes: dfab99d ("bpf: teach the verifier to enforce css_iter and task_iter in RCU CS")
Signed-off-by: Ning Ding <dingning04@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Add a path where RCU protection reaches zero and then starts again.
The iterator is untrusted after this gap and must be rejected.

Signed-off-by: Ning Ding <dingning04@gmail.com>
@kernel-patches-daemon-bpf-rc

Copy link
Copy Markdown
Author

Upstream branch: d114bb9
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1143786
version: 2

@kernel-patches-daemon-bpf-rc

Copy link
Copy Markdown
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1143786 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf-rc
kernel-patches-daemon-bpf-rc Bot deleted the series/1143786=>bpf-next branch August 11, 2026 22:01
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