syzbot


WARNING in bpf_warn_invalid_xdp_action
Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+8ce4113dadc4789fac74@syzkaller.appspotmail.com
Fix commit: 2cbad989033b bpf: Do not WARN in bpf_warn_invalid_xdp_action()
First crash: 857d, last: 134d

Cause bisection: introduced by (bisect log) :
commit 58956317c8de52009d1a38a721474c24aef74fe7
Author: David Ahern <dsahern@gmail.com>
Date: Fri Dec 7 20:24:57 2018 +0000

  neighbor: Improve garbage collection

Crash: BUG: corrupted list in neigh_mark_dead (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) :
commit 2cbad989033bff0256675c38f96f5faab852af4b
Author: Paolo Abeni <pabeni@redhat.com>
Date: Tue Nov 30 10:08:06 2021 +0000

  bpf: Do not WARN in bpf_warn_invalid_xdp_action()

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in bpf_warn_invalid_xdp_action C error 433 1d04h 775d 0/1 upstream: reported C repro on 2020/04/10 21:45
linux-4.14 WARNING in bpf_warn_invalid_xdp_action C inconclusive 116 119d 775d 0/1 upstream: reported C repro on 2020/04/11 00:08

Sample crash report:
------------[ cut here ]------------
Illegal XDP return value 14950656, expect packet loss!
WARNING: CPU: 0 PID: 7 at net/core/filter.c:8188 bpf_warn_invalid_xdp_action net/core/filter.c:8188 [inline]
WARNING: CPU: 0 PID: 7 at net/core/filter.c:8188 bpf_warn_invalid_xdp_action+0x6f/0x80 net/core/filter.c:8184
Modules linked in:
CPU: 0 PID: 7 Comm: kworker/0:1 Not tainted 5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: mld mld_dad_work
RIP: 0010:bpf_warn_invalid_xdp_action net/core/filter.c:8188 [inline]
RIP: 0010:bpf_warn_invalid_xdp_action+0x6f/0x80 net/core/filter.c:8184
Code: 80 77 ae 8a 41 83 fc 04 48 c7 c6 c0 77 ae 8a 48 0f 46 ee e8 a3 83 42 fa 44 89 e2 48 c7 c7 00 78 ae 8a 48 89 ee e8 dd 71 cb 01 <0f> 0b 5b 5d 41 5c e9 86 83 42 fa 66 0f 1f 44 00 00 41 57 41 56 49
RSP: 0018:ffffc900000079b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888011943a00 RSI: ffffffff815f0948 RDI: fffff52000000f28
RBP: ffffffff8aae7780 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff815ea6ee R11: 0000000000000000 R12: 0000000000e42100
R13: ffffc90000007a48 R14: 0000000000e42100 R15: ffffc90001a76000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555569cf608 CR3: 000000007dc66000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 veth_xdp_rcv_skb+0x68f/0x1b20 drivers/net/veth.c:804
 veth_xdp_rcv+0x39b/0x9a0 drivers/net/veth.c:881
 veth_poll+0x134/0x850 drivers/net/veth.c:917
 __napi_poll+0xaf/0x440 net/core/dev.c:7023
 napi_poll net/core/dev.c:7090 [inline]
 net_rx_action+0x801/0xb40 net/core/dev.c:7177
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 do_softirq.part.0+0xde/0x130 kernel/softirq.c:459
 </IRQ>
 <TASK>
 do_softirq kernel/softirq.c:451 [inline]
 __local_bh_enable_ip+0x102/0x120 kernel/softirq.c:383
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:758 [inline]
 ip6_finish_output2+0x5bf/0x14e0 net/ipv6/ip6_output.c:127
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 __ip6_finish_output+0x4c1/0x1050 net/ipv6/ip6_output.c:170
 ip6_finish_output+0x32/0x200 net/ipv6/ip6_output.c:201
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x1e4/0x530 net/ipv6/ip6_output.c:224
 dst_output include/net/dst.h:450 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 NF_HOOK include/linux/netfilter.h:301 [inline]
 mld_sendpack+0x9a1/0xe40 net/ipv6/mcast.c:1826
 mld_send_initial_cr.part.0+0x194/0x230 net/ipv6/mcast.c:2245
 mld_send_initial_cr net/ipv6/mcast.c:1232 [inline]
 mld_dad_work+0x1d3/0x690 net/ipv6/mcast.c:2268
 process_one_work+0x9b2/0x1660 kernel/workqueue.c:2298
 worker_thread+0x65d/0x1130 kernel/workqueue.c:2445
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Crashes (8941):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2022/01/05 20:41 net b3c8e0de473e 6acc789a .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/05 20:39 bpf d6d86830705f 6acc789a .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/12/17 10:39 net 6441998e2e37 44068e19 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/10/28 20:58 net 72f898ca0ab8 be531bb4 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2021/10/25 11:28 bpf 04f8ef5643bc 4f0000ee .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/10/25 09:16 net 95a359c95533 4f0000ee .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/10/17 21:24 net fac3cb82a54a 0c5d9412 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/10/04 07:37 net 7cd8b1542a7b db0f5787 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/09/30 14:14 net d88fd1b546ff be530f6c .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/09/29 10:35 net 4ccb9f03fee7 d82cb927 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/06/05 23:55 net 3822d0670c9d 500c2339 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2021/03/29 17:56 bpf 861de02e5f3f a8529b82 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-next-kasan-gce 2021/12/19 15:27 bpf-next 4b443bc1785f 44068e19 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/12/19 13:00 net-next f85b244ee395 44068e19 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/12/17 13:33 net-next 7cd2802d7496 44068e19 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-next-kasan-gce 2021/12/11 17:37 bpf-next 229fae38d0fc 49ca1f59 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/10/28 20:56 net-next 911e3a46fb38 be531bb4 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-next-kasan-gce 2021/10/25 08:44 bpf-next c825f5fee19c 4f0000ee .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/10/24 12:42 net-next 0998aee279c3 282f03fb .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/10/18 05:59 net-next 4e6e167bc049 0c5d9412 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/10/04 04:16 net-next 0693b27644f0 db0f5787 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/09/30 15:20 net-next ef91abfb20c7 be530f6c .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/09/29 10:41 net-next b69c99463d41 d82cb927 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/06/05 23:46 net-next 1a42624aecba 500c2339 .config log report syz C WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2020/09/21 17:19 upstream ba4f184e126b 9e1fa68e .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/09/20 19:43 upstream 325d0eab4f31 9564d2e9 .config log report syz C
ci-upstream-kasan-gce-root 2020/09/19 12:26 upstream eb5f95f1593f 53ce8104 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/09/11 03:30 upstream 7fe10096c150 409809d8 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/09/09 09:14 upstream 6f6a73c8b715 abf9ba4f .config log report syz C
ci-upstream-net-this-kasan-gce 2020/09/09 06:19 net 843d926b003e abf9ba4f .config log report syz C
ci-upstream-net-this-kasan-gce 2020/01/22 08:27 net d0f418516022 8eda0b95 .config log report syz C
ci-upstream-net-kasan-gce 2020/09/09 06:54 net-next c1f1f16c4de4 abf9ba4f .config log report syz C
ci-upstream-net-kasan-gce 2020/01/22 07:43 net-next 4f2c17e0f332 8eda0b95 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/09/27 14:12 linux-next d1d2220c7f39 5dd8aee8 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/09/26 23:08 linux-next d1d2220c7f39 2d5ea0cb .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/19 11:02 linux-next 8eb858df0a5f e1c29030 .config log report syz C
ci-upstream-kasan-gce-smack-root 2022/01/01 19:08 upstream 800829388818 e1768e9c .config log report syz WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2021/12/11 15:13 bpf 0be2516f865f 49ca1f59 .config log report syz WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2021/10/28 19:34 bpf 72f898ca0ab8 be531bb4 .config log report syz WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2021/09/01 19:39 net 57f780f1c433 7eb7e152 .config log report syz WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/10/25 09:03 net-next 4d98bb0d7ec2 4f0000ee .config log report syz WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/10/04 11:05 net-next 0693b27644f0 ce697b49 .config log report syz WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/11 05:04 upstream df0cc57e057f ddb0ab8c .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2022/01/10 22:49 upstream 133d9c53c9dc ddb0ab8c .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/10 16:34 upstream df0cc57e057f 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2022/01/10 08:50 upstream df0cc57e057f 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-smack-root 2022/01/10 01:30 upstream df0cc57e057f 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2022/01/09 15:12 upstream 4634129ad9fd 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-smack-root 2022/01/09 11:45 upstream 4634129ad9fd 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2022/01/09 02:10 upstream 21f35d2ca83e 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/09 01:07 upstream 21f35d2ca83e 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/08 23:24 upstream 21f35d2ca83e 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2022/01/08 21:12 upstream 21f35d2ca83e 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2022/01/08 08:20 upstream d1587f7bfe9a 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/07 20:28 upstream ddec8ed2d490 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-selinux-root 2022/01/07 18:45 upstream ddec8ed2d490 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/07 02:07 upstream b2b436ec0205 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/07 01:05 upstream b2b436ec0205 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-qemu-upstream 2022/01/06 21:42 upstream 75acfdb6fd92 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/06 10:22 upstream 49ef78e59b07 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-kasan-gce-root 2022/01/04 23:35 upstream c9e6606c7fe9 0a2584dd .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-qemu-upstream-386 2022/01/04 01:11 upstream c9e6606c7fe9 4a3f34f2 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/11 03:45 net dd3ca4c5184e ddb0ab8c .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/11 00:57 net dd3ca4c5184e ddb0ab8c .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/10 15:21 net dd3ca4c5184e 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/10 07:25 net f4bb93a82f94 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/09 16:15 bpf d6d86830705f 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/09 10:43 net 6dc9a23e2906 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/09 06:54 net 6dc9a23e2906 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/08 19:27 bpf d6d86830705f 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/08 17:28 net 6dc9a23e2906 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/08 14:47 bpf d6d86830705f 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/08 12:30 net 6dc9a23e2906 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/07 15:06 net dc35616e6c29 2ca0d385 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/07 13:14 net 29507144c998 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/07 11:21 bpf d6d86830705f 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/07 06:52 bpf d6d86830705f 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/06 18:15 bpf d6d86830705f 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/06 16:14 net 502a2ce9cdf4 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/06 12:05 bpf d6d86830705f 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/06 08:06 net 502a2ce9cdf4 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/06 06:17 bpf d6d86830705f 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/06 03:58 net b3c8e0de473e 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/06 02:48 bpf d6d86830705f 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/05 23:46 net b3c8e0de473e 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/05 22:27 net b3c8e0de473e 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/05 20:07 net b3c8e0de473e 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-this-kasan-gce 2022/01/05 15:57 net b3c8e0de473e 6acc789a .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/05 14:21 bpf d6d86830705f 0a2584dd .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2022/01/05 03:18 bpf d6d86830705f 0a2584dd .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-next-kasan-gce 2021/12/31 14:56 bpf-next 4b443bc1785f 36bd2e48 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-net-kasan-gce 2021/12/30 14:20 net-next cfcad56b2089 2e49f10d .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-linux-next-kasan-gce-root 2021/12/14 16:12 linux-next ea922272cbe5 d018dd31 .config log report info WARNING in bpf_warn_invalid_xdp_action
ci-upstream-bpf-kasan-gce 2021/01/17 13:29 bpf e23a8d002198 813be542 .config log report info
ci-upstream-net-kasan-gce 2020/01/19 13:22 net-next 9aaa29494030 bc8bc756 .config log report