uvm_fault(0xffffffff839ff370, 0xffff800001661000, 0, 2) -> e
kernel: page fault trap, code=2
Stopped at sysctl_sysvipc+0x614: movq %rax,0(%r14)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*337578 4794 32767 0x10 0x4000000 0K syz-executor
sysctl_sysvipc(ffff80003c3cc518,1,200000000000,ffff80003c3cc548) at sysctl_sysvipc+0x614 sys/kern/kern_sysctl.c:2816
kern_sysctl(ffff80003c3cc514,2,200000000000,ffff80003c3cc548,0,d79b41c173cbb07f,d791ca9c26baee08) at kern_sysctl+0x139 sys/kern/kern_sysctl.c:736
sys_sysctl(ffff80003c3cfa18,ffff80003c3cc680,ffff80003c3cc5d0) at sys_sysctl+0x3e5 sys/kern/kern_sysctl.c:-1
syscall(ffff80003c3cc680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c3cc680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe409e5fa90, count: 10
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(0xffffffff839ff370, 0xffff800001661000, 0, 2) -> e
ddb{0}> show kasan
No such command
ddb{0}> trace
sysctl_sysvipc(ffff80003c3cc518,1,200000000000,ffff80003c3cc548) at sysctl_sysvipc+0x614 sys/kern/kern_sysctl.c:2816
kern_sysctl(ffff80003c3cc514,2,200000000000,ffff80003c3cc548,0,d79b41c173cbb07f,d791ca9c26baee08) at kern_sysctl+0x139 sys/kern/kern_sysctl.c:736
sys_sysctl(ffff80003c3cfa18,ffff80003c3cc680,ffff80003c3cc5d0) at sys_sysctl+0x3e5 sys/kern/kern_sysctl.c:-1
syscall(ffff80003c3cc680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c3cc680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe409e5fa90, count: -5
ddb{0}> show registers
rdi 0xffff800036b9d000
rsi 0x15b
rbp 0xffff80003c3cc300
rbx 0xffffee806ca89438
rdx 0xffff800036b9d000
rcx 0x7fff00007fff
rax 0
r8 0xffff80003c3cc548
r9 0
r10 0x1b7878668246dcee
r11 0x3af6a0bbc9f7f535
r12 0xfffffffffffff6fd
r13 0x1
r14 0xffff800001661000
r15 0x17
rip 0xffffffff82f57764 sysctl_sysvipc+0x614
cs 0x8
rflags 0x10293 __ALIGN_SIZE+0xf293
rsp 0xffff80003c3cc270
ss 0x10
sysctl_sysvipc+0x614: movq %rax,0(%r14)
ddb{0}> show proc
PROC (syz-executor) tid=337578 pid=4794 tcnt=2 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
runpri=32, usrpri=86, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff800045fe8550,0xffff80002a22c7e8
process=0xffff800045fec4f0 user=0xffff80003c3c7000, vmspace=0xffffee806d1a0208
estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
82657 314790 31444 0 2 0x100000 0 sh
31444 467382 21603 0 3 0x100002 0x88 sigsusp sh
43431 137635 21845 32767 2 0x10 0 syz-executor
43431 331401 21845 32767 3 0x10 0x4000080 fsleep syz-executor
86720 7178 68372 0 2 0x2 0 syz-executor
4794 10184 23402 32767 2 0x10 0 syz-executor
* 4794 337578 23402 32767 7 0x10 0x4000000 syz-executor
36558 455295 24700 32767 2 0x10 0 syz-executor
36558 338194 24700 32767 3 0x10 0x4000080 fsleep syz-executor
62663 110345 56273 0 3 0 0x80 wait syz-executor
56273 55282 68372 0 3 0x2 0x80 wait syz-executor
64060 234463 11488 32767 3 0x10 0x80 nanoslp syz-executor
64060 224952 11488 32767 3 0x10 0x4000080 lockf syz-executor
64060 234091 11488 32767 3 0x10 0x4000080 fsleep syz-executor
20499 510317 94293 0 2 0 0 syz-executor
94293 123056 68372 0 3 0x2 0x80 wait syz-executor
21603 144432 14098 0 3 0 0x80 wait syz-executor
14098 120275 68372 0 3 0x2 0x80 wait syz-executor
21845 403548 44616 32767 2 0x10 0xc80 syz-executor
44616 448884 68372 0 3 0x2 0x80 wait syz-executor
11488 385939 95845 32767 3 0x10 0x80 nanoslp syz-executor
95845 133213 68372 0 3 0x2 0x80 wait syz-executor
24700 316887 30181 32767 3 0x10 0x80 nanoslp syz-executor
30181 71990 68372 0 3 0x2 0x80 wait syz-executor
23402 269314 55569 32767 3 0x10 0x80 nanoslp syz-executor
55569 293960 68372 0 3 0x2 0x80 wait syz-executor
68372 351025 12402 0 3 0x2 0x80 kqread syz-executor
12402 146370 22589 0 3 0x100002 0x88 sigsusp ksh
22589 269304 69033 0 3 0x10 0x88 kqread sshd-session
69033 72919 27752 0 3 0x12 0x80 kqread sshd-session
7761 522001 1 0 3 0x100003 0x80 ttyin getty
27752 77645 1 0 3 0 0x88 kqread sshd
76571 185354 64030 73 3 0x1100010 0x80 kqread syslogd
64030 231696 1 0 3 0x100002 0x80 sbwait syslogd
1786 62941 1 0 3 0x100000 0x80 kqread resolvd
71852 175107 83670 77 3 0x100012 0x80 kqread dhcpleased
64507 469889 83670 77 3 0x100012 0x80 kqread dhcpleased
83670 250094 1 0 3 0 0x80 kqread dhcpleased
95309 10692 0 0 2 0x14000 0x40000200 smr
64111 391630 0 0 2 0x14000 0x200 zerothread
59665 394155 0 0 3 0x14000 0x200 aiodoned aiodoned
50727 393182 0 0 3 0x14000 0x200 syncer update
65014 490817 0 0 3 0x14000 0x200 cleaner cleaner
25647 109437 0 0 3 0x14000 0x200 reaper reaper
71208 460688 0 0 3 0x14000 0x200 pgdaemon pagedaemon
14601 496368 0 0 3 0x14000 0x200 bored viomb
44412 26838 0 0 3 0x14000 0x40000200 acpi0 acpi0
88249 141321 0 0 3 0x14000 0x40000200 idle1
9322 91684 0 0 3 0x14000 0x200 bored softnet1
80144 428792 0 0 3 0x14000 0x200 bored softnet0
2001 477685 0 0 3 0x14000 0x200 smrbar systqmp
34398 147644 0 0 3 0x14000 0x200 bored systq
59910 70836 0 0 3 0x14000 0x200 tmoslp softclockmp
3953 173541 0 0 3 0x14000 0x40000200 tmoslp softclock
89371 370218 0 0 3 0x14000 0x40000200 idle0
1 145278 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb{0}> show all locks
Process 4794 (syz-executor) thread 0xffff80003c3cfa18 (337578)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a63c80)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 sysctl_sysvipc+0x499 sys/kern/kern_sysctl.c:-1
#2 kern_sysctl+0x139 sys/kern/kern_sysctl.c:736
#3 sys_sysctl+0x3e5 sys/kern/kern_sysctl.c:-1
#4 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#4 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
#5 Xsyscall+0x128
Process 2001 (systqmp) thread 0xffff800045ffe000 (477685)
shared rwlock systqmp r = 0 (0xffffffff839de508)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 taskq_thread+0x12a sys/kern/kern_task.c:442
#2 proc_trampoline+0x10
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11051 12016K 12034K 166960K 12250 0
pcb 17 12K 12K 166960K 17 0
rtable 151 4K 7K 166960K 1376 0
pf 29 16K 16K 166960K 101 0
ifaddr 30 5K 7K 166960K 179 0
ifgroup 46 2K 2K 166960K 190 0
sysctl 2 1K 9K 166960K 8 0
counters 68 36K 37K 166960K 140 0
ioctlops 0 0K 2K 166960K 70 0
iov 0 0K 12K 166960K 15 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1287 81K 81K 166960K 1759 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 9K 166960K 56 0
VM map 2 1K 1K 166960K 2 0
sem 21 2K 2K 166960K 22 0
dirhash 18 3K 3K 166960K 21 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 23 85K 125K 166960K 1107 0
sigio 0 0K 0K 166960K 4 0
proc 58 99K 163K 166960K 1525 0
subproc 72 4K 4K 166960K 396 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 117 0
in_multi 55 3K 6K 166960K 474 0
ether_multi 1 0K 0K 166960K 10 0
mrt 0 0K 0K 166960K 19 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 85 387K 387K 166960K 85 0
exec 0 0K 1K 166960K 809 0
fusefs mount 1 32K 32K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 222 160K 173K 166960K 9541 0
UVM aobj 87 3K 3K 166960K 90 0
pinsyscall 44 88K 112K 166960K 3061 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 12 0
NDP 12 0K 2K 166960K 126 0
temp 52 9122K 9200K 166960K 8336 0
kqueue 14 22K 29K 166960K 88 0
SYN cache 2 16K 16K 166960K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 28 0 0 1 0 1 1 0 8 0
rtpcb 120 198 0 195 1 0 1 1 0 8 0
rtentry 176 466 0 399 6 0 6 6 0 8 1
unpcb 144 247 0 232 2 1 1 2 0 8 0
syncache 336 14 0 14 1 0 1 1 0 8 1
tcpqe 32 1 0 1 1 1 0 1 0 8 0
tcpcb 736 183 0 178 2 0 2 2 0 8 1
arp 136 82 0 72 1 0 1 1 0 8 0
ipq 40 2 0 1 1 0 1 1 0 8 0
ipqe 40 3 0 2 1 0 1 1 0 8 0
inpcb 328 652 0 644 7 1 6 7 0 8 4
nd6 152 123 0 111 2 0 2 2 0 8 1
kcovpl 48 43 0 36 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1883 0 1560 35 2 33 33 0 8 7
art_table 40 1884 0 1560 6 0 6 6 0 8 1
art_node 32 466 0 396 1 0 1 1 0 8 0
sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0
semupl 112 2 0 2 1 0 1 1 0 8 1
semapl 72 19 0 0 1 0 1 1 0 8 0
shmpl 120 87 0 3 3 0 3 3 0 8 0
dirhash 1024 23 0 2 3 0 3 3 0 8 0
dino2pl 256 2211 0 648 98 0 98 98 0 8 0
ffsino 296 2211 0 648 121 0 121 121 0 8 0
nchpl 144 2944 0 1146 67 0 67 67 0 8 0
vnodes 216 2616 0 0 146 0 146 146 0 8 0
namei 1024 14683 0 14683 4 3 1 3 0 8 1
percpumem 16 86 0 36 1 0 1 1 0 8 0
kstatmem 264 95 0 72 2 0 2 2 0 8 0
scxspl 216 9705 0 9705 11 3 8 8 1 8 8
plimitpl 152 368 0 344 2 0 2 2 0 8 0
sigapl 424 1330 0 1278 7 0 7 7 0 8 0
knotepl 120 306 0 0 10 0 10 10 0 8 0
kqueuepl 224 180 0 170 5 0 5 5 0 8 4
pipepl 344 250 0 223 4 0 4 4 0 8 1
fdescpl 528 1314 0 1279 4 1 3 4 0 8 0
filepl 160 5242 0 5027 13 0 13 13 0 8 3
lockfpl 104 123 0 119 1 0 1 1 0 8 0
lockfspl 48 41 0 38 1 0 1 1 0 8 0
sessionpl 144 74 0 59 1 0 1 1 0 8 0
pgrppl 48 120 0 97 1 0 1 1 0 8 0
ucredpl 104 938 0 923 1 0 1 1 0 8 0
zombiepl 144 1279 0 1278 1 0 1 1 0 8 0
processpl 1240 1330 0 1278 5 0 5 5 0 8 0
procpl 664 2013 0 1956 7 0 7 7 0 8 1
sockpl 752 1099 0 1073 10 1 9 10 0 8 6
mcl64k 65536 7 0 0 1 0 1 1 0 8 0
mcl16k 16384 10 0 0 2 0 2 2 0 8 0
mcl12k 12288 2 0 0 1 0 1 1 0 8 0
mcl9k128 9344 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 4 0 0 1 0 1 1 0 8 0
mcl4k 4096 113 0 0 15 0 15 15 0 8 0
mcl2k 2048 36 0 0 5 0 5 5 0 8 0
mextrefs 64 33 0 0 1 0 1 1 0 8 0
mtagpl 96 1 0 0 1 0 1 1 0 8 0
mbufpl 256 325 0 0 21 0 21 21 0 8 0
bufpl 272 2991 0 105 193 0 193 193 0 8 0
anonpl 32 7339 0 0 60 0 60 60 0 247 0
amapchunkpl 152 27821 0 27356 36 3 33 34 0 158 10
amappl16 200 2115 0 2103 16 7 9 14 0 8 7
amappl15 192 3 0 3 1 1 0 1 0 8 0
amappl14 184 797 0 795 1 0 1 1 0 8 0
amappl13 176 183 0 173 1 0 1 1 0 8 0
amappl12 168 1675 0 1645 2 0 2 2 0 8 0
amappl11 160 7 0 7 1 1 0 1 0 8 0
amappl10 152 57 0 47 1 0 1 1 0 8 0
amappl9 144 272 0 272 1 1 0 1 0 8 0
amappl8 136 231 0 229 1 0 1 1 0 8 0
amappl7 128 207 0 195 1 0 1 1 0 8 0
amappl6 120 479 0 477 1 0 1 1 0 8 0
amappl5 112 98 0 90 1 0 1 1 0 8 0
amappl4 104 370 0 353 1 0 1 1 0 8 0
amappl3 96 5099 0 5009 4 1 3 3 0 8 0
amappl2 88 1332 0 1259 3 0 3 3 0 8 0
amappl1 80 17618 0 17051 19 0 19 19 0 8 4
amappl 88 8230 0 8072 5 0 5 5 0 92 0
uvmvnodes 80 110 0 0 3 0 3 3 0 8 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 89 0 3 2 0 2 2 0 8 0
uaddrrnd 24 1314 0 1279 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1314 0 1279 1 0 1 1 0 8 0
vmmpekpl 168 11695 0 11635 4 0 4 4 0 8 0
vmmpepl 168 91485 0 89568 105 2 103 105 0 357 14
vmsppl 488 1313 0 1278 7 1 6 6 0 8 0
rwobjpl 80 27062 0 26040 28 0 28 28 0 8 2
pdppl 4096 2635 0 2556 131 48 83 97 0 8 4
pvpl 32 14167 0 0 115 0 115 115 0 265 0
pmappl 256 1313 0 1278 4 1 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 520 0 56 14 0 14 14 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
sysctl_sysvipc(ffff80003c3cc518,1,200000000000,ffff80003c3cc548) at sysctl_sysvipc+0x614 sys/kern/kern_sysctl.c:2816
kern_sysctl(ffff80003c3cc514,2,200000000000,ffff80003c3cc548,0,d79b41c173cbb07f,d791ca9c26baee08) at kern_sysctl+0x139 sys/kern/kern_sysctl.c:736
sys_sysctl(ffff80003c3cfa18,ffff80003c3cc680,ffff80003c3cc5d0) at sys_sysctl+0x3e5 sys/kern/kern_sysctl.c:-1
syscall(ffff80003c3cc680) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c3cc680) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe409e5fa90, count: -5
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:584 [inline]
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153
__mp_lock(ffffffff83a63480) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff83a63480) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173
exit1(ffff800045fe8fb0,0,0,1) at exit1+0x720 sys/kern/kern_exit.c:260
sys_exit(ffff800045fe8fb0,ffff80002a3202a0,ffff80002a3201f0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a3202a0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a3202a0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7ede9379e6e0, count: 6
ddb{1}> trace
x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:584 [inline]
__sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153
__mp_lock(ffffffff83a63480) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff83a63480) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173
exit1(ffff800045fe8fb0,0,0,1) at exit1+0x720 sys/kern/kern_exit.c:260
sys_exit(ffff800045fe8fb0,ffff80002a3202a0,ffff80002a3201f0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a3202a0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a3202a0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7ede9379e6e0, count: -9