syzbot


panic: malloc: alWlARoNcIaNtG:i onSP Lt oNoO Tl aLrOWgEeRE,D tOypN eS =YS C2,A LsL i3 z4e E=X IT1 8404 6974

Status: closed as dup on 2019/08/31 12:38
Reported-by: syzbot+2046f29eed21d9df3267@syzkaller.appspotmail.com
First crash: 1939d, last: 1939d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: malloc: allocation too large, type = 2, size = ADDR (2) C 16842 1928d 1946d

Sample crash report:
panic: malloc: alWlARoNcIaNtG:i onSP Lt oNoO Tl aLrOWgEeRE,D  tOypN eS =YS C2,A LsL i3 z4e  E=X IT1 8404 6974
40Stopped at      savectx+0xb1:   movl    $0,%gs:0x530
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 446815  91322      0           0  0x4000000    0  syz-executor.1
*449674  26467     74    0x100012          0    1  pflogd
savectx(6,0,13ae2bf814b0,3,13ac14603b16,13aefceca000) at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffcee70, 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 = 18446744073709550976

ddb{1}> trace
savectx(6,0,13ae2bf814b0,3,13ac14603b16,13aefceca000) at savectx+0xb1
end of kernel
end trace frame: 0x7f7ffffcee70, count: -1
ddb{1}> show registers
rdi                                0
rsi                                0
rbp               0xffff800020aab8f0
rbx                                0
rdx               0xffff800020ac0778
rcx                                0
rax                             0x31
r8                0xffffffff81a5e3cf    kprintf+0x16f
r9                               0x1
r10                             0x25
r11                0xafc69d04a4ba0ba
r12                                0
r13                                0
r14               0xffff800020ac0778
r15                                0
rip               0xffffffff820dd3f1    savectx+0xb1
cs                               0x8
rflags                          0x46
rsp               0xffff800020aab870
ss                              0x10
savectx+0xb1:   movl    $0,%gs:0x530
ddb{1}> show proc
PROC (pflogd) pid=449674 stat=onproc
    flags process=100012<EXEC,SUGID,PLEDGE> proc=0
    pri=50, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ac1158,0xffff800020ac1658
    process=0xffff800020adce00 user=0xffff800020aa6000, vmspace=0xfffffd806e7d62e8
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 91322  449169   4827      0  2           0                syz-executor.1
 91322  369513   4827      0  3   0x4000080  fsleep        syz-executor.1
 91322  446815   4827      0  7   0x4000000                syz-executor.1
 21327   20895  72695      0  2       0x482                syz-executor.0
  4827  339428  72695      0  3        0x82  nanosleep     syz-executor.1
 63238  501219      0      0  3     0x14200  bored         sosplice
 57744  154113      0      0  3     0x14200  acct          acct
 72695  336037  78505      0  3        0x82  thrsleep      syz-fuzzer
 72695  260971  78505      0  3   0x4000082  nanosleep     syz-fuzzer
 72695  473021  78505      0  3   0x4000082  thrsleep      syz-fuzzer
 72695  176127  78505      0  3   0x4000082  thrsleep      syz-fuzzer
 72695  482011  78505      0  3   0x4000082  kqread        syz-fuzzer
 72695   38522  78505      0  3   0x4000082  thrsleep      syz-fuzzer
 72695  418301  78505      0  3   0x4000082  thrsleep      syz-fuzzer
 72695   45347  78505      0  3   0x4000082  thrsleep      syz-fuzzer
 72695  464743  78505      0  3   0x4000082  thrsleep      syz-fuzzer
 72695  322916  78505      0  2   0x4000482                syz-fuzzer
 78505  240177  76304      0  3    0x10008a  pause         ksh
 76304  400495  35648      0  3        0x92  select        sshd
 50621  111159      1      0  3    0x100083  ttyin         getty
 35648  359210      1      0  3        0x80  select        sshd
*26467  449674  97097     74  7    0x100012                pflogd
 97097  114473      1      0  3        0x80  netio         pflogd
  2977  233061   7211     73  3    0x100090  kqread        syslogd
  7211  279440      1      0  3    0x100082  netio         syslogd
 70502   15116      1     77  3    0x100090  poll          dhclient
 47710   14755      1      0  3        0x80  poll          dhclient
 92385  392940      0      0  3     0x14200  pgzero        zerothread
  7729  369512      0      0  3     0x14200  aiodoned      aiodoned
 82124  107073      0      0  3     0x14200  syncer        update
 75185   99216      0      0  3     0x14200  cleaner       cleaner
  4941  477410      0      0  3     0x14200  reaper        reaper
 81765  272684      0      0  3     0x14200  pgdaemon      pagedaemon
 94157    7570      0      0  3     0x14200  bored         crynlk
  4182   80325      0      0  3     0x14200  bored         crypto
 11145  389387      0      0  3  0x40014200  acpi0         acpi0
 45850  280884      0      0  3  0x40014200                idle1
 75682  295208      0      0  3     0x14200  bored         softnet
 42213  216520      0      0  3     0x14200  bored         systqmp
  5854  487985      0      0  3     0x14200  bored         systq
 13222  334135      0      0  2  0x40014200                softclock
 36528  232162      0      0  3  0x40014200                idle0
  5793  352171      0      0  3     0x14200  bored         smr
     1  193617      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 91322 (syz-executor.1) thread 0xffff800020abf8c8 (446815)
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 (0xffffffff8264cd40)
#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  9542   6436K    7074K  78643K     14096        0        0
            pcb    13      8K       8K  78643K       211        0        0
         rtable   113      4K       5K  78643K       601        0        0
         ifaddr    65     14K      15K  78643K       204        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1542        0        0
            iov     0      0K      16K  78643K       121        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1211     76K      77K  78643K      2495        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        14        0        0
         VM map     2      1K       1K  78643K         6        0        0
            sem    12      0K       0K  78643K       162        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1809    196K     290K  78643K     12843        0        0
      file desc     5     13K      25K  78643K      1462        0        0
          sigio     0      0K       0K  78643K        17        0        0
           proc    61     63K      83K  78643K       722        0        0
        subproc    32      2K       2K  78643K       102        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       126        0        0
       in_multi    33      2K       2K  78643K       129        0        0
    ether_multi     1      0K       0K  78643K         8        0        0
            mrt     0      0K       0K  78643K         3        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    84    371K     371K  78643K        84        0        0
           exec     0      0K       1K  78643K       350        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      30K  78643K      5631        0        0
       UVM aobj    53      3K       3K  78643K        53        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       220        0        0
            NDP    14      0K       0K  78643K        60        0        0
           temp   186   3560K    3628K  78643K     28679        0        0
         kqueue     0      0K       0K  78643K        11        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       17    0       10     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       87    0       85     1     0     1     1     0     8    0
rtentry    112       88    0       43     2     0     2     2     0     8    0
unpcb      120      453    0      443     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32     6261    0     6261     3     3     0     2     0     8    0
tcpcb      544      315    0      308     1     0     1     1     0     8    0
inpcb      280      957    0      948     3     2     1     2     0     8    0
nd6         48       12    0        8     1     0     1     1     0     8    0
pkpcb       40       10    0       10     3     3     0     1     0     8    0
ppxss      1128      26    0       26     5     4     1     1     0     8    1
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       56    0       40     1     0     1     1     0     8    0
pfstkey    112       56    0       40     1     0     1     1     0     8    0
pfstate    328       56    0       40     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      393    0      177    14     0    14    14     0     8    0
art_table   32      394    0      177     2     0     2     2     0     8    0
art_node    16       87    0       46     1     0     1     1     0     8    0
sysvmsgpl   40       17    0       12     1     0     1     1     0     8    0
semapl     112      160    0      150     1     0     1     1     0     8    0
shmpl      112       51    0        0     2     0     2     2     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     3566    0     2165    46     0    46    46     0     8    0
ffsino     272     3566    0     2165    94     0    94    94     0     8    0
nchpl      144     5744    0     4137    61     0    61    61     0     8    0
uvmvnodes   72     4509    0        0    82     0    82    82     0     8    0
vnodes     208     4509    0        0   238     0   238   238     0     8    0
namei      1024   17868    0    17868     3     2     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
vmpool     552        4    0        4     2     2     0     1     0     8    0
scsiplug    64        1    0        1     1     1     0     1     0     8    0
scxspl     192    15777    0    15777    13    10     3     7     0     8    3
plimitpl   152      133    0      125     1     0     1     1     0     8    0
sigapl     432     1650    0     1635     3     1     2     3     0     8    0
futexpl     56    19198    0    19197     2     1     1     1     0     8    0
knotepl    112      408    0      389     1     0     1     1     0     8    0
kqueuepl   104      334    0      332     1     0     1     1     0     8    0
pipepl     112      930    0      911     3     2     1     2     0     8    0
fdescpl    488     1651    0     1635     3     0     3     3     0     8    0
filepl     152     9775    0     9670     7     2     5     6     0     8    0
lockfpl    104      449    0      448     1     0     1     1     0     8    0
lockfspl    48      144    0      143     1     0     1     1     0     8    0
sessionpl  112       22    0       11     1     0     1     1     0     8    0
pgrppl      48       38    0       27     1     0     1     1     0     8    0
ucredpl     96     1803    0     1794     1     0     1     1     0     8    0
zombiepl   144     1635    0     1634     2     1     1     1     0     8    0
processpl  896     1668    0     1634     4     0     4     4     0     8    0
procpl     632     4666    0     4621     6     1     5     5     0     8    1
srpgc       64        8    0        8     4     4     0     1     0     8    0
sosppl     128       15    0       15     4     4     0     1     0     8    0
sockpl     384     1517    0     1496     6     3     3     4     0     8    0
mcl64k     65536      7    0        0     1     0     1     1     0     8    0
mcl16k     16384      5    0        0     1     0     1     1     0     8    0
mcl12k     12288     13    0        0     2     0     2     2     0     8    0
mcl9k      9216      11    0        0     1     0     1     1     0     8    0
mcl8k      8192       7    0        0     1     0     1     1     0     8    0
mcl4k      4096      11    0        0     2     0     2     2     0     8    0
mcl2k2     2112       5    0        0     1     0     1     1     0     8    0
mcl2k      2048     239    0        0    27     0    27    27     0     8    0
mtagpl      80       27    0        0     1     0     1     1     0     8    0
mbufpl     256      270    0        0    15     0    15    15     0     8    0
bufpl      256    10715    0     3667   441     0   441   441     0     8    0
anonpl      16   164867    0   152223   106    38    68    68     0   124   14
amapchunkpl 152    9794    0     9686    23    18     5    12     0   158    0
amappl16   192     7852    0     7148    84    40    44    48     0     8    8
amappl15   184      729    0      729     1     1     0     1     0     8    0
amappl14   176       52    0       50     1     0     1     1     0     8    0
amappl12   160      472    0      471     3     2     1     1     0     8    0
amappl11   152      351    0      333     1     0     1     1     0     8    0
amappl10   144       17    0       11     1     0     1     1     0     8    0
amappl9    136      672    0      666     1     0     1     1     0     8    0
amappl8    128      210    0      185     1     0     1     1     0     8    0
amappl7    120       66    0       59     1     0     1     1     0     8    0
amappl6    112      366    0      355     1     0     1     1     0     8    0
amappl5    104      638    0      623     1     0     1     1     0     8    0
amappl4     96     1444    0     1414     1     0     1     1     0     8    0
amappl3     88      619    0      614     1     0     1     1     0     8    0
amappl2     80    12516    0    12445     3     1     2     3     0     8    0
amappl1     72    45982    0    45525    26    16    10    20     0     8    0
amappl      80     4988    0     4951     1     0     1     1     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       52    0        0     1     0     1     1     0     8    0
uaddrrnd    24     1655    0     1635     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1655    0     1635     1     0     1     1     0     8    0
vmmpekpl   168    15170    0    15136     2     0     2     2     0     8    0
vmmpepl    168   206659    0   204811   173    77    96   105     0   357   12
vmsppl     368     1650    0     1635     2     0     2     2     0     8    0
pdppl      4096    3317    0     3278     7     1     6     6     0     8    0
pvpl        32   462311    0   446507   246    81   165   166     0   265   35
pmappl     232     1654    0     1639     4     3     1     2     0     8    0
extentpl    40       38    0       22     1     0     1     1     0     8    0
phpool     112      617    0        6    18     0    18    18     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/31 12:33 openbsd 2ff3873d0ce9 bcd7bcc2 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.