uvm_fault(0xfffffd806a97f2f0, 0x28, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at bpfioctl+0xd25: movq 0x28(%rax),%rdi
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*248614 14673 0 0 0x4000000 0K syz-executor.0
bpfioctl(31700,20004269,ffff80002e495bc0,a,ffff800021296fd0) at bpfioctl+0xd25 sys/net/bpf.c:825
VOP_IOCTL(fffffd8060df5558,20004269,ffff80002e495bc0,a,fffffd807f7d7410,ffff800021296fd0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
vn_ioctl(fffffd8076fdadb0,20004269,ffff80002e495bc0,ffff800021296fd0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525
sys_ioctl(ffff800021296fd0,ffff80002e495cd8,ffff80002e495d20) at sys_ioctl+0x4a2
syscall(ffff80002e495da0) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline]
syscall(ffff80002e495da0) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1dba6a7de20, count: 9
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{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: uvm_fault(0xfffffd806a97f2f0, 0x28, 0, 1) -> e
ddb{0}> trace
bpfioctl(31700,20004269,ffff80002e495bc0,a,ffff800021296fd0) at bpfioctl+0xd25 sys/net/bpf.c:825
VOP_IOCTL(fffffd8060df5558,20004269,ffff80002e495bc0,a,fffffd807f7d7410,ffff800021296fd0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
vn_ioctl(fffffd8076fdadb0,20004269,ffff80002e495bc0,ffff800021296fd0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525
sys_ioctl(ffff800021296fd0,ffff80002e495cd8,ffff80002e495d20) at sys_ioctl+0x4a2
syscall(ffff80002e495da0) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline]
syscall(ffff80002e495da0) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1dba6a7de20, count: -6
ddb{0}> show registers
rdi 0xffff800029430000
rsi 0x30b
rbp 0xffff80002e4959f0
rbx 0
rdx 0xffff800029430000
rcx 0x30a
rax 0
r8 0
r9 0
r10 0x73e0f4453fe127
r11 0xb57a6322da809684
r12 0
r13 0xffffffff8294dff0 cpu_info_full_primary+0x1ff0
r14 0xffff800000c35c00
r15 0
rip 0xffffffff819ba4e5 bpfioctl+0xd25
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80002e495970
ss 0x10
bpfioctl+0xd25: movq 0x28(%rax),%rdi
ddb{0}> show proc
PROC (syz-executor.0) pid=248614 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=84, nice=20
forw=0xffffffffffffffff, list=0xffff8000212967f0,0xffff80002b039278
process=0xffff80002e5010c0 user=0xffff80002e490000, vmspace=0xfffffd806a97f2f0
estcpu=34, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
51168 59896 14176 0 2 0 syz-executor.1
51168 104893 14176 0 2 0x4000000 syz-executor.1
84282 62401 36611 0 3 0x80 nanoslp syz-executor.6
84282 30798 36611 0 3 0x4000080 fsleep syz-executor.6
56336 43985 42734 0 2 0x4003000 syz-executor.7
22266 42884 26699 0 2 0x480 syz-executor.5
22266 498313 26699 0 3 0x4000080 pipewr syz-executor.5
22266 506477 26699 0 3 0x4000080 fsleep syz-executor.5
21040 95888 6125 0 2 0 syz-executor.2
21040 50153 6125 0 2 0x4000000 syz-executor.2
14673 399056 97245 0 2 0 syz-executor.0
14673 350054 97245 0 3 0x4000000 tqbar syz-executor.0
*14673 248614 97245 0 7 0x4000000 syz-executor.0
97245 478259 57851 0 3 0x82 nanoslp syz-executor.0
78476 380450 57851 0 3 0x82 piperd syz-executor.3
4169 67128 57851 0 2 0x482 syz-executor.4
6125 499518 57851 0 3 0x82 nanoslp syz-executor.2
42734 369316 57851 0 3 0x82 nanoslp syz-executor.7
14176 449127 57851 0 3 0x82 nanoslp syz-executor.1
26699 141797 57851 0 2 0x482 syz-executor.5
1855 279734 1 0 3 0x100083 ttyin getty
36611 391680 57851 0 2 0x482 syz-executor.6
49290 34123 0 0 3 0x14200 bored sosplice
57851 131053 40489 0 3 0x82 kqread syz-fuzzer
57851 284405 40489 0 3 0x4000082 thrsleep syz-fuzzer
57851 309011 40489 0 3 0x4000082 thrsleep syz-fuzzer
57851 281878 40489 0 3 0x4000082 wait syz-fuzzer
57851 290867 40489 0 3 0x4000082 wait syz-fuzzer
57851 35108 40489 0 3 0x4000082 thrsleep syz-fuzzer
57851 383254 40489 0 3 0x4000082 thrsleep syz-fuzzer
57851 4385 40489 0 3 0x4000082 thrsleep syz-fuzzer
57851 310413 40489 0 3 0x4000082 wait syz-fuzzer
57851 192218 40489 0 3 0x4000082 wait syz-fuzzer
57851 302521 40489 0 3 0x4000082 wait syz-fuzzer
57851 151426 40489 0 3 0x4000082 wait syz-fuzzer
57851 202949 40489 0 3 0x4000082 wait syz-fuzzer
57851 93761 40489 0 3 0x4000082 wait syz-fuzzer
57851 494506 40489 0 3 0x4000082 thrsleep syz-fuzzer
57851 25855 40489 0 3 0x4000082 thrsleep syz-fuzzer
40489 183120 51320 0 3 0x10008a sigsusp ksh
51320 101197 67647 0 2 0x12 sshd
67647 166280 1 0 3 0x88 kqread sshd
18724 500382 82176 74 3 0x1100092 bpf pflogd
82176 188323 1 0 3 0x80 netio pflogd
29522 233094 80084 73 3 0x1100090 kqread syslogd
80084 25355 1 0 3 0x100082 netio syslogd
69795 35835 1 0 3 0x100080 kqread resolvd
12349 42083 27139 77 2 0x100012 dhcpleased
33186 287768 27139 77 3 0x100092 kqread dhcpleased
27139 393110 1 0 3 0x80 kqread dhcpleased
80565 35764 0 0 3 0x14200 bored smr
37423 493921 0 0 2 0x14200 zerothread
54480 304789 0 0 3 0x14200 aiodoned aiodoned
68067 505166 0 0 3 0x14200 syncer update
13307 153277 0 0 3 0x14200 cleaner cleaner
25352 516452 0 0 3 0x14200 reaper reaper
52589 174273 0 0 3 0x14200 pgdaemon pagedaemon
11283 365435 0 0 3 0x14200 bored viomb
41133 165221 0 0 3 0x40014200 acpi0 acpi0
97189 393466 0 0 7 0x40014200 idle1
31335 479612 0 0 3 0x14200 bored softnet
54622 360609 0 0 3 0x14200 bored softnet
36479 46222 0 0 2 0x14200 softnet
64826 294507 0 0 2 0x14200 softnet
28919 166029 0 0 2 0x14200 systqmp
24960 74545 0 0 3 0x14200 bored systq
51719 455900 0 0 2 0x40014200 softclock
8957 275301 0 0 3 0x40014200 idle0
1 279099 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 14673 (syz-executor.0) thread 0xffff80002b038a88 (350054)
exclusive rwlock clonelk r = 0 (0xffffffff82974470)
#0 witness_lock+0x44d
#1 if_clone_destroy+0x49
#2 soo_ioctl+0x24e sys/kern/sys_socket.c:133
#3 sys_ioctl+0x4a2
#4 syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline]
#4 syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585
#5 Xsyscall+0x128
Process 14673 (syz-executor.0) thread 0xffff800021296fd0 (248614)
exclusive rwlock netlock r = 0 (0xffffffff82974500)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 bpfioctl+0xd21 sys/net/bpf.c:825
#3 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
#4 vn_ioctl+0xbc sys/kern/vfs_vnops.c:525
#5 sys_ioctl+0x4a2
#6 syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline]
#6 syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585
#7 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff829ead18)
#0 witness_lock+0x44d
#1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
#2 mi_switch+0x3bb sys/kern/sched_bsd.c:415
#3 sleep_finish+0x180 sys/kern/kern_synch.c:417
#4 rw_enter+0x35a sys/kern/kern_rwlock.c:286
#5 bpfioctl+0xd21 sys/net/bpf.c:825
#6 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
#7 vn_ioctl+0xbc sys/kern/vfs_vnops.c:525
#8 sys_ioctl+0x4a2
#9 syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline]
#9 syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585
#10 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10244 6642K 7611K 78643K 59179 0
pcb 15 16K 20K 78643K 1976 0
rtable 238 20K 24K 78643K 4830 0
ifaddr 171 40K 41K 78643K 1447 0
sysctl 3 1K 1K 78643K 3 0
counters 56 35K 36K 78643K 620 0
ioctlops 0 0K 8K 78643K 3914 0
iov 0 0K 16K 78643K 1516 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1493 93K 94K 78643K 13112 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 109 0
VM map 2 1K 1K 78643K 2 0
sem 10 10K 20K 78643K 20 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 17 61K 81K 78643K 12807 0
sigio 1 0K 0K 78643K 432 0
proc 77 91K 127K 78643K 3289 0
subproc 104 6K 10K 78643K 1262 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 596 0
in_multi 89 6K 6K 78643K 1263 0
ether_multi 1 0K 0K 78643K 71 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 241 1076K 1076K 78643K 241 0
exec 0 0K 2K 78643K 3957 0
pfkey data 0 0K 0K 78643K 39 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 8 62K 64K 78643K 10 0
UVM amap 384 190K 204K 78643K 74600 0
UVM aobj 131 4K 4K 78643K 143 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 406 0
NDP 15 0K 2K 78643K 403 0
temp 142 4734K 5758K 78643K 249899 0
kqueue 12 18K 26K 78643K 930 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 1190 0 1186 16 15 1 3 0 8 0
rtentry 112 1384 0 1288 5 1 4 4 0 8 1
unpcb 144 12995 0 12980 126 120 6 11 0 8 5
syncache 296 119 0 119 23 23 0 1 0 8 0
tcpqe 32 148 0 148 10 10 0 1 0 8 0
tcpcb 768 4633 0 4623 182 178 4 32 0 8 2
arp 120 274 0 256 1 0 1 1 0 8 0
inpcb 368 11669 0 11658 207 200 7 19 0 8 5
nd6 48 295 0 273 1 0 1 1 0 8 0
pkpcb 40 19 0 19 6 6 0 1 0 8 0
kcovpl 48 91 0 83 1 0 1 1 0 8 0
ppxss 1256 173 0 173 20 20 0 1 0 8 0
pfstscr 40 29 0 29 7 7 0 1 0 8 0
pffrag 232 24 0 23 7 6 1 1 0 482 0
pffrnode 88 24 0 23 7 6 1 1 0 8 0
pffrent 40 67 0 66 8 7 1 1 0 8 0
pfosfp 40 1435 0 1010 5 0 5 5 0 8 0
pfosfpen 112 1435 0 719 21 0 21 21 0 8 0
pfrktable 1344 441 0 434 3 2 1 2 0 8 0
pfanchor 1280 42 0 9 3 0 3 3 0 8 0
pftag 88 39 0 35 2 1 1 1 0 8 0
pfqueue 264 2 0 2 1 1 0 1 0 8 0
pfstitem 24 67 0 65 1 0 1 1 0 8 0
pfstkey 120 113 0 111 2 1 1 2 0 8 0
pfstate 336 84 0 82 3 2 1 3 0 8 0
pfrule 1360 220 0 188 4 1 3 3 0 8 0
rttmr 136 6 0 6 2 2 0 1 0 8 0
art_heap8 4096 6 0 5 5 4 1 2 0 8 0
art_heap4 256 5374 0 4936 73 43 30 30 0 8 2
art_table 32 5380 0 4941 6 2 4 4 0 8 0
art_node 16 1379 0 1285 1 0 1 1 0 8 0
sysvmsgpl 40 85 0 69 1 0 1 1 0 8 0
semupl 112 4 0 4 1 1 0 1 0 8 0
semapl 112 8 0 0 1 0 1 1 0 8 0
shmpl 112 140 0 12 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 17292 0 15784 95 0 95 95 0 8 0
ffsino 272 17292 0 15784 101 0 101 101 0 8 0
nchpl 144 33906 0 33335 63 38 25 63 0 8 0
rtmask 32 7 0 7 3 3 0 1 0 8 0
uvmvnodes 80 8128 0 0 166 0 166 166 0 8 0
vnodes 216 8128 0 0 452 0 452 452 0 8 0
namei 1024 132672 0 132672 3 2 1 2 0 8 1
percpumem 16 322 0 282 1 0 1 1 0 8 0
vcpupl 2048 8 0 0 1 0 1 1 0 8 0
vmpool 568 8 0 0 1 0 1 1 0 8 0
pfiaddrpl 120 135 0 122 1 0 1 1 0 8 0
kstatmem 264 412 0 381 6 3 3 3 0 8 0
scsiplug 72 12 0 12 3 3 0 1 0 8 0
scxspl 216 113106 0 113106 27 26 1 8 0 8 1
plimitpl 152 2231 0 2214 1 0 1 1 0 8 0
sigapl 424 12999 0 12951 11 5 6 8 0 8 0
futexpl 64 123028 0 123026 8 7 1 1 0 8 0
knotepl 120 935 0 0 14 1 13 13 0 8 0
kqueuepl 216 2082 0 2074 34 33 1 5 0 8 0
pipepl 320 2502 0 2473 73 65 8 11 0 8 5
fdescpl 496 12938 0 12908 8 3 5 5 0 8 0
filepl 152 92106 0 91853 167 150 17 28 0 8 6
lockfpl 104 15555 0 15552 28 25 3 4 0 8 2
lockfspl 48 6819 0 6816 4 2 2 2 0 8 1
sessionpl 144 109 0 92 1 0 1 1 0 8 0
pgrppl 48 210 0 193 1 0 1 1 0 8 0
ucredpl 104 9637 0 9625 1 0 1 1 0 8 0
zombiepl 144 12953 0 12951 1 0 1 1 0 8 0
processpl 1064 12999 0 12951 5 0 5 5 0 8 0
procpl 672 34601 0 34530 26 18 8 10 0 8 0
srpgc 96 133 0 133 22 21 1 1 0 8 1
sosppl 168 99 0 99 14 14 0 1 0 8 0
sockpl 488 25891 0 25859 599 586 13 45 0 8 8
mcl64k 65536 14 0 0 2 0 2 2 0 8 0
mcl16k 16384 17 0 0 3 0 3 3 0 8 0
mcl12k 12288 17 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 34 0 0 4 0 4 4 0 8 0
mcl2k2 2112 9 0 0 1 0 1 1 0 8 0
mcl2k 2048 725 0 0 56 12 44 56 0 8 0
mtagpl 96 1568 0 0 31 0 31 31 0 8 0
mbufpl 256 2314 0 0 134 0 134 134 0 8 0
bufpl 288 27046 0 18917 582 1 581 581 0 8 0
anonpl 24 2463102 0 2446728 253 133 120 142 0 186 0
amapchunkpl 152 238417 0 237666 80 42 38 44 0 158 1
amappl16 200 32819 0 32208 150 117 33 45 0 8 0
amappl15 192 2336 0 2332 3 2 1 1 0 8 0
amappl14 184 921 0 911 1 0 1 1 0 8 0
amappl13 176 1315 0 1314 1 0 1 1 0 8 0
amappl12 168 1811 0 1801 1 0 1 1 0 8 0
amappl11 160 1228 0 1205 2 0 2 2 0 8 0
amappl10 152 2243 0 2238 1 0 1 1 0 8 0
amappl9 144 1858 0 1848 1 0 1 1 0 8 0
amappl8 136 4095 0 3968 5 0 5 5 0 8 0
amappl7 128 2474 0 2451 1 0 1 1 0 8 0
amappl6 120 2009 0 1982 2 1 1 2 0 8 0
amappl5 112 11882 0 11865 1 0 1 1 0 8 0
amappl4 104 5031 0 4986 2 0 2 2 0 8 0
amappl3 96 38846 0 38779 2 0 2 2 0 8 0
amappl2 88 14621 0 14544 3 1 2 3 0 8 0
amappl1 80 304923 0 304089 23 5 18 23 0 8 0
amappl 88 72557 0 72340 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 142 0 12 3 0 3 3 0 8 0
uaddrrnd 24 12946 0 12908 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 12946 0 12908 1 0 1 1 0 8 0
vmmpekpl 168 100321 0 100262 4 0 4 4 0 8 0
vmmpepl 168 1286395 0 1283268 343 187 156 174 0 357 7
vmsppl 368 12945 0 12908 5 1 4 4 0 8 0
rwobjpl 56 310089 0 299888 161 17 144 144 0 8 0
pdppl 4096 25899 0 25824 783 706 77 79 0 8 2
pvpl 32 5071469 0 5049337 559 345 214 263 0 265 6
pmappl 248 12945 0 12908 4 1 3 3 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 2090 0 994 32 0 32 32 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
bpfioctl(31700,20004269,ffff80002e495bc0,a,ffff800021296fd0) at bpfioctl+0xd25 sys/net/bpf.c:825
VOP_IOCTL(fffffd8060df5558,20004269,ffff80002e495bc0,a,fffffd807f7d7410,ffff800021296fd0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
vn_ioctl(fffffd8076fdadb0,20004269,ffff80002e495bc0,ffff800021296fd0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:525
sys_ioctl(ffff800021296fd0,ffff80002e495cd8,ffff80002e495d20) at sys_ioctl+0x4a2
syscall(ffff80002e495da0) at syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline]
syscall(ffff80002e495da0) at syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1dba6a7de20, count: -6
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020dd8ff0) 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(ffff800020dd8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff800020dd8ff0) 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(ffff800020dd8ff0) at sched_idle+0x417 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: -5