login: kernel: protection fault trap, code=0 Stopped at bpfdetach+0x78: movq 0(%r15),%r14 ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace bpfdetach(ffff800000a68800) at bpfdetach+0x78 sys/net/bpf.c:1678 if_detach(ffff800000a68800) at if_detach+0x69 sys/net/if.c:1084 tun_clone_destroy(ffff800000a68800) at tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 ifioctl(fffffd8068167018,80206979,ffff800020b95b80,ffff800020ab0ef0) at ifioctl+0x3f0 sys/net/if.c:1877 fifo_ioctl(ffff800020b959c8) at fifo_ioctl+0x9c sys/miscfs/fifofs/fifo_vnops.c:276 VOP_IOCTL(fffffd807e1354e8,80206979,ffff800020b95b80,3,fffffd807f7c6780,ffff800020ab0ef0) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd80685b6a30,80206979,ffff800020b95b80,ffff800020ab0ef0) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:536 sys_ioctl(ffff800020ab0ef0,ffff800020b95c98,ffff800020b95ce0) at sys_ioctl+0x5b9 syscall(ffff800020b95d60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b95d60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c4ef48e6010) at Xsyscall+0x128 end of kernel end trace frame: 0xc5136d2b5c0, count: -10 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800020b95750 rbx 0xffff800000a48e00 rdx 0 rcx 0 rax 0 r8 0xffffffff819383a9 sounlock+0x89 r9 0x1 r10 0x96ee44ab12d32ce4 r11 0xba292db39049163b r12 0xffff800000a68800 r13 0x62 r14 0xdead0002deadbeef r15 0xdead0002deadbeef rip 0xffffffff81bff078 bpfdetach+0x78 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020b95700 ss 0x10 bpfdetach+0x78: movq 0(%r15),%r14 ddb{1}> show proc PROC (syz-executor.1) pid=82676 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0298,0xffff800020ab0798 process=0xffff800020addc00 user=0xffff800020b90000, vmspace=0xfffffd806e7dc178 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33160 125432 2853 0 2 0 syz-executor.1 *33160 82676 2853 0 7 0x4000000 syz-executor.1 33160 159030 2853 0 2 0x4000000 syz-executor.1 7335 277717 89823 0 3 0x3000 suspend syz-executor.0 7335 297282 89823 0 3 0x4081000 tqbar syz-executor.0 2853 130503 942 0 3 0x82 nanosleep syz-executor.1 89823 106919 942 0 3 0x82 nanosleep syz-executor.0 942 169275 82733 0 3 0x82 thrsleep syz-execprog 942 321731 82733 0 3 0x4000082 thrsleep syz-execprog 942 423590 82733 0 3 0x4000082 thrsleep syz-execprog 942 328396 82733 0 3 0x4000082 thrsleep syz-execprog 942 454729 82733 0 3 0x4000082 thrsleep syz-execprog 942 488260 82733 0 3 0x4000082 thrsleep syz-execprog 942 411974 82733 0 3 0x4000082 thrsleep syz-execprog 942 293008 82733 0 3 0x4000082 thrsleep syz-execprog 942 232537 82733 0 3 0x4000082 kqread syz-execprog 942 401102 82733 0 3 0x4000082 thrsleep syz-execprog 82733 107595 42894 0 3 0x10008a pause ksh 42894 334103 78075 0 3 0x92 select sshd 8176 394434 1 0 3 0x100083 ttyin getty 78075 239016 1 0 3 0x80 select sshd 11627 303208 85509 74 3 0x100092 bpf pflogd 85509 39363 1 0 3 0x80 netio pflogd 70319 511851 39622 73 3 0x100090 kqread syslogd 39622 289295 1 0 3 0x100082 netio syslogd 9470 314328 1 77 3 0x100090 poll dhclient 10795 106686 1 0 2 0x80 dhclient 71934 401580 0 0 2 0x14200 zerothread 91092 432796 0 0 3 0x14200 aiodoned aiodoned 1204 259181 0 0 3 0x14200 syncer update 92292 468470 0 0 3 0x14200 cleaner cleaner 54222 63281 0 0 7 0x14200 reaper 85692 340582 0 0 3 0x14200 pgdaemon pagedaemon 47107 42501 0 0 3 0x14200 bored crynlk 18905 226636 0 0 3 0x14200 bored crypto 53188 122327 0 0 3 0x40014200 acpi0 acpi0 58766 12266 0 0 3 0x40014200 idle1 37979 384675 0 0 2 0x14200 softnet 39161 166389 0 0 3 0x14200 bored systqmp 66803 341491 0 0 3 0x14200 bored systq 39627 156436 0 0 3 0x40014200 bored softclock 47247 76315 0 0 3 0x40014200 idle0 6719 279363 0 0 3 0x14200 bored smr 1 252798 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 33160 (syz-executor.1) thread 0xffff800020ab0ef0 (82676) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262f0d0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 cond_wait+0x76 sys/kern/kern_synch.c:793 #5 taskq_barrier+0x9e sys/kern/kern_task.c:233 #6 bpfclose+0x194 _atomic_sub_int_nv machine/atomic.h:234 [inline] #6 bpfclose+0x194 bpf_put sys/net/bpf.c:1625 [inline] #6 bpfclose+0x194 sys/net/bpf.c:412 #7 spec_close+0x295 spec_close_clone sys/kern/spec_vnops.c:769 [inline] #7 spec_close+0x295 sys/kern/spec_vnops.c:503 #8 VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175 #9 vclean+0x11b sys/kern/vfs_subr.c:1025 #10 vgonel+0x6e sys/kern/vfs_subr.c:1118 #11 vop_generic_revoke+0x23c sys/kern/vfs_default.c:119 #12 VOP_REVOKE+0x4f sys/kern/vfs_vops.c:333 #13 vdevgone+0x122 #14 bpfdetach+0x14a bpfsdetach sys/net/bpf.c:1701 [inline] #14 bpfdetach+0x14a sys/net/bpf.c:1682 #15 if_detach+0x69 sys/net/if.c:1084 #16 tun_clone_destroy+0x1c7 sys/net/if_tun.c:278 #17 ifioctl+0x3f0 sys/net/if.c:1877 #18 fifo_ioctl+0x9c sys/miscfs/fifofs/fifo_vnops.c:276 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9470 6520K 6650K 78643K 132564 0 0 pcb 13 8K 8K 78643K 13 0 0 rtable 65 2K 3K 78643K 90773 0 0 ifaddr 34 269K 401K 78643K 81686 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1469 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 76K 78643K 60660 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 16K 24K 78643K 11955 0 0 proc 59 63K 95K 78643K 424 0 0 subproc 0 0K 1K 78643K 17 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 11 0K 2K 78643K 33 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 230 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 85 20K 20K 78643K 40079 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 6 0K 0K 78643K 22652 0 0 temp 55 3546K 3610K 78643K 204984 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 21 2 0 2 2 0 8 0 unpcb 120 23629 0 23615 1 0 1 1 0 8 0 syncache 264 8 0 8 1 1 0 1 0 8 0 tcpcb 544 14 0 11 1 0 1 1 0 8 0 inpcb 280 43 0 37 1 0 1 1 0 8 0 nd6 48 4 0 4 1 1 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 16 0 15 1 0 1 1 0 8 0 pfstkey 112 16 0 15 1 0 1 1 0 8 0 pfstate 328 16 0 15 2 1 1 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 212 0 90 14 5 9 14 0 8 0 art_table 32 213 0 90 2 0 2 2 0 8 0 art_node 16 44 0 22 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 37186 0 35776 46 0 46 46 0 8 0 ffsino 272 37186 0 35776 95 0 95 95 0 8 0 nchpl 144 49488 0 47867 62 1 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 171593 0 171593 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 112385 0 112385 8 7 1 7 0 8 1 plimitpl 152 20 0 12 1 0 1 1 0 8 0 sigapl 432 12177 0 12161 3 1 2 3 0 8 0 futexpl 56 208935 0 208935 2 1 1 1 0 8 1 knotepl 112 107 0 90 1 0 1 1 0 8 0 kqueuepl 104 3 0 1 1 0 1 1 0 8 0 pipepl 112 226 0 207 1 0 1 1 0 8 0 fdescpl 488 12178 0 12161 3 0 3 3 0 8 0 filepl 152 84853 0 84780 4 1 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 73 0 64 1 0 1 1 0 8 0 zombiepl 144 12162 0 12161 1 0 1 1 0 8 0 processpl 896 12193 0 12161 4 0 4 4 0 8 0 procpl 632 39199 0 39154 5 1 4 4 0 8 0 srpgc 64 4 0 4 1 1 0 1 0 8 0 sockpl 384 23691 0 23669 4 1 3 3 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 88 0 0 10 0 10 10 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 180 0 0 10 0 10 10 0 8 0 bufpl 256 18415 0 11367 441 0 441 441 0 8 0 anonpl 16 699921 0 697197 17 6 11 13 0 124 0 amapchunkpl 152 67075 0 66977 7 3 4 6 0 158 0 amappl16 192 50255 0 50152 7 1 6 6 0 8 0 amappl15 184 5970 0 5968 2 1 1 1 0 8 0 amappl14 176 37 0 33 1 0 1 1 0 8 0 amappl13 168 2 0 1 1 0 1 1 0 8 0 amappl12 160 26 0 25 2 1 1 1 0 8 0 amappl11 152 57 0 42 1 0 1 1 0 8 0 amappl10 144 5972 0 5968 1 0 1 1 0 8 0 amappl9 136 865 0 859 1 0 1 1 0 8 0 amappl8 128 188 0 174 1 0 1 1 0 8 0 amappl7 120 6014 0 6008 1 0 1 1 0 8 0 amappl6 112 124 0 114 1 0 1 1 0 8 0 amappl5 104 184 0 171 1 0 1 1 0 8 0 amappl4 96 12518 0 12490 1 0 1 1 0 8 0 amappl3 88 153 0 148 1 0 1 1 0 8 0 amappl2 80 102417 0 102337 4 2 2 3 0 8 0 amappl1 72 256723 0 256261 31 21 10 20 0 8 0 amappl 80 39473 0 39434 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 12178 0 12161 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12178 0 12161 1 0 1 1 0 8 0 vmmpekpl 168 77177 0 77153 2 0 2 2 0 8 0 vmmpepl 168 1028624 0 1027431 89 36 53 80 0 357 1 vmsppl 368 12177 0 12161 2 0 2 2 0 8 0 pdppl 4096 24363 0 24322 7 1 6 6 0 8 0 pvpl 32 1985074 0 1979628 129 85 44 122 0 265 0 pmappl 232 12177 0 12161 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 590 0 9 17 0 17 17 0 8 0