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(ffffffff822b14e0,ffff800000a28d00) at pfi_ifhead_RB_REMOVE+0x58 sys/net/pf_if.c:80 pfi_detach_ifnet(ffff8000009e0000) at pfi_detach_ifnet+0x11e pfi_kif_unref sys/net/pf_if.c:199 [inline] pfi_detach_ifnet(ffff8000009e0000) at pfi_detach_ifnet+0x11e sys/net/pf_if.c:257 if_detach(ffff8000009e0000) at if_detach+0x15d sys/net/if.c:1118 tun_clone_destroy(ffff8000009e0000) at tun_clone_destroy+0x1c6 sys/net/if_tun.c:278 spec_close(ffff800016bdc938) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd803a5cabd8,1,fffffd803f7c6a20,ffff80001496feb0) at VOP_CLOSE+0x64 sys/kern/vfs_vops.c:174 vn_closefile(fffffd802f42e6a8,ffff80001496feb0) at vn_closefile+0x14b vn_close sys/kern/vfs_vnops.c:289 [inline] vn_closefile(fffffd802f42e6a8,ffff80001496feb0) at vn_closefile+0x14b sys/kern/vfs_vnops.c:575 fdrop(fffffd802f42e6a8,ffff80001496feb0) at fdrop+0xc9 sys/kern/kern_descrip.c:1260 closef(fffffd802f42e6a8,ffff80001496feb0) at closef+0x118 sys/kern/kern_descrip.c:1244 fdfree(ffff80001496feb0) at fdfree+0xf7 sys/kern/kern_descrip.c:1176 exit1(ffff80001496feb0,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff80001496feb0,ffff800016bdcbd0,ffff800016bdcc40) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800016bdcca0) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffbd364) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbd330, count: -14 ddb> show registers rdi 0xffffffff822b14e0 pfi_ifs rsi 0xffff800000a28d00 rbp 0xffff800016bdc7c0 rbx 0xdeadbeefdeadbeef rdx 0x28 rcx 0x10dcf86e68605759 rax 0xffff800000a28d10 r8 0x101010101010101 r9 0x5 r10 0x350d52afddd74ea1 r11 0xc7ccc4763f232b47 r12 0xffffffff822b14e0 pfi_ifs r13 0 r14 0xffff800000a28d00 r15 0xdeadbeefdeadbeef rip 0xffffffff818a5f08 pfi_ifhead_RB_REMOVE+0x58 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff800016bdc760 ss 0x10 pfi_ifhead_RB_REMOVE+0x58: movq 0x10(%r15),%rbx ddb> show proc PROC (syz-executor.0) pid=165657 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014970120,0xffff800014901768 process=0xffff8000ffffb740 user=0xffff800016bd7000, vmspace=0xfffffd803f014dd0 estcpu=36, cpticks=10, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 37894 172676 63008 0 2 0 syz-executor.1 37894 133820 63008 0 3 0x4000000 biowait syz-executor.1 8821 69855 1 0 3 0x100083 ttyin getty 77042 82517 7177 0 3 0x82 nanosleep syz-executor.0 30403 362224 0 0 3 0x14200 bored sosplice 63008 419839 7177 0 3 0x82 nanosleep syz-executor.1 7177 86863 60596 0 3 0x82 thrsleep syz-fuzzer 7177 457996 60596 0 3 0x4000082 thrsleep syz-fuzzer 7177 175990 60596 0 3 0x4000082 thrsleep syz-fuzzer 7177 56056 60596 0 3 0x4000082 kqread syz-fuzzer 7177 264766 60596 0 3 0x4000082 thrsleep syz-fuzzer 7177 478863 60596 0 3 0x4000082 thrsleep syz-fuzzer 7177 102479 60596 0 3 0x4000082 thrsleep syz-fuzzer 60596 99306 81570 0 3 0x10008a pause ksh 81570 458106 32294 0 3 0x92 select sshd 32294 76080 1 0 3 0x80 select sshd 76426 466126 21671 73 3 0x100090 kqread syslogd 21671 229353 1 0 3 0x100082 netio syslogd 22547 255678 1 77 3 0x100090 poll dhclient 33565 246392 1 0 3 0x80 poll dhclient 35356 22987 0 0 2 0x14200 zerothread 95493 454004 0 0 3 0x14200 aiodoned aiodoned 98909 352646 0 0 3 0x14200 syncer update 36675 257505 0 0 3 0x14200 cleaner cleaner 15323 451043 0 0 3 0x14200 reaper reaper 56223 291601 0 0 3 0x14200 pgdaemon pagedaemon 47069 193741 0 0 3 0x14200 bored crynlk 68698 135809 0 0 3 0x14200 bored crypto 80429 117073 0 0 3 0x40014200 acpi0 acpi0 76530 315171 0 0 2 0x14200 softnet 97023 211986 0 0 3 0x14200 bored systqmp 39299 333710 0 0 3 0x14200 bored systq 59105 133560 0 0 3 0x40014200 bored softclock 25026 382984 0 0 3 0x40014200 idle0 45157 430869 0 0 3 0x14200 bored smr 1 509645 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 9498 6356K 14918K 78643K 14276 0 0 pcb 25 9K 10K 78643K 1417 0 0 rtable 114 4K 4K 78643K 1119 0 0 ifaddr 59 16K 19K 78643K 571 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 70 0 0 iov 1 12K 28K 78643K 425 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1207 76K 77K 78643K 2505 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 10 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 90 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 1688 0 0 sigio 1 0K 0K 78643K 14 0 0 proc 42 30K 54K 78643K 468 0 0 subproc 32 2K 2K 78643K 51 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 127 0 0 in_multi 33 2K 2K 78643K 91 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 5 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 389 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 38K 78643K 5099 0 0 UVM aobj 41 2K 2K 78643K 42 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 30 0 0 NDP 12 0K 0K 78643K 155 0 0 temp 168 2715K 2833K 78643K 8682 0 0 kqueue 0 0K 0K 78643K 6 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 8 0 2 1 0 1 1 0 8 0 inpcbpl 280 740 0 733 1 0 1 1 0 8 0 rtentry 112 58 0 13 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 170 0 166 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 131 0 130 4 3 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 235 0 44 12 0 12 12 0 8 0 art_table 32 236 0 44 2 0 2 2 0 8 0 art_node 16 56 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 10 1 0 1 1 0 8 0 semapl 112 88 0 78 1 0 1 1 0 8 0 shmpl 112 40 0 1 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4280 0 2858 46 0 46 46 0 8 0 ffsino 240 4280 0 2858 84 0 84 84 0 8 0 nchpl 144 6821 0 5196 61 0 61 61 0 8 0 uvmvnodes 72 5112 0 0 93 0 93 93 0 8 0 vnodes 200 5112 0 0 270 0 270 270 0 8 0 namei 1024 20184 0 20184 2 1 1 1 0 8 1 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 36680 0 36679 15 13 2 5 0 8 1 plimitpl 152 52 0 45 1 0 1 1 0 8 0 sigapl 432 1857 0 1843 2 0 2 2 0 8 0 futexpl 56 26229 0 26229 1 0 1 1 0 8 1 knotepl 112 301 0 282 1 0 1 1 0 8 0 kqueuepl 104 286 0 284 1 0 1 1 0 8 0 pipepl 112 874 0 855 4 3 1 2 0 8 0 fdescpl 424 1858 0 1843 2 0 2 2 0 8 0 filepl 120 11609 0 11506 5 1 4 5 0 8 0 lockfpl 104 859 0 858 2 1 1 1 0 8 0 lockfspl 48 336 0 335 2 1 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 29 0 19 1 0 1 1 0 8 0 ucredpl 96 1651 0 1644 1 0 1 1 0 8 0 zombiepl 144 1844 0 1843 2 1 1 1 0 8 0 processpl 848 1873 0 1843 4 0 4 4 0 8 0 procpl 624 4193 0 4156 4 0 4 4 0 8 1 sosppl 128 12 0 12 2 2 0 1 0 8 0 sockpl 384 1824 0 1805 3 0 3 3 0 8 1 mcl64k 65536 33 0 33 5 5 0 1 0 8 0 mcl16k 16384 5 0 5 3 3 0 1 0 8 0 mcl12k 12288 25 0 25 6 5 1 1 0 8 1 mcl9k 9216 24 0 24 4 4 0 1 0 8 0 mcl8k 8192 11 0 11 4 4 0 1 0 8 0 mcl4k 4096 70 0 70 4 3 1 1 0 8 1 mcl2k2 2112 5 0 5 3 3 0 1 0 8 0 mcl2k 2048 53770 0 53729 17 11 6 13 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 94032 0 93961 13 6 7 10 0 8 0 bufpl 256 20020 0 14392 352 0 352 352 0 8 0 anonpl 16 180585 0 169898 79 35 44 61 0 62 0 amapchunkpl 152 8097 0 7986 22 17 5 14 0 158 0 amappl16 192 9977 0 9384 43 12 31 42 0 8 1 amappl15 184 472 0 470 1 0 1 1 0 8 0 amappl14 176 919 0 916 2 1 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 773 0 767 1 0 1 1 0 8 0 amappl11 152 50 0 36 1 0 1 1 0 8 0 amappl10 144 72 0 70 2 1 1 1 0 8 0 amappl9 136 554 0 549 1 0 1 1 0 8 0 amappl8 128 148 0 131 1 0 1 1 0 8 0 amappl7 120 37 0 32 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 928 0 917 1 0 1 1 0 8 0 amappl4 96 1516 0 1496 1 0 1 1 0 8 0 amappl3 88 1577 0 1561 1 0 1 1 0 8 0 amappl2 80 13987 0 13913 4 2 2 3 0 8 0 amappl1 72 41718 0 41289 26 17 9 19 0 8 0 amappl 80 4441 0 4402 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 41 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1858 0 1843 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1858 0 1843 1 0 1 1 0 8 0 vmmpekpl 168 15107 0 15078 2 0 2 2 0 8 0 vmmpepl 168 221525 0 219803 121 44 77 90 0 357 2 vmsppl 272 1857 0 1843 2 1 1 2 0 8 0 pdppl 4096 3722 0 3686 6 1 5 6 0 8 0 pvpl 32 571791 0 557931 194 76 118 189 0 265 1 pmappl 200 1857 0 1843 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 515 0 37 14 0 14 14 0 8 0