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(ffffffff82b485d0,ffff800000f68000) at pf_anchor_global_RB_REMOVE+0x58 sys/net/pf_ruleset.c:84 pf_remove_if_empty_ruleset(ffff800000f68490) at pf_remove_if_empty_ruleset+0xdd sys/net/pf_ruleset.c:300 pfi_dynaddr_setup(ffff800000f0b2e0,0) at pfi_dynaddr_setup+0x411 sys/net/pf_if.c:485 pfioctl(4900,cd60441a,ffff800000beb000,3,ffff8000ffff6010) at pfioctl+0x84eb pf_addr_setup sys/net/pf_ioctl.c:892 [inline] pfioctl(4900,cd60441a,ffff800000beb000,3,ffff8000ffff6010) at pfioctl+0x84eb sys/net/pf_ioctl.c:1646 VOP_IOCTL(fffffd8079af6d48,cd60441a,ffff800000beb000,3,fffffd807f7d89c0,ffff8000ffff6010) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c4734d8,cd60441a,ffff800000beb000,ffff8000ffff6010) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000ffff6010,ffff80002e471348,ffff80002e4713a0) at sys_ioctl+0x4a2 syscall(ffff80002e471410) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e471410) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaa21f6d13c0, count: -9 ddb{0}> show registers rdi 0xffff80002306e000 rsi 0x129f __ALIGN_SIZE+0x29f rbp 0xffff80002e470e30 rbx 0xffffffff82b485d0 pf_anchors rdx 0xffff80002306e000 rcx 0x129e __ALIGN_SIZE+0x29e rax 0xffffffff8216d97b pf_anchor_global_RB_REMOVE+0x2b r8 0x400 r9 0x8080808080808080 r10 0x2b81b8db1c409163 r11 0xbf72e92fdb80236 r12 0x1fa80dbd94e4a519 r13 0xffffffff82b485d8 pf_main_anchor r14 0xffff800000f68000 r15 0xdead007fdeadbeef rip 0xffffffff8216d9a8 pf_anchor_global_RB_REMOVE+0x58 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e470de0 ss 0x10 pf_anchor_global_RB_REMOVE+0x58: movq 0(%r12),%rbx ddb{0}> show proc PROC (syz-executor.0) pid=381571 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800021228540,0xffff800021230d40 process=0xffff80002c93e158 user=0xffff80002e46c000, vmspace=0xfffffd8065194010 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61501 105665 66507 0 2 0 syz-executor.5 61501 213349 66507 0 3 0x4000080 fsleep syz-executor.5 35913 396975 9717 0 2 0 syz-executor.0 *35913 381571 9717 0 7 0x4000000 syz-executor.0 37027 182337 48774 0 2 0x4081000 syz-executor.4 37027 340531 48774 0 3 0x4003000 suspend syz-executor.4 79628 333720 40611 0 2 0 syz-executor.7 79628 486875 40611 0 3 0x4000080 fsleep syz-executor.7 96674 470451 56783 0 2 0 syz-executor.2 96674 278897 56783 0 3 0x4000080 fsleep syz-executor.2 24712 448327 44716 0 2 0 syz-executor.1 2168 385453 1 0 3 0x100083 ttyopn getty 40611 57797 37263 0 3 0x82 nanoslp syz-executor.7 9717 465328 37263 0 3 0x82 nanoslp syz-executor.0 56783 412477 37263 0 3 0x82 nanoslp syz-executor.2 48774 95163 37263 0 3 0x82 nanoslp syz-executor.4 44716 434384 37263 0 3 0x82 nanoslp syz-executor.1 66507 353845 37263 0 3 0x82 nanoslp syz-executor.5 35040 394822 37263 0 2 0x2 syz-executor.6 10759 20167 37263 0 2 0x2 syz-executor.3 32133 176554 0 0 3 0x14280 nfsidl nfsio 80331 39419 0 0 3 0x14280 nfsidl nfsio 92947 497518 0 0 3 0x14280 nfsidl nfsio 52252 100552 0 0 3 0x14280 nfsidl nfsio 6890 118299 0 0 3 0x14280 nfsidl nfsio 55698 116543 0 0 3 0x14280 nfsidl nfsio 91298 501606 0 0 3 0x14280 nfsidl nfsio 55655 323310 0 0 3 0x14280 nfsidl nfsio 34712 156992 0 0 3 0x14280 nfsidl nfsio 9085 316053 0 0 3 0x14280 nfsidl nfsio 54024 64049 0 0 3 0x14280 nfsidl nfsio 37820 192267 0 0 3 0x14280 nfsidl nfsio 52081 29787 0 0 3 0x14280 nfsidl nfsio 65857 238480 0 0 3 0x14280 nfsidl nfsio 77118 418018 0 0 3 0x14280 nfsidl nfsio 75336 80668 0 0 3 0x14280 nfsidl nfsio 47700 422770 0 0 3 0x14280 nfsidl nfsio 13506 168455 0 0 3 0x14280 nfsidl nfsio 93176 402542 0 0 3 0x14280 nfsidl nfsio 57439 446815 0 0 3 0x14280 nfsidl nfsio 99329 102521 0 0 3 0x14200 bored sosplice 37263 101355 74172 0 3 0x82 nanoslp syz-fuzzer 37263 464661 74172 0 2 0x4000002 syz-fuzzer 37263 481190 74172 0 3 0x4000082 thrsleep syz-fuzzer 37263 257573 74172 0 3 0x4000082 kqread syz-fuzzer 37263 305551 74172 0 3 0x4000082 thrsleep syz-fuzzer 37263 339081 74172 0 3 0x4000082 thrsleep syz-fuzzer 37263 90615 74172 0 3 0x4000082 thrsleep syz-fuzzer 37263 200601 74172 0 3 0x4000082 thrsleep syz-fuzzer 37263 385777 74172 0 3 0x4000082 thrsleep syz-fuzzer 74172 288711 14490 0 3 0x10008a sigsusp ksh 14490 266694 91583 0 3 0x9a kqread sshd 91583 352621 1 0 3 0x88 kqread sshd 82770 58233 70117 74 3 0x1100092 bpf pflogd 70117 474699 1 0 3 0x80 netio pflogd 4667 28662 1961 73 3 0x1100090 kqread syslogd 1961 374745 1 0 3 0x100082 netio syslogd 66406 1439 1 0 3 0x100080 kqread resolvd 31893 207845 73058 77 3 0x100092 kqread dhcpleased 45312 401372 73058 77 3 0x100092 kqread dhcpleased 73058 202921 1 0 3 0x80 kqread dhcpleased 23723 443065 0 0 3 0x14200 bored smr 22781 248976 0 0 2 0x14200 zerothread 23340 251483 0 0 3 0x14200 aiodoned aiodoned 44746 453483 0 0 3 0x14200 syncer update 42033 223036 0 0 3 0x14200 cleaner cleaner 68131 286306 0 0 3 0x14200 reaper reaper 15438 470680 0 0 3 0x14200 pgdaemon pagedaemon 32217 23209 0 0 3 0x14200 bored viomb 97600 191770 0 0 3 0x40014200 acpi0 acpi0 64656 233999 0 0 7 0x40014200 idle1 46766 471822 0 0 3 0x14200 bored softnet 29068 92198 0 0 3 0x14200 bored systqmp 17911 282797 0 0 3 0x14200 bored systq 39016 381849 0 0 3 0x40014200 bored softclock 77431 295233 0 0 3 0x40014200 idle0 1 458576 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 35913 (syz-executor.0) thread 0xffff8000ffff6010 (381571) exclusive rwlock pf_lock r = 0 (0xffffffff8298b300) #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 (0xffffffff8292efd0) #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 (0xffffffff82b26890) #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 10237 6591K 8112K 78643K 66850 0 pcb 13 24K 27K 78643K 31208 0 rtable 173 16K 26K 78643K 11379 0 ifaddr 93 25K 30K 78643K 5089 0 sysctl 3 1K 1K 78643K 3 0 counters 54 35K 36K 78643K 898 0 ioctlops 1 4K 4K 78643K 12421 0 iov 0 0K 24K 78643K 5307 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1650 103K 103K 78643K 22894 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 405 0 VM map 2 1K 1K 78643K 2 0 sem 18 10K 20K 78643K 1044 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 93K 78643K 41772 0 sigio 0 0K 0K 78643K 725 0 proc 75 87K 136K 78643K 5009 0 subproc 104 6K 6K 78643K 1519 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1613 0 in_multi 59 3K 6K 78643K 2852 0 ether_multi 1 0K 0K 78643K 445 0 mrt 2 0K 0K 78643K 314 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 289 1288K 1288K 78643K 289 0 exec 0 0K 2K 78643K 7956 0 pfkey data 0 0K 1K 78643K 73 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 790 1686K 2259K 78643K 518314 0 UVM aobj 131 8K 8K 78643K 149 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1655 0 NDP 14 0K 1K 78643K 820 0 temp 215 4861K 8955K 78643K 272699 0 kqueue 12 18K 30K 78643K 2355 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 2790 0 2787 42 41 1 5 0 8 0 rtentry 112 2227 0 2162 7 4 3 4 0 8 0 unpcb 136 31236 0 31219 337 329 8 9 0 8 7 syncache 296 144 0 144 42 42 0 1 0 8 0 tcpqe 32 82 0 82 17 17 0 1 0 8 0 tcpcb 736 20992 0 20941 576 568 8 23 0 8 3 arp 120 292 0 278 1 0 1 1 0 8 0 inpcb 304 68695 0 68688 616 608 8 19 0 8 7 rttmr 72 43 0 43 13 12 1 1 0 8 1 ip6q 72 3 0 3 1 1 0 1 0 8 0 ip6af 40 96 0 96 1 1 0 1 0 8 0 nd6 48 536 0 525 1 0 1 1 0 8 0 pkpcb 40 268 0 268 19 19 0 1 0 8 0 kcovpl 48 116 0 108 1 0 1 1 0 8 0 ppxss 1248 137 0 137 35 35 0 1 0 8 0 pfstscr 40 365 0 365 22 22 0 1 0 8 0 pffrag 232 225 0 225 11 11 0 1 0 482 0 pffrnode 88 225 0 225 11 11 0 1 0 8 0 pffrent 40 1688 0 1688 12 12 0 1 0 8 0 pfosfp 40 1453 0 1027 5 0 5 5 0 8 0 pfosfpen 112 1453 0 725 21 0 21 21 0 8 0 pfrktable 1344 1956 6 1953 17 16 1 2 0 8 0 pftag 88 31 0 17 1 0 1 1 0 8 0 pfqueue 264 57 0 57 6 6 0 1 0 8 0 pfstitem 24 80 0 78 1 0 1 1 0 8 0 pfstkey 112 724 0 722 1 0 1 1 0 8 0 pfstate 320 417 0 415 3 2 1 3 0 8 0 pfrule 1360 1975 0 1951 27 24 3 9 0 8 0 art_heap8 4096 5 0 4 5 4 1 3 0 8 0 art_heap4 256 9524 0 9255 80 56 24 30 0 8 0 art_table 32 9529 0 9259 4 0 4 4 0 8 0 art_node 16 2041 0 1984 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semupl 112 4 0 4 2 2 0 1 0 8 0 semapl 112 1031 0 1015 1 0 1 1 0 8 0 shmpl 112 146 0 18 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 56325 0 54772 98 0 98 98 0 8 0 ffsino 272 56325 0 54772 106 1 105 105 0 8 0 nchpl 144 109972 0 108351 63 0 63 63 0 8 0 uvmvnodes 80 7904 0 0 162 0 162 162 0 8 0 vnodes 224 7904 0 0 465 0 465 465 0 8 0 namei 1024 375897 0 375897 15 14 1 2 0 8 1 percpumem 16 461 0 422 1 0 1 1 0 8 0 vcpupl 2048 360 0 0 45 0 45 45 0 8 0 vmpool 560 512 0 152 27 1 26 26 0 8 0 pfiaddrpl 120 681 0 680 11 10 1 2 0 8 0 scsiplug 72 39 0 39 12 12 0 1 0 8 0 scxspl 216 319827 0 319827 40 39 1 8 0 8 1 plimitpl 152 5029 0 5014 1 0 1 1 0 8 0 sigapl 424 41894 0 41830 9 1 8 8 0 8 0 futexpl 64 410328 0 410325 7 6 1 1 0 8 0 knotepl 120 2012 0 0 20 3 17 18 0 8 0 kqueuepl 216 7710 0 7702 158 157 1 11 0 8 0 pipepl 336 7965 0 7937 220 213 7 13 0 8 4 fdescpl 496 41841 0 41812 8 4 4 5 0 8 0 filepl 152 288319 0 288073 525 506 19 24 0 8 8 lockfpl 104 10249 0 10247 20 19 1 2 0 8 0 lockfspl 48 3047 0 3045 1 0 1 1 0 8 0 sessionpl 144 137 0 120 1 0 1 1 0 8 0 pgrppl 48 444 0 427 1 0 1 1 0 8 0 ucredpl 96 35878 0 35849 1 0 1 1 0 8 0 zombiepl 144 41831 0 41830 2 1 1 1 0 8 0 processpl 1064 41894 0 41830 5 0 5 5 0 8 0 procpl 672 110826 0 110748 33 24 9 9 0 8 1 srpgc 96 138 0 138 41 41 0 1 0 8 0 sosppl 168 269 0 269 50 50 0 1 0 8 0 sockpl 480 103307 0 103280 1894 1862 32 42 0 8 28 mcl64k 65536 36 0 0 3 0 3 3 0 8 0 mcl16k 16384 31 0 0 4 1 3 3 0 8 0 mcl12k 12288 65 0 0 2 0 2 2 0 8 0 mcl9k 9216 27 0 0 2 1 1 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 824 0 0 38 9 29 33 0 8 0 mtagpl 96 1933 0 0 16 1 15 15 0 8 0 mbufpl 256 7284 0 0 377 0 377 377 0 8 0 bufpl 288 63180 0 55275 565 0 565 565 0 8 0 anonpl 24 11943599 0 11921532 716 567 149 212 0 186 0 amapchunkpl 152 1299333 0 1298393 798 757 41 351 0 158 1 amappl16 200 121487 0 120675 514 468 46 66 0 8 0 amappl15 192 4629 0 4622 1 0 1 1 0 8 0 amappl14 184 2981 0 2972 1 0 1 1 0 8 0 amappl13 176 2918 0 2916 1 0 1 1 0 8 0 amappl12 168 9923 0 9907 2 1 1 1 0 8 0 amappl11 160 3692 0 3676 1 0 1 1 0 8 0 amappl10 152 7931 0 7920 1 0 1 1 0 8 0 amappl9 144 4879 0 4872 1 0 1 1 0 8 0 amappl8 136 10465 0 10228 10 1 9 9 0 8 0 amappl7 128 7493 0 7478 1 0 1 1 0 8 0 amappl6 120 4958 0 4929 2 1 1 2 0 8 0 amappl5 112 40663 0 40642 1 0 1 1 0 8 0 amappl4 104 10663 0 10619 2 0 2 2 0 8 0 amappl3 96 13946 0 13932 1 0 1 1 0 8 0 amappl2 88 11672 0 11601 3 1 2 3 0 8 0 amappl1 80 742669 0 742097 27 13 14 19 0 8 0 amappl 88 514917 0 514517 11 1 10 10 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 148 0 18 3 0 3 3 0 8 0 uaddrrnd 24 42353 0 41964 3 0 3 3 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 42353 0 41964 3 0 3 3 0 8 0 vmmpekpl 168 271425 0 271310 6 0 6 6 0 8 0 vmmpepl 168 3795103 0 3791384 713 534 179 204 0 357 0 vmsppl 368 42352 0 41964 38 2 36 36 0 8 0 rwobjpl 56 907117 0 896956 217 70 147 148 0 8 0 pdppl 4096 84713 0 84288 1882 1453 429 429 0 8 4 pvpl 32 19943227 0 19917989 1145 914 231 340 0 265 4 pmappl 248 42352 0 41964 27 2 25 25 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 4091 0 2347 50 0 50 50 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace pf_anchor_global_RB_REMOVE(ffffffff82b485d0,ffff800000f68000) at pf_anchor_global_RB_REMOVE+0x58 sys/net/pf_ruleset.c:84 pf_remove_if_empty_ruleset(ffff800000f68490) at pf_remove_if_empty_ruleset+0xdd sys/net/pf_ruleset.c:300 pfi_dynaddr_setup(ffff800000f0b2e0,0) at pfi_dynaddr_setup+0x411 sys/net/pf_if.c:485 pfioctl(4900,cd60441a,ffff800000beb000,3,ffff8000ffff6010) at pfioctl+0x84eb pf_addr_setup sys/net/pf_ioctl.c:892 [inline] pfioctl(4900,cd60441a,ffff800000beb000,3,ffff8000ffff6010) at pfioctl+0x84eb sys/net/pf_ioctl.c:1646 VOP_IOCTL(fffffd8079af6d48,cd60441a,ffff800000beb000,3,fffffd807f7d89c0,ffff8000ffff6010) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c4734d8,cd60441a,ffff800000beb000,ffff8000ffff6010) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000ffff6010,ffff80002e471348,ffff80002e4713a0) at sys_ioctl+0x4a2 syscall(ffff80002e471410) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e471410) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaa21f6d13c0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020ce8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5