panic: malloc: allocationp atnoico: lakerrgnee,l tdyiapgen o=s ti2c, saisszeer t=i on "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 689
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*324775 57952 0 0 0x4000000 1 syz-executor.1
366636 35866 0 0 0x4000000 0 syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x174 sys/kern/subr_prf.c:208
__assert(ffffffff81f440cf,ffffffff81f32bb9,2b1,ffffffff81f14ed2) at __assert+0x28 sys/kern/subr_prf.c:155
proc_trampoline_mp() at proc_trampoline_mp+0x13b
end trace frame: 0x0, count: 11
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{1}>
ddb{1}> set $lines = 0
ddb{1}> show panic
malloc: allocation too large, type = 2, size = 15438862832
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x174 sys/kern/subr_prf.c:208
__assert(ffffffff81f440cf,ffffffff81f32bb9,2b1,ffffffff81f14ed2) at __assert+0x28 sys/kern/subr_prf.c:155
proc_trampoline_mp() at proc_trampoline_mp+0x13b
end trace frame: 0x0, count: -4
ddb{1}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020c8d5e0
rbx 0xffff800020c8d690
rdx 0xffffffff81f5066f cy_pio_rec+0x1490
rcx 0
rax 0
r8 0xffffffff815047c3 kprintf+0x183
r9 0x1
r10 0x25
r11 0x48b080b493281295
r12 0x3000000008
r13 0xffff800020c8d5f0
r14 0x104
r15 0x1
rip 0xffffffff81891478 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020c8d5d0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.1) pid=324775 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=73, usrpri=73, nice=20
forw=0xffffffffffffffff, list=0xffff800020b82e28,0xffffffff8230a9a0
process=0xffff800020b84010 user=0xffff800020c88000, vmspace=0xfffffd807f00c870
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
57952 235741 49569 0 2 0 syz-executor.1
*57952 324775 49569 0 7 0x4000000 syz-executor.1
35866 423108 49204 0 2 0 syz-executor.0
35866 366636 49204 0 7 0x4000000 syz-executor.0
68064 456981 0 0 3 0x14200 bored sosplice
49569 455677 29741 0 3 0x82 nanosleep syz-executor.1
49204 154253 29741 0 3 0x82 nanosleep syz-executor.0
29741 111761 45585 0 3 0x82 thrsleep syz-fuzzer
29741 444988 45585 0 3 0x4000082 thrsleep syz-fuzzer
29741 458966 45585 0 3 0x4000082 thrsleep syz-fuzzer
29741 72281 45585 0 3 0x4000082 kqread syz-fuzzer
29741 245155 45585 0 3 0x4000082 thrsleep syz-fuzzer
29741 302303 45585 0 3 0x4000082 thrsleep syz-fuzzer
29741 211333 45585 0 3 0x4000082 thrsleep syz-fuzzer
29741 88755 45585 0 3 0x4000082 thrsleep syz-fuzzer
29741 334164 45585 0 3 0x4000082 thrsleep syz-fuzzer
29741 430690 45585 0 3 0x4000082 thrsleep syz-fuzzer
45585 108991 16571 0 3 0x10008a pause ksh
16571 436520 77530 0 3 0x92 select sshd
42920 272806 1 0 3 0x100083 ttyin getty
77530 225437 1 0 3 0x80 select sshd
78637 408522 66531 73 3 0x100090 kqread syslogd
66531 429061 1 0 3 0x100082 netio syslogd
54203 131993 1 77 3 0x100090 poll dhclient
55447 450030 1 0 3 0x80 poll dhclient
15801 121539 0 0 2 0x14200 zerothread
16033 420332 0 0 3 0x14200 aiodoned aiodoned
9400 460438 0 0 3 0x14200 syncer update
60877 346400 0 0 3 0x14200 cleaner cleaner
52826 69471 0 0 3 0x14200 reaper reaper
23686 148471 0 0 3 0x14200 pgdaemon pagedaemon
60694 355161 0 0 3 0x14200 bored crynlk
83827 228358 0 0 3 0x14200 bored crypto
25702 314613 0 0 3 0x40014200 acpi0 acpi0
65843 228888 0 0 3 0x40014200 idle1
73999 143235 0 0 3 0x14200 bored softnet
38735 504380 0 0 3 0x14200 bored systqmp
23562 434008 0 0 3 0x14200 bored systq
28813 358401 0 0 3 0x40014200 bored softclock
64470 190941 0 0 3 0x40014200 idle0
1 150752 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 35866 (syz-executor.0) thread 0xffff800020b82720 (366636)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8233f420) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9494 6349K 6363K 78643K 10937 0 0
pcb 23 9K 10K 78643K 187 0 0
rtable 100 3K 4K 78643K 248 0 0
ifaddr 46 11K 12K 78643K 88 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 2K 78643K 19 0 0
iov 0 0K 16K 78643K 23 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1202 75K 76K 78643K 1829 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 5K 78643K 5 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 12 0K 1K 78643K 34 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1792 194K 288K 78643K 12592 0 0
file desc 6 17K 25K 78643K 628 0 0
sigio 0 0K 0K 78643K 3 0 0
proc 42 38K 70K 78643K 267 0 0
subproc 64 65538K 69634K 78643K 70 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 0K 78643K 44 0 0
in_multi 33 2K 2K 78643K 45 0 0
ether_multi 1 0K 0K 78643K 4 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 66 291K 291K 78643K 66 0 0
exec 0 0K 1K 78643K 193 0 0
pfkey data 0 0K 0K 78643K 2 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 85 20K 29K 78643K 2570 0 0
UVM aobj 22 2K 2K 78643K 25 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 0K 78643K 8 0 0
NDP 8 0K 0K 78643K 24 0 0
temp 117 2360K 2425K 78643K 4232 0 0
kqueue 0 0K 0K 78643K 1 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 4 0 0 1 0 1 1 0 8 0
inpcbpl 280 164 0 157 1 0 1 1 0 8 0
plimitpl 152 15 0 8 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtentry 112 41 0 1 2 0 2 2 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpcb 544 69 0 65 1 0 1 1 0 8 0
nd6 48 4 0 0 1 0 1 1 0 8 0
ppxss 1128 4 0 4 2 2 0 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 185 0 0 12 0 12 12 0 8 0
art_table 32 186 0 0 2 0 2 2 0 8 0
art_node 16 40 0 6 1 0 1 1 0 8 0
sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0
semapl 112 32 0 22 1 0 1 1 0 8 0
shmpl 112 23 0 3 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 3064 0 1659 46 0 46 46 0 8 0
ffsino 272 3064 0 1659 95 0 95 95 0 8 0
nchpl 144 4083 0 2433 62 0 62 62 0 8 0
uvmvnodes 72 3136 0 0 58 0 58 58 0 8 0
vnodes 200 3136 0 0 166 0 166 166 0 8 0
namei 1024 10228 0 10228 1 0 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
scxspl 192 9261 0 9261 7 6 1 6 0 8 1
sigapl 432 795 0 781 2 0 2 2 0 8 0
futexpl 56 5107 0 5107 1 0 1 1 0 8 1
knotepl 112 129 0 102 2 1 1 2 0 8 0
kqueuepl 104 79 0 77 1 0 1 1 0 8 0
pipepl 112 348 0 329 3 2 1 2 0 8 0
fdescpl 488 796 0 781 3 1 2 3 0 8 0
filepl 152 3943 0 3848 7 3 4 6 0 8 0
lockfpl 104 116 0 116 3 2 1 1 0 8 1
lockfspl 32 110 0 110 3 2 1 1 0 8 1
sessionpl 112 17 0 7 1 0 1 1 0 8 0
pgrppl 48 21 0 11 1 0 1 1 0 8 0
ucredpl 96 527 0 520 1 0 1 1 0 8 0
zombiepl 144 781 0 781 1 0 1 1 0 8 1
processpl 840 811 0 781 4 0 4 4 0 8 0
procpl 600 2000 0 1959 4 0 4 4 0 8 0
sockpl 384 321 0 304 3 0 3 3 0 8 1
mcl64k 65536 9 0 0 2 0 2 2 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 4 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 4 0 0 1 0 1 1 0 8 0
mcl2k2 2112 1 0 0 1 0 1 1 0 8 0
mcl2k 2048 120 0 0 14 0 14 14 0 8 0
mtagpl 80 1 0 0 1 0 1 1 0 8 0
mbufpl 256 145 0 0 9 1 8 9 0 8 0
bufpl 256 5980 0 1013 311 0 311 311 0 8 0
anonpl 16 66585 0 59135 39 8 31 37 0 125 0
amapchunkpl 152 3785 0 3698 9 5 4 9 0 158 0
amappl16 192 3062 0 2669 20 0 20 20 0 8 0
amappl15 184 1 0 0 1 0 1 1 0 8 0
amappl14 176 4 0 4 2 2 0 1 0 8 0
amappl13 168 28 0 24 1 0 1 1 0 8 0
amappl12 160 619 0 615 2 1 1 1 0 8 0
amappl11 152 177 0 168 1 0 1 1 0 8 0
amappl10 144 56 0 54 1 0 1 1 0 8 0
amappl9 136 353 0 349 1 0 1 1 0 8 0
amappl8 128 131 0 114 1 0 1 1 0 8 0
amappl7 120 37 0 32 1 0 1 1 0 8 0
amappl6 112 55 0 47 1 0 1 1 0 8 0
amappl5 104 123 0 112 1 0 1 1 0 8 0
amappl4 96 274 0 247 2 1 1 2 0 8 0
amappl3 88 755 0 745 1 0 1 1 0 8 0
amappl2 80 6732 0 6672 2 0 2 2 0 8 0
amappl1 72 24076 0 23647 24 14 10 19 0 8 0
amappl 72 2199 0 2165 1 0 1 1 0 75 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma256 256 6 0 6 1 1 0 1 0 8 0
dma64 64 259 0 259 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 17 0 17 1 1 0 1 0 8 0
aobjpl 64 24 0 3 1 0 1 1 0 8 0
uaddrrnd 24 796 0 781 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 796 0 781 1 0 1 1 0 8 0
vmmpekpl 168 9815 0 9795 2 0 2 2 0 8 0
vmmpepl 168 87188 0 85775 81 18 63 70 0 357 1
vmsppl 360 795 0 781 2 0 2 2 0 8 0
pdppl 4096 1599 0 1562 6 1 5 6 0 8 0
pvpl 32 220027 0 209551 108 22 86 102 0 265 1
pmappl 224 795 0 781 1 0 1 1 0 8 0
extentpl 40 39 0 25 1 0 1 1 0 8 0
phpool 112 460 0 4 14 0 14 14 0 8 0