kernel: protection fault trap, code=0 Stopped at pf_anchor_global_RB_REMOVE+0x58: movq 0(%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 pf_anchor_global_RB_REMOVE(ffffffff82a4b370,ffff800000c78000) at pf_anchor_global_RB_REMOVE+0x58 sys/net/pf_ruleset.c:84 pf_remove_if_empty_ruleset(ffff800000c78490) at pf_remove_if_empty_ruleset+0xdd sys/net/pf_ruleset.c:300 pfi_dynaddr_setup(ffff800000d59838,0) at pfi_dynaddr_setup+0x411 sys/net/pf_if.c:485 pfioctl(4900,cd60441a,ffff800000bee000,3,ffff80002af3a010) at pfioctl+0x8e11 pf_addr_setup sys/net/pf_ioctl.c:896 [inline] pfioctl(4900,cd60441a,ffff800000bee000,3,ffff80002af3a010) at pfioctl+0x8e11 sys/net/pf_ioctl.c:1655 VOP_IOCTL(fffffd807247fd48,cd60441a,ffff800000bee000,3,fffffd807f7d87e0,ffff80002af3a010) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806fc46c78,cd60441a,ffff800000bee000,ffff80002af3a010) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80002af3a010,ffff800022840b18,ffff800022840b70) at sys_ioctl+0x4a2 syscall(ffff800022840be0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022840be0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc0a0a727550, count: -9 ddb{1}> show registers rdi 0xffff80002af47000 rsi 0x15e0 __ALIGN_SIZE+0x5e0 rbp 0xffff8000228405f0 rbx 0xffffffff82a4b370 pf_anchors rdx 0xffff80002af47000 rcx 0x15df __ALIGN_SIZE+0x5df rax 0xffffffff8181b83b pf_anchor_global_RB_REMOVE+0x2b r8 0x400 r9 0x8080808080808080 r10 0x68e7f4d579284255 r11 0x618d4c78feb6be73 r12 0x260fd3687f9e2a54 r13 0xffffffff82a4b378 pf_main_anchor r14 0xffff800000c78000 r15 0xdead007fdeadbeef rip 0xffffffff8181b868 pf_anchor_global_RB_REMOVE+0x58 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff8000228405a0 ss 0x10 pf_anchor_global_RB_REMOVE+0x58: movq 0(%r12),%rbx ddb{1}> show proc PROC (syz-executor.7) pid=284460 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002af3afd0,0xffff80002af3ba60 process=0xffff8000ffff29a8 user=0xffff80002283b000, vmspace=0xfffffd806a854a20 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 98074 430292 5139 0 2 0 syz-executor.0 78981 381991 86344 0 2 0 syz-executor.1 17606 505941 42742 0 2 0 syz-executor.2 35614 292098 24994 0 3 0x80 nanoslp syz-executor.6 35614 195388 24994 0 3 0x4000080 fsleep syz-executor.6 24674 19410 70555 0 7 0 syz-executor.7 *24674 284460 70555 0 7 0x4000000 syz-executor.7 21615 406000 90763 0 2 0 syz-executor.5 21615 162806 90763 0 3 0x4000080 fsleep syz-executor.5 83920 447495 18433 0 2 0 syz-executor.3 83920 119219 18433 0 3 0x4000080 fsleep syz-executor.3 78768 62998 90110 0 2 0 syz-executor.4 78768 446780 90110 0 3 0x4000080 fsleep syz-executor.4 5139 300184 34139 0 3 0x82 nanoslp syz-executor.0 70555 270523 34139 0 3 0x82 nanoslp syz-executor.7 86344 326184 34139 0 3 0x82 nanoslp syz-executor.1 24994 406921 34139 0 3 0x82 nanoslp syz-executor.6 90110 192116 34139 0 3 0x82 nanoslp syz-executor.4 18433 267730 34139 0 3 0x82 nanoslp syz-executor.3 42742 476635 34139 0 3 0x82 nanoslp syz-executor.2 55308 198023 0 0 3 0x14200 acct acct 33339 429717 0 0 3 0x14280 nfsidl nfsio 73186 488666 0 0 3 0x14280 nfsidl nfsio 87817 269571 0 0 3 0x14280 nfsidl nfsio 3734 57156 0 0 3 0x14280 nfsidl nfsio 38351 68203 0 0 3 0x14280 nfsidl nfsio 7585 253968 0 0 3 0x14280 nfsidl nfsio 40457 501471 0 0 3 0x14280 nfsidl nfsio 40546 180331 0 0 3 0x14280 nfsidl nfsio 59684 458828 0 0 3 0x14280 nfsidl nfsio 1344 64039 0 0 3 0x14280 nfsidl nfsio 74743 419390 0 0 3 0x14280 nfsidl nfsio 41727 303826 0 0 3 0x14280 nfsidl nfsio 61011 316994 0 0 3 0x14280 nfsidl nfsio 83537 278575 0 0 3 0x14280 nfsidl nfsio 75814 12935 0 0 3 0x14280 nfsidl nfsio 8644 89892 0 0 3 0x14280 nfsidl nfsio 38020 138755 0 0 3 0x14280 nfsidl nfsio 62118 153160 0 0 3 0x14280 nfsidl nfsio 13394 70332 0 0 3 0x14280 nfsidl nfsio 57968 378276 0 0 3 0x14280 nfsidl nfsio 12808 366566 0 0 3 0x14200 bored sosplice 90763 311372 34139 0 3 0x82 nanoslp syz-executor.5 34139 342278 14849 0 3 0x82 thrsleep syz-fuzzer 34139 511492 14849 0 3 0x4000082 nanoslp syz-fuzzer 34139 10010 14849 0 3 0x4000082 thrsleep syz-fuzzer 34139 505656 14849 0 3 0x4000082 thrsleep syz-fuzzer 34139 349308 14849 0 3 0x4000082 nanoslp syz-fuzzer 34139 355296 14849 0 3 0x4000082 thrsleep syz-fuzzer 34139 107056 14849 0 3 0x4000082 thrsleep syz-fuzzer 34139 74144 14849 0 3 0x4000082 thrsleep syz-fuzzer 34139 99094 14849 0 3 0x4000082 kqread syz-fuzzer 14849 59114 15850 0 3 0x10008a sigsusp ksh 15850 496481 27806 0 3 0x9a kqread sshd 61722 140404 1 0 3 0x100083 ttyin getty 27806 302252 1 0 3 0x88 kqread sshd 5104 424366 2790 74 3 0x1100092 bpf pflogd 2790 481337 1 0 3 0x80 netio pflogd 54659 401689 13236 73 3 0x1100090 kqread syslogd 13236 104836 1 0 3 0x100082 netio syslogd 13459 31460 1 0 3 0x100080 kqread resolvd 88388 506492 82251 77 3 0x100092 kqread dhcpleased 51423 407863 82251 77 3 0x100092 kqread dhcpleased 82251 480710 1 0 3 0x80 kqread dhcpleased 27490 82062 0 0 3 0x14200 bored smr 88516 334167 0 0 2 0x14200 zerothread 21423 112662 0 0 3 0x14200 aiodoned aiodoned 30077 350566 0 0 3 0x14200 syncer update 13358 480576 0 0 3 0x14200 cleaner cleaner 56706 231861 0 0 3 0x14200 reaper reaper 91577 214940 0 0 3 0x14200 pgdaemon pagedaemon 1160 363541 0 0 3 0x14200 bored viomb 60176 314060 0 0 3 0x40014200 acpi0 acpi0 77310 309375 0 0 3 0x40014200 idle1 12145 91999 0 0 3 0x14200 bored softnet 62101 285572 0 0 3 0x14200 bored systqmp 50019 12993 0 0 3 0x14200 bored systq 17528 421323 0 0 3 0x40014200 bored softclock 51079 519936 0 0 3 0x40014200 idle0 1 412192 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 24674 (syz-executor.7) thread 0xffff80002af3a010 (284460) exclusive rwlock pf_lock r = 0 (0xffffffff8294d370) #0 witness_lock+0x44d #1 pfioctl+0x5be8 sys/net/pf_ioctl.c:1610 #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 (0xffffffff829a0230) #0 witness_lock+0x44d #1 pfioctl+0x3708 sys/net/pf_ioctl.c:1610 #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 pfioctl_rw r = 0 (0xffffffff8294d3d0) #0 witness_lock+0x44d #1 pfioctl+0x15e sys/net/pf_ioctl.c:1150 #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 (0xffffffff82a41d68) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10219 6487K 6864K 78643K 21712 0 pcb 14 14K 16K 78643K 911 0 rtable 216 16K 16K 78643K 3733 0 ifaddr 91 21K 21K 78643K 2365 0 sysctl 2 0K 0K 78643K 2 0 counters 54 35K 35K 78643K 182 0 ioctlops 1 4K 8K 78643K 4222 0 iov 0 0K 17K 78643K 594 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1429 89K 90K 78643K 5997 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 13K 78643K 299 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 4069 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 18 65K 85K 78643K 9544 0 sigio 0 0K 0K 78643K 204 0 proc 70 87K 124K 78643K 1318 0 subproc 104 6K 6K 78643K 377 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 7064 0 in_multi 81 5K 6K 78643K 555 0 ether_multi 1 0K 0K 78643K 46 0 mrt 3 0K 0K 78643K 18 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 229 1023K 1023K 78643K 229 0 exec 0 0K 2K 78643K 2753 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 423 242K 256K 78643K 121984 0 UVM aobj 131 4K 4K 78643K 139 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 338 0 NDP 11 0K 2K 78643K 147 0 temp 131 4721K 4791K 78643K 92092 0 kqueue 12 18K 26K 78643K 493 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 319 0 316 5 4 1 3 0 8 0 rtentry 112 509 0 417 4 0 4 4 0 8 0 unpcb 136 5399 0 5384 43 42 1 8 0 8 0 syncache 296 25 0 25 8 8 0 1 0 8 0 tcpqe 32 74 21 74 1 1 0 1 0 8 0 tcpcb 736 6767 0 6748 119 110 9 25 0 8 7 arp 120 68 0 52 1 0 1 1 0 8 0 inpcb 312 10214 0 10201 79 72 7 12 0 8 5 rttmr 72 4 0 4 2 2 0 1 0 8 0 nd6 48 114 0 93 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 1 0 1 0 8 0 kcovpl 48 29 0 21 1 0 1 1 0 8 0 ppxss 1248 16 0 16 5 4 1 1 0 8 1 pfstscr 40 20 0 13 2 1 1 1 0 8 0 pffrag 232 8 0 8 2 2 0 1 0 482 0 pffrnode 88 8 0 8 2 2 0 1 0 8 0 pffrent 40 30 0 30 2 2 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 1086 181 1083 1 0 1 1 0 8 0 pftag 88 59 0 56 1 0 1 1 0 8 0 pfstitem 24 145 0 132 1 0 1 1 0 8 0 pfstkey 112 163 0 157 1 0 1 1 0 8 0 pfstate 320 151 0 142 4 1 3 4 0 8 0 pfrule 1360 1550 0 1535 6 4 2 4 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1936 0 1528 40 11 29 32 0 8 0 art_table 32 1937 0 1528 5 1 4 5 0 8 0 art_node 16 443 0 361 1 0 1 1 0 8 0 sysvmsgpl 40 33 0 7 1 0 1 1 0 8 0 semapl 112 4067 0 4057 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 13727 0 12277 92 0 92 92 0 8 0 ffsino 272 13727 0 12277 98 0 98 98 0 8 0 nchpl 144 25809 0 24172 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 86586 0 86586 4 3 1 2 0 8 1 percpumem 16 103 0 64 1 0 1 1 0 8 0 vcpupl 2048 75 0 0 10 0 10 10 0 8 0 vmpool 560 99 0 24 9 3 6 6 0 8 0 pfiaddrpl 120 298 0 297 4 3 1 1 0 8 0 scsiplug 72 4 0 4 1 1 0 1 0 8 0 scxspl 216 69666 0 69666 14 13 1 8 0 8 1 plimitpl 152 731 0 716 1 0 1 1 0 8 0 sigapl 424 9833 0 9766 8 0 8 8 0 8 0 futexpl 64 95512 0 95508 1 0 1 1 0 8 0 knotepl 120 601 0 0 11 0 11 11 0 8 0 kqueuepl 216 2091 0 2082 34 32 2 6 0 8 1 pipepl 336 1254 0 1226 31 24 7 8 0 8 4 fdescpl 496 9797 0 9766 5 0 5 5 0 8 0 filepl 152 56419 0 56169 81 65 16 20 0 8 6 lockfpl 104 2114 0 2112 8 7 1 2 0 8 0 lockfspl 48 616 0 614 1 0 1 1 0 8 0 sessionpl 144 45 0 28 1 0 1 1 0 8 0 pgrppl 48 51 0 34 1 0 1 1 0 8 0 ucredpl 96 15081 0 15069 1 0 1 1 0 8 0 zombiepl 144 9766 0 9766 1 0 1 1 0 8 1 processpl 1064 9833 0 9766 5 0 5 5 0 8 0 procpl 672 27643 0 27563 18 9 9 10 0 8 1 srpgc 96 36 0 36 5 4 1 1 0 8 1 sosppl 168 73 0 73 13 12 1 1 0 8 1 sockpl 480 15950 0 15919 291 279 12 30 0 8 8 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 20 0 0 3 1 2 3 0 8 0 mcl12k 12288 34 0 0 2 0 2 2 0 8 0 mcl9k 9216 21 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 234 0 0 21 2 19 21 0 8 0 mtagpl 96 505 0 0 9 0 9 9 0 8 0 mbufpl 256 800 0 0 36 0 36 36 0 8 0 bufpl 288 15254 0 8918 453 0 453 453 0 8 0 anonpl 24 2642677 0 2624327 169 42 127 141 0 186 6 amapchunkpl 152 292941 0 292080 74 36 38 50 0 158 1 amappl16 200 22343 0 21795 86 56 30 42 0 8 1 amappl15 192 1438 0 1431 1 0 1 1 0 8 0 amappl14 184 61 0 57 2 1 1 1 0 8 0 amappl13 176 1163 0 1161 1 0 1 1 0 8 0 amappl12 168 662 0 654 1 0 1 1 0 8 0 amappl11 160 951 0 932 1 0 1 1 0 8 0 amappl10 152 2373 0 2364 1 0 1 1 0 8 0 amappl9 144 1511 0 1507 1 0 1 1 0 8 0 amappl8 136 3238 0 3140 4 0 4 4 0 8 0 amappl7 128 2286 0 2276 1 0 1 1 0 8 0 amappl6 120 1319 0 1295 2 1 1 2 0 8 0 amappl5 112 11395 0 11374 1 0 1 1 0 8 0 amappl4 104 2659 0 2624 2 0 2 2 0 8 0 amappl3 96 1349 0 1332 1 0 1 1 0 8 0 amappl2 88 2531 0 2482 3 1 2 3 0 8 0 amappl1 80 176009 0 175420 19 5 14 19 0 8 0 amappl 88 121042 0 120760 8 0 8 8 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 138 0 8 3 0 3 3 0 8 0 uaddrrnd 24 9896 0 9790 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9896 0 9790 1 0 1 1 0 8 0 vmmpekpl 168 72631 0 72554 4 0 4 4 0 8 0 vmmpepl 168 880857 0 878063 213 77 136 145 0 357 8 vmsppl 368 9895 0 9790 11 1 10 10 0 8 0 rwobjpl 56 214050 0 206404 114 3 111 112 0 8 0 pdppl 4096 19799 0 19655 460 314 146 146 0 8 2 pvpl 32 4462706 0 4439692 339 127 212 262 0 265 13 pmappl 248 9895 0 9790 8 1 7 7 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1480 0 545 28 0 28 28 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82987ff0) 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 end of kernel end trace frame: 0x7f7ffffd4a20, count: -3 ddb{0}> machine ddbcpu 1 Stopped at pf_anchor_global_RB_REMOVE+0x58: movq 0(%r12),%rbx ddb{1}> trace pf_anchor_global_RB_REMOVE(ffffffff82a4b370,ffff800000c78000) at pf_anchor_global_RB_REMOVE+0x58 sys/net/pf_ruleset.c:84 pf_remove_if_empty_ruleset(ffff800000c78490) at pf_remove_if_empty_ruleset+0xdd sys/net/pf_ruleset.c:300 pfi_dynaddr_setup(ffff800000d59838,0) at pfi_dynaddr_setup+0x411 sys/net/pf_if.c:485 pfioctl(4900,cd60441a,ffff800000bee000,3,ffff80002af3a010) at pfioctl+0x8e11 pf_addr_setup sys/net/pf_ioctl.c:896 [inline] pfioctl(4900,cd60441a,ffff800000bee000,3,ffff80002af3a010) at pfioctl+0x8e11 sys/net/pf_ioctl.c:1655 VOP_IOCTL(fffffd807247fd48,cd60441a,ffff800000bee000,3,fffffd807f7d87e0,ffff80002af3a010) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806fc46c78,cd60441a,ffff800000bee000,ffff80002af3a010) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff80002af3a010,ffff800022840b18,ffff800022840b70) at sys_ioctl+0x4a2 syscall(ffff800022840be0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022840be0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc0a0a727550, count: -9