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(ffffffff82930a00,ffff800000b3c700) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff8000006bbf00) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff8000006bbf00) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b11800,ffff8000006bbf00) at if_delgroup+0x193 sys/net/if.c:2676 if_detach(ffff800000b11800) at if_detach+0x1ab sys/net/if.c:1039 tun_clone_destroy(ffff800000b11800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000226c8db0) at if_clone_destroy+0x146 sys/net/if.c:1198 tun_dev_close(5d01,7) at tun_dev_close+0x140 sys/net/if_tun.c:476 spec_close(ffff8000226c8e80) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e3254e8,7,fffffd807f7b7300,ffff800021289a40) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb6d8f8,ffff800021289a40) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb6d8f8,ffff800021289a40) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb6d8f8,ffff800021289a40) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb6d8f8,ffff800021289a40) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021289a40) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021289a40,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021289a40,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021289a40,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021289a40) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000226c9300) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000226c9300) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3380, count: -18 ddb{1}> show registers rdi 0xffffffff82930a00 pfi_ifs rsi 0xffff800000b3c700 rbp 0xffff8000226c8c10 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff800000af5180 rax 0xffff800000b3c710 r8 0xf8 r9 0x8080808080808080 r10 0xd429aabf509d6995 r11 0xe409fffed401f282 r12 0xdeadbeefdeadbeef r13 0xffff800000afab60 r14 0xffff800000b3c700 r15 0xffffffff82930a00 pfi_ifs rip 0xffffffff81d25f70 pfi_ifhead_RB_REMOVE+0x50 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff8000226c8bb0 ss 0x10 pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> show proc PROC (syz-executor.1) pid=455519 stat=onproc flags process=a proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211c3268,0xffff800021288010 process=0xffff8000212350d0 user=0xffff8000226c4000, vmspace=0xfffffd80084925c0 estcpu=36, cpticks=7, pctcpu=0.45 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41188 279990 55444 0 3 0x82 nanoslp syz-executor.0 83138 44200 0 0 3 0x14200 bored sosplice 55444 100894 34160 0 3 0x82 thrsleep syz-fuzzer 55444 147542 34160 0 2 0x4000002 syz-fuzzer 55444 105323 34160 0 3 0x4000082 thrsleep syz-fuzzer 55444 250113 34160 0 3 0x4000082 thrsleep syz-fuzzer 55444 273928 34160 0 3 0x4000082 thrsleep syz-fuzzer 55444 115269 34160 0 3 0x4000082 thrsleep syz-fuzzer 55444 133407 34160 0 7 0x4000002 syz-fuzzer 55444 59947 34160 0 3 0x4000082 kqread syz-fuzzer 34160 104539 45474 0 3 0x10008a sigsusp ksh 45474 523479 97569 0 3 0x92 select sshd 91067 365622 1 0 3 0x100083 ttyin getty 97569 293190 1 0 3 0x80 select sshd 59321 220892 76743 74 3 0x100092 bpf pflogd 76743 248167 1 0 3 0x80 netio pflogd 50610 418509 52225 73 3 0x100090 kqread syslogd 52225 257452 1 0 3 0x100082 netio syslogd 63470 406981 1 77 2 0x100090 dhclient 54110 267984 1 0 3 0x80 poll dhclient 25304 231444 0 0 3 0x14200 bored smr 65954 178482 0 0 3 0x14200 pgzero zerothread 73366 354134 0 0 3 0x14200 aiodoned aiodoned 71761 490365 0 0 3 0x14200 syncer update 648 388327 0 0 3 0x14200 cleaner cleaner 30940 454104 0 0 3 0x14200 reaper reaper 6677 41062 0 0 3 0x14200 pgdaemon pagedaemon 51730 263380 0 0 3 0x14200 bored crynlk 64833 452811 0 0 3 0x14200 bored crypto 51426 195977 0 0 3 0x14200 bored viomb 42077 282764 0 0 3 0x40014200 acpi0 acpi0 51296 346251 0 0 3 0x40014200 idle1 91533 8177 0 0 3 0x14200 bored softnet 23885 445226 0 0 2 0x14200 systqmp 68968 366617 0 0 3 0x14200 bored systq 12304 234981 0 0 3 0x40014200 bored softclock 70292 166423 0 0 3 0x40014200 idle0 1 154161 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55444 (syz-fuzzer) thread 0xffff8000211c2548 (133407) exclusive rwlock pslock r = 0 (0xffff8000212355e0) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1176 #1 thrsleep+0x36b sys/kern/kern_synch.c:747 #2 sys___thrsleep+0xb5 sys/kern/kern_synch.c:795 #3 syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9513 6428K 7262K 78643K 12748 0 pcb 13 8K 8K 78643K 144 0 rtable 84 2K 4K 78643K 372 0 ifaddr 57 11K 12K 78643K 112 0 counters 44 34K 34K 78643K 46 0 ioctlops 0 0K 4K 78643K 1521 0 iov 0 0K 24K 78643K 55 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1877 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 19 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 194 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 9K 25K 78643K 2205 0 sigio 0 0K 0K 78643K 64 0 proc 62 63K 95K 78643K 662 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 229 0 in_multi 22 1K 2K 78643K 170 0 ether_multi 1 0K 0K 78643K 61 0 mrt 0 0K 0K 78643K 31 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 2K 78643K 408 0 pfkey data 0 0K 0K 78643K 5 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 132 88K 89K 78643K 5754 0 UVM aobj 22 2K 2K 78643K 27 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 85 0 NDP 10 0K 0K 78643K 17 0 temp 129 3978K 4047K 78643K 18104 0 kqueue 3 4K 22K 78643K 209 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 9 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 120 184 0 182 1 0 1 1 0 8 0 rtentry 112 65 0 32 2 0 2 2 0 8 0 unpcb 120 360 0 350 1 0 1 1 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 86 0 86 3 3 0 1 0 8 0 tcpcb 736 354 0 350 14 11 3 6 0 8 2 inpcb 296 887 0 880 4 3 1 2 0 8 0 rttmr 72 12 0 12 1 0 1 1 0 8 1 nd6 48 9 0 6 1 0 1 1 0 8 0 pkpcb 40 18 0 18 3 2 1 1 0 8 1 kcovpl 48 3 0 2 1 0 1 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 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 pfrktable 1344 8 0 8 1 1 0 1 0 8 0 pfstitem 24 40 0 18 1 0 1 1 0 8 0 pfstkey 112 40 0 18 1 0 1 1 0 8 0 pfstate 328 40 0 18 2 0 2 2 0 8 0 pfrule 1360 29 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 256 0 69 14 0 14 14 0 8 2 art_table 32 257 0 69 2 0 2 2 0 8 0 art_node 16 64 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 57 0 17 1 0 1 1 0 8 0 semapl 112 192 0 182 1 0 1 1 0 8 0 shmpl 112 24 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4207 0 2800 92 3 89 89 0 8 0 ffsino 272 4207 0 2800 95 0 95 95 0 8 0 nchpl 144 7074 0 5481 60 0 60 60 0 8 0 uvmvnodes 72 4733 0 0 87 0 87 87 0 8 0 vnodes 224 4733 0 0 279 0 279 279 0 8 0 namei 1024 17355 0 17355 1 0 1 1 0 8 1 percpumem 16 34 0 1 1 0 1 1 0 8 0 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 560 5 0 0 1 0 1 1 0 8 0 scxspl 216 21392 0 21392 10 9 1 8 0 8 1 plimitpl 152 117 0 109 1 0 1 1 0 8 0 sigapl 424 2419 0 2387 4 0 4 4 0 8 0 futexpl 56 15159 0 15159 1 0 1 1 0 8 1 knotepl 112 720 0 702 2 1 1 2 0 8 0 kqueuepl 168 876 0 874 1 0 1 1 0 8 0 pipepl 336 144 0 134 5 3 2 2 0 8 1 fdescpl 496 2402 0 2387 3 0 3 3 0 8 0 filepl 152 7831 0 7740 5 0 5 5 0 8 1 lockfpl 104 273 0 272 1 0 1 1 0 8 0 lockfspl 48 89 0 88 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 1098 0 1089 1 0 1 1 0 8 0 zombiepl 144 2388 0 2386 1 0 1 1 0 8 0 processpl 1072 2419 0 2386 3 0 3 3 0 8 0 procpl 672 5069 0 5029 5 1 4 5 0 8 0 sosppl 168 28 0 28 3 2 1 1 0 8 1 sockpl 432 1450 0 1431 5 2 3 4 0 8 0 mcl64k 65536 20 0 0 3 0 3 3 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k 2048 209 0 0 16 0 16 16 0 8 0 mtagpl 96 140 0 0 4 0 4 4 0 8 0 mbufpl 256 506 0 0 29 0 29 29 0 8 0 bufpl 280 6775 0 526 447 0 447 447 0 8 0 anonpl 16 193929 0 188303 54 31 23 51 0 124 0 amapchunkpl 152 8717 0 8546 10 2 8 8 0 158 0 amappl16 192 8509 0 8323 37 27 10 32 0 8 0 amappl15 184 947 0 946 1 0 1 1 0 8 0 amappl14 176 1104 0 1098 1 0 1 1 0 8 0 amappl13 168 174 0 171 1 0 1 1 0 8 0 amappl12 160 4 0 1 2 1 1 1 0 8 0 amappl11 152 59 0 40 1 0 1 1 0 8 0 amappl10 144 12 0 7 1 0 1 1 0 8 0 amappl9 136 16 0 16 1 1 0 1 0 8 0 amappl8 128 201 0 144 3 0 3 3 0 8 1 amappl7 120 255 0 248 1 0 1 1 0 8 0 amappl6 112 78 0 63 1 0 1 1 0 8 0 amappl5 104 2971 0 2953 1 0 1 1 0 8 0 amappl4 96 294 0 266 1 0 1 1 0 8 0 amappl3 88 445 0 436 1 0 1 1 0 8 0 amappl2 80 19500 0 19435 3 0 3 3 0 8 0 amappl1 72 76169 0 75714 25 15 10 19 0 8 0 amappl 80 5369 0 5312 2 0 2 2 0 84 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 26 0 5 1 0 1 1 0 8 0 uaddrrnd 24 2407 0 2387 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2407 0 2387 1 0 1 1 0 8 0 vmmpekpl 168 15025 0 14994 2 0 2 2 0 8 0 vmmpepl 168 306643 0 305332 92 24 68 85 0 357 1 vmsppl 368 2406 0 2387 2 0 2 2 0 8 0 pdppl 4096 4821 0 4779 61 15 46 46 0 8 4 pvpl 32 852914 0 844276 143 68 75 131 0 265 0 pmappl 232 2406 0 2387 3 1 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 345 0 35 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(ffffffff826baff0) 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(ffffffff828c7fb0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c7fb0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 sleep_setup(ffff800021277928,ffff8000212779d8,120,ffffffff82425a22) at sleep_setup+0xc7 sys/kern/kern_synch.c:382 rwsleep(ffff8000212779d8,ffff8000212355d0,120,ffffffff82425a22,0) at rwsleep+0xbf sleep_setup_timeout sys/kern/kern_synch.c:444 [inline] rwsleep(ffff8000212779d8,ffff8000212355d0,120,ffffffff82425a22,0) at rwsleep+0xbf sys/kern/kern_synch.c:317 thrsleep(ffff8000211c2548,ffff800021277ac0) at thrsleep+0x3f2 sys/kern/kern_synch.c:754 sys___thrsleep(ffff8000211c2548,ffff800021277ac0,ffff800021277b10) at sys___thrsleep+0xb5 sys/kern/kern_synch.c:795 syscall(ffff800021277b90) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021277b90) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:590 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc00035fdd8, count: -10 ddb{0}> machine ddbcpu 1 Stopped at pfi_ifhead_RB_REMOVE+0x50: movq 0x10(%r12),%rbx ddb{1}> trace pfi_ifhead_RB_REMOVE(ffffffff82930a00,ffff800000b3c700) at pfi_ifhead_RB_REMOVE+0x50 sys/net/pf_if.c:80 pfi_detach_ifgroup(ffff8000006bbf00) at pfi_detach_ifgroup+0x11b pfi_kif_unref sys/net/pf_if.c:211 [inline] pfi_detach_ifgroup(ffff8000006bbf00) at pfi_detach_ifgroup+0x11b sys/net/pf_if.c:304 if_delgroup(ffff800000b11800,ffff8000006bbf00) at if_delgroup+0x193 sys/net/if.c:2676 if_detach(ffff800000b11800) at if_detach+0x1ab sys/net/if.c:1039 tun_clone_destroy(ffff800000b11800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:325 if_clone_destroy(ffff8000226c8db0) at if_clone_destroy+0x146 sys/net/if.c:1198 tun_dev_close(5d01,7) at tun_dev_close+0x140 sys/net/if_tun.c:476 spec_close(ffff8000226c8e80) at spec_close+0x311 sys/kern/spec_vnops.c:560 VOP_CLOSE(fffffd806e3254e8,7,fffffd807f7b7300,ffff800021289a40) at VOP_CLOSE+0xeb sys/kern/vfs_vops.c:177 vn_closefile(fffffd806cb6d8f8,ffff800021289a40) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd806cb6d8f8,ffff800021289a40) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd806cb6d8f8,ffff800021289a40) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd806cb6d8f8,ffff800021289a40) at closef+0x11c sys/kern/kern_descrip.c:1263 fdfree(ffff800021289a40) at fdfree+0xf4 sys/kern/kern_descrip.c:1195 exit1(ffff800021289a40,0,19,1) at exit1+0x335 sys/kern/kern_exit.c:200 postsig(ffff800021289a40,19) at postsig+0x59c sigexit sys/kern/kern_sig.c:1494 [inline] postsig(ffff800021289a40,19) at postsig+0x59c sys/kern/kern_sig.c:1423 userret(ffff800021289a40) at userret+0x189 sys/kern/kern_sig.c:1914 syscall(ffff8000226c9300) at syscall+0x55c mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000226c9300) at syscall+0x55c sys/arch/amd64/amd64/trap.c:612 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3380, count: -18