panic: malloc: allocatWiAoRNn ItNoGo: lSaPLrg NeO, T tLyOpWeE R=E D2 ,O Ns iSzYeSC A=L 1L 843 446 7E4X4I0T73 700 995
5
03Stopped at savectx+0xb1: movl $0,%gs:0x530
TID PID UID PRFLAGS PFLAGS CPU COMMAND
335772 53530 0 0 0x4000000 0 syz-executor.0
*409256 72251 74 0x100012 0 1 pflogd
savectx(0,240,1f45cdf532b0,3,1f434b803b16,1f460841b000) at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffced60, count: 14
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 = 18446744073709550336
ddb{1}> trace
savectx(0,240,1f45cdf532b0,3,1f434b803b16,1f460841b000) at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffced60, count: -1
ddb{1}> show registers
rdi 0
rsi 0
rbp 0xffff800020aab550
rbx 0
rdx 0xffff800020ac0ee0
rcx 0
rax 0x31
r8 0xffffffff816bf1ff kprintf+0x16f
r9 0x1
r10 0x25
r11 0x64ab971fd2e1891b
r12 0
r13 0
r14 0xffff800020ac0ee0
r15 0
rip 0xffffffff81ba13f1 savectx+0xb1
cs 0x8
rflags 0x46
rsp 0xffff800020aab4d0
ss 0x10
savectx+0xb1: movl $0,%gs:0x530
ddb{1}> show proc
PROC (pflogd) pid=409256 stat=onproc
flags process=100012<EXEC,SUGID,PLEDGE> proc=0
pri=51, usrpri=51, nice=20
forw=0xffffffffffffffff, list=0xffff800020ac13d0,0xffff800020ac1658
process=0xffff800020add180 user=0xffff800020aa6000, vmspace=0xfffffd806e7e5008
estcpu=1, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
53530 458590 34463 0 2 0 syz-executor.0
53530 287785 34463 0 3 0x4000080 lockf syz-executor.0
53530 335772 34463 0 7 0x4000000 syz-executor.0
34463 27578 97326 0 2 0x482 syz-executor.0
117 272090 97326 0 3 0x82 nanosleep syz-executor.1
13632 222549 0 0 3 0x14200 acct acct
18704 275393 1 0 3 0x100083 ttyin getty
75531 226957 0 0 3 0x14200 bored sosplice
97326 167489 53116 0 3 0x82 thrsleep syz-fuzzer
97326 350272 53116 0 3 0x4000082 thrsleep syz-fuzzer
97326 514801 53116 0 3 0x4000082 thrsleep syz-fuzzer
97326 358552 53116 0 3 0x4000082 thrsleep syz-fuzzer
97326 335918 53116 0 3 0x4000082 kqread syz-fuzzer
97326 406560 53116 0 3 0x4000082 thrsleep syz-fuzzer
97326 75605 53116 0 3 0x4000082 thrsleep syz-fuzzer
97326 409764 53116 0 3 0x4000082 thrsleep syz-fuzzer
97326 223487 53116 0 3 0x4000082 thrsleep syz-fuzzer
97326 222399 53116 0 3 0x4000082 thrsleep syz-fuzzer
53116 18628 36482 0 3 0x10008a pause ksh
36482 371846 10407 0 3 0x92 select sshd
10407 330540 1 0 3 0x80 select sshd
*72251 409256 64165 74 7 0x100012 pflogd
64165 8397 1 0 3 0x80 netio pflogd
54194 92948 54114 73 3 0x100090 kqread syslogd
54114 452295 1 0 3 0x100082 netio syslogd
64122 101064 1 77 3 0x100090 poll dhclient
65108 189695 1 0 3 0x80 poll dhclient
82320 179279 0 0 3 0x14200 pgzero zerothread
72761 234322 0 0 3 0x14200 aiodoned aiodoned
14794 487743 0 0 3 0x14200 syncer update
91198 72154 0 0 3 0x14200 cleaner cleaner
4627 67681 0 0 3 0x14200 reaper reaper
73916 84988 0 0 3 0x14200 pgdaemon pagedaemon
18993 468347 0 0 3 0x14200 bored crynlk
15802 254642 0 0 3 0x14200 bored crypto
63900 167118 0 0 3 0x40014200 acpi0 acpi0
58610 234001 0 0 3 0x40014200 idle1
1896 464560 0 0 3 0x14200 bored softnet
33183 441208 0 0 3 0x14200 bored systqmp
11283 388166 0 0 3 0x14200 bored systq
62854 366844 0 0 3 0x40014200 bored softclock
58117 214958 0 0 3 0x40014200 idle0
90098 463227 0 0 3 0x14200 bored smr
1 176834 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 53530 (syz-executor.0) thread 0xffff800020acf8d0 (335772)
shared rwlock vmlistlock r = 0 (0xffff80000066e478)
#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 (0xffffffff82662188)
#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 9604 6719K 7670K 78643K 22615 0 0
pcb 13 8K 8K 78643K 553 0 0
rtable 115 12K 13K 78643K 1692 0 0
ifaddr 78 18K 20K 78643K 569 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 4K 78643K 1595 0 0
iov 0 0K 16K 78643K 444 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1214 76K 77K 78643K 5688 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 9K 78643K 62 0 0
VM map 2 1K 1K 78643K 10 0 0
sem 12 0K 0K 78643K 493 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12765 0 0
file desc 5 13K 25K 78643K 3936 0 0
sigio 0 0K 0K 78643K 34 0 0
proc 62 63K 95K 78643K 1518 0 0
subproc 32 2K 2K 78643K 329 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 1K 78643K 2220 0 0
in_multi 33 2K 2K 78643K 313 0 0
ether_multi 1 0K 0K 78643K 21 0 0
mrt 1 0K 0K 78643K 23 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 120 530K 530K 78643K 120 0 0
exec 0 0K 1K 78643K 743 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 106 21K 22K 78643K 14557 0 0
UVM aobj 130 5K 5K 78643K 140 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 527 0 0
NDP 20 0K 0K 78643K 175 0 0
temp 214 3556K 4196K 78643K 67351 0 0
kqueue 0 0K 0K 78643K 39 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 43 0 37 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 244 0 242 1 0 1 1 0 8 0
rtentry 112 236 0 192 2 0 2 2 0 8 0
unpcb 120 1954 0 1938 2 1 1 2 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 5153 0 5153 1 1 0 1 0 8 0
tcpcb 544 923 0 919 1 0 1 1 0 8 0
inpcb 280 3616 0 3609 13 12 1 2 0 8 0
rttmr 72 2 0 2 2 2 0 1 0 8 0
nd6 48 38 0 34 1 0 1 1 0 8 0
pkpcb 40 20 0 20 7 7 0 1 0 8 0
ppxss 1128 87 0 87 13 12 1 1 0 8 1
pffrag 232 1 0 1 1 1 0 1 0 482 0
pffrnode 88 1 0 1 1 1 0 1 0 8 0
pffrent 40 3 0 3 1 1 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 127 0 105 1 0 1 1 0 8 0
pfstkey 112 127 0 105 1 0 1 1 0 8 0
pfstate 328 127 0 105 3 0 3 3 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 984 0 768 17 3 14 14 0 8 0
art_table 32 985 0 768 2 0 2 2 0 8 0
art_node 16 219 0 179 1 0 1 1 0 8 0
sysvmsgpl 40 27 0 19 1 0 1 1 0 8 0
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 112 491 0 481 1 0 1 1 0 8 0
shmpl 112 138 0 10 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 7456 0 6051 46 0 46 46 0 8 0
ffsino 272 7456 0 6051 95 0 95 95 0 8 0
nchpl 144 13842 0 12212 61 0 61 61 0 8 0
uvmvnodes 72 6119 0 0 112 0 112 112 0 8 0
vnodes 208 6119 0 0 323 0 323 323 0 8 0
namei 1024 57575 0 57575 3 2 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
vmpool 552 8 0 8 3 3 0 1 0 8 0
scsiplug 64 6 0 6 4 4 0 1 0 8 0
scxspl 192 37571 0 37571 25 24 1 7 0 8 1
plimitpl 152 403 0 395 1 0 1 1 0 8 0
sigapl 432 4086 0 4071 3 1 2 3 0 8 0
futexpl 56 76914 0 76914 1 0 1 1 0 8 1
knotepl 112 934 0 915 1 0 1 1 0 8 0
kqueuepl 104 900 0 897 1 0 1 1 0 8 0
pipepl 112 1940 0 1919 6 5 1 2 0 8 0
fdescpl 488 4087 0 4071 3 0 3 3 0 8 0
filepl 152 39760 0 39652 17 11 6 6 0 8 1
lockfpl 104 1191 0 1187 1 0 1 1 0 8 0
lockfspl 48 424 0 421 1 0 1 1 0 8 0
sessionpl 112 36 0 25 1 0 1 1 0 8 0
pgrppl 48 304 0 293 1 0 1 1 0 8 0
ucredpl 96 14357 0 14347 1 0 1 1 0 8 0
zombiepl 144 4073 0 4072 3 2 1 1 0 8 0
processpl 896 4106 0 4072 4 0 4 4 0 8 0
procpl 632 12983 0 12938 5 0 5 5 0 8 0
srpgc 64 34 0 34 12 11 1 1 0 8 1
sosppl 128 41 0 41 12 11 1 1 0 8 1
sockpl 384 5892 0 5867 18 14 4 5 0 8 0
mcl64k 65536 19 0 0 3 0 3 3 0 8 0
mcl16k 16384 7 0 0 1 0 1 1 0 8 0
mcl12k 12288 17 0 0 2 0 2 2 0 8 0
mcl9k 9216 15 0 0 2 0 2 2 0 8 0
mcl8k 8192 17 0 0 3 0 3 3 0 8 0
mcl4k 4096 33 0 0 5 2 3 3 0 8 0
mcl2k2 2112 11 0 0 1 0 1 1 0 8 0
mcl2k 2048 146 0 0 17 1 16 17 0 8 0
mtagpl 80 30 0 0 1 0 1 1 0 8 0
mbufpl 256 677 0 0 30 0 30 30 0 8 0
bufpl 256 19468 0 12420 441 0 441 441 0 8 0
anonpl 16 405360 0 394103 184 115 69 90 0 124 8
amapchunkpl 152 26580 0 26470 23 17 6 10 0 158 0
amappl16 192 19875 0 19078 157 108 49 64 0 8 8
amappl15 184 487 0 482 4 3 1 1 0 8 0
amappl14 176 1623 0 1621 2 1 1 1 0 8 0
amappl13 168 71 0 71 2 2 0 1 0 8 0
amappl12 160 317 0 316 1 0 1 1 0 8 0
amappl11 152 1019 0 1004 1 0 1 1 0 8 0
amappl10 144 578 0 572 1 0 1 1 0 8 0
amappl9 136 931 0 924 1 0 1 1 0 8 0
amappl8 128 419 0 395 1 0 1 1 0 8 0
amappl7 120 673 0 663 1 0 1 1 0 8 0
amappl6 112 978 0 969 1 0 1 1 0 8 0
amappl5 104 561 0 547 1 0 1 1 0 8 0
amappl4 96 4182 0 4147 2 1 1 2 0 8 0
amappl3 88 944 0 937 1 0 1 1 0 8 0
amappl2 80 30889 0 30814 4 2 2 3 0 8 0
amappl1 72 101396 0 100951 26 16 10 20 0 8 0
amappl 80 13503 0 13464 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 139 0 10 3 0 3 3 0 8 0
uaddrrnd 24 4095 0 4071 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 4095 0 4071 1 0 1 1 0 8 0
vmmpekpl 168 33661 0 33628 2 0 2 2 0 8 0
vmmpepl 168 509217 0 507280 266 152 114 114 0 357 22
vmsppl 368 4086 0 4071 2 0 2 2 0 8 0
pdppl 4096 8197 0 8158 7 1 6 6 0 8 0
pvpl 32 1091170 0 1076681 359 189 170 219 0 265 23
pmappl 232 4094 0 4079 5 4 1 2 0 8 0
extentpl 40 41 0 26 1 0 1 1 0 8 0
phpool 112 633 0 12 18 0 18 18 0 8 0