panic: malloc: palalnioc:c atkieronn elt ood ilaagrngoest,i c tayspsertion "!_kernel_lock_held()" failed: file "/syzkall

0 views
Skip to first unread message

syzbot

unread,
Sep 3, 2019, 1:35:07 PM9/3/19
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 0abf16de sync
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=13b095de600000
kernel config: https://syzkaller.appspot.com/x/.config?x=26ca0a9c07f16a3a
dashboard link: https://syzkaller.appspot.com/bug?extid=0069387a9589fb2b3ae1

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

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

panic: malloc: palalnioc:c atkieronn elt ood ilaagrngoest,i c
tayspsertion "!_kernel_lock_held()" failed:
file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 690
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
* 7249 79758 0 0 0x4000000 1 syz-executor.1
204627 55952 0 0 0x4000000 0 syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
__assert(ffffffff82204504,ffffffff821f06fb,2b2,ffffffff821d4bb7) at
__assert+0x2b sys/kern/subr_prf.c:154
proc_trampoline_mp() at proc_trampoline_mp+0x123
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}> set $maxwidth = 0
ddb{1}> show panic
malloc: allocation too large, type = 2, size = 18446744073709550656

ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
__assert(ffffffff82204504,ffffffff821f06fb,2b2,ffffffff821d4bb7) at
__assert+0x2b sys/kern/subr_prf.c:154
proc_trampoline_mp() at proc_trampoline_mp+0x123
end trace frame: 0x0, count: -4
ddb{1}> show registers
rdi 0
rsi 0x1
rbp 0xffff800022d7ef00
rbx 0xffff800022d7efb0
rdx 0xffff800020ab0018
rcx 0
rax 0
r8 0xffffffff81436e6f kprintf+0x16f
r9 0x1
r10 0x25
r11 0x4b633f241848b20
r12 0x3000000008
r13 0xffff800022d7ef10
r14 0x104
r15 0x1
rip 0xffffffff81a91c98 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800022d7eef0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.1) pid=7249 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=78, usrpri=78, nice=20
forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffffffff82660568
process=0xffff800020adc000 user=0xffff800022d7a000,
vmspace=0xfffffd807f00b450
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
79758 217260 62335 0 2 0 syz-executor.1
*79758 7249 62335 0 7 0x4000000 syz-executor.1
55952 57834 94479 0 2 0 syz-executor.0
55952 204627 94479 0 7 0x4000000 syz-executor.0
62335 348333 68782 0 3 0x82 nanosleep syz-executor.1
71235 180815 1 0 3 0x100083 ttyin getty
94479 87897 68782 0 3 0x82 nanosleep syz-executor.0
11880 84788 0 0 3 0x14200 acct acct
65105 449253 0 0 3 0x14200 bored sosplice
68782 43272 43112 0 3 0x82 thrsleep syz-fuzzer
68782 376374 43112 0 3 0x4000082 nanosleep syz-fuzzer
68782 349847 43112 0 3 0x4000082 thrsleep syz-fuzzer
68782 23397 43112 0 3 0x4000082 thrsleep syz-fuzzer
68782 346574 43112 0 3 0x4000082 kqread syz-fuzzer
68782 232648 43112 0 3 0x4000082 thrsleep syz-fuzzer
68782 170219 43112 0 3 0x4000082 thrsleep syz-fuzzer
68782 264264 43112 0 3 0x4000082 thrsleep syz-fuzzer
68782 516572 43112 0 3 0x4000082 thrsleep syz-fuzzer
68782 508218 43112 0 3 0x4000082 thrsleep syz-fuzzer
43112 148231 45263 0 3 0x10008a pause ksh
45263 59859 59172 0 3 0x92 select sshd
59172 24973 1 0 3 0x80 select sshd
43957 77062 4442 74 3 0x100092 bpf pflogd
4442 215033 1 0 3 0x80 netio pflogd
54614 10198 29274 73 3 0x100090 kqread syslogd
29274 245257 1 0 3 0x100082 netio syslogd
40106 212729 1 77 3 0x100090 poll dhclient
40009 214528 1 0 3 0x80 poll dhclient
12759 385389 0 0 2 0x14200 zerothread
18119 434894 0 0 3 0x14200 aiodoned aiodoned
86062 345812 0 0 3 0x14200 syncer update
54710 153366 0 0 3 0x14200 cleaner cleaner
10362 64536 0 0 3 0x14200 reaper reaper
55128 210015 0 0 3 0x14200 pgdaemon pagedaemon
62185 12299 0 0 3 0x14200 bored crynlk
16084 282723 0 0 3 0x14200 bored crypto
66692 274209 0 0 3 0x40014200 acpi0 acpi0
11376 200885 0 0 3 0x40014200 idle1
73914 226944 0 0 3 0x14200 bored softnet
77289 430591 0 0 3 0x14200 bored systqmp
23571 300593 0 0 3 0x14200 bored systq
21681 135918 0 0 3 0x40014200 bored softclock
42819 19931 0 0 3 0x40014200 idle0
36129 150981 0 0 3 0x14200 bored smr
1 164996 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 55952 (syz-executor.0) thread 0xffff800020ab0508 (204627)
shared rwlock vmlistlock r = 0 (0xffff80000066f478)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 vm_get_info+0x39 sys/arch/amd64/amd64/vmm.c:3712
#2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291
#3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524
#4 sys_ioctl+0x5b9
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82645358)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9552 6506K 6958K 78643K 15222 0 0
pcb 13 8K 8K 78643K 245 0 0
rtable 111 4K 4K 78643K 633 0 0
ifaddr 66 14K 15K 78643K 228 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1543 0 0
iov 0 0K 16K 78643K 134 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1219 77K 77K 78643K 2792 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 28 0 0
VM map 2 1K 1K 78643K 8 0 0
sem 12 0K 0K 78643K 235 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1809 196K 290K 78643K 12843 0 0
file desc 6 17K 25K 78643K 1776 0 0
sigio 0 0K 0K 78643K 12 0 0
proc 61 63K 95K 78643K 774 0 0
subproc 32 2K 2K 78643K 108 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 160 0 0
in_multi 33 2K 2K 78643K 148 0 0
ether_multi 1 0K 0K 78643K 12 0 0
mrt 0 0K 0K 78643K 7 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 90 397K 397K 78643K 90 0 0
exec 0 0K 1K 78643K 416 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 100 21K 22K 78643K 6708 0 0
UVM aobj 68 7K 7K 78643K 73 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 1K 78643K 258 0 0
NDP 14 0K 0K 78643K 65 0 0
temp 186 3556K 4195K 78643K 26680 0 0
kqueue 0 0K 0K 78643K 5 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 15 0 8 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtpcb 80 90 0 88 1 0 1 1 0
8 0
rtentry 112 90 0 45 2 0 2 2 0
8 0
unpcb 120 629 0 619 1 0 1 1 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpqe 32 4909 0 4909 1 1 0 1 0
8 0
tcpcb 544 359 0 355 1 0 1 1 0
8 0
inpcb 280 1074 0 1065 3 2 1 2 0
8 0
rttmr 72 2 0 2 2 2 0 1 0
8 0
nd6 48 12 0 8 1 0 1 1 0
8 0
pkpcb 40 7 0 7 3 2 1 1 0
8 1
ppxss 1128 29 0 29 3 2 1 1 0
8 1
pffrag 232 3 0 3 2 2 0 1 0
482 0
pffrnode 88 3 0 3 2 2 0 1 0
8 0
pffrent 40 6 0 6 2 2 0 1 0
8 0
pfosfp 40 846 0 423 5 0 5 5 0
8 0
pfosfpen 112 1428 0 714 21 0 21 21 0
8 0
pfstitem 24 49 0 28 1 0 1 1 0
8 0
pfstkey 112 49 0 28 1 0 1 1 0
8 0
pfstate 328 49 0 28 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 405 0 186 15 1 14 15 0
8 0
art_table 32 406 0 186 2 0 2 2 0
8 0
art_node 16 87 0 46 1 0 1 1 0
8 0
sysvmsgpl 40 11 0 2 2 1 1 1 0
8 0
semapl 112 233 0 223 1 0 1 1 0
8 0
shmpl 112 71 0 5 2 0 2 2 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 4081 0 2687 46 0 46 46 0
8 0
ffsino 272 4081 0 2687 95 0 95 95 0
8 0
nchpl 144 6726 0 5119 61 0 61 61 0
8 0
uvmvnodes 72 5240 0 0 96 0 96 96 0
8 0
vnodes 208 5240 0 0 276 0 276 276 0
8 0
namei 1024 21707 0 21707 2 1 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
vmpool 552 6 0 6 3 3 0 1 0
8 0
scsiplug 64 5 0 5 4 3 1 1 0
8 1
scxspl 192 19350 0 19350 20 19 1 7 0
8 1
plimitpl 152 218 0 210 1 0 1 1 0
8 0
sigapl 432 1968 0 1952 3 1 2 3 0
8 0
futexpl 56 23448 0 23448 1 0 1 1 0
8 1
knotepl 112 415 0 396 1 0 1 1 0
8 0
kqueuepl 104 380 0 378 1 0 1 1 0
8 0
pipepl 112 1198 0 1179 4 3 1 2 0
8 0
fdescpl 488 1969 0 1952 3 0 3 3 0
8 0
filepl 152 11804 0 11696 9 4 5 6 0
8 0
lockfpl 104 553 0 551 1 0 1 1 0
8 0
lockfspl 48 200 0 198 1 0 1 1 0
8 0
sessionpl 112 26 0 15 1 0 1 1 0
8 0
pgrppl 48 38 0 27 1 0 1 1 0
8 0
ucredpl 96 2198 0 2189 1 0 1 1 0
8 0
zombiepl 144 1952 0 1952 2 1 1 1 0
8 1
processpl 896 1986 0 1952 4 0 4 4 0
8 0
procpl 632 5700 0 5655 5 0 5 5 0
8 1
srpgc 64 10 0 10 5 5 0 1 0
8 0
sosppl 128 11 0 11 3 3 0 1 0
8 0
sockpl 384 1828 0 1809 5 2 3 4 0
8 1
mcl64k 65536 8 0 0 1 0 1 1 0
8 0
mcl16k 16384 4 0 0 1 0 1 1 0
8 0
mcl12k 12288 13 0 0 2 0 2 2 0
8 0
mcl9k 9216 8 0 0 1 0 1 1 0
8 0
mcl8k 8192 6 0 0 1 0 1 1 0
8 0
mcl4k 4096 9 0 0 2 0 2 2 0
8 0
mcl2k2 2112 5 0 0 1 0 1 1 0
8 0
mcl2k 2048 166 0 0 20 0 20 20 0
8 0
mtagpl 80 21 0 0 1 0 1 1 0
8 0
mbufpl 256 251 0 0 12 0 12 12 0
8 0
bufpl 256 10630 0 3582 441 0 441 441 0
8 0
anonpl 16 196181 0 183317 97 34 63 70 0
124 9
amapchunkpl 152 11439 0 11331 15 9 6 10 0
158 0
amappl16 192 9872 0 9142 82 44 38 49 0
8 1
amappl15 184 321 0 321 2 2 0 1 0
8 0
amappl14 176 61 0 58 1 0 1 1 0
8 0
amappl13 168 13 0 11 1 0 1 1 0
8 0
amappl12 160 81 0 78 2 1 1 1 0
8 0
amappl11 152 232 0 217 1 0 1 1 0
8 0
amappl10 144 125 0 121 1 0 1 1 0
8 0
amappl9 136 1698 0 1690 1 0 1 1 0
8 0
amappl8 128 1225 0 1204 1 0 1 1 0
8 0
amappl7 120 181 0 175 1 0 1 1 0
8 0
amappl6 112 233 0 222 1 0 1 1 0
8 0
amappl5 104 244 0 228 1 0 1 1 0
8 0
amappl4 96 2198 0 2164 2 1 1 2 0
8 0
amappl3 88 218 0 211 1 0 1 1 0
8 0
amappl2 80 14900 0 14820 3 1 2 3 0
8 0
amappl1 72 51718 0 51278 25 15 10 20 0
8 0
amappl 80 6024 0 5986 2 0 2 2 0
84 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 72 0 5 2 0 2 2 0
8 0
uaddrrnd 24 1975 0 1952 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 1975 0 1952 1 0 1 1 0
8 0
vmmpekpl 168 18796 0 18762 2 0 2 2 0
8 0
vmmpepl 168 247366 0 245416 199 94 105 107 0 357
20
vmsppl 368 1968 0 1952 2 0 2 2 0
8 0
pdppl 4096 3957 0 3916 7 1 6 6 0
8 0
pvpl 32 543829 0 527698 242 79 163 170 0 265
29
pmappl 232 1974 0 1958 4 3 1 2 0
8 0
extentpl 40 38 0 22 1 0 1 1 0
8 0
phpool 112 608 0 6 18 0 18 18 0
8 0


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

Greg Steuck

unread,
Sep 3, 2019, 2:11:24 PM9/3/19
to syzbot, syzkaller-o...@googlegroups.com
#syz dup: panic: malloc: allocation too large, type = 2, size = ADDR (2)

Reply all
Reply to author
Forward
0 new messages