panic: kernel diagnostic assertion "bpfilter_lookup(unit) == NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/bpf.c", line 379 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *436340 40836 0 0 0x4000000 0 syz-executor 427432 69799 0 0x2 0 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83453120) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8348e229,ffffffff8349e156,17b,ffffffff834a86af) at __assert+0x29 sys/kern/subr_prf.c:-1 bpfopen(11700,8001,2000,ffff8000337be550) at bpfopen+0x2bd bpfilter_lookup sys/net/bpf.c:1832 [inline] bpfopen(11700,8001,2000,ffff8000337be550) at bpfopen+0x2bd sys/net/bpf.c:379 spec_open_clone(ffff8000333b15e8) at spec_open_clone+0x277 sys/kern/spec_vnops.c:722 spec_open(ffff8000333b15e8) at spec_open+0x319 sys/kern/spec_vnops.c:148 VOP_OPEN(fffffd806868ae58,8001,fffffd80097fd548,ffff8000337be550) at VOP_OPEN+0x8b sys/kern/vfs_vops.c:138 vn_open(ffff8000333b1828,8001,0) at vn_open+0x6a0 sys/kern/vfs_vnops.c:177 doopenat(ffff8000337be550,ffffff9c,200000000000,8000,0,0,2940420c170108ea) at doopenat+0x35b sys/kern/vfs_syscalls.c:1155 sys_open(ffff8000337be550,ffff8000333b1ae0,ffff8000333b1a30) at sys_open+0x59 sys/kern/vfs_syscalls.c:1063 syscall(ffff8000333b1ae0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff8000333b1ae0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe9d29de75f0, count: 3 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "bpfilter_lookup(unit) == NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/bpf.c", line 379 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83453120) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8348e229,ffffffff8349e156,17b,ffffffff834a86af) at __assert+0x29 sys/kern/subr_prf.c:-1 bpfopen(11700,8001,2000,ffff8000337be550) at bpfopen+0x2bd bpfilter_lookup sys/net/bpf.c:1832 [inline] bpfopen(11700,8001,2000,ffff8000337be550) at bpfopen+0x2bd sys/net/bpf.c:379 spec_open_clone(ffff8000333b15e8) at spec_open_clone+0x277 sys/kern/spec_vnops.c:722 spec_open(ffff8000333b15e8) at spec_open+0x319 sys/kern/spec_vnops.c:148 VOP_OPEN(fffffd806868ae58,8001,fffffd80097fd548,ffff8000337be550) at VOP_OPEN+0x8b sys/kern/vfs_vops.c:138 vn_open(ffff8000333b1828,8001,0) at vn_open+0x6a0 sys/kern/vfs_vnops.c:177 doopenat(ffff8000337be550,ffffff9c,200000000000,8000,0,0,2940420c170108ea) at doopenat+0x35b sys/kern/vfs_syscalls.c:1155 sys_open(ffff8000337be550,ffff8000333b1ae0,ffff8000333b1a30) at sys_open+0x59 sys/kern/vfs_syscalls.c:1063 syscall(ffff8000333b1ae0) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff8000333b1ae0) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe9d29de75f0, count: -12 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000333b13c0 rbx 0xffffffff83921e07 cpu_info_full_primary+0x2e07 rdx 0xffff8000015ef480 rcx 0xffff8000337be550 rax 0xffffffff83920ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x953e974bccab758b r11 0x986f8738cc963553 r12 0xffffffff83921c08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff8244dc95 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000333b13b0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=436340 pid=40836 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000337bea80,0xffff8000337bfa20 process=0xffff80002a39f508 user=0xffff8000333ac000, vmspace=0xfffffd806c876018 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78788 462881 21344 0 2 0 syz-executor 78788 289048 21344 0 3 0x4000080 fsleep syz-executor 32230 18502 74957 0 2 0 syz-executor 32230 293197 74957 0 3 0x4000080 fsleep syz-executor 32230 81406 74957 0 3 0x4000080 fsleep syz-executor 88282 275469 69799 0 2 0 syz-executor 40836 275046 73450 0 2 0 syz-executor 40836 513998 73450 0 3 0x4000080 fsleep syz-executor *40836 436340 73450 0 7 0x4000000 syz-executor 30699 217153 98590 0 2 0 syz-executor 30699 210610 98590 0 2 0x4000000 syz-executor 30699 80190 98590 0 2 0x4000000 syz-executor 5747 92720 22765 0 2 0 syz-executor 5747 223233 22765 0 3 0x4000080 fsleep syz-executor 5747 146304 22765 0 2 0x4000000 syz-executor 36667 265512 0 0 3 0x14200 acct acct 49590 382686 1 0 3 0x100083 ttyin getty 21344 139630 57411 0 2 0xc82 syz-executor 75700 258898 57411 0 2 0x2 syz-executor 98590 264372 57411 0 3 0x82 nanoslp syz-executor 69799 427432 57411 0 7 0x2 syz-executor 74957 102350 57411 0 2 0xc82 syz-executor 73450 334398 57411 0 2 0xc82 syz-executor 68241 343504 57411 0 2 0xc82 syz-executor 22765 130818 57411 0 2 0xc82 syz-executor 57411 142239 1 0 3 0x82 kqread syz-executor 13431 205144 0 0 3 0x14200 bored smr 40565 201948 0 0 2 0x14200 zerothread 34069 461357 0 0 3 0x14200 aiodoned aiodoned 92353 427762 0 0 3 0x14200 syncer update 69591 89335 0 0 3 0x14200 cleaner cleaner 54850 502041 0 0 3 0x14200 reaper reaper 69322 418863 0 0 3 0x14200 pgdaemon pagedaemon 97837 170574 0 0 3 0x14200 bored viomb 55925 47463 0 0 3 0x40014200 acpi0 acpi0 22558 65148 0 0 3 0x40014200 idle1 3218 14875 0 0 3 0x14200 bored softnet1 41538 297041 0 0 3 0x14200 bored softnet0 2751 390917 0 0 3 0x14200 bored systqmp 28061 347563 0 0 3 0x14200 bored systq 21798 480527 0 0 3 0x14200 tmoslp softclockmp 77576 298481 0 0 3 0x40014200 tmoslp softclock 17464 66835 0 0 3 0x40014200 idle0 1 231950 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 88282 (syz-executor) thread 0xffff8000337bea80 (275469) Process 40836 (syz-executor) thread 0xffff8000337be550 (436340) Process 30699 (syz-executor) thread 0xffff80003c429780 (210610) Process 75700 (syz-executor) thread 0xffff8000fffeea78 (258898) ddb{0}>