kernel: protection fault trap, code=0 Stopped at pfi_ifhead_RB_REMOVE+0x58: movq 0x10(%r15),%rbx ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace pfi_ifhead_RB_REMOVE(ffffffff822a55d8,ffff800000a1a300) at pfi_ifhead_RB_REMOVE+0x58 sys/net/pf_if.c:80 pfi_detach_ifnet(ffff8000009c3000) at pfi_detach_ifnet+0x11e pfi_kif_unref sys/net/pf_if.c:199 [inline] pfi_detach_ifnet(ffff8000009c3000) at pfi_detach_ifnet+0x11e sys/net/pf_if.c:257 if_detach(ffff8000009c3000) at if_detach+0x15d sys/net/if.c:1120 tun_clone_destroy(ffff8000009c3000) at tun_clone_destroy+0x1c6 sys/net/if_tun.c:278 spec_close(ffff8000159f2198) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd802c1b4420,81,fffffd803f7c6a80,ffff8000149019c8) at VOP_CLOSE+0x64 sys/kern/vfs_vops.c:174 vn_closefile(fffffd802fc1af10,ffff8000149019c8) at vn_closefile+0x14b vn_close sys/kern/vfs_vnops.c:289 [inline] vn_closefile(fffffd802fc1af10,ffff8000149019c8) at vn_closefile+0x14b sys/kern/vfs_vnops.c:575 fdrop(fffffd802fc1af10,ffff8000149019c8) at fdrop+0xc9 sys/kern/kern_descrip.c:1260 closef(fffffd802fc1af10,ffff8000149019c8) at closef+0x118 sys/kern/kern_descrip.c:1244 fdfree(ffff8000149019c8) at fdfree+0xf7 sys/kern/kern_descrip.c:1176 exit1(ffff8000149019c8,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff8000149019c8,ffff8000159f2430,ffff8000159f24a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000159f2500) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7fffff6d74) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff6d40, count: -14 ddb> show registers rdi 0xffffffff822a55d8 pfi_ifs rsi 0xffff800000a1a300 rbp 0xffff8000159f2020 rbx 0xdead4110dead4110 rdx 0x28 rcx 0xdac24a0f90dd2da5 rax 0xffff800000a1a310 r8 0x101010101010101 r9 0x5 r10 0x7d30e1211a4986be r11 0x2c7ffa3ee5bfefbe r12 0xffffffff822a55d8 pfi_ifs r13 0 r14 0xffff800000a1a300 r15 0xdead4110dead4110 rip 0xffffffff8137d098 pfi_ifhead_RB_REMOVE+0x58 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000159f1fc0 ss 0x10 pfi_ifhead_RB_REMOVE+0x58: movq 0x10(%r15),%rbx ddb> show proc PROC (syz-executor.1) pid=361711 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000149014e8,0xffffffff8228a1d8 process=0xffff8000ffffad50 user=0xffff8000159ed000, vmspace=0xfffffd803f014000 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23021 166285 84959 0 2 0 syz-executor.0 23021 23495 84959 0 3 0x4000080 fsleep syz-executor.0 71938 395193 0 0 3 0x14200 bored sosplice 21738 177824 1 0 3 0x100083 ttyin getty 84959 27262 18370 0 3 0x82 nanosleep syz-executor.0 1478 281018 18370 0 3 0x82 nanosleep syz-executor.1 18370 246657 74968 0 3 0x82 thrsleep syz-fuzzer 18370 419853 74968 0 3 0x4000082 thrsleep syz-fuzzer 18370 304301 74968 0 3 0x4000082 thrsleep syz-fuzzer 18370 474920 74968 0 3 0x4000082 thrsleep syz-fuzzer 18370 316858 74968 0 3 0x4000082 thrsleep syz-fuzzer 18370 386519 74968 0 3 0x4000082 kqread syz-fuzzer 18370 324851 74968 0 3 0x4000082 thrsleep syz-fuzzer 18370 196506 74968 0 3 0x4000082 thrsleep syz-fuzzer 74968 78153 67248 0 3 0x10008a pause ksh 67248 446353 78837 0 3 0x92 select sshd 78837 17928 1 0 3 0x80 select sshd 12261 412879 2576 73 3 0x100090 kqread syslogd 2576 201202 1 0 3 0x100082 netio syslogd 98717 488709 1 77 3 0x100090 poll dhclient 62447 234323 1 0 3 0x80 poll dhclient 44878 486182 0 0 2 0x14200 zerothread 93089 44451 0 0 3 0x14200 aiodoned aiodoned 41535 308671 0 0 3 0x14200 syncer update 48397 101674 0 0 3 0x14200 cleaner cleaner 34968 357315 0 0 3 0x14200 reaper reaper 27116 362061 0 0 3 0x14200 pgdaemon pagedaemon 42182 164864 0 0 3 0x14200 bored crynlk 55807 139979 0 0 3 0x14200 bored crypto 51390 255788 0 0 3 0x40014200 acpi0 acpi0 31267 19801 0 0 2 0x14200 softnet 45755 319804 0 0 3 0x14200 bored systqmp 92069 158753 0 0 3 0x14200 bored systq 75656 74733 0 0 3 0x40014200 bored softclock 54224 520583 0 0 3 0x40014200 idle0 12156 58041 0 0 3 0x14200 bored smr 1 483369 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9518 6362K 6874K 78643K 14216 0 0 pcb 23 9K 10K 78643K 657 0 0 rtable 108 3K 4K 78643K 394 0 0 ifaddr 65 14K 15K 78643K 164 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 86 0 0 iov 0 0K 24K 78643K 189 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1207 76K 76K 78643K 2507 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 29 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 140 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 1492 0 0 sigio 1 0K 0K 78643K 17 0 0 proc 41 30K 54K 78643K 437 0 0 subproc 32 2K 2K 78643K 34 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 126 0 0 in_multi 33 2K 2K 78643K 85 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 315 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 29K 78643K 4364 0 0 UVM aobj 77 5K 5K 78643K 87 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 63 0 0 NDP 14 0K 0K 78643K 43 0 0 temp 183 2719K 2785K 78643K 7540 0 0 kqueue 0 0K 0K 78643K 10 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 612 0 605 1 0 1 1 0 8 0 rtentry 112 47 0 3 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 216 0 212 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 22 0 22 7 6 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 187 0 0 12 0 12 12 0 8 0 art_table 32 188 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 5 1 0 1 1 0 8 0 semapl 112 138 0 128 1 0 1 1 0 8 0 shmpl 112 85 0 10 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3823 0 2394 47 0 47 47 0 8 0 ffsino 240 3823 0 2394 85 0 85 85 0 8 0 nchpl 144 6146 0 4502 61 0 61 61 0 8 0 uvmvnodes 72 4699 0 0 86 0 86 86 0 8 0 vnodes 200 4699 0 0 248 0 248 248 0 8 0 namei 1024 18340 0 18340 2 1 1 1 0 8 1 scsiplug 64 3 0 3 2 1 1 1 0 8 1 scxspl 192 18910 0 18910 18 15 3 6 0 8 3 plimitpl 152 45 0 38 1 0 1 1 0 8 0 sigapl 432 1664 0 1650 2 0 2 2 0 8 0 futexpl 56 23769 0 23768 1 0 1 1 0 8 0 knotepl 112 367 0 348 1 0 1 1 0 8 0 kqueuepl 104 370 0 368 1 0 1 1 0 8 0 pipepl 112 870 0 851 2 1 1 1 0 8 0 fdescpl 424 1665 0 1650 2 0 2 2 0 8 0 filepl 120 9550 0 9454 4 0 4 4 0 8 1 lockfpl 104 386 0 386 2 1 1 1 0 8 1 lockfspl 48 139 0 139 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 26 0 16 1 0 1 1 0 8 0 ucredpl 96 1980 0 1973 1 0 1 1 0 8 0 zombiepl 144 1651 0 1650 2 1 1 1 0 8 0 processpl 848 1680 0 1650 4 0 4 4 0 8 0 procpl 624 3605 0 3567 4 0 4 4 0 8 1 sosppl 128 35 0 35 6 5 1 1 0 8 1 sockpl 384 1166 0 1149 4 1 3 3 0 8 1 mcl64k 65536 521 0 521 65 51 14 32 0 8 14 mcl16k 16384 4 0 4 4 4 0 1 0 8 0 mcl12k 12288 14 0 14 6 6 0 1 0 8 0 mcl9k 9216 26 0 26 6 5 1 1 0 8 1 mcl8k 8192 23 0 23 8 7 1 1 0 8 1 mcl4k 4096 81 0 81 4 3 1 1 0 8 1 mcl2k 2048 54014 0 53969 17 10 7 12 0 8 0 mtagpl 80 4 0 3 2 1 1 1 0 8 0 mbufpl 256 92117 0 92045 44 36 8 21 0 8 0 bufpl 256 11445 0 5817 352 0 352 352 0 8 0 anonpl 16 187373 0 176468 103 40 63 78 0 62 18 amapchunkpl 152 7930 0 7822 33 28 5 16 0 158 0 amappl16 192 8958 0 8364 78 47 31 42 0 8 1 amappl15 184 732 0 730 1 0 1 1 0 8 0 amappl14 176 1497 0 1490 2 1 1 1 0 8 0 amappl13 168 4 0 4 3 3 0 1 0 8 0 amappl12 160 5 0 5 1 1 0 1 0 8 0 amappl11 152 54 0 40 1 0 1 1 0 8 0 amappl10 144 60 0 60 4 4 0 1 0 8 0 amappl9 136 535 0 531 1 0 1 1 0 8 0 amappl8 128 134 0 118 1 0 1 1 0 8 0 amappl7 120 29 0 26 1 0 1 1 0 8 0 amappl6 112 53 0 47 1 0 1 1 0 8 0 amappl5 104 167 0 156 1 0 1 1 0 8 0 amappl4 96 1077 0 1056 1 0 1 1 0 8 0 amappl3 88 2426 0 2410 1 0 1 1 0 8 0 amappl2 80 12527 0 12454 4 2 2 3 0 8 0 amappl1 72 37772 0 37355 26 17 9 19 0 8 0 amappl 80 3862 0 3824 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 dma64 64 259 0 259 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 86 0 10 2 0 2 2 0 8 0 uaddrrnd 24 1665 0 1650 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1665 0 1650 1 0 1 1 0 8 0 vmmpekpl 168 14084 0 14057 2 0 2 2 0 8 0 vmmpepl 168 197456 0 195748 134 57 77 90 0 357 2 vmsppl 272 1664 0 1650 2 1 1 2 0 8 0 pdppl 4096 3336 0 3300 6 1 5 6 0 8 0 pvpl 32 607049 0 593002 327 57 270 285 0 265 156 pmappl 200 1664 0 1650 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 612 0 116 15 0 15 15 0 8 0