uvm_fault: sys_shmat (3)

0 views
Skip to first unread message

syzbot

unread,
Jun 24, 2026, 7:01:35 PM (8 days ago) Jun 24
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7c9581f1cd1a Long ago, we took advantage of the "status" p..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=143187f2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7058272de1526588
dashboard link: https://syzkaller.appspot.com/bug?extid=f5d2ec16c4993e11ed9e

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/45daff1944c2/disk-7c9581f1.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/bf7b950e9e24/bsd-7c9581f1.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/95742cb15aa9/kernel-7c9581f1.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f5d2ec...@syzkaller.appspotmail.com

uvm_fault(0xfffffd006a2aa200, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at sys_shmat+0x453: movq 0(%r15),%rdi
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*235559 40724 0 0 0x4000000 0 syz-executor
206280 50504 0 0x2 0x1 1 syz-executor
sys_shmat(ffff80003c3aad20,ffff80003c46d590,ffff80003c46d4e0) at sys_shmat+0x453 sys/kern/sysv_shm.c:290
syscall(ffff80003c46d590) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c46d590) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x47d440eeee0, count: 12
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(0xfffffd006a2aa200, 0x0, 0, 1) -> e
ddb{0}> trace
sys_shmat(ffff80003c3aad20,ffff80003c46d590,ffff80003c46d4e0) at sys_shmat+0x453 sys/kern/sysv_shm.c:290
syscall(ffff80003c46d590) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c46d590) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x47d440eeee0, count: -3
ddb{0}> show registers
rdi 0
rsi 0x2000 __ALIGN_SIZE+0x1000
rbp 0xffff80003c46d4b0
rbx 0xfffffd006a092e70
rdx 0
rcx 0
rax 0
r8 0x100
r9 0xfffffd00097fd5b0
r10 0
r11 0xc433102999a3d599
r12 0xffff80003c3aad20
r13 0xffff8000015f9010
r14 0x1
r15 0
rip 0xffffffff82f18af3 sys_shmat+0x453
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80003c46d420
ss 0x10
sys_shmat+0x453: movq 0(%r15),%rdi
ddb{0}> show proc
PROC (syz-executor) tid=235559 pid=40724 tcnt=4 stat=onproc
flags process=0 proc=4000000<THREAD>
runpri=50, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff80003c3aba18,0xffff80003c3ab4f8
process=0xffff80003c459838 user=0xffff80003c468000, vmspace=0xfffffd006a2aa200
estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
40724 222895 30560 0 2 0 syz-executor
*40724 235559 30560 0 7 0x4000000 syz-executor
40724 449859 30560 0 3 0x4000080 fsleep syz-executor
40724 126412 30560 0 2 0x4000000 syz-executor
50576 279520 86163 0 2 0 syz-executor
50576 427029 86163 0 3 0x4000000 smrbar syz-executor
16556 316991 50504 0 2 0 syz-executor
16556 429888 50504 0 3 0x4000080 msgwait syz-executor
16556 44521 50504 0 3 0x4000080 msgwait syz-executor
68253 409891 0 0 3 0x14280 nfsidl nfsio
64861 424319 0 0 3 0x14280 nfsidl nfsio
34930 127609 0 0 3 0x14280 nfsidl nfsio
7986 510305 0 0 3 0x14280 nfsidl nfsio
24683 168645 0 0 3 0x14280 nfsidl nfsio
76018 442916 0 0 3 0x14280 nfsidl nfsio
34136 356507 0 0 3 0x14280 nfsidl nfsio
69285 504171 0 0 3 0x14280 nfsidl nfsio
52579 256719 0 0 3 0x14280 nfsidl nfsio
64589 461738 0 0 3 0x14280 nfsidl nfsio
16131 484587 0 0 3 0x14280 nfsidl nfsio
92230 421374 0 0 3 0x14280 nfsidl nfsio
11691 167457 0 0 3 0x14280 nfsidl nfsio
58276 95198 0 0 3 0x14280 nfsidl nfsio
60807 382142 0 0 3 0x14280 nfsidl nfsio
49619 11827 0 0 3 0x14280 nfsidl nfsio
92144 500762 0 0 3 0x14280 nfsidl nfsio
66970 463456 0 0 3 0x14280 nfsidl nfsio
29558 144517 0 0 3 0x14280 nfsidl nfsio
43248 66611 0 0 3 0x14280 nfsidl nfsio
57002 274998 93595 0 3 0x80 nanoslp syz-executor
57002 421331 93595 0 3 0x4000080 semwait syz-executor
33643 428267 79241 -1 3 0x90 nanoslp syz-executor
33643 461857 79241 -1 3 0x4000090 fifor syz-executor
33643 84932 79241 -1 3 0x4000090 fsleep syz-executor
9852 318315 78145 -1 3 0x90 nanoslp syz-executor
9852 218948 78145 -1 3 0x4000098 kqread syz-executor
9852 368950 78145 -1 3 0x4000090 fsleep syz-executor
86163 296524 92107 0 3 0x82 nanoslp syz-executor
50504 206280 92107 0 7 0x3 syz-executor
78145 27113 92107 0 3 0x82 nanoslp syz-executor
93595 43821 92107 0 3 0x82 nanoslp syz-executor
79241 150974 92107 0 3 0x82 nanoslp syz-executor
54044 101881 92107 0 2 0x2 syz-executor
30560 359991 92107 0 2 0xc82 syz-executor
53268 147370 92107 0 3 0x82 nanoslp syz-executor
92107 409533 17638 0 3 0x82 kqread syz-executor
17638 175014 59535 0 3 0x10008a sigsusp ksh
59535 492955 73960 0 3 0x98 kqread sshd-session
73960 376794 61339 0 3 0x92 kqread sshd-session
47055 310197 1 0 3 0x100083 ttyin getty
61339 511151 1 0 3 0x88 kqread sshd
69019 212438 87805 74 3 0x1100092 bpf pflogd
87805 172328 1 0 3 0x80 sbwait pflogd
34913 222291 40793 73 3 0x1100090 kqread syslogd
40793 142883 1 0 3 0x100082 sbwait syslogd
63419 266171 1 0 3 0x100080 kqread resolvd
84156 173533 32851 77 3 0x100092 kqread dhcpleased
71872 390753 32851 77 3 0x100092 kqread dhcpleased
32851 224430 1 0 3 0x80 kqread dhcpleased
51458 287 0 0 3 0x14200 bored smr
53992 232778 0 0 2 0x14200 zerothread
58990 59590 0 0 3 0x14200 aiodoned aiodoned
31182 490551 0 0 3 0x14200 syncer update
17999 58339 0 0 3 0x14200 cleaner cleaner
6555 153942 0 0 3 0x14200 reaper reaper
29000 73783 0 0 3 0x14200 pgdaemon pagedaemon
5452 392886 0 0 3 0x14200 bored viomb
32651 289598 0 0 3 0x40014200 acpi0 acpi0
90699 241446 0 0 3 0x40014200 idle1
87610 49046 0 0 3 0x14200 bored softnet1
73042 369501 0 0 3 0x14200 bored softnet0
25631 43690 0 0 3 0x14200 bored systqmp
3122 11527 0 0 3 0x14200 bored systq
67454 432523 0 0 3 0x14200 tmoslp softclockmp
22023 449212 0 0 2 0x40014200 softclock
48495 342510 0 0 3 0x40014200 idle0
1 27049 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 40724 (syz-executor) thread 0xffff80003c3aad20 (235559)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83a3e000)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1
#2 malloc+0xe3 sys/kern/kern_malloc.c:175
#3 sys_shmat+0x9f sys/kern/sysv_shm.c:-1
#4 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#4 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
#5 Xsyscall+0x128
Process 50576 (syz-executor) thread 0xffff807ffffee7e0 (427029)
exclusive rwlock clonelk r = 0 (0xffffffff839b9bf8)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320
#2 if_clone_destroy+0x93 sys/net/if.c:-1
#3 ifioctl+0x59d sys/net/if.c:2160
#4 sys_ioctl+0x674 sys/kern/sys_generic.c:-1
#5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783
#6 Xsyscall+0x128
Process 54044 (syz-executor) thread 0xffff80002a2122a8 (101881)
exclusive rrwlock inode r = 0 (0xfffffd006a881e98)
#0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160
#1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320
#2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:621
#3 VOP_LOCK+0xbd sys/kern/vfs_vops.c:527
#4 vn_lock+0xa4 sys/kern/vfs_vnops.c:576
#5 vfs_lookup+0x12b sys/kern/vfs_lookup.c:431
#6 namei+0x7c5 sys/kern/vfs_lookup.c:250
#7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3047
#8 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#8 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
#9 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11059 12151K 12166K 166960K 12184 0
pcb 17 12K 12K 166960K 22 0
rtable 243 7K 7K 166960K 357 0
pf 37 18K 18K 166960K 56 0
ifaddr 43 7K 7K 166960K 51 0
ifgroup 55 2K 2K 166960K 63 0
sysctl 1 1K 9K 166960K 5 0
counters 70 37K 37K 166960K 82 0
ioctlops 0 0K 4K 166960K 1491 0
iov 0 0K 0K 166960K 1 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1292 81K 82K 166960K 1383 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 3 5K 5K 166960K 3 0
VM map 2 1K 1K 166960K 2 0
sem 6 0K 0K 166960K 6 0
dirhash 12 2K 2K 166960K 12 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 17 61K 93K 166960K 175 0
proc 78 147K 147K 166960K 560 0
subproc 72 4K 4K 166960K 72 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 2 0
in_multi 99 7K 7K 166960K 99 0
ether_multi 1 0K 0K 166960K 1 0
mrt 0 0K 0K 166960K 4 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 61 281K 281K 166960K 61 0
exec 0 0K 1K 166960K 387 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 241 159K 169K 166960K 3449 0
UVM aobj 4 2K 2K 166960K 4 0
pinsyscall 42 84K 106K 166960K 1331 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 2 0
NDP 18 0K 2K 166960K 32 0
temp 38 9118K 9130K 166960K 6310 0
kqueue 14 22K 24K 166960K 32 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 26 0 0 1 0 1 1 0 8 0
rtpcb 120 33 0 30 1 0 1 1 0 8 0
rtentry 176 112 0 1 6 0 6 6 0 8 0
unpcb 144 62 0 43 2 0 2 2 0 8 1
syncache 336 4 0 4 1 1 0 1 0 8 0
tcpcb 736 13 0 8 1 0 1 1 0 8 0
arp 136 18 0 0 1 0 1 1 0 8 0
inpcb 328 82 0 73 1 0 1 1 0 8 0
nd6 152 25 0 0 1 0 1 1 0 8 0
kcovpl 48 8 0 0 1 0 1 1 0 8 0
ppxss 1192 6 0 6 1 0 1 1 0 8 1
pfstscr 40 2 0 0 1 0 1 1 0 8 0
pffrag 232 1 0 0 1 0 1 1 0 482 0
pffrnode 88 1 0 0 1 0 1 1 0 8 0
pffrent 40 1 0 0 1 0 1 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
pfstitem 24 22 0 0 1 0 1 1 0 8 0
pfstkey 128 22 0 0 1 0 1 1 0 8 0
pfstate 448 21 0 0 3 0 3 3 0 8 0
pfrule 1360 22 0 16 2 1 1 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 454 0 0 29 0 29 29 0 8 0
art_table 40 455 0 0 5 0 5 5 0 8 0
art_node 32 112 0 11 1 0 1 1 0 8 0
sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0
semapl 72 4 0 0 1 0 1 1 0 8 0
shmpl 112 1 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1628 0 159 93 0 93 93 0 8 0
ffsino 296 1628 0 159 114 0 114 114 0 8 0
nchpl 144 1878 0 175 64 0 64 64 0 8 0
rtmask 32 2 0 2 1 0 1 1 0 8 1
vnodes 216 1728 0 0 96 0 96 96 0 8 0
namei 1024 5785 0 5784 3 2 1 2 0 8 0
percpumem 16 56 0 6 1 0 1 1 0 8 0
kstatmem 264 35 0 8 3 0 3 3 0 8 1
scsiplug 72 2 0 2 1 1 0 1 0 8 0
scxspl 216 6468 0 6468 4 3 1 3 1 8 1
plimitpl 152 36 0 19 1 0 1 1 0 8 0
sigapl 424 512 0 445 8 0 8 8 0 8 0
knotepl 120 290 0 0 9 0 9 9 0 8 0
kqueuepl 224 33 0 23 1 0 1 1 0 8 0
pipepl 344 130 0 103 3 0 3 3 0 8 0
fdescpl 528 476 0 445 3 0 3 3 0 8 0
filepl 160 1798 0 1581 11 1 10 11 0 8 0
lockfpl 104 18 0 16 1 0 1 1 0 8 0
lockfspl 48 10 0 8 1 0 1 1 0 8 0
sessionpl 144 26 0 17 1 0 1 1 0 8 0
pgrppl 48 37 0 20 1 0 1 1 0 8 0
ucredpl 104 164 0 148 1 0 1 1 0 8 0
zombiepl 144 450 0 449 1 0 1 1 0 8 0
processpl 1232 512 0 445 6 0 6 6 0 8 0
procpl 664 585 0 507 7 0 7 7 0 8 0
sockpl 752 180 0 149 5 0 5 5 0 8 1
mcl64k 65536 4 0 0 1 0 1 1 0 8 0
mcl16k 16384 2 0 0 1 0 1 1 0 8 0
mcl12k 12288 2 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 121 0 0 16 0 16 16 0 8 0
mcl2k 2048 17 0 0 3 0 3 3 0 8 0
mtagpl 96 2 0 0 1 0 1 1 0 8 0
mbufpl 256 138 0 0 9 0 9 9 0 8 0
bufpl 272 2396 0 105 153 0 153 153 0 8 0
anonpl 32 3609 0 0 30 0 30 30 0 115 0
amapchunkpl 152 9249 0 8733 23 1 22 22 0 158 0
amappl16 200 1354 0 1334 4 2 2 4 0 8 0
amappl15 192 16 0 16 1 1 0 1 0 8 0
amappl14 184 428 0 427 1 0 1 1 0 8 0
amappl13 176 122 0 110 1 0 1 1 0 8 0
amappl12 168 739 0 709 2 0 2 2 0 8 0
amappl11 160 23 0 23 1 1 0 1 0 8 0
amappl10 152 67 0 52 1 0 1 1 0 8 0
amappl9 144 299 0 299 1 1 0 1 0 8 0
amappl8 136 102 0 100 1 0 1 1 0 8 0
amappl7 128 151 0 138 1 0 1 1 0 8 0
amappl6 120 157 0 155 1 0 1 1 0 8 0
amappl5 112 99 0 89 1 0 1 1 0 8 0
amappl4 104 292 0 273 1 0 1 1 0 8 0
amappl3 96 1707 0 1585 4 0 4 4 0 8 0
amappl2 88 536 0 476 2 0 2 2 0 8 0
amappl1 80 10489 0 9882 15 1 14 15 0 8 0
amappl 88 2711 0 2543 4 0 4 4 0 92 0
uvmvnodes 80 100 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 3 0 0 1 0 1 1 0 8 0
uaddrrnd 24 476 0 445 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 476 0 445 1 0 1 1 0 8 0
vmmpekpl 168 5995 0 5959 2 0 2 2 0 8 0
vmmpepl 168 39356 0 37441 87 1 86 87 0 357 0
vmsppl 488 475 0 445 5 0 5 5 0 8 0
rwobjpl 80 14421 0 13385 25 3 22 24 0 8 0
pdppl 4096 959 0 890 99 28 71 85 0 8 2
pvpl 32 10716 0 0 87 0 87 87 0 265 0
pmappl 256 475 0 445 3 0 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 425 0 34 12 0 12 12 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
sys_shmat(ffff80003c3aad20,ffff80003c46d590,ffff80003c46d4e0) at sys_shmat+0x453 sys/kern/sysv_shm.c:290
syscall(ffff80003c46d590) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003c46d590) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x47d440eeee0, count: -3
ddb{0}> machine ddbcpu 1


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages