Hello,
syzbot found the following issue on:
HEAD commit: d9ef728109ec Update ruby-module.5 for Ruby 4.0 addition
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=16ae3022580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link:
https://syzkaller.appspot.com/bug?extid=1150d81541dc26fe0a7b
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/2d3ee194aed9/disk-d9ef7281.raw.xz
bsd.gdb:
https://storage.googleapis.com/syzbot-assets/d807223c1ee0/bsd-d9ef7281.gdb.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/c37641105e90/kernel-d9ef7281.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+1150d8...@syzkaller.appspotmail.com
panic: uvm_vnp_uncache: vnode not locked!
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*490886 5430 60929 0x10 0x4000000 0 syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff833c9d99) at panic+0x1cf sys/kern/subr_prf.c:198
uvm_vnp_uncache(fffffd8066ee5458) at uvm_vnp_uncache+0x20c
uvm_mmapfile(fffffd806c877a28,ffff80003c9f9298,2000,2,6,11,479a38638f9413a2,4,fffffd806c877a28,11) at uvm_mmapfile+0x32f sys/uvm/uvm_mmap.c:1101
sys_mmap(ffff800036117a18,ffff80003c9f93f0,ffff80003c9f9340) at sys_mmap+0xe6a sys/uvm/uvm_mmap.c:396
syscall(ffff80003c9f93f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c9f93f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x27bde5a9dd0, count: 8
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_vnp_uncache: vnode not locked!
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff833c9d99) at panic+0x1cf sys/kern/subr_prf.c:198
uvm_vnp_uncache(fffffd8066ee5458) at uvm_vnp_uncache+0x20c
uvm_mmapfile(fffffd806c877a28,ffff80003c9f9298,2000,2,6,11,479a38638f9413a2,4,fffffd806c877a28,11) at uvm_mmapfile+0x32f sys/uvm/uvm_mmap.c:1101
sys_mmap(ffff800036117a18,ffff80003c9f93f0,ffff80003c9f9340) at sys_mmap+0xe6a sys/uvm/uvm_mmap.c:396
syscall(ffff80003c9f93f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c9f93f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x27bde5a9dd0, count: -7
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff80003c9f9010
rbx 0x1
rdx 0xffff800001544180
rcx 0
rax 0xffff800036117a18
r8 0x101010101010101
r9 0x8080808080808080
r10 0x599d2d5e19bcafa3
r11 0xc84d2b3c7631513b
r12 0
r13 0
r14 0
r15 0x1
rip 0xffffffff83077035 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80003c9f9000
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor) tid=490886 pid=5430 tcnt=4 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff800036117780,0xffffffff8389be00
process=0xffff80003c9ae420 user=0xffff80003c9f4000, vmspace=0xfffffd806c877a28
estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
67970 72513 24976 0 2 0 syz-executor
93996 111046 68076 0 2 0 syz-executor
93996 113193 68076 0 3 0x4000080 piperd syz-executor
5430 368599 97294 60929 2 0x10 syz-executor
5430 248291 97294 60929 3 0x4000090 lockf syz-executor
5430 307288 97294 60929 3 0x4000090 lockf syz-executor
* 5430 490886 97294 60929 7 0x4000010 syz-executor
22625 2055 54278 0 2 0 syz-executor
22625 483988 54278 0 3 0x4000080 fsleep syz-executor
38563 511012 1 0 3 0x82 nanoslp getty
28853 376143 56117 0 2 0 syz-executor
28853 67219 56117 0 3 0x4000080 bell syz-executor
28853 242507 56117 0 3 0x4000080 fsleep syz-executor
47133 227890 88335 0 2 0xc80 syz-executor
47133 60982 88335 0 3 0x4000080 fifow syz-executor
2564 391114 36311 0 2 0 syz-executor
2564 18113 36311 0 2 0x4000000 syz-executor
2564 230503 36311 0 3 0x4000000 inode syz-executor
2564 516343 36311 0 3 0x4000080 fsleep syz-executor
24976 402631 26077 0 2 0xc82 syz-executor
54278 211883 26077 0 2 0xc82 syz-executor
68076 490890 26077 0 2 0xc82 syz-executor
56117 519199 26077 0 2 0xc82 syz-executor
88335 349310 26077 0 2 0xc82 syz-executor
36311 384475 26077 0 2 0xc82 syz-executor
38578 107294 26077 0 2 0xc82 syz-executor
97294 440432 26077 0 2 0xc82 syz-executor
26077 8984 97122 0 3 0x82 kqread syz-executor
97122 69447 60112 0 3 0x10008a sigsusp ksh
60112 253731 16787 0 3 0x98 kqread sshd-session
16787 104479 26626 0 3 0x92 kqread sshd-session
26626 272784 1 0 3 0x88 kqread sshd
97755 254045 35608 73 3 0x1100090 kqread syslogd
35608 327680 1 0 3 0x100082 sbwait syslogd
58564 69916 1 0 3 0x100080 kqread resolvd
29127 347585 22466 77 3 0x100092 kqread dhcpleased
46996 317653 22466 77 3 0x100092 kqread dhcpleased
22466 154179 1 0 3 0x80 kqread dhcpleased
79029 224498 0 0 3 0x14200 bored smr
47421 121116 0 0 2 0x14200 zerothread
73180 365368 0 0 3 0x14200 aiodoned aiodoned
35435 473505 0 0 3 0x14200 syncer update
73753 168552 0 0 3 0x14200 cleaner cleaner
60640 299025 0 0 3 0x14200 reaper reaper
19163 441584 0 0 3 0x14200 pgdaemon pagedaemon
43839 472449 0 0 3 0x14200 bored viomb
23169 348533 0 0 3 0x40014200 acpi0 acpi0
21202 382308 0 0 3 0x14200 bored softnet0
10179 205539 0 0 3 0x14200 bored systqmp
25474 388236 0 0 3 0x14200 bored systq
89842 50590 0 0 3 0x40014200 tmoslp softclock
83006 155175 0 0 3 0x40014200 idle0
1 196195 0 0 3 0x82 wait init
0 0 -1 0 3 0x10010200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11038 12178K 13356K 166960K 13276 0
pcb 18 15K 17K 166960K 99 0
rtable 201 9K 10K 166960K 425 0
pf 27 12K 13K 166960K 69 0
ifaddr 35 6K 7K 166960K 66 0
ifgroup 42 1K 2K 166960K 96 0
sysctl 2 1K 9K 166960K 9 0
counters 31 17K 18K 166960K 89 0
ioctlops 0 0K 4K 166960K 115 0
iov 0 0K 16K 166960K 97 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1426 90K 90K 166960K 1940 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 5 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 80 0
dirhash 12 2K 2K 166960K 15 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 18 65K 81K 166960K 515 0
sigio 0 0K 0K 166960K 8 0
proc 60 59K 91K 166960K 531 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 116 0
in_multi 77 5K 7K 166960K 116 0
ether_multi 1 0K 0K 166960K 3 0
mrt 0 0K 0K 166960K 1 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 79 360K 360K 166960K 79 0
exec 0 0K 1K 166960K 434 0
fusefs mount 1 32K 32K 166960K 1 0
pfkey data 0 0K 0K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 237 143K 164K 166960K 6332 0
UVM aobj 17 4K 4K 166960K 21 0
pinsyscall 39 78K 87K 166960K 1611 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 89 0
NDP 9 0K 2K 166960K 42 0
temp 41 8663K 8738K 166960K 27005 0
kqueue 14 22K 34K 166960K 114 0
SYN cache 2 16K 16K 166960K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 135 0 131 3 0 3 3 0 8 2
rtentry 136 123 0 41 4 0 4 4 0 8 0
unpcb 144 369 0 348 4 0 4 4 0 8 3
syncache 336 7 0 7 1 0 1 1 0 8 1
tcpqe 32 3 0 3 1 0 1 1 0 8 1
tcpcb 736 206 0 199 10 1 9 10 0 8 8
arp 96 19 0 4 1 0 1 1 0 8 0
ipq 40 1 0 0 1 0 1 1 0 8 0
ipqe 40 1 0 0 1 0 1 1 0 8 0
inpcb 328 481 0 468 10 0 10 10 0 8 8
ip6q 72 2 0 1 1 0 1 1 0 8 0
ip6af 40 4 0 2 1 0 1 1 0 8 0
nd6 112 24 0 6 1 0 1 1 0 8 0
pkpcb 40 68 0 68 1 0 1 1 0 8 1
kcovpl 48 8 0 0 1 0 1 1 0 8 0
ppxss 1072 50 0 50 1 0 1 1 0 8 1
pppxif 1384 2 0 2 1 0 1 1 0 8 1
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 553 0 196 29 0 29 29 0 8 5
art_table 40 554 0 196 5 0 5 5 0 8 0
art_node 32 122 0 50 1 0 1 1 0 8 0
sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1
semupl 112 1 0 1 1 0 1 1 0 8 1
semapl 112 77 0 67 1 0 1 1 0 8 0
shmpl 112 17 0 4 1 0 1 1 0 8 0
dirhash 1024 19 0 2 3 0 3 3 0 8 0
dino2pl 256 2437 0 934 95 0 95 95 0 8 0
ffsino 256 2437 0 934 95 0 95 95 0 8 0
nchpl 144 3156 0 1459 64 0 64 64 0 8 0
rtmask 32 6 0 6 1 0 1 1 0 8 1
vnodes 216 2655 0 0 148 0 148 148 0 8 0
namei 1024 10660 0 10660 2 0 2 2 0 8 2
vcpupl 3904 1 0 0 1 0 1 1 0 8 0
vmpool 808 1 0 0 1 0 1 1 0 8 0
kstatmem 264 52 0 34 2 0 2 2 0 8 0
scsiplug 72 1 0 1 1 0 1 1 0 8 1
scxspl 216 10862 0 10862 2 0 2 2 1 8 2
plimitpl 152 88 0 71 1 0 1 1 0 8 0
sigapl 424 827 0 784 8 0 8 8 0 8 3
knotepl 120 19818 0 19764 24 14 10 24 0 8 8
kqueuepl 184 216 0 205 4 0 4 4 0 8 3
pipepl 304 147 0 118 3 0 3 3 0 8 0
fdescpl 448 794 0 764 4 0 4 4 0 8 0
filepl 120 4945 0 4713 12 0 12 12 0 8 4
lockfpl 104 175 0 170 1 0 1 1 0 8 0
lockfspl 48 73 0 70 1 0 1 1 0 8 0
sessionpl 144 25 0 18 1 0 1 1 0 8 0
pgrppl 48 37 0 22 1 0 1 1 0 8 0
ucredpl 104 938 0 925 1 0 1 1 0 8 0
zombiepl 144 785 0 784 1 0 1 1 0 8 0
processpl 1152 827 0 784 5 0 5 5 0 8 1
procpl 664 1409 0 1355 7 0 7 7 0 8 0
sosppl 176 2 0 1 1 0 1 1 0 8 0
sockpl 552 1064 0 1026 11 0 11 11 0 8 7
mcl64k 65536 16 0 16 1 0 1 1 0 8 1
mcl8k 8192 6 0 6 1 0 1 1 0 8 1
mcl4k 4096 2978 0 2923 14 0 14 14 0 8 6
mcl2k 2048 776 0 773 4 0 4 4 0 8 3
mtagpl 96 23 0 7 1 0 1 1 0 8 0
mbufpl 256 8424 0 8254 15 0 15 15 0 8 3
bufpl 280 4918 0 119 343 0 343 343 0 8 0
anonpl 24 142722 0 136525 51 0 51 51 0 187 13
amapchunkpl 152 19828 0 19324 31 0 31 31 0 158 9
amappl16 200 2427 0 2224 19 4 15 15 0 8 4
amappl15 192 5 0 5 1 0 1 1 0 8 1
amappl14 184 19 0 19 1 0 1 1 0 8 1
amappl13 176 417 0 416 1 0 1 1 0 8 0
amappl12 168 1146 0 1107 2 0 2 2 0 8 0
amappl11 160 2 0 2 1 0 1 1 0 8 1
amappl10 152 42 0 32 1 0 1 1 0 8 0
amappl9 144 266 0 266 1 0 1 1 0 8 1
amappl8 136 19 0 17 1 0 1 1 0 8 0
amappl7 128 78 0 76 1 0 1 1 0 8 0
amappl6 120 264 0 253 1 0 1 1 0 8 0
amappl5 112 74 0 67 1 0 1 1 0 8 0
amappl4 104 390 0 367 1 0 1 1 0 8 0
amappl3 96 3771 0 3663 4 0 4 4 0 8 1
amappl2 88 545 0 490 2 0 2 2 0 8 0
amappl1 80 11518 0 10977 15 0 15 15 0 8 3
amappl 88 5533 0 5365 5 0 5 5 0 92 0
uvmvnodes 80 111 0 0 3 0 3 3 0 8 0
dma65536 65536 1 0 1 1 0 1 1 0 8 1
dma4096 4096 1 0 1 1 0 1 1 0 8 1
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma256 256 6 0 6 1 0 1 1 0 8 1
dma128 128 254 0 254 1 0 1 1 0 8 1
dma64 64 6 0 6 1 0 1 1 0 8 1
dma32 32 7 0 7 1 0 1 1 0 8 1
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 72 20 0 4 1 0 1 1 0 8 0
uaddrrnd 24 794 0 764 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 794 0 764 1 0 1 1 0 8 0
vmmpekpl 168 8072 0 8039 2 0 2 2 0 8 0
vmmpepl 168 57900 0 55903 92 0 92 92 0 357 4
vmsppl 368 793 0 764 4 0 4 4 0 8 1
rwobjpl 40 18466 0 17321 13 0 13 13 0 8 0
pdppl 4096 1597 0 1529 97 28 69 75 0 8 1
pvpl 32 380484 0 368548 130 0 130 130 0 265 16
pmappl 216 794 0 764 2 0 2 2 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 381 0 29 11 0 11 11 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff833c9d99) at panic+0x1cf sys/kern/subr_prf.c:198
uvm_vnp_uncache(fffffd8066ee5458) at uvm_vnp_uncache+0x20c
uvm_mmapfile(fffffd806c877a28,ffff80003c9f9298,2000,2,6,11,479a38638f9413a2,4,fffffd806c877a28,11) at uvm_mmapfile+0x32f sys/uvm/uvm_mmap.c:1101
sys_mmap(ffff800036117a18,ffff80003c9f93f0,ffff80003c9f9340) at sys_mmap+0xe6a sys/uvm/uvm_mmap.c:396
syscall(ffff80003c9f93f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c9f93f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x27bde5a9dd0, count: -7
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff833c9d99) at panic+0x1cf sys/kern/subr_prf.c:198
uvm_vnp_uncache(fffffd8066ee5458) at uvm_vnp_uncache+0x20c
uvm_mmapfile(fffffd806c877a28,ffff80003c9f9298,2000,2,6,11,479a38638f9413a2,4,fffffd806c877a28,11) at uvm_mmapfile+0x32f sys/uvm/uvm_mmap.c:1101
sys_mmap(ffff800036117a18,ffff80003c9f93f0,ffff80003c9f9340) at sys_mmap+0xe6a sys/uvm/uvm_mmap.c:396
syscall(ffff80003c9f93f0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80003c9f93f0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x27bde5a9dd0, count: -7
---
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