kernel: protection fault trap, code=0 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff82934d88,ffff800000b29700) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af4580) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af4580) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae3000,ffff800000af4580) at if_delgroup+0x1a3 sys/net/if.c:2705 if_detach(ffff800000ae3000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000ae3000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000244dd230) at if_clone_destroy+0x136 sys/net/if.c:1212 tun_dev_close(5d00,7) at tun_dev_close+0x140 sys/net/if_tun.c:479 spec_close(ffff8000244dd300) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8079f2c408,7,fffffd807f7b7900,ffff80002123dce0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd80675f2a38,ffff80002123dce0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80675f2a38,ffff80002123dce0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80675f2a38,ffff80002123dce0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80675f2a38,ffff80002123dce0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123dce0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123dce0,0,19,1) at exit1+0x345 sys/kern/kern_exit.c:199 postsig(ffff80002123dce0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123dce0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123dce0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000244dd780) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000244dd780) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe81c0, count: -18 ddb{1}> show registers rdi 0xffffffff82934d88 pfi_ifs rsi 0xffff800000b29700 rbp 0xffff8000244dd090 rbx 0xdeafbeaddeafbead rdx 0 rcx 0xffff800000b1a980 rax 0xffff800000b29710 r8 0xf8 r9 0x8080808080808080 r10 0x22bf8af441fafbe4 r11 0xf9aca1e873884317 r12 0xdeafbeaddeafbead r13 0xffff800000af9700 r14 0xffff800000b29700 r15 0xffffffff82934d88 pfi_ifs rip 0xffffffff81c560b0 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000244dd030 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> show proc PROC (syz-executor.0) pid=384181 stat=onproc flags process=a proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002123d260,0xffffffff828ca178 process=0xffff800021235528 user=0xffff8000244d8000, vmspace=0xfffffd807effa730 estcpu=36, cpticks=7, pctcpu=0.19 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 31065 345008 0 0 3 0x14200 bored sosplice 73676 436506 1362 0 7 0x2 syz-executor.1 1362 357092 92368 0 3 0x82 kqread syz-fuzzer 1362 510444 92368 0 3 0x4000082 thrsleep syz-fuzzer 1362 385969 92368 0 3 0x4000082 thrsleep syz-fuzzer 1362 431263 92368 0 3 0x4000082 thrsleep syz-fuzzer 1362 308475 92368 0 3 0x4000082 thrsleep syz-fuzzer 1362 352422 92368 0 3 0x4000082 thrsleep syz-fuzzer 1362 425517 92368 0 3 0x4000082 thrsleep syz-fuzzer 1362 137197 92368 0 3 0x4000082 thrsleep syz-fuzzer 92368 404899 65422 0 3 0x10008a sigsusp ksh 65422 175332 91317 0 3 0x92 select sshd 55736 446857 1 0 3 0x100083 ttyin getty 91317 294144 1 0 3 0x80 select sshd 31164 190289 44639 74 3 0x100092 bpf pflogd 44639 309701 1 0 3 0x80 netio pflogd 92375 49276 2528 73 3 0x100090 kqread syslogd 2528 521104 1 0 3 0x100082 netio syslogd 51780 265930 1 77 2 0x100090 dhclient 8700 175142 1 0 3 0x80 poll dhclient 48916 459815 0 0 3 0x14200 bored smr 75893 218134 0 0 3 0x14200 pgzero zerothread 92641 161817 0 0 3 0x14200 aiodoned aiodoned 26694 405648 0 0 3 0x14200 syncer update 15950 18045 0 0 3 0x14200 cleaner cleaner 43716 87693 0 0 3 0x14200 reaper reaper 59560 274903 0 0 3 0x14200 pgdaemon pagedaemon 71991 461876 0 0 3 0x14200 bored crynlk 58553 55370 0 0 3 0x14200 bored crypto 44075 337884 0 0 3 0x14200 bored viomb 49572 163163 0 0 3 0x40014200 acpi0 acpi0 8430 214519 0 0 3 0x40014200 idle1 29861 315043 0 0 3 0x14200 bored softnet 38133 512084 0 0 2 0x14200 systqmp 7424 389819 0 0 3 0x14200 bored systq 59259 29803 0 0 3 0x40014200 bored softclock 94569 375740 0 0 3 0x40014200 idle0 1 516978 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9500 6423K 6872K 78643K 11389 0 pcb 13 8K 8K 78643K 94 0 rtable 83 2K 3K 78643K 317 0 ifaddr 53 12K 13K 78643K 91 0 counters 44 34K 34K 78643K 54 0 ioctlops 0 0K 4K 78643K 1529 0 iov 0 0K 24K 78643K 20 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1508 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 15 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 21 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 823 0 proc 60 63K 95K 78643K 493 0 subproc 23 1K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 101 0 in_multi 22 1K 2K 78643K 139 0 ether_multi 1 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 2K 78643K 382 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 117 27K 33K 78643K 2652 0 UVM aobj 31 2K 2K 78643K 31 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 26 0 NDP 8 0K 0K 78643K 22 0 temp 107 3970K 4035K 78643K 4396 0 kqueue 3 4K 10K 78643K 69 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 44 0 42 1 0 1 1 0 8 0 rtentry 112 68 0 35 2 0 2 2 0 8 0 unpcb 120 230 0 212 1 0 1 1 0 8 0 syncache 296 11 0 11 3 3 0 1 0 8 0 tcpqe 32 74 0 74 3 3 0 1 0 8 0 tcpcb 736 224 0 218 6 4 2 4 0 8 0 inpcb 304 489 0 480 3 1 2 2 0 8 0 nd6 48 12 0 9 1 0 1 1 0 8 0 kcovpl 48 3 0 2 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 24 0 14 1 0 1 1 0 8 0 pfstkey 112 46 0 36 1 0 1 1 0 8 0 pfstate 320 35 0 25 3 1 2 2 0 8 0 pfrule 1360 21 0 16 2 0 2 2 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 304 0 132 12 1 11 12 0 8 0 art_table 32 305 0 132 2 0 2 2 0 8 0 art_node 16 67 0 29 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 13 0 3 1 0 1 1 0 8 0 shmpl 112 28 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2435 0 1027 89 0 89 89 0 8 0 ffsino 272 2435 0 1027 95 0 95 95 0 8 0 nchpl 144 3585 0 1988 60 0 60 60 0 8 0 uvmvnodes 72 2667 0 0 49 0 49 49 0 8 0 vnodes 224 2667 0 0 157 0 157 157 0 8 0 namei 1024 9024 0 9024 1 0 1 1 0 8 1 percpumem 16 38 0 5 1 0 1 1 0 8 0 scxspl 216 11476 0 11476 8 7 1 7 0 8 1 plimitpl 152 24 0 16 1 0 1 1 0 8 0 sigapl 424 1037 0 1005 4 0 4 4 0 8 0 futexpl 56 6768 0 6768 1 0 1 1 0 8 1 knotepl 112 150 0 132 1 0 1 1 0 8 0 kqueuepl 168 359 0 357 1 0 1 1 0 8 0 pipepl 336 142 0 132 3 2 1 2 0 8 0 fdescpl 496 1020 0 1005 3 0 3 3 0 8 0 filepl 152 3970 0 3879 5 0 5 5 0 8 0 lockfpl 104 267 0 266 1 0 1 1 0 8 0 lockfspl 48 72 0 71 1 0 1 1 0 8 0 sessionpl 144 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 387 0 378 1 0 1 1 0 8 0 zombiepl 144 1006 0 1003 1 0 1 1 0 8 0 processpl 1080 1037 0 1003 3 0 3 3 0 8 0 procpl 672 2022 0 1981 5 1 4 5 0 8 0 sosppl 168 18 0 18 1 1 0 1 0 8 0 sockpl 432 763 0 734 6 1 5 5 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k 2048 149 0 0 17 0 17 17 0 8 0 mtagpl 96 44 0 0 2 0 2 2 0 8 0 mbufpl 256 319 0 0 19 0 19 19 0 8 0 bufpl 280 4995 0 181 344 0 344 344 0 8 0 anonpl 24 143317 0 137739 100 16 84 84 0 186 40 amapchunkpl 152 4563 0 4365 11 1 10 10 0 158 0 amappl16 200 6318 0 6159 48 24 24 35 0 8 14 amappl15 192 192 0 190 1 0 1 1 0 8 0 amappl14 184 224 0 220 1 0 1 1 0 8 0 amappl13 176 33 0 31 1 0 1 1 0 8 0 amappl12 168 8 0 4 1 0 1 1 0 8 0 amappl11 160 453 0 435 1 0 1 1 0 8 0 amappl10 152 16 0 11 1 0 1 1 0 8 0 amappl9 144 15 0 15 1 1 0 1 0 8 0 amappl8 136 168 0 117 2 0 2 2 0 8 0 amappl7 128 258 0 249 1 0 1 1 0 8 0 amappl6 120 75 0 64 1 0 1 1 0 8 0 amappl5 112 1707 0 1688 1 0 1 1 0 8 0 amappl4 104 701 0 671 1 0 1 1 0 8 0 amappl3 96 146 0 139 1 0 1 1 0 8 0 amappl2 88 7423 0 7364 3 1 2 3 0 8 0 amappl1 80 38065 0 37608 26 14 12 21 0 8 0 amappl 88 2323 0 2270 2 0 2 2 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 30 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1020 0 1005 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1020 0 1005 1 0 1 1 0 8 0 vmmpekpl 168 8858 0 8832 2 0 2 2 0 8 0 vmmpepl 168 136086 0 134819 110 22 88 88 0 357 21 vmsppl 368 1019 0 1005 2 0 2 2 0 8 0 rwobjpl 56 33533 0 32685 32 12 20 20 0 8 5 pdppl 4096 2047 0 2010 57 16 41 45 0 8 4 pvpl 32 461726 0 453150 169 26 143 143 0 265 61 pmappl 232 1019 0 1005 2 1 1 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 315 0 25 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8273cff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828c9870) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c9870) at __mp_lock+0x129 sys/kern/kern_lock.c:147 syscall(ffff8000226c96d0) at syscall+0x3fd mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff8000226c96d0) at syscall+0x3fd sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea9d0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff82934d88,ffff800000b29700) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff800000af4580) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff800000af4580) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000ae3000,ffff800000af4580) at if_delgroup+0x1a3 sys/net/if.c:2705 if_detach(ffff800000ae3000) at if_detach+0x1cb sys/net/if.c:1049 tun_clone_destroy(ffff800000ae3000) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000244dd230) at if_clone_destroy+0x136 sys/net/if.c:1212 tun_dev_close(5d00,7) at tun_dev_close+0x140 sys/net/if_tun.c:479 spec_close(ffff8000244dd300) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd8079f2c408,7,fffffd807f7b7900,ffff80002123dce0) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd80675f2a38,ffff80002123dce0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80675f2a38,ffff80002123dce0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd80675f2a38,ffff80002123dce0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80675f2a38,ffff80002123dce0) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff80002123dce0) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff80002123dce0,0,19,1) at exit1+0x345 sys/kern/kern_exit.c:199 postsig(ffff80002123dce0,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff80002123dce0,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff80002123dce0) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000244dd780) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000244dd780) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe81c0, count: -18