uvm_fault(0xfffffd8079747888, 0x11e57ee8, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at pf_anchor_global_RB_INSERT_COLOR+0x70: movl 0x18(%r14),%r12d
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*365617 27834 0 0 0x4000000 0 syz-executor.4
pf_anchor_global_RB_INSERT_COLOR(ffffffff82a20bd0,ffff8000012e2800) at pf_anchor_global_RB_INSERT_COLOR+0x70 sys/net/pf_ruleset.c:84
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de pf_anchor_global_RB_INSERT sys/net/pf_ruleset.c:84 [inline]
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de sys/net/pf_ruleset.c:203
pf_find_or_create_ruleset(ffff8000012e1804) at pf_find_or_create_ruleset+0x372 sys/net/pf_ruleset.c:269
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c pf_begin_rules sys/net/pf_ioctl.c:525 [inline]
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c sys/net/pf_ioctl.c:2511
VOP_IOCTL(fffffd806e83c698,c0104451,ffff80002d2693c0,3,fffffd807f7d8900,ffff8000264eba40) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264
vn_ioctl(fffffd807885cd30,c0104451,ffff80002d2693c0,ffff8000264eba40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:531
sys_ioctl(ffff8000264eba40,ffff80002d2694d8,ffff80002d269530) at sys_ioctl+0x49e
syscall(ffff80002d2695a0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x85f8564780, count: 6
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: uvm_fault(0xfffffd8079747888, 0x11e57ee8, 0, 1) -> e
ddb> trace
pf_anchor_global_RB_INSERT_COLOR(ffffffff82a20bd0,ffff8000012e2800) at pf_anchor_global_RB_INSERT_COLOR+0x70 sys/net/pf_ruleset.c:84
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de pf_anchor_global_RB_INSERT sys/net/pf_ruleset.c:84 [inline]
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de sys/net/pf_ruleset.c:203
pf_find_or_create_ruleset(ffff8000012e1804) at pf_find_or_create_ruleset+0x372 sys/net/pf_ruleset.c:269
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c pf_begin_rules sys/net/pf_ioctl.c:525 [inline]
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c sys/net/pf_ioctl.c:2511
VOP_IOCTL(fffffd806e83c698,c0104451,ffff80002d2693c0,3,fffffd807f7d8900,ffff8000264eba40) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264
vn_ioctl(fffffd807885cd30,c0104451,ffff80002d2693c0,ffff8000264eba40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:531
sys_ioctl(ffff8000264eba40,ffff80002d2694d8,ffff80002d269530) at sys_ioctl+0x49e
syscall(ffff80002d2695a0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x85f8564780, count: -9
ddb> show registers
rdi 0x1
rsi 0x1
rbp 0xffff80002d268fc0
rbx 0xffff8000012e2800
rdx 0xffff800000beec00
rcx 0x788
rax 0xffff8000264eba40
r8 0x101010101010101
r9 0x8080808080808080
r10 0xfb8d1098e2e16cdd
r11 0x2c72ad153be38a47
r12 0x1
r13 0xffff800001231800
r14 0x11e57ed0 __kernel_phys_end+0xf257ed0
r15 0xffff8000011d0000
rip 0xffffffff81c8fed0 pf_anchor_global_RB_INSERT_COLOR+0x70
cs 0x8
rflags 0x10202 __ALIGN_SIZE+0xf202
rsp 0xffff80002d268f70
ss 0x10
pf_anchor_global_RB_INSERT_COLOR+0x70: movl 0x18(%r14),%r12d
ddb> show proc
PROC (syz-executor.4) pid=365617 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=84, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff8000264ea7e0,0xffff8000264eafd0
process=0xffff80002167bba8 user=0xffff80002d264000, vmspace=0xfffffd8079747888
estcpu=36, cpticks=2, pctcpu=0.0
user=0, sys=2, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
59694 49702 4844 0 2 0 syz-executor.0
59694 49077 4844 0 3 0x4000080 fsleep syz-executor.0
59694 481900 4844 0 3 0x4000080 fsleep syz-executor.0
27834 186936 20000 0 3 0x80 fsleep syz-executor.4
*27834 365617 20000 0 7 0x4000000 syz-executor.4
74941 256206 9106 0 2 0x480 syz-executor.2
74941 134289 9106 0 3 0x4000080 fsleep syz-executor.2
74941 266506 9106 0 3 0x4000080 fsleep syz-executor.2
74941 498698 9106 0 3 0x4000080 fsleep syz-executor.2
9106 142645 93518 0 2 0x482 syz-executor.2
50604 264564 0 0 3 0x14200 acct acct
96518 43047 93518 0 2 0x482 syz-executor.7
87232 495259 0 0 3 0x14280 nfsidl nfsio
44505 162660 0 0 3 0x14280 nfsidl nfsio
15277 252724 0 0 3 0x14280 nfsidl nfsio
69101 481224 0 0 3 0x14280 nfsidl nfsio
51199 301337 0 0 3 0x14280 nfsidl nfsio
39149 374175 0 0 3 0x14280 nfsidl nfsio
35465 335723 0 0 3 0x14280 nfsidl nfsio
52626 69795 0 0 3 0x14280 nfsidl nfsio
75829 401317 0 0 3 0x14280 nfsidl nfsio
82067 145089 0 0 3 0x14280 nfsidl nfsio
67751 449791 0 0 3 0x14280 nfsidl nfsio
23784 277242 0 0 3 0x14280 nfsidl nfsio
45154 274241 0 0 3 0x14280 nfsidl nfsio
97182 18620 0 0 3 0x14280 nfsidl nfsio
20000 60369 93518 0 2 0x482 syz-executor.4
9565 311013 0 0 3 0x14280 nfsidl nfsio
26521 137421 0 0 3 0x14280 nfsidl nfsio
868 334845 0 0 3 0x14280 nfsidl nfsio
33092 75107 0 0 3 0x14280 nfsidl nfsio
88684 81411 0 0 3 0x14280 nfsidl nfsio
85008 46518 0 0 3 0x14280 nfsidl nfsio
25455 171723 93518 0 2 0x482 syz-executor.6
39720 451420 93518 0 2 0x482 syz-executor.5
99535 498026 0 0 3 0x14200 bored sosplice
35293 33821 93518 0 2 0x482 syz-executor.3
91412 65182 93518 0 2 0x482 syz-executor.1
4844 158298 93518 0 2 0x482 syz-executor.0
93518 190144 1147 0 3 0x82 thrsleep syz-fuzzer
93518 148057 1147 0 3 0x4000082 thrsleep syz-fuzzer
93518 205529 1147 0 3 0x4000082 thrsleep syz-fuzzer
93518 30640 1147 0 3 0x4000082 thrsleep syz-fuzzer
93518 106657 1147 0 3 0x4000082 thrsleep syz-fuzzer
93518 291454 1147 0 3 0x4000082 kqread syz-fuzzer
93518 472364 1147 0 3 0x4000082 thrsleep syz-fuzzer
93518 59061 1147 0 3 0x4000082 thrsleep syz-fuzzer
93518 466533 1147 0 3 0x4000082 thrsleep syz-fuzzer
1147 488983 1166 0 3 0x10008a sigsusp ksh
1166 351841 63127 0 3 0x9a kqread sshd
39641 463790 1 0 3 0x100083 ttyin getty
63127 446348 1 0 3 0x88 kqread sshd
69961 338572 94199 73 3 0x1100090 kqread syslogd
94199 312331 1 0 3 0x100082 netio syslogd
85121 466514 1 0 3 0x100080 kqread resolvd
35744 222342 36224 77 3 0x100092 kqread dhcpleased
62647 245195 36224 77 3 0x100092 kqread dhcpleased
36224 244710 1 0 3 0x80 kqread dhcpleased
83067 368721 0 0 3 0x14200 bored smr
25052 220948 0 0 2 0x14200 zerothread
32417 205263 0 0 3 0x14200 aiodoned aiodoned
791 262115 0 0 3 0x14200 syncer update
77847 91358 0 0 3 0x14200 cleaner cleaner
64437 41322 0 0 3 0x14200 reaper reaper
10874 406682 0 0 3 0x14200 pgdaemon pagedaemon
52581 75161 0 0 3 0x14200 bored viomb
56471 289469 0 0 3 0x40014200 acpi0 acpi0
39026 99170 0 0 2 0x14200 softnet
71847 336471 0 0 3 0x14200 bored systqmp
99878 116343 0 0 3 0x14200 bored systq
55057 393668 0 0 2 0x40014200 softclock
70851 192306 0 0 3 0x40014200 idle0
1 194728 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10169 6417K 7369K 78643K 21113 0
pcb 13 12K 14K 78643K 514 0
rtable 263 16K 18K 78643K 1424 0
ifaddr 103 22K 23K 78643K 6563 0
sysctl 2 0K 0K 78643K 2 0
counters 27 17K 17K 78643K 45 0
ioctlops 0 0K 4K 78643K 47841 0
iov 0 0K 16K 78643K 1668 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1331 83K 83K 78643K 4994 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 17K 78643K 91 0
VM map 2 0K 0K 78643K 2 0
sem 12 0K 1K 78643K 576 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 13 45K 85K 78643K 33671 0
sigio 0 0K 0K 78643K 31 0
proc 59 55K 87K 78643K 1063 0
subproc 104 6K 6K 78643K 261 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 212 0
in_multi 100 6K 7K 78643K 349 0
ether_multi 1 0K 0K 78643K 52 0
mrt 0 0K 0K 78643K 73 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 91 413K 413K 78643K 91 0
exec 0 0K 2K 78643K 1468 0
pfkey data 0 0K 1K 78643K 4 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 413 187K 221K 78643K 421808 0
UVM aobj 98 3K 3K 78643K 119 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 856 0
NDP 11 0K 2K 78643K 69 0
temp 2612 9680K 9725K 78643K 137427 0
kqueue 12 18K 76K 78643K 501 0
SYN cache 2 16K 16K 78643K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 398 0 395 4 3 1 3 0 8 0
rtentry 112 278 0 177 4 0 4 4 0 8 0
unpcb 136 6956 0 6943 80 79 1 9 0 8 0
syncache 296 29 0 29 5 5 0 1 0 8 0
sackhl 24 2 0 2 2 2 0 1 0 8 0
tcpqe 32 123 0 123 4 4 0 1 0 8 0
tcpcb 736 1573 0 1569 55 54 1 13 0 8 0
arp 88 46 0 28 1 0 1 1 0 8 0
ipq 40 17 0 11 3 2 1 1 0 8 0
ipqe 40 881 0 875 3 2 1 1 0 8 0
inpcb 312 3926 0 3919 68 67 1 11 0 8 0
rttmr 72 19 0 19 4 4 0 1 0 8 0
ip6q 72 4 0 3 2 1 1 1 0 8 0
ip6af 40 7 0 6 2 1 1 1 0 8 0
nd6 48 63 0 37 1 0 1 1 0 8 0
pkpcb 40 12 0 12 6 6 0 1 0 8 0
kcovpl 48 20 0 12 1 0 1 1 0 8 0
pfstscr 40 19 0 19 2 2 0 1 0 8 0
pfosfp 40 11426 0 11425 8 7 1 2 0 8 0
pfosfpen 112 11426 0 11425 211 210 1 109 0 8 0
pfrktable 1344 214 0 195 4 2 2 2 0 8 0
pftag 88 17 0 4 1 0 1 1 0 8 0
pfqueue 264 41 0 41 16 16 0 1 0 8 0
pfstitem 24 10 0 10 1 1 0 1 0 8 0
pfstkey 112 34 0 34 3 3 0 1 0 8 0
pfstate 320 19 659 19 3 3 0 1 0 8 0
pfrule 1360 10494 0 9311 100 1 99 99 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1093 0 637 36 7 29 29 0 8 0
art_table 32 1094 0 637 4 0 4 4 0 8 0
art_node 16 276 0 187 1 0 1 1 0 8 0
sysvmsgpl 40 48 0 8 1 0 1 1 0 8 0
semupl 112 5 0 5 1 1 0 1 0 8 0
semapl 112 569 0 559 1 0 1 1 0 8 0
shmpl 112 116 0 21 3 0 3 3 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 37346 0 35890 92 0 92 92 0 8 0
ffsino 240 37346 0 35890 86 0 86 86 0 8 0
nchpl 144 76147 0 74526 62 0 62 62 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 265642 0 265642 13 12 1 3 0 8 1
vcpupl 1984 9 0 3 1 0 1 1 0 8 0
vmpool 528 11 0 5 3 2 1 1 0 8 0
pfiaddrpl 120 1238 0 687 19 2 17 17 0 8 0
scsiplug 72 5 0 5 1 1 0 1 0 8 0
scxspl 216 215110 0 215110 29 28 1 8 0 8 1
plimitpl 152 256 0 242 1 0 1 1 0 8 0
sigapl 424 33969 0 33905 12 4 8 8 0 8 0
futexpl 64 218468 0 218462 10 9 1 1 0 8 0
knotepl 120 258203 0 258123 30 27 3 10 0 8 0
kqueuepl 184 1811 0 1803 29 27 2 7 0 8 1
pipepl 304 3112 0 3084 89 86 3 8 0 8 0
fdescpl 432 33917 0 33893 7 3 4 4 0 8 0
filepl 120 166980 0 166676 192 180 12 17 0 8 2
lockfpl 104 4305 0 4302 9 8 1 2 0 8 0
lockfspl 48 1191 0 1188 1 0 1 1 0 8 0
sessionpl 144 35 0 19 1 0 1 1 0 8 0
pgrppl 48 1275 0 1259 1 0 1 1 0 8 0
ucredpl 96 7721 0 7711 1 0 1 1 0 8 0
zombiepl 144 33910 0 33905 10 9 1 1 0 8 0
processpl 1000 33969 0 33905 11 2 9 9 0 8 0
procpl 672 94916 0 94838 63 55 8 9 0 8 1
sosppl 168 68 0 68 6 6 0 1 0 8 0
sockpl 448 11293 0 11270 323 317 6 30 0 8 3
mcl64k 65536 654 0 654 51 50 1 1 0 8 1
mcl16k 16384 137 0 137 42 41 1 1 0 8 1
mcl12k 12288 896 0 896 50 49 1 1 0 8 1
mcl9k 9216 331 0 331 57 56 1 1 0 8 1
mcl8k 8192 1204 0 1204 49 48 1 1 0 8 1
mcl4k 4096 2789 0 2788 41 40 1 1 0 8 0
mcl2k2 2112 181 0 181 53 52 1 1 0 8 1
mcl2k 2048 75555 0 75499 119 110 9 18 0 8 1
mtagpl 96 912 0 482 14 1 13 13 0 8 0
mbufpl 256 265680 0 264996 88 39 49 57 0 8 0
bufpl 288 38979 0 32573 458 0 458 458 0 8 0
anonpl 24 9125882 0 9114552 204 111 93 122 0 188 0
amapchunkpl 152 1007373 0 1006768 154 125 29 40 0 158 1
amappl16 200 77108 0 76815 238 221 17 47 0 8 0
amappl15 192 4262 0 4256 1 0 1 1 0 8 0
amappl14 184 5348 0 5340 1 0 1 1 0 8 0
amappl13 176 4192 0 4190 1 0 1 1 0 8 0
amappl12 168 7408 0 7400 2 1 1 1 0 8 0
amappl11 160 8357 0 8345 1 0 1 1 0 8 0
amappl10 152 341 0 336 1 0 1 1 0 8 0
amappl9 144 8442 0 8436 1 0 1 1 0 8 0
amappl8 136 1413 0 1207 8 0 8 8 0 8 0
amappl7 128 164 0 155 1 0 1 1 0 8 0
amappl6 120 8230 0 8201 2 1 1 2 0 8 0
amappl5 112 21774 0 21762 1 0 1 1 0 8 0
amappl4 104 17861 0 17823 3 1 2 2 0 8 0
amappl3 96 9185 0 9171 1 0 1 1 0 8 0
amappl2 88 9970 0 9916 3 1 2 3 0 8 0
amappl1 80 593756 0 593238 20 7 13 18 0 8 0
amappl 88 420934 0 420728 6 0 6 6 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 118 0 21 2 0 2 2 0 8 0
uaddrrnd 24 33928 0 33898 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 33928 0 33898 1 0 1 1 0 8 0
vmmpekpl 168 233267 0 233213 3 0 3 3 0 8 0
vmmpepl 168 2974473 0 2972355 295 183 112 120 0 357 4
vmsppl 272 33927 0 33898 17 14 3 3 0 8 0
rwobjpl 24 690439 0 683067 58 13 45 47 0 8 0
pdppl 4096 67862 0 67802 1253 1183 70 74 0 8 10
pvpl 32 14742526 0 14727616 419 258 161 234 0 265 17
pmappl 216 33927 0 33898 3 1 2 3 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 2898 0 1985 27 0 27 27 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
pf_anchor_global_RB_INSERT_COLOR(ffffffff82a20bd0,ffff8000012e2800) at pf_anchor_global_RB_INSERT_COLOR+0x70 sys/net/pf_ruleset.c:84
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de pf_anchor_global_RB_INSERT sys/net/pf_ruleset.c:84 [inline]
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de sys/net/pf_ruleset.c:203
pf_find_or_create_ruleset(ffff8000012e1804) at pf_find_or_create_ruleset+0x372 sys/net/pf_ruleset.c:269
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c pf_begin_rules sys/net/pf_ioctl.c:525 [inline]
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c sys/net/pf_ioctl.c:2511
VOP_IOCTL(fffffd806e83c698,c0104451,ffff80002d2693c0,3,fffffd807f7d8900,ffff8000264eba40) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264
vn_ioctl(fffffd807885cd30,c0104451,ffff80002d2693c0,ffff8000264eba40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:531
sys_ioctl(ffff8000264eba40,ffff80002d2694d8,ffff80002d269530) at sys_ioctl+0x49e
syscall(ffff80002d2695a0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x85f8564780, count: -9
ddb> machine ddbcpu 1
No such command
ddb> trace
pf_anchor_global_RB_INSERT_COLOR(ffffffff82a20bd0,ffff8000012e2800) at pf_anchor_global_RB_INSERT_COLOR+0x70 sys/net/pf_ruleset.c:84
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de pf_anchor_global_RB_INSERT sys/net/pf_ruleset.c:84 [inline]
pf_create_anchor(0,ffff800000cfd000) at pf_create_anchor+0x2de sys/net/pf_ruleset.c:203
pf_find_or_create_ruleset(ffff8000012e1804) at pf_find_or_create_ruleset+0x372 sys/net/pf_ruleset.c:269
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c pf_begin_rules sys/net/pf_ioctl.c:525 [inline]
pfioctl(4900,c0104451,ffff80002d2693c0,3,ffff8000264eba40) at pfioctl+0x427c sys/net/pf_ioctl.c:2511
VOP_IOCTL(fffffd806e83c698,c0104451,ffff80002d2693c0,3,fffffd807f7d8900,ffff8000264eba40) at VOP_IOCTL+0x8d sys/kern/vfs_vops.c:264
vn_ioctl(fffffd807885cd30,c0104451,ffff80002d2693c0,ffff8000264eba40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:531
sys_ioctl(ffff8000264eba40,ffff80002d2694d8,ffff80002d269530) at sys_ioctl+0x49e
syscall(ffff80002d2695a0) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x85f8564780, count: -9