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: 53d, last: 19h42m

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 47e12067 P4D 47e12067 PUD 479ae067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5862 Comm: syz-executor.2 Not tainted 6.1.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000375f358 EFLAGS: 00010246
RAX: 1ffffffff16e4e83 RBX: ffffffff8b727418 RCX: 0000000000000001
RDX: ffffc9000375f400 RSI: 0000000000000001 RDI: ffff88807a2a8000
RBP: ffffc9000375f4d0 R08: ffffffff85a89ba1 R09: ffffed100f455008
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88807a2a8000 R14: ffffc9000375f438 R15: ffffc9000375f438
FS:  00007f05ffadd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000078ac9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
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
 __dev_flush+0xc9/0x1c0 kernel/bpf/devmap.c:419
 xdp_do_flush+0xa/0x20 net/core/filter.c:4167
 xdp_test_run_batch net/bpf/test_run.c:332 [inline]
 bpf_test_run_xdp_live+0x1650/0x1ea0 net/bpf/test_run.c:362
 bpf_prog_test_run_xdp+0x7d1/0x1130 net/bpf/test_run.c:1387
 bpf_prog_test_run+0x32f/0x3a0 kernel/bpf/syscall.c:3670
 __sys_bpf+0x3eb/0x6c0 kernel/bpf/syscall.c:5023
 __do_sys_bpf kernel/bpf/syscall.c:5109 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5107 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107
 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:0x7f05fec7cf29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f05ffadd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f05fedb3f80 RCX: 00007f05fec7cf29
RDX: 0000000000000050 RSI: 00000000200000c0 RDI: 000000000000000a
RBP: 00007f05fecec074 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f05fedb3f80 R15: 00007fffb3d36328
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000375f358 EFLAGS: 00010246
RAX: 1ffffffff16e4e83 RBX: ffffffff8b727418 RCX: 0000000000000001
RDX: ffffc9000375f400 RSI: 0000000000000001 RDI: ffff88807a2a8000
RBP: ffffc9000375f4d0 R08: ffffffff85a89ba1 R09: ffffed100f455008
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88807a2a8000 R14: ffffc9000375f438 R15: ffffc9000375f438
FS:  00007f05ffadd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000078ac9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.