syzbot


BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit

Status: upstream: reported on 2024/08/17 05:16
Reported-by: syzbot+bb9c860389c4daf630a0@syzkaller.appspotmail.com
First crash: 66d, last: 7d04h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit 85 3d20h 180d 0/3 upstream: reported on 2024/04/25 19:36

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 681b9067 P4D 681b9067 PUD 589ce067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4061 Comm: syz.4.115 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90002e675d8 EFLAGS: 00010246
RAX: 1ffffffff1642963 RBX: ffffffff8b214b18 RCX: 0000000000000001
RDX: ffffc90002e67680 RSI: 0000000000000001 RDI: ffff88807be28000
RBP: ffffc90002e67750 R08: ffffffff8568cbe1 R09: ffffed100f7c5008
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807be28000
R13: ffff888029378140 R14: ffffe8ffffd3f950 R15: dffffc0000000000
FS:  00007f9adacae6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000068239000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bond_xdp_xmit+0x380/0x570 drivers/net/bonding/bond_main.c:5227
 bq_xmit_all+0xc32/0x1000 kernel/bpf/devmap.c:388
 __dev_flush+0xc9/0x1c0 kernel/bpf/devmap.c:418
 xdp_do_flush+0xa/0x20 net/core/filter.c:3952
 tun_build_skb drivers/net/tun.c:1703 [inline]
 tun_get_user+0x2f4a/0x40f0 drivers/net/tun.c:1797
 tun_chr_write_iter+0x10c/0x1e0 drivers/net/tun.c:2019
 call_write_iter include/linux/fs.h:2172 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0xacd/0xe50 fs/read_write.c:594
 ksys_write+0x1a2/0x2c0 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f9adc834adf
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 c9 8d 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 1c 8e 02 00 48
RSP: 002b:00007f9adacae000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f9adc9edf80 RCX: 00007f9adc834adf
RDX: 0000000000000022 RSI: 00000000200001c0 RDI: 00000000000000c8
RBP: 00007f9adc8a8296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000022 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9adc9edf80 R15: 00007ffe863896d8
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 42346b9df3c61c8c ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
RSP: 0018:ffffc90002e675d8 EFLAGS: 00010246
RAX: 1ffffffff1642963 RBX: ffffffff8b214b18 RCX: 0000000000000001
RDX: ffffc90002e67680 RSI: 0000000000000001 RDI: ffff88807be28000
RBP: ffffc90002e67750 R08: ffffffff8568cbe1 R09: ffffed100f7c5008
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807be28000
R13: ffff888029378140 R14: ffffe8ffffd3f950 R15: dffffc0000000000
FS:  00007f9adacae6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000068239000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/15 16:26 linux-5.15.y 3a5928702e71 7eb57b4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/10/01 20:15 linux-5.15.y 3a5928702e71 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/09/25 17:01 linux-5.15.y 3a5928702e71 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/09/25 16:57 linux-5.15.y 3a5928702e71 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
2024/08/17 05:15 linux-5.15.y 7e89efd3ae1c dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel NULL pointer dereference in bond_xdp_xmit
* Struck through repros no longer work on HEAD.