uvm_fault: softclock (2)

1 view
Skip to first unread message

syzbot

unread,
Feb 23, 2023, 10:27:44 PM2/23/23
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1e5b016c5082 sync for __syscall removal
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=17d0168cc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=c702f141959c00799da5

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/452af0b271ef/disk-1e5b016c.raw.xz
bsd.gdb: https://storage.googleapis.com/syzbot-assets/5145fa4f4c7c/bsd-1e5b016c.gdb.xz
kernel image: https://storage.googleapis.com/syzbot-assets/992507fc6105/kernel-1e5b016c.xz

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

@ s��� uvm_fault(0xfffffd807f012968, 0x8, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at softclock+0xc7: movq %rcx,0x8(%rax)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
* 25154 46574 0 0 0x4000000 0 syz-executor.7
softclock(0) at softclock+0xc7 sys/kern/kern_timeout.c:713
softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90
Xsoftclock() at Xsoftclock+0x1f
buf_get(0,0,ab37848) at buf_get+0x750 sys/kern/vfs_bio.c:1186
geteblk(ab37848) at geteblk+0x2c sys/kern/vfs_bio.c:1061
readdisklabel(2902,ffffffff81a39c40,ffff800000cb1c00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96
vndopen(2902,1,2000,ffff80002b40db78) at vndopen+0x17a sys/dev/vnd.c:203
spec_open(ffff80002b407c78) at spec_open+0x3df sys/kern/spec_vnops.c:150
VOP_OPEN(fffffd806e74fc28,1,fffffd807f7d76e8,ffff80002b40db78) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138
vn_open(ffff80002b407ec8,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177
doopenat(ffff80002b40db78,ffffff9c,20000240,0,0,ffff80002b4080a0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127
syscall(ffff80002b408120) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5a9243c4d80, count: 2
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(0xfffffd807f012968, 0x8, 0, 2) -> e
ddb> trace
softclock(0) at softclock+0xc7 sys/kern/kern_timeout.c:713
softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90
Xsoftclock() at Xsoftclock+0x1f
buf_get(0,0,ab37848) at buf_get+0x750 sys/kern/vfs_bio.c:1186
geteblk(ab37848) at geteblk+0x2c sys/kern/vfs_bio.c:1061
readdisklabel(2902,ffffffff81a39c40,ffff800000cb1c00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96
vndopen(2902,1,2000,ffff80002b40db78) at vndopen+0x17a sys/dev/vnd.c:203
spec_open(ffff80002b407c78) at spec_open+0x3df sys/kern/spec_vnops.c:150
VOP_OPEN(fffffd806e74fc28,1,fffffd807f7d76e8,ffff80002b40db78) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138
vn_open(ffff80002b407ec8,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177
doopenat(ffff80002b40db78,ffffff9c,20000240,0,0,ffff80002b4080a0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127
syscall(ffff80002b408120) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5a9243c4d80, count: -13
ddb> show registers
rdi 0x4
rsi 0xd
rbp 0xffff80002b407850
rbx 0x1
rdx 0
rcx 0xffffffff82c10a70 timeout_todo
rax 0
r8 0x33
r9 0x33
r10 0x869b121d05a16f74
r11 0x93b0a334c7e1b5f8
r12 0xffffffff
r13 0xffffffff82c75da0 rdrand_tmo
r14 0
r15 0xffff8000217260f0
rip 0xffffffff81ad72f7 softclock+0xc7
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80002b407810
ss 0x10
softclock+0xc7: movq %rcx,0x8(%rax)
ddb> show proc
PROC (syz-executor.7) pid=25154 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=53, nice=20
forw=0xffffffffffffffff, list=0xffff80002b40d350,0xffffffff82cf3498
process=0xffff80002b40a3f0 user=0xffff80002b403000, vmspace=0xfffffd807f012968
estcpu=3, cpticks=11, pctcpu=0.0
user=0, sys=11, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
46574 312092 73993 0 2 0 syz-executor.7
*46574 25154 73993 0 7 0x4000000 syz-executor.7
41777 198106 0 0 3 0x14200 bored sosplice
98259 8265 11373 0 2 0 syz-executor.4
98259 452395 11373 0 3 0x4000000 smrbar syz-executor.4
98259 91534 11373 0 3 0x4000000 clonelk syz-executor.4
14807 328628 56385 0 2 0x4081000 syz-executor.5
14807 256011 56385 0 3 0x4003000 suspend syz-executor.5
95527 411476 61095 0 2 0 syz-executor.0
95527 397700 61095 0 3 0x4000080 fsleep syz-executor.0
76801 420823 15327 0 2 0 syz-executor.6
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10188 6413K 6418K 78643K 11289 0
pcb 13 8K 8K 78643K 15 0
rtable 234 6K 6K 78643K 355 0
ifaddr 75 20K 20K 78643K 77 0
counters 29 17K 17K 78643K 29 0
ioctlops 0 0K 2K 78643K 80 0
iov 0 0K 12K 78643K 75 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1318 82K 82K 78643K 1420 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 114 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 16 57K 77K 78643K 198 0
proc 56 58K 75K 78643K 473 0
subproc 104 6K 6K 78643K 104 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 99 6K 6K 78643K 99 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 43 201K 201K 78643K 43 0
exec 0 0K 1K 78643K 430 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 266 78K 79K 78643K 2761 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 12 0K 2K 78643K 28 0
temp 99 5763K 5827K 78643K 4097 0
kqueue 12 18K 20K 78643K 25 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 43 0 40 1 0 1 1 0 8 0
rtentry 112 111 0 1 4 0 4 4 0 8 0
unpcb 144 145 0 130 3 0 3 3 0 8 2
syncache 296 4 0 4 1 1 0 1 0 8 0
tcpqe 32 43 0 43 2 2 0 1 0 8 0
tcpcb 776 14 0 9 1 0 1 1 0 8 0
arp 88 18 0 0 1 0 1 1 0 8 0
inpcb 336 73 0 65 1 0 1 1 0 8 0
nd6 48 24 0 0 1 0 1 1 0 8 0
kcovpl 48 8 0 0 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 453 0 0 29 0 29 29 0 8 0
art_table 32 454 0 0 4 0 4 4 0 8 0
art_node 16 110 0 10 1 0 1 1 0 8 0
sysvmsgpl 40 29 0 21 1 0 1 1 0 8 0
semapl 112 112 0 102 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dirhash: pool(0xffffffff82bd74a8:dirhash): free list modified: page 0xffff8000216b1000; item ordinal 0; addr 0xffff8000216b2800 (p 0xfffffd806e768000); offset 0x0=0x0
pool(dirhash): free list modified: page 0xffff8000216b1000; item ordinal 0; addr 0xffff8000216b2800 (p 0xfffffd806e768000); offset 0x0=0x0
dirhash: pool(0xffffffff82bd74a8:dirhash): page inconsistency: page 0xffff8000216b1000; item ordinal 1; addr 0x56362c7357093618
dino2pl 256 1631 0 196 90 0 90 90 0 8 0
ffsino 240 1631 0 196 85 0 85 85 0 8 0
nchpl 144 1994 0 321 63 0 63 63 0 8 0
uvmvnodes 80 1813 0 0 37 0 37 37 0 8 0
vnodes 216 1813 0 0 101 0 101 101 0 8 0
namei 1024 7155 0 7155 3 2 1 3 0 8 1
namei: pool(0xffffffff82c74a18:namei): free list modified: page 0xffff80002169d000; item ordinal 0; addr 0xffff80002169e400 (p 0xfffffd8069e74000); offset 0x0=0x0
pool(namei): free list modified: page 0xffff80002169d000; item ordinal 0; addr 0xffff80002169e400 (p 0xfffffd8069e74000); offset 0x0=0x0
namei: pool(0xffffffff82c74a18:namei): page inconsistency: page 0xffff80002169d000; item ordinal 1; addr 0x15bc66742d32daae
kstatmem 264 24 0 0 2 0 2 2 0 8 0
scxspl 216 6460 0 6460 2 1 1 2 0 8 1
plimitpl 152 27 0 12 1 0 1 1 0 8 0
sigapl 424 513 0 448 8 0 8 8 0 8 0
futexpl 64 1167 0 1166 1 0 1 1 0 8 0
knotepl 120 6150 0 6070 3 0 3 3 0 8 0
kqueuepl 184 27 0 19 1 0 1 1 0 8 0
pipepl 288 204 0 176 7 0 7 7 0 8 5
fdescpl 432 476 0 449 4 0 4 4 0 8 0
filepl 120 2480 0 2238 15 0 15 15 0 8 6
lockfpl 104 26 0 24 1 0 1 1 0 8 0
lockfspl 48 13 0 11 1 0 1 1 0 8 0
sessionpl 144 23 0 7 1 0 1 1 0 8 0
pgrppl 48 23 0 7 1 0 1 1 0 8 0
ucredpl 104 430 0 419 1 0 1 1 0 8 0
zombiepl 144 450 0 448 1 0 1 1 0 8 0
processpl 1008 513 0 448 10 1 9 9 0 8 0
processpl: pool(0xffffffff82cf3698:processpl): page inconsistency: page 0x0; at page head addr 0xffff800021721f90 (p 0xffff800021720000)
procpl 696 658 0 574 10 1 9 9 0 8 0
procpl: pool(0xffffffff82cf34f0:procpl): page inconsistency: page 0x0; at page head addr 0xffff800021727f90 (p 0xffff800021726000)
sockpl 456 261 0 235 12 1 11 12 0 8 7
mcl16k 16384 11 0 11 1 0 1 1 0 8 1
mcl12k 12288 3 0 3 1 0 1 1 0 8 1
mcl8k 8192 17 0 17 1 0 1 1 0 8 1
mcl4k 4096 16 0 16 1 0 1 1 0 8 1
mcl2k 2048 73451 0 73378 33 19 14 33 0 8 3
mtagpl 96 4 0 4 1 1 0 1 0 8 0
mbufpl 256 116119 0 115878 28 11 17 21 0 8 0
bufpl 288 4066 0 140 281 0 281 281 0 8 0
anonpl 24 147291 0 131938 120 0 120 120 0 188 24
amapchunkpl 152 7896 0 7240 29 0 29 29 0 158 3
amappl16 200 3190 0 2711 43 8 35 38 0 8 8
amappl15 192 23 0 22 1 0 1 1 0 8 0
amappl14 184 153 0 140 2 1 1 2 0 8 0
amappl13 176 7 0 7 1 1 0 1 0 8 0
amappl12 168 402 0 400 1 0 1 1 0 8 0
amappl11 160 49 0 39 1 0 1 1 0 8 0
amappl10 152 36 0 25 1 0 1 1 0 8 0
amappl9 144 958 0 956 1 0 1 1 0 8 0
amappl8 136 133 0 85 2 0 2 2 0 8 0
amappl7 128 133 0 116 2 0 2 2 0 8 0
amappl6 120 147 0 138 2 1 1 2 0 8 0
amappl5 112 114 0 108 1 0 1 1 0 8 0
amappl4 104 460 0 434 2 1 1 2 0 8 0
amappl3 96 784 0 735 2 0 2 2 0 8 0
amappl2 88 824 0 757 3 1 2 3 0 8 0
amappl1 80 13106 0 12424 26 8 18 26 0 8 2
amappl 88 2264 0 2105 5 0 5 5 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 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 476 0 449 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 476 0 449 1 0 1 1 0 8 0
vmmpekpl 168 10035 0 9997 2 0 2 2 0 8 0
vmmpepl 168 54616 0 52108 137 0 137 137 0 357 25
vmsppl 344 475 0 449 3 0 3 3 0 8 0
rwobjpl 24 18573 0 15235 22 0 22 22 0 8 0
pdppl 4096 958 0 898 102 38 64 70 0 8 4
pvpl 32 360035 0 339572 360 19 341 360 0 265 170
pmappl 216 475 0 449 2 0 2 2 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 669 0 72 18 0 18 18 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
softclock(0) at softclock+0xc7 sys/kern/kern_timeout.c:713
softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90
Xsoftclock() at Xsoftclock+0x1f
buf_get(0,0,ab37848) at buf_get+0x750 sys/kern/vfs_bio.c:1186
geteblk(ab37848) at geteblk+0x2c sys/kern/vfs_bio.c:1061
readdisklabel(2902,ffffffff81a39c40,ffff800000cb1c00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96
vndopen(2902,1,2000,ffff80002b40db78) at vndopen+0x17a sys/dev/vnd.c:203
spec_open(ffff80002b407c78) at spec_open+0x3df sys/kern/spec_vnops.c:150
VOP_OPEN(fffffd806e74fc28,1,fffffd807f7d76e8,ffff80002b40db78) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138
vn_open(ffff80002b407ec8,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177
doopenat(ffff80002b40db78,ffffff9c,20000240,0,0,ffff80002b4080a0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127
syscall(ffff80002b408120) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5a9243c4d80, count: -13
ddb> machine ddbcpu 1
No such command
ddb> trace
softclock(0) at softclock+0xc7 sys/kern/kern_timeout.c:713
softintr_dispatch(0) at softintr_dispatch+0xd1 sys/arch/amd64/amd64/softintr.c:90
Xsoftclock() at Xsoftclock+0x1f
buf_get(0,0,ab37848) at buf_get+0x750 sys/kern/vfs_bio.c:1186
geteblk(ab37848) at geteblk+0x2c sys/kern/vfs_bio.c:1061
readdisklabel(2902,ffffffff81a39c40,ffff800000cb1c00,0) at readdisklabel+0x145 sys/arch/amd64/amd64/disksubr.c:96
vndopen(2902,1,2000,ffff80002b40db78) at vndopen+0x17a sys/dev/vnd.c:203
spec_open(ffff80002b407c78) at spec_open+0x3df sys/kern/spec_vnops.c:150
VOP_OPEN(fffffd806e74fc28,1,fffffd807f7d76e8,ffff80002b40db78) at VOP_OPEN+0x6c sys/kern/vfs_vops.c:138
vn_open(ffff80002b407ec8,1,0) at vn_open+0x467 sys/kern/vfs_vnops.c:177
doopenat(ffff80002b40db78,ffffff9c,20000240,0,0,ffff80002b4080a0) at doopenat+0x26a sys/kern/vfs_syscalls.c:1127
syscall(ffff80002b408120) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:625
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5a9243c4d80, count: -13


---
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 6, 2023, 5:13:46 PM6/6/23
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