Thread (14 messages) flat view 14 messages, 7 authors, 2024-07-29
STALE738d

[PATCH net] tun: Add missing bpf_net_ctx_clear() in do_xdp_generic()

From: Jeongjun Park <hidden>
Date: 2024-07-27 02:17:07
Also in: bpf, lkml

Jakub Kicinski wrote:
On Fri, 26 Jul 2024 06:40:49 +0900 Jeongjun Park wrote:
quoted
There are cases where do_xdp_generic returns bpf_net_context without
clearing it. This causes various memory corruptions, so the missing
bpf_net_ctx_clear must be added.

Reported-by: syzbot+44623300f057a28baf1e@syzkaller.appspotmail.com
Fixes: fecef4cd42c6 ("tun: Assign missing bpf_net_context.")
Signed-off-by: Jeongjun Park <redacted>
Also likely:

Reported-by: syzbot+3c2b6d5d4bec3b904933@syzkaller.appspotmail.com
Reported-by: syzbot+707d98c8649695eaf329@syzkaller.appspotmail.com

Right?
Yes, both appear to be bugs with the same root cause.

Regards,
Jeongjun Park
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help