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(ffffffff822ab808,ffff800000a21c00) at pfi_ifhead_RB_REMOVE+0x58 sys/net/pf_if.c:80 pfi_detach_ifnet(ffff8000009cd000) at pfi_detach_ifnet+0x11e pfi_kif_unref sys/net/pf_if.c:199 [inline] pfi_detach_ifnet(ffff8000009cd000) at pfi_detach_ifnet+0x11e sys/net/pf_if.c:257 if_detach(ffff8000009cd000) at if_detach+0x15d sys/net/if.c:1118 tun_clone_destroy(ffff8000009cd000) at tun_clone_destroy+0x1c6 sys/net/if_tun.c:278 spec_close(ffff80001493fed8) at spec_close+0x3b0 sys/kern/spec_vnops.c:553 VOP_CLOSE(fffffd802b6e47a0,1,fffffd803f7c6b40,ffff80001496feb0) at VOP_CLOSE+0x64 sys/kern/vfs_vops.c:174 vn_closefile(fffffd803615d710,ffff80001496feb0) at vn_closefile+0x14b vn_close sys/kern/vfs_vnops.c:289 [inline] vn_closefile(fffffd803615d710,ffff80001496feb0) at vn_closefile+0x14b sys/kern/vfs_vnops.c:575 fdrop(fffffd803615d710,ffff80001496feb0) at fdrop+0xc9 sys/kern/kern_descrip.c:1260 closef(fffffd803615d710,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,ffff800014940170,ffff8000149401e0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800014940240) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffe1d94) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1d60, count: -14 ddb> show registers rdi 0xffffffff822ab808 pfi_ifs rsi 0xffff800000a21c00 rbp 0xffff80001493fd60 rbx 0xdeafbeaddeafbead rdx 0x28 rcx 0x57306390476c94d1 rax 0xffff800000a21c10 r8 0x101010101010101 r9 0x5 r10 0xb5b4b8d1f73db3f r11 0xc92515f83cc4723b r12 0xffffffff822ab808 pfi_ifs r13 0 r14 0xffff800000a21c00 r15 0xdeafbeaddeafbead rip 0xffffffff81788de8 pfi_ifhead_RB_REMOVE+0x58 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80001493fd00 ss 0x10 pfi_ifhead_RB_REMOVE+0x58: movq 0x10(%r15),%rbx ddb> show proc PROC (syz-executor.1) pid=145503 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014901008,0xffffffff822aa4b0 process=0xffff8000ffffaa00 user=0xffff80001493b000, vmspace=0xfffffd803f014110 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 7523 263295 43133 0 3 0x80 nanosleep syz-executor.0 7523 415897 43133 0 3 0x4000080 select syz-executor.0 54354 413907 1 0 3 0x100083 ttyin getty 37777 275977 0 0 3 0x14200 bored sosplice 43133 249609 53213 0 3 0x82 nanosleep syz-executor.0 71172 481969 53213 0 3 0x82 nanosleep syz-executor.1 53213 348885 60088 0 3 0x82 thrsleep syz-fuzzer 53213 49263 60088 0 3 0x4000082 thrsleep syz-fuzzer 53213 497379 60088 0 3 0x4000082 thrsleep syz-fuzzer 53213 152202 60088 0 3 0x4000082 thrsleep syz-fuzzer 53213 337588 60088 0 3 0x4000082 thrsleep syz-fuzzer 53213 270695 60088 0 3 0x4000082 kqread syz-fuzzer 53213 262589 60088 0 3 0x4000082 thrsleep syz-fuzzer 60088 506234 4758 0 3 0x10008a pause ksh 4758 93977 39916 0 3 0x92 select sshd 39916 404890 1 0 3 0x80 select sshd 31364 122368 64515 73 3 0x100090 kqread syslogd 64515 320195 1 0 3 0x100082 netio syslogd 86705 265750 1 77 3 0x100090 poll dhclient 83450 105687 1 0 3 0x80 poll dhclient 29227 287399 0 0 2 0x14200 zerothread 99032 339531 0 0 3 0x14200 aiodoned aiodoned 86511 15697 0 0 3 0x14200 syncer update 23872 508224 0 0 3 0x14200 cleaner cleaner 38873 82026 0 0 3 0x14200 reaper reaper 83946 311406 0 0 3 0x14200 pgdaemon pagedaemon 22877 44256 0 0 3 0x14200 bored crynlk 75593 21683 0 0 3 0x14200 bored crypto 66131 353905 0 0 3 0x40014200 acpi0 acpi0 33722 349348 0 0 2 0x14200 softnet 88179 520386 0 0 3 0x14200 bored systqmp 51413 63291 0 0 3 0x14200 bored systq 90084 447047 0 0 3 0x40014200 bored softclock 65173 27371 0 0 3 0x40014200 idle0 22186 176344 0 0 3 0x14200 bored smr 1 251852 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 9545 6376K 7633K 78643K 28426 0 0 pcb 24 9K 11K 78643K 2994 0 0 rtable 119 4K 5K 78643K 1484 0 0 ifaddr 68 17K 20K 78643K 755 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 358 0 0 iov 0 0K 32K 78643K 776 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 77K 78643K 7925 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 77 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 578 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 7107 0 0 sigio 0 0K 0K 78643K 119 0 0 proc 42 30K 54K 78643K 1065 0 0 subproc 32 2K 2K 78643K 42 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 629 0 0 in_multi 33 2K 2K 78643K 288 0 0 ether_multi 1 0K 0K 78643K 38 0 0 mrt 0 0K 0K 78643K 15 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 806 0 0 pfkey data 0 0K 4K 78643K 2 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 93 21K 38K 78643K 17513 0 0 UVM aobj 130 4K 4K 78643K 151 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 265 0 0 NDP 15 0K 0K 78643K 201 0 0 temp 192 2722K 3350K 78643K 24776 0 0 kqueue 0 0K 0K 78643K 53 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 2728 0 2721 1 0 1 1 0 8 0 rtentry 112 59 0 14 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 90 0 90 1 1 0 1 0 8 0 tcpcb 544 995 0 991 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 160 0 160 20 19 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 45 0 5 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 11 1 0 1 1 0 8 0 semapl 112 574 0 564 1 0 1 1 0 8 0 shmpl 112 149 0 21 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13447 0 11949 49 0 49 49 0 8 0 ffsino 240 13447 0 11949 89 0 89 89 0 8 0 nchpl 144 23520 0 21888 62 0 62 62 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 75045 0 75045 3 2 1 1 0 8 1 scsiplug 64 7 0 7 6 5 1 1 0 8 1 scxspl 192 72502 0 72502 45 42 3 6 0 8 3 plimitpl 152 232 0 225 1 0 1 1 0 8 0 sigapl 432 7283 0 7269 2 0 2 2 0 8 0 futexpl 56 114453 0 114453 3 2 1 1 0 8 1 knotepl 112 1165 0 1146 1 0 1 1 0 8 0 kqueuepl 104 1506 0 1500 1 0 1 1 0 8 0 pipepl 112 4040 0 4021 9 8 1 2 0 8 0 fdescpl 424 7284 0 7269 2 0 2 2 0 8 0 filepl 120 43992 0 43891 10 6 4 5 0 8 0 lockfpl 104 2600 0 2600 5 4 1 1 0 8 1 lockfspl 48 941 0 941 5 4 1 1 0 8 1 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 83 0 72 1 0 1 1 0 8 0 ucredpl 96 10521 0 10514 1 0 1 1 0 8 0 zombiepl 144 7270 0 7269 2 1 1 1 0 8 0 processpl 848 7299 0 7269 4 0 4 4 0 8 0 procpl 624 16460 0 16423 7 3 4 4 0 8 1 sosppl 128 89 0 89 27 27 0 1 0 8 0 sockpl 384 5340 0 5322 9 6 3 4 0 8 1 mcl64k 65536 911 0 911 112 83 29 33 0 8 29 mcl16k 16384 27 0 27 13 13 0 1 0 8 0 mcl12k 12288 88 0 88 22 21 1 1 0 8 1 mcl9k 9216 99 0 99 25 24 1 1 0 8 1 mcl8k 8192 95 0 95 22 22 0 1 0 8 0 mcl4k 4096 323 0 323 9 8 1 1 0 8 1 mcl2k2 2112 52 0 52 26 26 0 1 0 8 0 mcl2k 2048 62570 0 62523 16 9 7 14 0 8 0 mtagpl 80 8 0 8 4 4 0 1 0 8 0 mbufpl 256 132914 0 132850 51 37 14 22 0 8 8 bufpl 256 23163 0 17468 358 1 357 357 0 8 0 anonpl 16 617732 0 606820 231 180 51 61 0 62 4 amapchunkpl 152 31364 0 31259 83 78 5 18 0 158 0 amappl16 192 37853 0 37254 210 175 35 42 0 8 5 amappl15 184 3605 0 3602 1 0 1 1 0 8 0 amappl14 176 35 0 34 2 1 1 1 0 8 0 amappl12 160 13 0 10 1 0 1 1 0 8 0 amappl11 152 55 0 41 1 0 1 1 0 8 0 amappl10 144 3551 0 3548 2 1 1 1 0 8 0 amappl9 136 348 0 345 1 0 1 1 0 8 0 amappl8 128 138 0 120 1 0 1 1 0 8 0 amappl7 120 3521 0 3514 1 0 1 1 0 8 0 amappl6 112 58 0 51 1 0 1 1 0 8 0 amappl5 104 583 0 573 1 0 1 1 0 8 0 amappl4 96 7488 0 7466 1 0 1 1 0 8 0 amappl3 88 371 0 361 1 0 1 1 0 8 0 amappl2 80 61896 0 61821 4 2 2 3 0 8 0 amappl1 72 131434 0 131017 26 17 9 19 0 8 0 amappl 80 16777 0 16740 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 150 0 21 3 0 3 3 0 8 0 uaddrrnd 24 7284 0 7269 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7284 0 7269 1 0 1 1 0 8 0 vmmpekpl 168 42288 0 42258 2 0 2 2 0 8 0 vmmpepl 168 839227 0 837511 214 135 79 87 0 357 4 vmsppl 272 7283 0 7269 2 1 1 2 0 8 0 pdppl 4096 14574 0 14538 6 1 5 6 0 8 0 pvpl 32 1818839 0 1804238 488 351 137 224 0 265 19 pmappl 200 7283 0 7269 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 707 0 182 17 1 16 16 0 8 0