assert "_kernel_lock_held()" failed in uvm_vnode.c

0 views
Skip to first unread message

syzbot

unread,
Aug 31, 2021, 11:39:17 PMAug 31
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 444296aeff58 Honour netinet6 when generating symlinks to t..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=113c3e9d300000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=131ed701f32e49de9ad2

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+131ed7...@syzkaller.appspotmail.com

login: panic: kernel diagnostic assertion "_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/uvm/uvm_vnode.c", line 285
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*214802 40518 0 0 0x4000000 0 syz-executor.1
426871 27948 0 0x2 0x4000480 1 syz-fuzzer
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff824502ee) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824bffea,ffffffff8244811a,11d,ffffffff824ce6c6) at __assert+0x25 sys/kern/subr_prf.c:161
uvn_reference(fffffd8069767d98) at uvn_reference+0x84 sys/uvm/uvm_vnode.c:285
uvm_mapent_clone(fffffd806f5bd178,1000,2000,0,7,7) at uvm_mapent_clone+0x1a2 sys/uvm/uvm_map.c:3810
uvm_share(fffffd806f5bd178,0,7,fffffd806f5bd5c8,20000000,200000) at uvm_share+0x45c uvm_mapent_share sys/uvm/uvm_map.c:3840 [inline]
uvm_share(fffffd806f5bd178,0,7,fffffd806f5bd5c8,20000000,200000) at uvm_share+0x45c sys/uvm/uvm_map.c:3739
vm_impl_init_vmx(ffff80002126d810,ffff800021192008) at vm_impl_init_vmx+0xb4 sys/arch/amd64/amd64/vmm.c:1591
vm_create(ffff800000b55800,ffff800021192008) at vm_create+0x19b vm_impl_init sys/arch/amd64/amd64/vmm.c:1690 [inline]
vm_create(ffff800000b55800,ffff800021192008) at vm_create+0x19b sys/arch/amd64/amd64/vmm.c:1510
vmmioctl(a00,c5005601,ffff800000b55800,1,ffff800021192008) at vmmioctl+0x1f2
VOP_IOCTL(fffffd806e018750,c5005601,ffff800000b55800,1,fffffd807f7d8600,ffff800021192008) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295
vn_ioctl(fffffd8069ffbd30,c5005601,ffff800000b55800,ffff800021192008) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531
sys_ioctl(ffff800021192008,ffff8000230cb498,ffff8000230cb4e0) at sys_ioctl+0x4a2
syscall(ffff8000230cb560) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000230cb560) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe57e0a6fa80, count: 1
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: kernel diagnostic assertion "_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/uvm/uvm_vnode.c", line 285
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff824502ee) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824bffea,ffffffff8244811a,11d,ffffffff824ce6c6) at __assert+0x25 sys/kern/subr_prf.c:161
uvn_reference(fffffd8069767d98) at uvn_reference+0x84 sys/uvm/uvm_vnode.c:285
uvm_mapent_clone(fffffd806f5bd178,1000,2000,0,7,7) at uvm_mapent_clone+0x1a2 sys/uvm/uvm_map.c:3810
uvm_share(fffffd806f5bd178,0,7,fffffd806f5bd5c8,20000000,200000) at uvm_share+0x45c uvm_mapent_share sys/uvm/uvm_map.c:3840 [inline]
uvm_share(fffffd806f5bd178,0,7,fffffd806f5bd5c8,20000000,200000) at uvm_share+0x45c sys/uvm/uvm_map.c:3739
vm_impl_init_vmx(ffff80002126d810,ffff800021192008) at vm_impl_init_vmx+0xb4 sys/arch/amd64/amd64/vmm.c:1591
vm_create(ffff800000b55800,ffff800021192008) at vm_create+0x19b vm_impl_init sys/arch/amd64/amd64/vmm.c:1690 [inline]
vm_create(ffff800000b55800,ffff800021192008) at vm_create+0x19b sys/arch/amd64/amd64/vmm.c:1510
vmmioctl(a00,c5005601,ffff800000b55800,1,ffff800021192008) at vmmioctl+0x1f2
VOP_IOCTL(fffffd806e018750,c5005601,ffff800000b55800,1,fffffd807f7d8600,ffff800021192008) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295
vn_ioctl(fffffd8069ffbd30,c5005601,ffff800000b55800,ffff800021192008) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531
sys_ioctl(ffff800021192008,ffff8000230cb498,ffff8000230cb4e0) at sys_ioctl+0x4a2
syscall(ffff8000230cb560) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000230cb560) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe57e0a6fa80, count: -14
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff8000230cae00
rbx 0xffffffff8280abff cpu_info_full_primary+0x2bff
rdx 0x8b
rcx 0x2
rax 0x8b
r8 0xffffffff81a0be34 kprintf+0x144
r9 0x1
r10 0xfc4263e3859fd5f9
r11 0xff75f686bc6d8d77
r12 0xffffffff8280aa00 cpu_info_full_primary+0x2a00
r13 0
r14 0
r15 0x1
rip 0xffffffff81e3e908 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff8000230cadf0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.1) pid=214802 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff80002121fa40,0xffffffff82913618
process=0xffff8000ffff8c98 user=0xffff8000230c6000, vmspace=0xfffffd806f5bd5c8
estcpu=36, cpticks=2, pctcpu=0.0
user=0, sys=2, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
7081 357975 95598 0 2 0 syz-executor.0
7081 52323 95598 0 3 0x4000080 fsleep syz-executor.0
40518 437630 71838 0 2 0 syz-executor.1
40518 473260 71838 0 3 0x4000000 inode syz-executor.1
40518 18057 71838 0 2 0x4000000 syz-executor.1
*40518 214802 71838 0 7 0x4000000 syz-executor.1
4125 502704 0 0 3 0x14200 bored sosplice
83497 458895 1 0 3 0x100083 ttyin getty
71838 110822 27948 0 2 0x482 syz-executor.1
95598 442328 27948 0 2 0x482 syz-executor.0
27948 12730 86300 0 3 0x82 thrsleep syz-fuzzer
27948 426871 86300 0 7 0x4000482 syz-fuzzer
27948 211480 86300 0 3 0x4000082 thrsleep syz-fuzzer
27948 233677 86300 0 3 0x4000082 thrsleep syz-fuzzer
27948 492039 86300 0 3 0x4000082 thrsleep syz-fuzzer
27948 448657 86300 0 3 0x4000082 thrsleep syz-fuzzer
27948 357734 86300 0 3 0x4000082 thrsleep syz-fuzzer
27948 46691 86300 0 2 0x4000482 syz-fuzzer
86300 416281 713 0 3 0x10008a sigsusp ksh
713 308793 50318 0 3 0x9a select sshd
50318 462032 1 0 3 0x88 select sshd
88874 512119 66736 74 3 0x100092 bpf pflogd
66736 150053 1 0 3 0x80 netio pflogd
68478 491101 9681 73 3 0x100090 kqread syslogd
9681 145153 1 0 3 0x100082 netio syslogd
89042 130703 1 0 3 0x100080 kqread resolvd
81993 449304 1650 77 3 0x100092 kqread dhcpleased
91608 213123 1650 77 3 0x100092 kqread dhcpleased
1650 25181 1 0 3 0x80 kqread dhcpleased
92315 358763 0 0 3 0x14200 bored smr
30919 100067 0 0 2 0x14200 zerothread
53743 450126 0 0 3 0x14200 aiodoned aiodoned
27588 410015 0 0 3 0x14200 syncer update
30034 141015 0 0 3 0x14200 cleaner cleaner
49667 309627 0 0 3 0x14200 reaper reaper
90010 159506 0 0 3 0x14200 pgdaemon pagedaemon
60488 79780 0 0 3 0x14200 bored crynlk
67498 88643 0 0 3 0x14200 bored crypto
44453 505653 0 0 3 0x14200 bored viomb
43359 357753 0 0 3 0x40014200 acpi0 acpi0
35496 266262 0 0 3 0x40014200 idle1
91939 407775 0 0 3 0x14200 bored softnet
57831 457939 0 0 3 0x14200 bored systqmp
13300 151507 0 0 2 0x14200 systq
46427 212570 0 0 3 0x40014200 bored softclock
40053 209280 0 0 3 0x40014200 idle0
1 108394 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 40518 (syz-executor.1) thread 0xffff800021192d28 (18057)
exclusive rrwlock inode r = 0 (0xfffffd806a02f1b0)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1 rw_enter+0x3e2 sys/kern/kern_rwlock.c:310
#2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:614
#4 vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5 vn_write+0x11d sys/kern/vfs_vnops.c:411
#6 dofilewritev+0x1a3 sys/kern/sys_generic.c:365
#7 sys_pwritev+0xb2 sys/kern/vfs_syscalls.c:3357
#8 syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8 syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#9 Xsyscall+0x128
Process 40518 (syz-executor.1) thread 0xffff800021192008 (214802)
shared rwlock vmmaplk r = 0 (0xfffffd806f5bd5e0)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1 uvm_share+0xd2 vm_map_lock_read_ln sys/uvm/uvm_map.c:5447 [inline]
#1 uvm_share+0xd2 sys/uvm/uvm_map.c:3691
#2 vm_impl_init_vmx+0xb4 sys/arch/amd64/amd64/vmm.c:1591
#3 vm_create+0x19b vm_impl_init sys/arch/amd64/amd64/vmm.c:1690 [inline]
#3 vm_create+0x19b sys/arch/amd64/amd64/vmm.c:1510
#4 vmmioctl+0x1f2
#5 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295
#6 vn_ioctl+0xba sys/kern/vfs_vnops.c:531
#7 sys_ioctl+0x4a2
#8 syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8 syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#9 Xsyscall+0x128
exclusive rwlock vmmaplk r = 0 (0xfffffd806f5bd190)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1 rw_enter+0x3e2 sys/kern/kern_rwlock.c:310
#2 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5425
#3 uvm_share+0xaa vm_map_lock_read_ln sys/uvm/uvm_map.c:5446 [inline]
#3 uvm_share+0xaa sys/uvm/uvm_map.c:3691
#4 vm_impl_init_vmx+0xb4 sys/arch/amd64/amd64/vmm.c:1591
#5 vm_create+0x19b vm_impl_init sys/arch/amd64/amd64/vmm.c:1690 [inline]
#5 vm_create+0x19b sys/arch/amd64/amd64/vmm.c:1510
#6 vmmioctl+0x1f2
#7 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295
#8 vn_ioctl+0xba sys/kern/vfs_vnops.c:531
#9 sys_ioctl+0x4a2
#10 syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#10 syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#11 Xsyscall+0x128
exclusive rwlock vmlistlock r = 0 (0xffff800000655c78)
#0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1 vm_create+0x12e vm_impl_init sys/arch/amd64/amd64/vmm.c:1688 [inline]
#1 vm_create+0x12e sys/arch/amd64/amd64/vmm.c:1510
#2 vmmioctl+0x1f2
#3 VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295
#4 vn_ioctl+0xba sys/kern/vfs_vnops.c:531
#5 sys_ioctl+0x4a2
#6 syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#6 syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#7 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10122 6421K 6744K 78643K 11517 0
pcb 13 8K 8K 78643K 28 0
rtable 106 3K 3K 78643K 172 0
ifaddr 44 10K 10K 78643K 45 0
counters 44 34K 34K 78643K 44 0
ioctlops 1 2K 4K 78643K 1482 0
iov 1 12K 12K 78643K 1 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 6 0
vnodes 1223 77K 77K 78643K 1452 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 16 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 72 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 6 17K 25K 78643K 576 0
proc 69 87K 111K 78643K 478 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 26 0
in_multi 33 2K 2K 78643K 33 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 2K 78643K 417 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 186 24K 24K 78643K 8511 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 1 0
NDP 6 0K 0K 78643K 10 0
temp 74 4197K 4261K 78643K 3600 0
kqueue 10 14K 14K 78643K 10 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 22 0 0 1 0 1 1 0 8 0
rtpcb 120 32 0 29 1 0 1 1 0 8 0
rtentry 112 45 0 1 2 0 2 2 0 8 0
unpcb 120 214 0 199 1 0 1 1 0 8 0
syncache 296 4 0 4 1 1 0 1 0 8 0
tcpqe 32 27 0 27 1 1 0 1 0 8 0
tcpcb 736 87 0 83 3 0 3 3 0 8 2
arp 120 6 0 0 1 0 1 1 0 8 0
inpcb 304 297 0 290 2 0 2 2 0 8 1
nd6 48 6 0 0 1 0 1 1 0 8 0
kcovpl 48 2 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 14 0 1 1 0 1 1 0 8 0
pfstkey 112 14 0 1 1 0 1 1 0 8 0
pfstate 320 14 0 1 2 0 2 2 0 8 0
pfrule 1360 21 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 188 0 0 12 0 12 12 0 8 0
art_table 32 189 0 0 2 0 2 2 0 8 0
art_node 16 44 0 4 1 0 1 1 0 8 0
sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0
semapl 112 70 0 60 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 2202 0 789 89 0 89 89 0 8 0
ffsino 272 2202 0 789 95 0 95 95 0 8 0
nchpl 144 3071 0 1449 61 0 61 61 0 8 0
uvmvnodes 72 2370 0 0 44 0 44 44 0 8 0
vnodes 224 2370 0 0 140 0 140 140 0 8 0
namei 1024 8415 0 8415 1 0 1 1 0 8 1
percpumem 16 34 0 0 1 0 1 1 0 8 0
vmpool 560 1 0 0 1 0 1 1 0 8 0
scxspl 216 8780 0 8780 2 1 1 2 0 8 1
plimitpl 152 42 0 33 1 0 1 1 0 8 0
sigapl 424 828 0 792 5 0 5 5 0 8 0
futexpl 56 4238 0 4237 1 0 1 1 0 8 0
knotepl 112 50 0 0 2 0 2 2 0 8 0
kqueuepl 216 185 0 178 1 0 1 1 0 8 0
pipepl 336 83 0 72 1 0 1 1 0 8 0
fdescpl 496 811 0 792 3 0 3 3 0 8 0
filepl 152 3194 0 3075 6 0 6 6 0 8 1
lockfpl 104 87 0 84 1 0 1 1 0 8 0
lockfspl 48 24 0 21 1 0 1 1 0 8 0
sessionpl 144 19 0 8 1 0 1 1 0 8 0
pgrppl 48 29 0 18 1 0 1 1 0 8 0
ucredpl 96 446 0 434 1 0 1 1 0 8 0
zombiepl 144 792 0 792 1 0 1 1 0 8 1
processpl 1072 828 0 792 3 0 3 3 0 8 0
procpl 672 1471 0 1424 5 0 5 5 0 8 1
sosppl 168 23 0 23 1 0 1 1 0 8 1
sockpl 480 575 0 550 5 0 5 5 0 8 1
mcl12k 12288 8 0 0 1 0 1 1 0 8 0
mcl8k 8192 3 0 0 1 0 1 1 0 8 0
mcl4k 4096 1 0 0 1 0 1 1 0 8 0
mcl2k2 2112 3 0 0 1 0 1 1 0 8 0
mcl2k 2048 139 0 0 17 0 17 17 0 8 0
mtagpl 96 8 0 0 1 0 1 1 0 8 0
mbufpl 256 291 0 0 18 0 18 18 0 8 0
bufpl 280 4185 0 137 290 0 290 290 0 8 0
anonpl 24 178207 0 171189 46 3 43 43 0 186 0
amapchunkpl 152 19382 0 18958 19 2 17 18 0 158 0
amappl16 200 1243 0 1078 9 0 9 9 0 8 0
amappl15 192 270 0 268 1 0 1 1 0 8 0
amappl14 184 3 0 2 1 0 1 1 0 8 0
amappl13 176 30 0 29 1 0 1 1 0 8 0
amappl12 168 17 0 15 1 0 1 1 0 8 0
amappl11 160 54 0 40 1 0 1 1 0 8 0
amappl10 152 50 0 42 1 0 1 1 0 8 0
amappl9 144 242 0 240 1 0 1 1 0 8 0
amappl8 136 640 0 611 2 0 2 2 0 8 1
amappl7 128 351 0 336 1 0 1 1 0 8 0
amappl6 120 127 0 114 1 0 1 1 0 8 0
amappl5 112 717 0 695 1 0 1 1 0 8 0
amappl4 104 573 0 549 1 0 1 1 0 8 0
amappl3 96 85 0 80 1 0 1 1 0 8 0
amappl2 88 479 0 426 2 0 2 2 0 8 0
amappl1 80 16608 0 16146 13 3 10 13 0 8 0
amappl 88 8167 0 8025 4 0 4 4 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 64 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 812 0 792 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 812 0 792 1 0 1 1 0 8 0
vmmpekpl 168 8762 0 8737 2 0 2 2 0 8 0
vmmpepl 168 85912 0 84354 68 0 68 68 0 357 0
vmsppl 368 811 0 792 2 0 2 2 0 8 0
rwobjpl 56 17605 0 16699 15 2 13 14 0 8 0
pdppl 4096 1632 0 1584 68 20 48 50 0 8 0
pvpl 32 434215 0 423234 138 7 131 137 0 265 42
pmappl 224 811 0 792 2 0 2 2 0 8 0
extentpl 40 58 0 40 1 0 1 1 0 8 0
phpool 112 317 0 23 9 0 9 9 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff824502ee) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff824bffea,ffffffff8244811a,11d,ffffffff824ce6c6) at __assert+0x25 sys/kern/subr_prf.c:161
uvn_reference(fffffd8069767d98) at uvn_reference+0x84 sys/uvm/uvm_vnode.c:285
uvm_mapent_clone(fffffd806f5bd178,1000,2000,0,7,7) at uvm_mapent_clone+0x1a2 sys/uvm/uvm_map.c:3810
uvm_share(fffffd806f5bd178,0,7,fffffd806f5bd5c8,20000000,200000) at uvm_share+0x45c uvm_mapent_share sys/uvm/uvm_map.c:3840 [inline]
uvm_share(fffffd806f5bd178,0,7,fffffd806f5bd5c8,20000000,200000) at uvm_share+0x45c sys/uvm/uvm_map.c:3739
vm_impl_init_vmx(ffff80002126d810,ffff800021192008) at vm_impl_init_vmx+0xb4 sys/arch/amd64/amd64/vmm.c:1591
vm_create(ffff800000b55800,ffff800021192008) at vm_create+0x19b vm_impl_init sys/arch/amd64/amd64/vmm.c:1690 [inline]
vm_create(ffff800000b55800,ffff800021192008) at vm_create+0x19b sys/arch/amd64/amd64/vmm.c:1510
vmmioctl(a00,c5005601,ffff800000b55800,1,ffff800021192008) at vmmioctl+0x1f2
VOP_IOCTL(fffffd806e018750,c5005601,ffff800000b55800,1,fffffd807f7d8600,ffff800021192008) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:295
vn_ioctl(fffffd8069ffbd30,c5005601,ffff800000b55800,ffff800021192008) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531
sys_ioctl(ffff800021192008,ffff8000230cb498,ffff8000230cb4e0) at sys_ioctl+0x4a2
syscall(ffff8000230cb560) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000230cb560) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe57e0a6fa80, count: -14
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82838a18) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82838a18) at __mp_lock+0x122 sys/kern/kern_lock.c:147
__mp_acquire_count(ffffffff82838a18,1) at __mp_acquire_count+0x4c sys/kern/kern_lock.c:227
mi_switch() at mi_switch+0x3d3 sys/kern/sched_bsd.c:433
sleep_finish(ffff800021231740,1) at sleep_finish+0x1b2 sys/kern/kern_synch.c:433
rwsleep(ffff8000212317e8,ffff80002120b750,120,ffffffff824bbb50,2) at rwsleep+0xd6 sys/kern/kern_synch.c:313
thrsleep(ffff80002121e7e0,ffff8000212318d0) at thrsleep+0x3e2 sys/kern/kern_synch.c:702
sys___thrsleep(ffff80002121e7e0,ffff8000212318d0,ffff800021231920) at sys___thrsleep+0xad sys/kern/kern_synch.c:743
syscall(ffff8000212319a0) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212319a0) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x264e636c0, count: 3
ddb{1}> trace
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__mp_lock(ffffffff82838a18) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82838a18) at __mp_lock+0x122 sys/kern/kern_lock.c:147
__mp_acquire_count(ffffffff82838a18,1) at __mp_acquire_count+0x4c sys/kern/kern_lock.c:227
mi_switch() at mi_switch+0x3d3 sys/kern/sched_bsd.c:433
sleep_finish(ffff800021231740,1) at sleep_finish+0x1b2 sys/kern/kern_synch.c:433
rwsleep(ffff8000212317e8,ffff80002120b750,120,ffffffff824bbb50,2) at rwsleep+0xd6 sys/kern/kern_synch.c:313
thrsleep(ffff80002121e7e0,ffff8000212318d0) at thrsleep+0x3e2 sys/kern/kern_synch.c:702
sys___thrsleep(ffff80002121e7e0,ffff8000212318d0,ffff800021231920) at sys___thrsleep+0xad sys/kern/kern_synch.c:743
syscall(ffff8000212319a0) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212319a0) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x264e636c0, count: -12


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

Anton Lindqvist

unread,
Sep 7, 2021, 1:03:33 PMSep 7
to syzbot, syzkaller-o...@googlegroups.com
#syz fix: vmm(4): grab kernel lock before vmspace init
Reply all
Reply to author
Forward
0 new messages