login: panic: acquirpinagni c :b l koecrknaebll ed silageneop slotickc a ss e r t i o n " ! _ k e r n el _ l o ckwi_thh e l d( ) " f a il e d : f i l e "/ s sypzkianllolecrk/ omarn cargietircs/almu sltecitcoirone /k e rhneledl / s y s / u v m / u v m (_mkearp.nce"l,_ l o c k ) l &ikneer 2n7e3l4_
loStopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
476129 41118 0 0 0x4000000 1 syz-executor.4
*102390 24209 0 0x14000 0x200 0 reaper
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8258f849) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff826021d1,ffffffff826102ef,aae,ffffffff825c283e) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_map_teardown(fffffd806a86a460) at uvm_map_teardown+0x2e8 sys/uvm/uvm_map.c:2736
uvmspace_free(fffffd806a86a460) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff8000210f8a80) at reaper+0x18b sys/kern/kern_exit.c:457
end trace frame: 0x0, count: 9
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_map.c", line 2734
*cpu1: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8258f849) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff826021d1,ffffffff826102ef,aae,ffffffff825c283e) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_map_teardown(fffffd806a86a460) at uvm_map_teardown+0x2e8 sys/uvm/uvm_map.c:2736
uvmspace_free(fffffd806a86a460) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff8000210f8a80) at reaper+0x18b sys/kern/kern_exit.c:457
end trace frame: 0x0, count: -6
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800021135870
rbx 0xffffffff8294ebff cpu_info_full_primary+0x2bff
rdx 0
rcx 0
rax 0xffff8000210f8a80
r8 0x101010101010101
r9 0x8080808080808080
r10 0x7ec52b2af54eff63
r11 0x296f756d70ca76d8
r12 0xffffffff8294ea00 cpu_info_full_primary+0x2a00
r13 0
r14 0xffff800020ce9a00
r15 0x1
rip 0xffffffff81f18858 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800021135860
ss 0
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (reaper) pid=102390 stat=onproc
flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
pri=4, usrpri=54, nice=20
forw=0xffffffffffffffff, list=0xffff8000210f87e0,0xffff8000210f9510
process=0xffff8000ffffdd18 user=0xffff800021130000, vmspace=0xffffffff829d33f8
estcpu=4, cpticks=15, pctcpu=0.54
user=0, sys=4, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
32033 180209 61258 0 2 0 syz-executor.6
13426 427971 6220 0 3 0x80 nanoslp syz-executor.7
13426 263670 6220 0 3 0x4000080 fsleep syz-executor.7
13426 133232 6220 0 3 0x4000080 fsleep syz-executor.7
13426 213119 6220 0 3 0x4000080 fsleep syz-executor.7
13426 50189 6220 0 3 0x4000080 fsleep syz-executor.7
13426 89158 6220 0 2 0x4000000 syz-executor.7
51574 2170 50373 60928 2 0x10 syz-executor.5
51574 438212 50373 60928 2 0x4000010 syz-executor.5
89341 155872 87061 0 2 0 syz-executor.2
89341 149324 87061 0 3 0x4000080 msgwait syz-executor.2
89341 199408 87061 0 3 0x4000080 fsleep syz-executor.2
41118 493473 52728 0 2 0 syz-executor.4
41118 476129 52728 0 7 0x4000000 syz-executor.4
41118 311195 52728 0 3 0x4000080 fsleep syz-executor.4
41118 285944 52728 0 3 0x4000080 fsleep syz-executor.4
6220 192874 79358 0 3 0x82 nanoslp syz-executor.7
61258 129814 79358 0 3 0x82 nanoslp syz-executor.6
50373 221201 79358 0 3 0x82 nanoslp syz-executor.5
79618 426496 79358 0 3 0x82 nanoslp syz-executor.3
52728 385555 79358 0 3 0x82 nanoslp syz-executor.4
87061 175692 79358 0 3 0x82 nanoslp syz-executor.2
14644 182416 79358 0 3 0x82 nanoslp syz-executor.1
26924 365453 79358 0 3 0x82 nanoslp syz-executor.0
79358 501797 32924 0 3 0x82 thrsleep syz-fuzzer
79358 511795 32924 0 3 0x4000082 thrsleep syz-fuzzer
79358 105600 32924 0 3 0x4000082 kqread syz-fuzzer
79358 321643 32924 0 3 0x4000082 thrsleep syz-fuzzer
79358 396561 32924 0 3 0x4000082 thrsleep syz-fuzzer
79358 154423 32924 0 3 0x4000082 thrsleep syz-fuzzer
79358 506834 32924 0 3 0x4000082 thrsleep syz-fuzzer
79358 433522 32924 0 3 0x4000082 thrsleep syz-fuzzer
32924 252469 89195 0 3 0x10008a sigsusp ksh
89195 341595 49002 0 3 0x9a kqread sshd
84094 211681 1 0 3 0x100083 ttyin getty
49002 197945 1 0 3 0x88 kqread sshd
26808 128863 97827 74 3 0x1100092 bpf pflogd
97827 203600 1 0 3 0x80 netio pflogd
38701 494941 78639 73 3 0x1100090 kqread syslogd
78639 146829 1 0 3 0x100082 netio syslogd
3227 157315 1 0 3 0x100080 kqread resolvd
16231 183561 82204 77 3 0x100092 kqread dhcpleased
73168 21403 82204 77 3 0x100092 kqread dhcpleased
82204 343943 1 0 3 0x80 kqread dhcpleased
12334 276341 0 0 3 0x14200 bored smr
82979 113918 0 0 2 0x14200 zerothread
9601 482195 0 0 3 0x14200 aiodoned aiodoned
26345 224286 0 0 3 0x14200 syncer update
61144 377006 0 0 3 0x14200 cleaner cleaner
*24209 102390 0 0 7 0x14200 reaper
41521 9128 0 0 3 0x14200 pgdaemon pagedaemon
12055 400709 0 0 3 0x14200 bored viomb
99981 453601 0 0 3 0x40014200 acpi0 acpi0
26253 85530 0 0 3 0x40014200 idle1
57093 309840 0 0 3 0x14200 bored softnet
87431 77868 0 0 3 0x14200 bored systqmp
64401 67402 0 0 3 0x14200 bored systq
68592 96844 0 0 2 0x40014200 softclock
8884 307206 0 0 3 0x40014200 idle0
1 75424 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
CPU 0:
exclusive kernel: protection fault trap, code=0
Faulted in DDB; continuing...
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10182 6539K 6637K 78643K 11433 0
pcb 13 9K 9K 78643K 25 0
rtable 238 6K 7K 78643K 352 0
ifaddr 86 17K 17K 78643K 90 0
counters 56 35K 35K 78643K 56 0
ioctlops 0 0K 4K 78643K 1487 0
iov 0 0K 0K 78643K 3 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1337 84K 84K 78643K 1365 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 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 15 53K 85K 78643K 175 0
sigio 0 0K 0K 78643K 2 0
proc 68 87K 136K 78643K 507 0
subproc 104 6K 6K 78643K 104 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 35 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 25 122K 122K 78643K 25 0
exec 0 0K 2K 78643K 645 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 312 76K 77K 78643K 3809 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 16 0K 2K 78643K 28 0
temp 92 4701K 4765K 78643K 4722 0
kqueue 12 18K 20K 78643K 28 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 33 0 30 1 0 1 1 0 8 0
rtentry 112 111 0 1 4 0 4 4 0 8 0
unpcb 136 48 0 32 1 0 1 1 0 8 0
syncache 296 4 0 4 1 1 0 1 0 8 0
tcpqe 32 149 0 149 1 0 1 1 0 8 1
tcpcb 736 119 0 5 11 0 11 11 0 8 0
arp 120 18 0 0 1 0 1 1 0 8 0
inpcb 312 258 0 182 6 0 6 6 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
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 20 0 0 1 0 1 1 0 8 0
pfstkey 112 20 0 0 1 0 1 1 0 8 0
pfstate 320 20 0 0 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 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
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1530 0 92 90 0 90 90 0 8 0
ffsino 272 1530 0 92 96 0 96 96 0 8 0
nchpl 144 1839 0 164 63 0 63 63 0 8 0
uvmvnodes 80 1722 0 0 36 0 36 36 0 8 0
vnodes 224 1722 0 0 102 0 102 102 0 8 0
namei 1024 6417 0 6417 2 0 2 2 0 8 2
percpumem 16 40 0 0 1 0 1 1 0 8 0
scxspl 216 5622 0 5622 2 1 1 2 0 8 1
plimitpl 152 23 0 8 1 0 1 1 0 8 0
sigapl 424 478 0 433 6 0 6 6 0 8 0
futexpl 64 626 0 619 1 0 1 1 0 8 0
knotepl 120 122 0 0 4 0 4 4 0 8 0
kqueuepl 216 27 0 19 1 0 1 1 0 8 0
pipepl 336 137 0 109 3 0 3 3 0 8 0
fdescpl 496 464 0 436 5 0 5 5 0 8 0
filepl 152 2090 0 1778 15 0 15 15 0 8 2
lockfpl 104 10 0 8 1 0 1 1 0 8 0
lockfspl 48 6 0 4 1 0 1 1 0 8 0
sessionpl 144 24 0 7 1 0 1 1 0 8 0
pgrppl 48 24 0 7 1 0 1 1 0 8 0
ucredpl 96 64 0 50 1 0 1 1 0 8 0
zombiepl 144 436 0 433 1 0 1 1 0 8 0
processpl 1064 478 0 433 4 0 4 4 0 8 0
procpl 672 606 0 542 7 0 7 7 0 8 1
sockpl 480 339 0 243 13 0 13 13 0 8 0
mcl64k 65536 6 0 0 1 0 1 1 0 8 0
mcl16k 16384 4 0 0 1 0 1 1 0 8 0
mcl12k 12288 4 0 0 1 0 1 1 0 8 0
mcl8k 8192 3 0 0 1 0 1 1 0 8 0
mcl4k 4096 5 0 0 1 0 1 1 0 8 0
mcl2k2 2112 1 0 0 1 0 1 1 0 8 0
mcl2k 2048 192 0 0 23 0 23 23 0 8 0
mtagpl 96 5 0 0 1 0 1 1 0 8 0
mbufpl 256 286 0 0 18 0 18 18 0 8 0
bufpl 288 3712 0 150 255 0 255 255 0 8 0
anonpl 24 83505 0 66007 113 3 110 110 0 186 1
amapchunkpl 152 8455 0 7609 38 1 37 37 0 158 1
amappl16 200 863 0 362 31 1 30 30 0 8 0
amappl15 192 112 0 107 1 0 1 1 0 8 0
amappl14 184 29 0 23 1 0 1 1 0 8 0
amappl13 176 83 0 80 1 0 1 1 0 8 0
amappl12 168 38 0 34 1 0 1 1 0 8 0
amappl11 160 58 0 40 1 0 1 1 0 8 0
amappl10 152 34 0 28 1 0 1 1 0 8 0
amappl9 144 469 0 466 1 0 1 1 0 8 0
amappl8 136 580 0 538 2 0 2 2 0 8 0
amappl7 128 151 0 137 1 0 1 1 0 8 0
amappl6 120 216 0 194 2 0 2 2 0 8 1
amappl5 112 244 0 226 1 0 1 1 0 8 0
amappl4 104 863 0 832 2 0 2 2 0 8 0
amappl3 96 191 0 178 1 0 1 1 0 8 0
amappl2 88 535 0 489 3 0 3 3 0 8 1
amappl1 80 11640 0 11048 19 0 19 19 0 8 6
amappl 88 3377 0 3119 7 0 7 7 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 464 0 435 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 464 0 435 1 0 1 1 0 8 0
vmmpekpl 168 8435 0 8396 2 0 2 2 0 8 0
vmmpepl 168 47168 0 44722 147 0 147 147 0 357 33
vmsppl 368 463 0 435 4 0 4 4 0 8 1
rwobjpl 56 14011 0 10795 46 0 46 46 0 8 0
pdppl 4096 935 0 870 97 20 77 79 0 8 12
pvpl 32 279316 0 257562 261 0 261 261 0 265 80
pmappl 248 463 0 435 3 0 3 3 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 647 0 23 18 0 18 18 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(ffffffff8258f849) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff826021d1,ffffffff826102ef,aae,ffffffff825c283e) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_map_teardown(fffffd806a86a460) at uvm_map_teardown+0x2e8 sys/uvm/uvm_map.c:2736
uvmspace_free(fffffd806a86a460) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff8000210f8a80) at reaper+0x18b sys/kern/kern_exit.c:457
end trace frame: 0x0, count: -6
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020ce8ff0) 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
x86_bus_space_io_write_1(3f8,0,6f) at x86_bus_space_io_write_1+0x31 sys/arch/amd64/amd64/bus_space.c:759
comcnputc(800,6f) at comcnputc+0x128 bus_space_barrier machine/bus.h:481 [inline]
comcnputc(800,6f) at comcnputc+0x128 sys/dev/ic/com.c:1263
cnputc(6f) at cnputc+0x4b sys/dev/cons.c:239
db_putchar(6f) at db_putchar+0x3fc sys/ddb/db_output.c:155
kprintf() at kprintf+0x20ec sys/kern/subr_prf.c:1068
db_printf(ffffffff82608896) at db_printf+0x85 sys/kern/subr_prf.c:502
panic(ffffffff825a56b6) at panic+0xd7 sys/kern/subr_prf.c:220
witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833
__mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline]
__mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline]
__mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 sys/kern/kern_lock.c:142
selwakeup(fffffd806a344e98) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline]
selwakeup(fffffd806a344e98) at selwakeup+0x16 sys/kern/sys_generic.c:885
sorwakeup(fffffd806a344d80) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699
end trace frame: 0xffff80002e35c740, count: 0
ddb{1}> trace
x86_ipi_db(ffff800020ce8ff0) 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
x86_bus_space_io_write_1(3f8,0,6f) at x86_bus_space_io_write_1+0x31 sys/arch/amd64/amd64/bus_space.c:759
comcnputc(800,6f) at comcnputc+0x128 bus_space_barrier machine/bus.h:481 [inline]
comcnputc(800,6f) at comcnputc+0x128 sys/dev/ic/com.c:1263
cnputc(6f) at cnputc+0x4b sys/dev/cons.c:239
db_putchar(6f) at db_putchar+0x3fc sys/ddb/db_output.c:155
kprintf() at kprintf+0x20ec sys/kern/subr_prf.c:1068
db_printf(ffffffff82608896) at db_printf+0x85 sys/kern/subr_prf.c:502
panic(ffffffff825a56b6) at panic+0xd7 sys/kern/subr_prf.c:220
witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833
__mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline]
__mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline]
__mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 sys/kern/kern_lock.c:142
selwakeup(fffffd806a344e98) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline]
selwakeup(fffffd806a344e98) at selwakeup+0x16 sys/kern/sys_generic.c:885
sorwakeup(fffffd806a344d80) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699
rip_input(ffff80002e35c918,ffff80002e35c924,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188
ip_deliver(ffff80002e35c918,ffff80002e35c924,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657
ip_ours(ffff80002e35c918,ffff80002e35c924,0,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616
ip_input_if(ffff80002e35c918,ffff80002e35c924,4,0,ffff80000019f2a8) at ip_input_if+0x2a1
ipv4_input(ffff80000019f2a8,fffffd8069057900) at ipv4_input+0x48 sys/netinet/ip_input.c:242
if_input_local(ffff80000019f2a8,fffffd8069057900,2) at if_input_local+0x10e sys/net/if.c:774
ether_resolve(ffff80000019f2a8,fffffd8069059000,fffffd806a3b8458,fffffd80779c2380,ffff80002e35ca68) at ether_resolve+0x4ac sys/net/if_ethersubr.c:242
ether_output(ffff80000019f2a8,fffffd8069059000,fffffd806a3b8458,fffffd80779c2380) at ether_output+0x47 ether_encap sys/net/if_ethersubr.c:324 [inline]
ether_output(ffff80000019f2a8,fffffd8069059000,fffffd806a3b8458,fffffd80779c2380) at ether_output+0x47 sys/net/if_ethersubr.c:353
ip_output(fffffd8069059000,0,fffffd806a3b8448,20,0,fffffd806a3b83d0,594327b507b6ad8e) at ip_output+0x106b sys/netinet/ip_output.c:468
rip_output(fffffd8069059000,fffffd806c174418,ffff80002e35cc80,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302
rip_usrreq(fffffd806c174418,9,fffffd8069059000,0,0,ffff8000ffff4000) at rip_usrreq+0x49c sys/netinet/raw_ip.c:554
sosend(fffffd806c174418,0,ffff80002e35ce98,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582
dofilewritev(ffff8000ffff4000,4,ffff80002e35ce98,0,ffff80002e35cf90) at dofilewritev+0x19c sys/kern/sys_generic.c:381
sys_write(ffff8000ffff4000,ffff80002e35cf38,ffff80002e35cf90) at sys_write+0x83 sys/kern/sys_generic.c:301
syscall(ffff80002e35d000) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e35d000) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xbb943e9bfd0, count: -30