uvm_fault: memcpy (4)

2 views
Skip to first unread message

syzbot

unread,
Dec 24, 2021, 4:04:21 PM12/24/21
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9d2191b71eea regen
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1365dc35b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=fe55924c11e64b0a
dashboard link: https://syzkaller.appspot.com/bug?extid=856014902288cda60ad9

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

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

uvm_fault(0xffffffff8288e4d0, 0xffff800018cdf000, 0, 2) -> d
kernel: page fault trap, code=0
Stopped at memcpy+0x15: repe movsq (%rsi),%es:(%rdi)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*233245 67584 0 0x2 0 0 syz-executor.0
memcpy() at memcpy+0x15
ufs_inactive(ffff8000231310a8) at ufs_inactive+0x25f sys/ufs/ufs/ufs_inode.c:110
VOP_INACTIVE(fffffd8070061db8,ffff8000230dc008) at VOP_INACTIVE+0xb7 sys/kern/vfs_vops.c:505
vput(fffffd8070061db8) at vput+0xad sys/kern/vfs_subr.c:779
vn_closefile(fffffd806a629540,ffff8000230dc008) at vn_closefile+0xdd sys/kern/vfs_vnops.c:626
fdrop(fffffd806a629540,ffff8000230dc008) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd806a629540,ffff8000230dc008) at closef+0x117 sys/kern/kern_descrip.c:1263
syscall(ffff800023131310) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffab00, 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(0xffffffff8288e4d0, 0xffff800018cdf000, 0, 2) -> d
ddb> trace
memcpy() at memcpy+0x15
ufs_inactive(ffff8000231310a8) at ufs_inactive+0x25f sys/ufs/ufs/ufs_inode.c:110
VOP_INACTIVE(fffffd8070061db8,ffff8000230dc008) at VOP_INACTIVE+0xb7 sys/kern/vfs_vops.c:505
vput(fffffd8070061db8) at vput+0xad sys/kern/vfs_subr.c:779
vn_closefile(fffffd806a629540,ffff8000230dc008) at vn_closefile+0xdd sys/kern/vfs_vnops.c:626
fdrop(fffffd806a629540,ffff8000230dc008) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd806a629540,ffff8000230dc008) at closef+0x117 sys/kern/kern_descrip.c:1263
syscall(ffff800023131310) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffab00, count: -9
ddb> show registers
rdi 0xffff800018cdf000
rsi 0xfffffd806a5efb00
rbp 0xffff800023131030
rbx 0x2
rdx 0x100
rcx 0x20
rax 0x669
r8 0xffffffffffffffff
r9 0x4
r10 0x653f39baae08a09b
r11 0xffff800018cdf000
r12 0xfffffd807131c5a8
r13 0xfffffd807554bed0
r14 0
r15 0xffff8000006b5800
rip 0xffffffff81b2e2f5 memcpy+0x15
cs 0x8
rflags 0x10202 __ALIGN_SIZE+0xf202
rsp 0xffff800023130fc8
ss 0x10
memcpy+0x15: repe movsq (%rsi),%es:(%rdi)
ddb> show proc
PROC (syz-executor.0) pid=233245 stat=onproc
flags process=2<EXEC> proc=0
pri=79, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff8000230dcfc8,0xffff80002165cd30
process=0xffff800021677b78 user=0xffff80002312c000, vmspace=0xfffffd8065a37de0
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
46516 82277 19028 0 2 0 syz-executor.1
17559 298476 81383 0 2 0 syz-executor.2
21029 46980 94809 0 2 0 syz-executor.3
*67584 233245 36053 0 7 0x2 syz-executor.0
19028 151587 36053 0 3 0x82 nanoslp syz-executor.1
81383 252261 36053 0 2 0x2 syz-executor.2
94809 504024 36053 0 3 0x82 nanoslp syz-executor.3
94160 96275 1 0 3 0x100083 ttyin getty
83803 125727 0 0 3 0x14280 nfsidl nfsio
33983 492284 0 0 3 0x14280 nfsidl nfsio
19456 150329 0 0 3 0x14280 nfsidl nfsio
10688 353086 0 0 3 0x14280 nfsidl nfsio
88021 412623 0 0 3 0x14280 nfsidl nfsio
99864 355701 0 0 3 0x14280 nfsidl nfsio
94531 356104 0 0 3 0x14280 nfsidl nfsio
33370 303929 0 0 3 0x14280 nfsidl nfsio
6712 203700 0 0 3 0x14280 nfsidl nfsio
72914 223980 0 0 3 0x14280 nfsidl nfsio
33494 516264 0 0 3 0x14280 nfsidl nfsio
1843 275918 0 0 3 0x14280 nfsidl nfsio
16189 502240 0 0 3 0x14280 nfsidl nfsio
25710 202094 0 0 3 0x14280 nfsidl nfsio
41967 442622 0 0 3 0x14280 nfsidl nfsio
22647 289682 0 0 3 0x14280 nfsidl nfsio
9250 147186 0 0 3 0x14280 nfsidl nfsio
42878 495488 0 0 3 0x14280 nfsidl nfsio
54040 29393 0 0 3 0x14280 nfsidl nfsio
11146 514440 0 0 3 0x14280 nfsidl nfsio
9085 449817 0 0 3 0x14200 bored sosplice
36053 290414 44018 0 3 0x82 thrsleep syz-fuzzer
36053 6886 44018 0 3 0x4000082 nanoslp syz-fuzzer
36053 90989 44018 0 3 0x4000082 thrsleep syz-fuzzer
36053 343924 44018 0 3 0x4000082 thrsleep syz-fuzzer
36053 264546 44018 0 3 0x4000082 thrsleep syz-fuzzer
36053 62398 44018 0 3 0x4000082 kqread syz-fuzzer
36053 60742 44018 0 3 0x4000082 thrsleep syz-fuzzer
44018 234040 75875 0 3 0x10008a sigsusp ksh
75875 410867 45720 0 3 0x9a poll sshd
45720 366970 1 0 3 0x88 poll sshd
46428 99959 4931 73 3 0x100090 kqread syslogd
4931 281406 1 0 3 0x100082 netio syslogd
97821 482161 1 0 3 0x100080 kqread resolvd
57049 285847 67060 77 3 0x100092 kqread dhcpleased
93834 521159 67060 77 3 0x100092 kqread dhcpleased
67060 132900 1 0 3 0x80 kqread dhcpleased
43333 189439 0 0 3 0x14200 bored smr
97597 500327 0 0 2 0x14200 zerothread
21804 240775 0 0 3 0x14200 aiodoned aiodoned
30474 424560 0 0 3 0x14200 syncer update
91890 367455 0 0 3 0x14200 cleaner cleaner
82358 440721 0 0 3 0x14200 reaper reaper
178 413416 0 0 3 0x14200 pgdaemon pagedaemon
66324 111872 0 0 3 0x14200 bored viomb
27321 464049 0 0 3 0x40014200 acpi0 acpi0
8325 902 0 0 3 0x14200 bored softnet
85521 493035 0 0 3 0x14200 bored systqmp
8775 323092 0 0 3 0x14200 bored systq
34129 254143 0 0 3 0x40014200 bored softclock
94958 469309 0 0 3 0x40014200 idle0
1 328819 0 0 3 0x80082 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 10184 6404K 7023K 78643K 29845 0
pcb 13 14K 16K 78643K 1407 0
rtable 201 19K 22K 78643K 5152 0
ifaddr 82 22K 23K 78643K 1792 0
sysctl 3 1K 1K 78643K 5 0
counters 23 16K 17K 78643K 196 0
ioctlops 0 0K 4K 78643K 2499 0
iov 0 0K 32K 78643K 1005 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1487 93K 94K 78643K 13076 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 73 0
VM map 2 0K 0K 78643K 2 0
sem 12 0K 0K 78643K 825 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 9 29K 43K 78643K 9372 0
sigio 0 0K 0K 78643K 398 0
proc 59 55K 79K 78643K 2153 0
subproc 52 3K 3K 78643K 789 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 324 0
in_multi 52 3K 4K 78643K 1474 0
ether_multi 1 0K 0K 78643K 120 0
mrt 1 0K 0K 78643K 20 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 3394 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 375 810K 826K 78643K 111954 0
UVM aobj 131 4K 4K 78643K 131 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 648 0
NDP 11 0K 1K 78643K 393 0
temp 115 4221K 4345K 78643K 105931 0
kqueue 13 20K 24K 78643K 442 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 429 0 426 3 2 1 2 0 8 0
rtentry 112 1079 0 1021 3 1 2 3 0 8 0
unpcb 128 5104 0 5091 53 48 5 9 0 8 4
syncache 296 64 0 64 15 15 0 1 0 8 0
tcpqe 32 465 0 465 6 6 0 1 0 8 0
tcpcb 736 3151 0 3147 118 111 7 11 0 8 6
arp 88 126 0 116 1 0 1 1 0 8 0
ipq 40 69 0 69 8 7 1 1 0 8 1
ipqe 40 2188 0 2188 8 7 1 1 0 8 1
inpcb 304 9238 0 9231 148 144 4 14 0 8 3
rttmr 72 6 0 6 2 2 0 1 0 8 0
ip6q 72 2 0 2 1 1 0 1 0 8 0
ip6af 40 3 0 3 1 1 0 1 0 8 0
nd6 48 291 0 279 1 0 1 1 0 8 0
pkpcb 40 136 0 136 11 11 0 1 0 8 0
kcovpl 48 60 0 56 1 0 1 1 0 8 0
ppxss 1152 27 0 27 7 6 1 1 0 8 1
pfstscr 40 66 0 64 1 0 1 1 0 8 0
pfosfp 40 3 0 2 1 0 1 1 0 8 0
pfosfpen 112 3 0 0 1 0 1 1 0 8 0
pfrktable 1344 1119 0 1092 6 3 3 3 0 8 0
pftag 88 207 0 198 2 1 1 1 0 8 0
pfqueue 264 38 0 38 1 1 0 1 0 8 0
pfstitem 24 54 0 50 1 0 1 1 0 8 0
pfstkey 112 138 0 134 1 0 1 1 0 8 0
pfstate 320 69 0 67 1 0 1 1 0 8 0
pfrule 1360 1415 0 1150 25 2 23 23 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 5250 0 5009 41 24 17 19 0 8 0
art_table 32 5251 0 5009 3 0 3 3 0 8 0
art_node 16 1078 0 1029 1 0 1 1 0 8 0
sysvmsgpl 40 51 0 13 1 0 1 1 0 8 0
semapl 112 821 0 811 1 0 1 1 0 8 0
shmpl 112 128 0 0 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 14845 0 13391 91 0 91 91 0 8 0
ffsino 240 14845 0 13391 86 0 86 86 0 8 0
nchpl 144 28841 0 27255 61 0 61 61 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 115042 0 115042 4 3 1 1 0 8 1
vcpupl 1984 51 0 1 7 0 7 7 0 8 0
vmpool 528 136 0 86 4 0 4 4 0 8 0
pfiaddrpl 120 708 0 607 14 10 4 4 0 8 0
scsiplug 72 8 0 8 3 3 0 1 0 8 0
scxspl 216 80568 0 80568 16 15 1 8 0 8 1
plimitpl 152 2239 0 2229 1 0 1 1 0 8 0
sigapl 424 9454 0 9400 8 1 7 7 0 8 0
futexpl 64 92503 0 92503 3 2 1 1 0 8 1
knotepl 112 4973 0 4923 2 0 2 2 0 8 0
kqueuepl 184 3109 0 3091 52 48 4 6 0 8 3
pipepl 304 2544 0 2528 68 62 6 9 0 8 4
fdescpl 432 9412 0 9392 3 0 3 3 0 8 0
filepl 120 82799 0 82653 119 108 11 14 0 8 6
lockfpl 104 2057 0 2055 4 3 1 2 0 8 0
lockfspl 48 693 0 691 1 0 1 1 0 8 0
sessionpl 144 78 0 66 1 0 1 1 0 8 0
pgrppl 48 99 0 87 1 0 1 1 0 8 0
ucredpl 96 15296 0 15285 1 0 1 1 0 8 0
zombiepl 144 9400 0 9400 2 1 1 1 0 8 1
processpl 1000 9454 0 9400 10 3 7 8 0 8 0
procpl 672 23465 0 23405 29 22 7 7 0 8 1
sosppl 168 58 0 58 9 9 0 1 0 8 0
sockpl 448 14915 0 14892 307 296 11 30 0 8 8
mcl64k 65536 505 0 505 13 12 1 1 0 8 1
mcl16k 16384 118 0 118 23 22 1 1 0 8 1
mcl12k 12288 250 0 250 25 24 1 1 0 8 1
mcl9k 9216 127 0 127 30 29 1 1 0 8 1
mcl8k 8192 510 0 510 21 20 1 1 0 8 1
mcl4k 4096 1004 0 1004 11 10 1 1 0 8 1
mcl2k2 2112 75 0 75 21 21 0 1 0 8 0
mcl2k 2048 96035 0 95971 46 36 10 22 0 8 0
mtagpl 96 1774 0 1774 23 16 7 12 0 8 7
mbufpl 256 228458 0 228178 254 214 40 81 0 8 8
bufpl 288 21838 0 15421 459 0 459 459 0 8 0
anonpl 24 2638164 0 2622870 283 163 120 142 0 188 1
amapchunkpl 152 299576 0 298964 106 76 30 42 0 158 1
amappl16 200 28595 0 27900 177 139 38 51 0 8 0
amappl15 192 998 0 998 5 4 1 1 0 8 1
amappl14 184 1133 0 1131 1 0 1 1 0 8 0
amappl13 176 986 0 985 1 0 1 1 0 8 0
amappl12 168 1227 0 1223 1 0 1 1 0 8 0
amappl11 160 554 0 542 1 0 1 1 0 8 0
amappl10 152 1627 0 1618 1 0 1 1 0 8 0
amappl9 144 2116 0 2114 1 0 1 1 0 8 0
amappl8 136 2624 0 2564 3 0 3 3 0 8 0
amappl7 128 1599 0 1589 1 0 1 1 0 8 0
amappl6 120 2338 0 2320 1 0 1 1 0 8 0
amappl5 112 9843 0 9828 1 0 1 1 0 8 0
amappl4 104 2982 0 2956 1 0 1 1 0 8 0
amappl3 96 2504 0 2488 1 0 1 1 0 8 0
amappl2 88 1609 0 1564 2 0 2 2 0 8 0
amappl1 80 167634 0 167203 12 1 11 12 0 8 0
amappl 88 110471 0 110270 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 130 0 0 3 0 3 3 0 8 0
uaddrrnd 24 9548 0 9478 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 9548 0 9478 1 0 1 1 0 8 0
vmmpekpl 168 66229 0 66182 3 0 3 3 0 8 0
vmmpepl 168 878658 0 876548 422 299 123 139 0 357 14
vmsppl 272 9547 0 9478 6 1 5 5 0 8 0
rwobjpl 24 208364 0 200793 52 4 48 48 0 8 0
pdppl 4096 19102 0 19006 170 72 98 98 0 8 2
pvpl 32 4521590 0 4503787 467 280 187 242 0 265 1
pmappl 216 9547 0 9478 5 1 4 4 0 8 0
extentpl 40 57 0 38 1 0 1 1 0 8 0
phpool 112 1682 0 825 27 0 27 27 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
memcpy() at memcpy+0x15
ufs_inactive(ffff8000231310a8) at ufs_inactive+0x25f sys/ufs/ufs/ufs_inode.c:110
VOP_INACTIVE(fffffd8070061db8,ffff8000230dc008) at VOP_INACTIVE+0xb7 sys/kern/vfs_vops.c:505
vput(fffffd8070061db8) at vput+0xad sys/kern/vfs_subr.c:779
vn_closefile(fffffd806a629540,ffff8000230dc008) at vn_closefile+0xdd sys/kern/vfs_vnops.c:626
fdrop(fffffd806a629540,ffff8000230dc008) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd806a629540,ffff8000230dc008) at closef+0x117 sys/kern/kern_descrip.c:1263
syscall(ffff800023131310) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffab00, count: -9
ddb> machine ddbcpu 1
No such command
ddb> trace
memcpy() at memcpy+0x15
ufs_inactive(ffff8000231310a8) at ufs_inactive+0x25f sys/ufs/ufs/ufs_inode.c:110
VOP_INACTIVE(fffffd8070061db8,ffff8000230dc008) at VOP_INACTIVE+0xb7 sys/kern/vfs_vops.c:505
vput(fffffd8070061db8) at vput+0xad sys/kern/vfs_subr.c:779
vn_closefile(fffffd806a629540,ffff8000230dc008) at vn_closefile+0xdd sys/kern/vfs_vnops.c:626
fdrop(fffffd806a629540,ffff8000230dc008) at fdrop+0xc7 sys/kern/kern_descrip.c:1279
closef(fffffd806a629540,ffff8000230dc008) at closef+0x117 sys/kern/kern_descrip.c:1263
syscall(ffff800023131310) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffffab00, count: -9


---
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.

syzbot

unread,
Jun 1, 2022, 2:10:25 PM6/1/22
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages