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 *484201 28512 0 0 0x4000000 0 syz-executor 190654 80725 0 0x2 0 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83445704) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83488cbc,ffffffff83495229,17b,ffffffff8349ed62) at __assert+0x29 sys/kern/subr_prf.c:-1 bpfopen(11700,8001,2000,ffff80003bbde028) at bpfopen+0x2bd bpfilter_lookup sys/net/bpf.c:1832 [inline] bpfopen(11700,8001,2000,ffff80003bbde028) at bpfopen+0x2bd sys/net/bpf.c:379 spec_open_clone(ffff80002a25b708) at spec_open_clone+0x277 sys/kern/spec_vnops.c:722 spec_open(ffff80002a25b708) at spec_open+0x319 sys/kern/spec_vnops.c:148 VOP_OPEN(fffffd806eff3e80,8001,fffffd80097fd3a8,ffff80003bbde028) at VOP_OPEN+0x8b sys/kern/vfs_vops.c:138 vn_open(ffff80002a25b948,8001,0) at vn_open+0x6a0 sys/kern/vfs_vnops.c:177 doopenat(ffff80003bbde028,ffffff9c,200000000000,8000,0,0,b34ad87c3d6cdf30) at doopenat+0x35b sys/kern/vfs_syscalls.c:1155 sys_open(ffff80003bbde028,ffff80002a25bc00,ffff80002a25bb50) at sys_open+0x59 sys/kern/vfs_syscalls.c:1063 syscall(ffff80002a25bc00) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a25bc00) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xef3b8ed4730, 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(ffffffff83445704) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83488cbc,ffffffff83495229,17b,ffffffff8349ed62) at __assert+0x29 sys/kern/subr_prf.c:-1 bpfopen(11700,8001,2000,ffff80003bbde028) at bpfopen+0x2bd bpfilter_lookup sys/net/bpf.c:1832 [inline] bpfopen(11700,8001,2000,ffff80003bbde028) at bpfopen+0x2bd sys/net/bpf.c:379 spec_open_clone(ffff80002a25b708) at spec_open_clone+0x277 sys/kern/spec_vnops.c:722 spec_open(ffff80002a25b708) at spec_open+0x319 sys/kern/spec_vnops.c:148 VOP_OPEN(fffffd806eff3e80,8001,fffffd80097fd3a8,ffff80003bbde028) at VOP_OPEN+0x8b sys/kern/vfs_vops.c:138 vn_open(ffff80002a25b948,8001,0) at vn_open+0x6a0 sys/kern/vfs_vnops.c:177 doopenat(ffff80003bbde028,ffffff9c,200000000000,8000,0,0,b34ad87c3d6cdf30) at doopenat+0x35b sys/kern/vfs_syscalls.c:1155 sys_open(ffff80003bbde028,ffff80002a25bc00,ffff80002a25bb50) at sys_open+0x59 sys/kern/vfs_syscalls.c:1063 syscall(ffff80002a25bc00) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a25bc00) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xef3b8ed4730, count: -12 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a25b4e0 rbx 0xffffffff838ffe07 cpu_info_full_primary+0x2e07 rdx 0xffff8000015f0040 rcx 0xffff80003bbde028 rax 0xffffffff838feff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa0414322311e7766 r11 0x495853d8115e8a25 r12 0xffffffff838ffc08 cpu_info_full_primary+0x2c08 r13 0 r14 0 r15 0x1 rip 0xffffffff82421825 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a25b4d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=484201 pid=28512 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=86, usrpri=86, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003bbde558,0xffffffff83977ec8 process=0xffff8000fffed358 user=0xffff80002a256000, vmspace=0xfffffd806f5921f0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 37474 278273 12656 0 2 0 syz-executor 37474 162695 12656 0 3 0x4000080 fsleep syz-executor 51268 452361 49555 0 2 0 syz-executor 51268 332946 49555 0 3 0x4000080 fsleep syz-executor 52445 227406 62747 0 2 0 syz-executor 52445 463573 62747 0 3 0x4000080 fsleep syz-executor 52445 218056 62747 0 2 0x4000000 syz-executor 28512 217946 80725 0 2 0 syz-executor 28512 505308 80725 0 3 0x4000080 fsleep syz-executor 28512 315548 80725 0 3 0x4000080 fsleep syz-executor *28512 484201 80725 0 7 0x4000000 syz-executor 94204 74835 83142 0 2 0 syz-executor 94204 139997 83142 0 3 0x4000080 sbwait syz-executor 94204 417169 83142 0 3 0x4000080 fsleep syz-executor 62223 377838 1 0 3 0x80 nanoslp init 85805 83454 10448 0 3 0x82 wait syz-executor 68833 95781 0 0 3 0x14200 acct acct 89513 492828 53331 0 3 0x100082 sbwait arp 53331 412595 79889 0 3 0x10008a sigsusp sh 80725 190654 10448 0 7 0x2 syz-executor 83142 156535 10448 0 2 0x2 syz-executor 33695 90512 10448 0 3 0x82 nanoslp syz-executor 12656 272165 10448 0 2 0xc82 syz-executor 49555 279032 10448 0 2 0xc82 syz-executor 79889 58044 10448 0 3 0x82 wait syz-executor 62747 16575 10448 0 3 0x82 nanoslp syz-executor 10448 77445 1 0 3 0x82 kqread syz-executor 17452 283153 0 0 3 0x14200 bored smr 83455 414969 0 0 2 0x14200 zerothread 52918 59786 0 0 3 0x14200 aiodoned aiodoned 30347 73908 0 0 3 0x14200 syncer update 74947 36338 0 0 3 0x14200 cleaner cleaner 42866 242374 0 0 3 0x14200 reaper reaper 72737 359960 0 0 3 0x14200 pgdaemon pagedaemon 40924 433703 0 0 3 0x14200 bored viomb 43579 395086 0 0 3 0x40014200 acpi0 acpi0 41286 246746 0 0 3 0x40014200 idle1 62996 319300 0 0 3 0x14200 bored softnet1 29032 238893 0 0 3 0x14200 bored softnet0 81176 340766 0 0 3 0x14200 bored systqmp 92996 89764 0 0 3 0x14200 bored systq 45504 187816 0 0 3 0x14200 tmoslp softclockmp 60773 322041 0 0 3 0x40014200 tmoslp softclock 40003 223092 0 0 3 0x40014200 idle0 1 284581 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 52445 (syz-executor) thread 0xffff80003bbde558 (218056) exclusive rwlock vmmaplk r = 0 (0xfffffd806f592108) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1880 #3 uvm_fault_check+0x4f sys/uvm/uvm_fault.c:693 #4 uvm_fault+0x106 sys/uvm/uvm_fault.c:627 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #6 usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 #7 recall_trap+0x8 Process 28512 (syz-executor) thread 0xffff80003bbde028 (484201) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83aa4640) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 malloc+0xe3 sys/kern/kern_malloc.c:175 #3 checkalias+0x21c sys/kern/vfs_subr.c:594 #4 cdevvp+0xd2 getdevvp sys/kern/vfs_subr.c:-1 [inline] #4 cdevvp+0xd2 sys/kern/vfs_subr.c:517 #5 spec_open_clone+0x1e2 sys/kern/spec_vnops.c:713 #6 spec_open+0x319 sys/kern/spec_vnops.c:148 #7 VOP_OPEN+0x8b sys/kern/vfs_vops.c:138 #8 vn_open+0x6a0 sys/kern/vfs_vnops.c:177 #9 doopenat+0x35b sys/kern/vfs_syscalls.c:1155 #10 sys_open+0x59 sys/kern/vfs_syscalls.c:1063 #11 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #11 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #12 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11062 12080K 12504K 166960K 12595 0 pcb 18 13K 13K 166960K 115 0 rtable 235 8K 8K 166960K 408 0 pf 38 18K 22K 166960K 122 0 ifaddr 41 7K 7K 166960K 81 0 ifgroup 55 2K 2K 166960K 106 0 sysctl 4 1K 9K 166960K 9 0 counters 70 37K 37K 166960K 122 0 ioctlops 0 0K 4K 166960K 1612 0 iov 0 0K 12K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 1 0K 0K 166960K 5 0 vnodes 1303 82K 82K 166960K 1754 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 31 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 69K 93K 166960K 760 0 sigio 0 0K 0K 166960K 3 0 proc 12 17K 164K 166960K 612 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 58 0 in_multi 89 6K 7K 166960K 166 0 ether_multi 1 0K 0K 166960K 7 0 mrt 2 0K 0K 166960K 19 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 435 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 148 72K 180K 166960K 8330 0 UVM aobj 6 2K 2K 166960K 7 0 pinsyscall 21 42K 104K 166960K 1949 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 37 0 NDP 12 0K 1K 166960K 58 0 temp 57 9079K 9148K 166960K 21933 0 kqueue 1 2K 27K 166960K 106 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}>