syzbot


BUG: unable to handle kernel NULL pointer dereference in bq_xmit_all

Status: auto-obsoleted due to no activity on 2024/10/26 12:47
Reported-by: syzbot+d1cd08dfa4381fd6c214@syzkaller.appspotmail.com
First crash: 185d, last: 126d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel NULL pointer dereference in bq_xmit_all 19 26d 170d 0/3 upstream: reported on 2024/06/04 09:15
linux-5.15 BUG: unable to handle kernel NULL pointer dereference in bq_xmit_all (2) 1 23d 23d 0/3 upstream: reported on 2024/10/29 09:51
upstream KASAN: slab-use-after-free Read in bq_xmit_all bpf net C done 29 111d 125d 27/28 fixed on 2024/08/23 02:59

Sample crash report:
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
Mem abort info:
  ESR = 0x0000000086000006
  EC = 0x21: IABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
user pgtable: 4k pages, 48-bit VAs, pgdp=000000012266f000
[0000000000000000] pgd=080000012460d003, p4d=080000012460d003, pud=08000001085fb003, pmd=0000000000000000
Internal error: Oops: 0000000086000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 6565 Comm: syz.1.801 Not tainted 5.15.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : 0x0
lr : bond_xdp_xmit+0x310/0x4f4 drivers/net/bonding/bond_main.c:5235
sp : ffff80001cec7360
x29: ffff80001cec74a0 x28: 1ffff000039d8e8a x27: 1ffff000039d8e86
x26: dfff800000000000 x25: ffff0000cb684000 x24: ffff80001cec7420
x23: ffff80001cec7400 x22: ffff800012971f78 x21: fffffbffeff94f20
x20: ffff0000d63b0140 x19: 0000000000000000 x18: 0000000000000200
x17: 0000000000000002 x16: ffff8000082ea3dc x15: 0000000000000001
x14: ffff0000cc05b680 x13: 0000000000ff0100 x12: 0000000000040000
x11: 0000000000000537 x10: ffff80001dcaa000 x9 : 0000000000000538
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000001
x2 : ffff80001cec7400 x1 : 0000000000000001 x0 : ffff0000cb684000
Call trace:
 0x0
 bq_xmit_all+0xcf4/0x111c kernel/bpf/devmap.c:388
 __dev_flush+0xc8/0x1a0 kernel/bpf/devmap.c:418
 xdp_do_flush+0x14/0x28 net/core/filter.c:3945
 tun_build_skb drivers/net/tun.c:1703 [inline]
 tun_get_user+0x27d8/0x3774 drivers/net/tun.c:1797
 tun_chr_write_iter+0xfc/0x20c 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+0x884/0xb44 fs/read_write.c:594
 ksys_write+0x15c/0x26c fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:656
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: bad PC value
---[ end trace 68ab771ae369bcad ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/18 12:46 linux-5.15.y 7c6d66f0266f 71884c12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in bq_xmit_all
2024/06/25 01:13 linux-5.15.y 4878aadf2d15 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in bq_xmit_all
2024/05/20 11:01 linux-5.15.y 83655231580b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel NULL pointer dereference in bq_xmit_all
* Struck through repros no longer work on HEAD.