-
Notifications
You must be signed in to change notification settings - Fork 5
bpf: add bpf_prog_run_data_pointers() #6335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf: add bpf_prog_run_data_pointers() #6335
Conversation
|
Upstream branch: 026bcf9 |
|
Upstream branch: 3249e8a |
515c4bb to
323829c
Compare
4eb9670 to
e1b05fd
Compare
|
Upstream branch: f1d8c65 |
323829c to
4c23bd8
Compare
|
Upstream branch: f1d8c65 |
4c23bd8 to
ff36c66
Compare
e1b05fd to
b1af442
Compare
|
Upstream branch: 93ce3be |
ff36c66 to
4f2cdbb
Compare
b1af442 to
67d3dd3
Compare
|
Upstream branch: 93ce3be |
syzbot found that cls_bpf_classify() is able to change tc_skb_cb(skb)->drop_reason triggering a warning in sk_skb_reason_drop(). WARNING: CPU: 0 PID: 5965 at net/core/skbuff.c:1192 __sk_skb_reason_drop net/core/skbuff.c:1189 [inline] WARNING: CPU: 0 PID: 5965 at net/core/skbuff.c:1192 sk_skb_reason_drop+0x76/0x170 net/core/skbuff.c:1214 struct tc_skb_cb has been added in commit ec624fe ("net/sched: Extend qdisc control block with tc control block"), which added a wrong interaction with db58ba4 ("bpf: wire in data and data_end for cls_act_bpf"). drop_reason was added later. Add bpf_prog_run_data_pointers() helper to save/restore the net_sched storage colliding with BPF data_meta/data_end. Fixes: ec624fe ("net/sched: Extend qdisc control block with tc control block") Reported-by: syzbot <[email protected]> Closes: https://lore.kernel.org/netdev/[email protected]/ Signed-off-by: Eric Dumazet <[email protected]> Cc: Paul Blakey <[email protected]> Reviewed-by: Victor Nogueira <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]>
4f2cdbb to
f0bf340
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1022489 irrelevant now. Closing PR. |
Pull request for series with
subject: bpf: add bpf_prog_run_data_pointers()
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1022489