kernel: protection fault trap, code=0 Stopped at pf_anchor_global_RB_REMOVE+0x58: movq 0(%r12),%rbx ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace pf_anchor_global_RB_REMOVE(ffffffff829c1ea0,ffff800000e81800) at pf_anchor_global_RB_REMOVE+0x58 sys/net/pf_ruleset.c:84 pf_remove_if_empty_ruleset(ffff800000e81c90) at pf_remove_if_empty_ruleset+0xdd sys/net/pf_ruleset.c:300 pfioctl(4900,cd60441a,ffff800000bfb000,3,ffff800029533a40) at pfioctl+0x8f7c sys/net/pf_ioctl.c:1713 VOP_IOCTL(fffffd8076d67d48,cd60441a,ffff800000bfb000,3,fffffd807f7d8780,ffff800029533a40) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c571098,cd60441a,ffff800000bfb000,ffff800029533a40) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800029533a40,ffff80002e404de8,ffff80002e404e40) at sys_ioctl+0x4a2 syscall(ffff80002e404eb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e404eb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc315c23e3c0, count: -8 ddb{0}> show registers rdi 0xffffffff829c1ea0 pf_anchors rsi 0xffff800000e81800 rbp 0xffff80002e404950 rbx 0xffffffff829c1ea0 pf_anchors rdx 0 rcx 0xfffffd8003709ec0 rax 0xffff800029533a40 r8 0 r9 0x1 r10 0x8b07fedce5d13106 r11 0x6224ec16b5ca17ab r12 0x6c516b60ad88f938 r13 0xffffffff829c1ea8 pf_main_anchor r14 0xffff800000e81800 r15 0xdeaf007fdeafbead rip 0xffffffff81156958 pf_anchor_global_RB_REMOVE+0x58 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e404900 ss 0x10 pf_anchor_global_RB_REMOVE+0x58: movq 0(%r12),%rbx ddb{0}> show proc PROC (syz-executor.1) pid=389917 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800029533500,0xffff800029532fd0 process=0xffff8000ffff1d38 user=0xffff80002e3ff000, vmspace=0xfffffd807df5d178 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 66502 75328 96184 0 2 0 syz-executor.0 66502 207417 96184 0 3 0x4000080 fsleep syz-executor.0 47068 121031 25973 0 2 0 syz-executor.1 *47068 389917 25973 0 7 0x4000000 syz-executor.1 53964 253256 64411 0 3 0x82 nanoslp syz-executor.3 89896 210896 64411 0 3 0x82 piperd syz-executor.2 1510 414997 64411 0 3 0x82 piperd syz-executor.5 25973 196452 64411 0 3 0x82 nanoslp syz-executor.1 43911 36513 0 0 3 0x14200 acct acct 43989 349714 64411 0 3 0x82 piperd syz-executor.7 96803 342795 64411 0 3 0x82 nanoslp syz-executor.6 96474 434066 1 0 3 0x100083 ttyopn getty 96184 401858 64411 0 3 0x82 nanoslp syz-executor.0 33669 87716 0 0 3 0x14200 bored sosplice 79631 237755 0 0 3 0x14280 nfsidl nfsio 80253 515465 0 0 3 0x14280 nfsidl nfsio 73212 434277 0 0 3 0x14280 nfsidl nfsio 29344 7555 0 0 3 0x14280 nfsidl nfsio 58352 449064 0 0 3 0x14280 nfsidl nfsio 369 427367 0 0 3 0x14280 nfsidl nfsio 65973 134199 0 0 3 0x14280 nfsidl nfsio 57392 404543 0 0 3 0x14280 nfsidl nfsio 1180 304243 0 0 3 0x14280 nfsidl nfsio 73034 441501 0 0 3 0x14280 nfsidl nfsio 311 457000 0 0 3 0x14280 nfsidl nfsio 73264 134282 0 0 3 0x14280 nfsidl nfsio 18113 290172 0 0 3 0x14280 nfsidl nfsio 48147 395562 0 0 3 0x14280 nfsidl nfsio 20759 459797 0 0 3 0x14280 nfsidl nfsio 99927 172798 0 0 3 0x14280 nfsidl nfsio 85472 401279 0 0 3 0x14280 nfsidl nfsio 37378 38099 0 0 3 0x14280 nfsidl nfsio 43439 60789 0 0 3 0x14280 nfsidl nfsio 44965 106820 0 0 3 0x14280 nfsidl nfsio 64411 345571 51169 0 3 0x82 thrsleep syz-fuzzer 64411 446301 51169 0 3 0x4000082 thrsleep syz-fuzzer 64411 302011 51169 0 3 0x4000082 thrsleep syz-fuzzer 64411 449706 51169 0 3 0x4000082 thrsleep syz-fuzzer 64411 243141 51169 0 3 0x4000082 thrsleep syz-fuzzer 64411 346859 51169 0 3 0x4000082 kqread syz-fuzzer 64411 239746 51169 0 3 0x4000082 thrsleep syz-fuzzer 64411 50726 51169 0 3 0x4000082 thrsleep syz-fuzzer 64411 58886 51169 0 3 0x4000082 thrsleep syz-fuzzer 51169 389509 28853 0 3 0x10008a sigsusp ksh 28853 127913 56129 0 3 0x9a kqread sshd 56129 109482 1 0 3 0x88 kqread sshd 95732 458951 3351 74 3 0x1100092 bpf pflogd 3351 424436 1 0 3 0x80 netio pflogd 99049 154661 990 73 3 0x1100090 kqread syslogd 990 273330 1 0 3 0x100082 netio syslogd 21982 103932 1 0 3 0x100080 kqread resolvd 7866 313852 33347 77 3 0x100092 kqread dhcpleased 43628 272245 33347 77 3 0x100092 kqread dhcpleased 33347 224447 1 0 3 0x80 kqread dhcpleased 49987 212152 0 0 3 0x14200 bored smr 88538 106992 0 0 2 0x14200 zerothread 40703 492308 0 0 3 0x14200 aiodoned aiodoned 14222 237640 0 0 3 0x14200 syncer update 24204 276175 0 0 3 0x14200 cleaner cleaner 93271 128598 0 0 3 0x14200 reaper reaper 76124 95670 0 0 3 0x14200 pgdaemon pagedaemon 6036 390560 0 0 3 0x14200 bored viomb 31180 294978 0 0 3 0x40014200 acpi0 acpi0 68717 220979 0 0 7 0x40014200 idle1 61244 145035 0 0 3 0x14200 bored softnet 98139 342849 0 0 3 0x14200 bored systqmp 89538 30470 0 0 3 0x14200 bored systq 918 466172 0 0 3 0x40014200 bored softclock 10127 443800 0 0 3 0x40014200 idle0 1 109803 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 47068 (syz-executor.1) thread 0xffff800029533a40 (389917) exclusive rwlock pf_lock r = 0 (0xffffffff82981660) #0 witness_lock+0x44d #1 pfioctl+0x5b38 sys/net/pf_ioctl.c:1601 #2 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #3 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #4 sys_ioctl+0x4a2 #5 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #6 Xsyscall+0x128 exclusive rwlock netlock r = 0 (0xffffffff8291bdd0) #0 witness_lock+0x44d #1 pfioctl+0x3690 sys/net/pf_ioctl.c:1601 #2 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #3 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #4 sys_ioctl+0x4a2 #5 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a17948) #0 witness_lock+0x44d #1 vn_ioctl+0x41 sys/kern/vfs_vnops.c:514 #2 sys_ioctl+0x4a2 #3 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10220 6578K 7028K 78643K 28066 0 pcb 13 20K 22K 78643K 1572 0 rtable 191 14K 27K 78643K 3494 0 ifaddr 86 20K 25K 78643K 2010 0 sysctl 2 0K 0K 78643K 2 0 counters 54 35K 36K 78643K 346 0 ioctlops 1 4K 8K 78643K 6880 0 iov 0 0K 24K 78643K 1251 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1533 96K 96K 78643K 8262 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 151 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 3426 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 11 37K 93K 78643K 13771 0 sigio 0 0K 0K 78643K 116 0 proc 72 87K 111K 78643K 1964 0 subproc 91 5K 7K 78643K 464 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 637 0 in_multi 80 5K 6K 78643K 1000 0 ether_multi 1 0K 0K 78643K 128 0 mrt 1 0K 0K 78643K 45 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 2K 78643K 3371 0 pfkey data 0 0K 0K 78643K 71 0 tdb 3 0K 0K 78643K 3 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 515 943K 965K 78643K 175226 0 UVM aobj 131 4K 4K 78643K 132 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 537 0 NDP 13 0K 2K 78643K 283 0 temp 147 4743K 8809K 78643K 116327 0 kqueue 12 18K 28K 78643K 798 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 842 0 839 14 13 1 3 0 8 0 rtentry 112 713 0 632 4 1 3 4 0 8 0 unpcb 136 8470 0 8455 96 95 1 8 0 8 0 syncache 296 57 0 57 15 15 0 1 0 8 0 tcpqe 32 229 0 229 11 11 0 2 0 8 0 tcpcb 736 4696 0 4688 164 159 5 23 0 8 4 arp 120 87 0 72 1 0 1 1 0 8 0 inpcb 304 12939 0 12862 207 200 7 16 0 8 1 rttmr 72 14 0 14 4 4 0 1 0 8 0 nd6 48 169 0 151 1 0 1 1 0 8 0 pkpcb 40 169 0 169 8 7 1 2 0 8 1 kcovpl 48 35 0 28 1 0 1 1 0 8 0 ppxss 1248 54 0 54 12 12 0 1 0 8 0 pfstscr 40 92 0 92 5 5 0 1 0 8 0 pffrag 232 207 0 205 6 5 1 1 0 482 0 pffrnode 88 207 0 205 6 5 1 1 0 8 0 pffrent 40 947 0 945 8 7 1 1 0 8 0 pfosfp 40 1432 0 1008 5 0 5 5 0 8 0 pfosfpen 112 1432 0 717 21 0 21 21 0 8 0 pfrktable 1344 560 0 560 7 5 2 3 0 8 2 pftag 88 18 0 9 2 1 1 1 0 8 0 pfqueue 264 17 0 17 4 4 0 1 0 8 0 pfstitem 24 87 0 85 1 0 1 1 0 8 0 pfstkey 112 364 0 362 2 1 1 2 0 8 0 pfstate 320 256 0 254 5 4 1 5 0 8 0 pfsrctr 152 172 0 172 1 1 0 1 0 8 0 pfrule 1360 1817 0 1816 30 4 26 28 0 8 25 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3479 0 3103 50 23 27 31 0 8 0 art_table 32 3480 0 3103 4 0 4 4 0 8 0 art_node 16 701 0 630 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 3424 0 3414 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 19925 0 18449 93 0 93 93 0 8 0 ffsino 272 19925 0 18449 100 0 100 100 0 8 0 nchpl 144 38123 0 36508 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 149637 0 149637 12 11 1 2 0 8 1 percpumem 16 185 0 146 1 0 1 1 0 8 0 vcpupl 2048 130 0 0 17 0 17 17 0 8 0 vmpool 560 141 0 11 10 0 10 10 0 8 0 pfiaddrpl 120 290 0 290 6 4 2 2 0 8 2 scxspl 216 106993 0 106993 19 17 2 3 0 8 2 plimitpl 152 1460 0 1446 1 0 1 1 0 8 0 sigapl 424 14047 0 13985 8 0 8 8 0 8 0 futexpl 64 127458 0 127457 1 0 1 1 0 8 0 knotepl 120 752 0 0 9 1 8 8 0 8 0 kqueuepl 216 2694 0 2686 59 54 5 5 0 8 4 pipepl 336 3380 0 3355 102 98 4 13 0 8 1 fdescpl 496 14010 0 13986 6 2 4 5 0 8 0 filepl 152 106804 0 106517 210 195 15 26 0 8 3 lockfpl 104 4077 0 4075 12 11 1 4 0 8 0 lockfspl 48 846 0 844 1 0 1 1 0 8 0 sessionpl 144 52 0 36 1 0 1 1 0 8 0 pgrppl 48 145 0 129 1 0 1 1 0 8 0 ucredpl 96 11600 0 11587 1 0 1 1 0 8 0 zombiepl 144 13987 0 13985 4 3 1 1 0 8 0 processpl 1064 14047 0 13985 5 0 5 5 0 8 0 procpl 672 38446 0 38374 25 16 9 9 0 8 1 srpgc 96 32 0 32 10 9 1 1 0 8 1 sosppl 168 96 0 96 18 18 0 1 0 8 0 sockpl 480 22509 0 22412 565 552 13 36 0 8 0 mcl64k 65536 24 0 0 3 0 3 3 0 8 0 mcl16k 16384 18 0 0 3 0 3 3 0 8 0 mcl12k 12288 22 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 300 0 0 34 3 31 34 0 8 0 mtagpl 96 701 0 0 10 0 10 10 0 8 0 mbufpl 256 1135 0 0 57 0 57 57 0 8 0 bufpl 288 22468 0 16132 453 0 453 453 0 8 0 anonpl 24 4096007 0 4078881 359 208 151 200 0 186 1 amapchunkpl 152 425237 0 424494 109 71 38 64 0 158 0 amappl16 200 46022 0 45202 200 144 56 62 0 8 8 amappl15 192 1138 0 1132 1 0 1 1 0 8 0 amappl14 184 1362 0 1356 1 0 1 1 0 8 0 amappl13 176 1693 0 1692 1 0 1 1 0 8 0 amappl12 168 2755 0 2751 2 1 1 1 0 8 0 amappl11 160 3144 0 3126 1 0 1 1 0 8 0 amappl10 152 919 0 911 1 0 1 1 0 8 0 amappl9 144 1696 0 1692 1 0 1 1 0 8 0 amappl8 136 3502 0 3380 5 0 5 5 0 8 0 amappl7 128 2272 0 2261 1 0 1 1 0 8 0 amappl6 120 1530 0 1496 3 1 2 2 0 8 0 amappl5 112 10948 0 10931 1 0 1 1 0 8 0 amappl4 104 8005 0 7966 9 7 2 2 0 8 0 amappl3 96 3688 0 3675 1 0 1 1 0 8 0 amappl2 88 3377 0 3311 3 1 2 3 0 8 0 amappl1 80 253791 0 253274 19 5 14 19 0 8 0 amappl 88 173853 0 173577 10 1 9 9 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 72 131 0 1 3 0 3 3 0 8 0 uaddrrnd 24 14151 0 13997 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14151 0 13997 1 0 1 1 0 8 0 vmmpekpl 168 104409 0 104334 4 0 4 4 0 8 0 vmmpepl 168 1277832 0 1275076 390 236 154 162 0 357 5 vmsppl 368 14150 0 13997 16 1 15 15 0 8 0 rwobjpl 56 315007 0 307059 136 18 118 118 0 8 1 pdppl 4096 28309 0 28124 771 572 199 201 0 8 14 pvpl 32 6673367 0 6653722 583 352 231 324 0 265 12 pmappl 248 14150 0 13997 14 3 11 11 0 8 1 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1918 0 873 31 0 31 31 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pf_anchor_global_RB_REMOVE(ffffffff829c1ea0,ffff800000e81800) at pf_anchor_global_RB_REMOVE+0x58 sys/net/pf_ruleset.c:84 pf_remove_if_empty_ruleset(ffff800000e81c90) at pf_remove_if_empty_ruleset+0xdd sys/net/pf_ruleset.c:300 pfioctl(4900,cd60441a,ffff800000bfb000,3,ffff800029533a40) at pfioctl+0x8f7c sys/net/pf_ioctl.c:1713 VOP_IOCTL(fffffd8076d67d48,cd60441a,ffff800000bfb000,3,fffffd807f7d8780,ffff800029533a40) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c571098,cd60441a,ffff800000bfb000,ffff800029533a40) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800029533a40,ffff80002e404de8,ffff80002e404e40) at sys_ioctl+0x4a2 syscall(ffff80002e404eb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e404eb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc315c23e3c0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> tac No such command