syzbot


BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit

Status: upstream: reported on 2024/04/25 19:36
Reported-by: syzbot+eb9803c2147c3ba51ed1@syzkaller.appspotmail.com
First crash: 92d, last: 2d04h

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 56561067 P4D 56561067 PUD 44147067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 12587 Comm: syz.0.3618 Not tainted 6.1.101-syzkaller-00106-gc18e82d3ee44 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000cc07158 EFLAGS: 00010246
RAX: 1ffffffff16e3943 RBX: ffffffff8b71ca18 RCX: 0000000000000000
RDX: ffffc9000cc07200 RSI: 0000000000000001 RDI: ffff8880737b8000
RBP: ffffc9000cc072d0 R08: ffffffff85a884f1 R09: ffffed100e6f7008
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8880737b8000 R14: ffffc9000cc07238 R15: ffffc9000cc07238
FS:  00007f1414e076c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000007b44f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bond_xdp_xmit+0x3fd/0x650 drivers/net/bonding/bond_main.c:5546
 bq_xmit_all+0xdb8/0x1210 kernel/bpf/devmap.c:389
 bq_enqueue+0x324/0x3b0 kernel/bpf/devmap.c:454
 dev_map_enqueue_multi+0xf8d/0x1100 kernel/bpf/devmap.c:653
 __xdp_do_redirect_frame net/core/filter.c:4284 [inline]
 xdp_do_redirect_frame+0x491/0x660 net/core/filter.c:4349
 xdp_test_run_batch net/bpf/test_run.c:314 [inline]
 bpf_test_run_xdp_live+0xbf4/0x1ea0 net/bpf/test_run.c:362
 bpf_prog_test_run_xdp+0x7d1/0x1130 net/bpf/test_run.c:1393
 bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3685
 __sys_bpf+0x3eb/0x6c0 kernel/bpf/syscall.c:5038
 __do_sys_bpf kernel/bpf/syscall.c:5124 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5122 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5122
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f1413f75f19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1414e07048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f1414105f60 RCX: 00007f1413f75f19
RDX: 0000000000000050 RSI: 00000000200000c0 RDI: 000000000000000a
RBP: 00007f1413fe4e68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f1414105f60 R15: 00007ffc4c45fc88
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000cc07158 EFLAGS: 00010246
RAX: 1ffffffff16e3943 RBX: ffffffff8b71ca18 RCX: 0000000000000000
RDX: ffffc9000cc07200 RSI: 0000000000000001 RDI: ffff8880737b8000
RBP: ffffc9000cc072d0 R08: ffffffff85a884f1 R09: ffffed100e6f7008
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8880737b8000 R14: ffffc9000cc07238 R15: ffffc9000cc07238
FS:  00007f1414e076c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000007b44f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/25 09:36 linux-6.1.y c18e82d3ee44 d1a1b0ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/07/23 14:33 linux-6.1.y 9b3f9a5b12dc e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/07/23 14:33 linux-6.1.y 9b3f9a5b12dc e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/07/23 00:49 linux-6.1.y 9b3f9a5b12dc 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/07/23 00:48 linux-6.1.y 9b3f9a5b12dc 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/07/08 14:06 linux-6.1.y 7753af06eebf cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/07/03 20:37 linux-6.1.y 99e6a620de00 f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/26 01:04 linux-6.1.y eb44d83053d6 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/17 17:10 linux-6.1.y eb44d83053d6 1f11cfd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/17 03:01 linux-6.1.y eb44d83053d6 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/17 00:39 linux-6.1.y eb44d83053d6 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/15 06:12 linux-6.1.y ae9f2a70d69e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/14 19:17 linux-6.1.y ae9f2a70d69e f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/14 13:50 linux-6.1.y ae9f2a70d69e 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/12 02:36 linux-6.1.y 88690811da69 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/06/03 11:32 linux-6.1.y 88690811da69 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/31 11:21 linux-6.1.y 88690811da69 0c378259 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/24 18:02 linux-6.1.y 4078fa637fcd a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/16 19:39 linux-6.1.y 909ba1f1b414 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/16 19:38 linux-6.1.y 909ba1f1b414 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/14 01:43 linux-6.1.y 909ba1f1b414 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/14 01:15 linux-6.1.y 909ba1f1b414 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/10 14:38 linux-6.1.y 909ba1f1b414 f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/07 07:15 linux-6.1.y 909ba1f1b414 fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/05/04 01:24 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/04/25 19:36 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
* Struck through repros no longer work on HEAD.