syzbot


uvm_fault: m_copym

Status: auto-closed as invalid on 2020/03/14 22:24
Reported-by: syzbot+cb6dff4611ec08146a4c@syzkaller.appspotmail.com
First crash: 1564d, last: 1564d

Sample crash report:
uvm_fault(0xffffffff8250bc90, 0xfffffd0000000018, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      m_copym+0xae:   movl    0x18(%r15),%r14d
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
kernel page fault
uvm_fault(0xffffffff8250bc90, 0xfffffd0000000018, 0, 1) -> e
m_copym(fffffd8006278100,ec,580,2) at m_copym+0xae m_getptr sys/kern/uipc_mbuf.c:1033 [inline]
m_copym(fffffd8006278100,ec,580,2) at m_copym+0xae sys/kern/uipc_mbuf.c:657
end trace frame: 0xffff80001d35fe00, count: 0
ddb> trace
m_copym(fffffd8006278100,ec,580,2) at m_copym+0xae m_getptr sys/kern/uipc_mbuf.c:1033 [inline]
m_copym(fffffd8006278100,ec,580,2) at m_copym+0xae sys/kern/uipc_mbuf.c:657
tcp_output(ffff8000009e5980) at tcp_output+0x154d sys/netinet/tcp_output.c:673
tcp_usrreq(fffffd805d901788,9,fffffd8006278000,0,0,ffff8000ffff49f0) at tcp_usrreq+0xa54
sosend(fffffd805d901788,0,ffff80001d360058,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:524
dofilewritev(ffff8000ffff49f0,4,ffff80001d360058,0,ffff80001d360140) at dofilewritev+0x1ac sys/kern/sys_generic.c:364
sys_write(ffff8000ffff49f0,ffff80001d3600f0,ffff80001d360140) at sys_write+0x83 sys/kern/sys_generic.c:284
syscall(ffff80001d3601c0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff48e0, count: -8
ddb> show registers
rdi                       0xffffffff
rsi                             0x5c
rbp               0xffff80001d35fc60
rbx                             0x5c
rdx                            0x580
rcx                              0x2
rax                                0
r8                                 0
r9                               0x5
r10               0x3d388f2aee36dbe3
r11               0xf58f54ab6240ec2e
r12                                0
r13                             0x5c
r14                             0x90
r15               0xfffffd0000000000
rip               0xffffffff818b001e    m_copym+0xae
cs                               0x8
rflags                       0x10206    __ALIGN_SIZE+0xf206
rsp               0xffff80001d35fbd0
ss                              0x10
m_copym+0xae:   movl    0x18(%r15),%r14d
ddb> show proc
PROC (sshd) pid=167496 stat=onproc
    flags process=12<EXEC,SUGID> proc=0
    pri=50, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff8000ffff5648,0xffff8000ffff4020
    process=0xffff80001d3937f0 user=0xffff80001d35b000, vmspace=0xfffffd806bc12aa0
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  4840  399724    359      0  2           0                syz-executor.0
  4840  164612    359      0  3   0x4000080  select        syz-executor.0
   359  223560  30357      0  2       0x482                syz-executor.0
 93318  225780      0      0  3     0x14200  bored         sosplice
 86043  451637  30357      0  2         0x2                syz-executor.1
 30357  103182  12037      0  3        0x82  thrsleep      syz-fuzzer
 30357  508976  12037      0  2   0x4000482                syz-fuzzer
 30357   16816  12037      0  3   0x4000082  thrsleep      syz-fuzzer
 30357  415774  12037      0  3   0x4000082  thrsleep      syz-fuzzer
 30357  510961  12037      0  3   0x4000082  thrsleep      syz-fuzzer
 30357  252519  12037      0  3   0x4000082  thrsleep      syz-fuzzer
 30357  133125  12037      0  3   0x4000082  thrsleep      syz-fuzzer
 30357  244525  12037      0  2   0x4000002                syz-fuzzer
 12037  195679   7885      0  3    0x10008a  pause         ksh
* 7885  167496   1062      0  7        0x12                sshd
 48527  289390      1      0  3    0x100083  ttyin         getty
  1062  334893      1      0  3        0x80  select        sshd
  8206   41301  13582     73  3    0x100090  kqread        syslogd
 13582   42171      1      0  3    0x100082  netio         syslogd
 44054  496603      1     77  3    0x100090  poll          dhclient
 81309   34770      1      0  3        0x80  poll          dhclient
 22863  137599      0      0  2     0x14200                zerothread
 86366  316327      0      0  3     0x14200  aiodoned      aiodoned
 79942  141446      0      0  3     0x14200  syncer        update
 44647   99638      0      0  3     0x14200  cleaner       cleaner
 90680  107221      0      0  3     0x14200  reaper        reaper
 52720  474217      0      0  3     0x14200  pgdaemon      pagedaemon
 77505  382070      0      0  3     0x14200  bored         crynlk
 87967  505464      0      0  3     0x14200  bored         crypto
 35618  139283      0      0  3  0x40014200  acpi0         acpi0
 39106   64140      0      0  2     0x14200                softnet
 65445  364862      0      0  3     0x14200  bored         systqmp
 32220  349845      0      0  3     0x14200  bored         systq
 19055  288744      0      0  3  0x40014200  bored         softclock
 79537  505236      0      0  3  0x40014200                idle0
 30901  276179      0      0  3     0x14200  bored         smr
     1  235560      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb> show all locks
No such command
ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9526   6626K    6877K  78643K     11668        0
            pcb    13      8K       8K  78643K       136        0
         rtable   120     12K      12K  78643K       425        0
         ifaddr    75     15K      15K  78643K       139        0
       counters    19     16K      16K  78643K        19        0
       ioctlops     0      0K       2K  78643K        60        0
            iov     0      0K      24K  78643K       248        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1220     77K      77K  78643K      1587        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         5        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      0K       0K  78643K       209        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     5     13K      25K  78643K       461        0
          sigio     0      0K       0K  78643K        14        0
           proc    49     38K      63K  78643K       474        0
        subproc    32      2K       2K  78643K        68        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        44        0
       in_multi    61      3K       3K  78643K        88        0
    ether_multi     1      0K       0K  78643K         2        0
            mrt     0      0K       0K  78643K         6        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    60    265K     265K  78643K        60        0
           exec     0      0K       1K  78643K       264        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   146    153K     153K  78643K      2036        0
       UVM aobj    22      4K       5K  78643K        26        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       127        0
            NDP    12      0K       0K  78643K        29        0
           temp   135   3031K    3095K  78643K     13879        0
         kqueue     0      0K       0K  78643K         2        0
      SYN cache     2     16K      16K  78643K         2        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       16    0        9     1     0     1     1     0     8    0
rtpcb       80       69    0       67     1     0     1     1     0     8    0
rtentry    112       85    0       38     2     0     2     2     0     8    0
unpcb      120      281    0      273     1     0     1     1     0     8    0
syncache   264        6    0        6     2     2     0     1     0     8    0
sackhl      24        1    0        1     1     1     0     1     0     8    0
tcpqe       32      486    0      486     2     2     0     1     0     8    0
tcpcb      544      448    0      444     2     0     2     2     0     8    1
ipq         40        6    0        6     2     2     0     1     0     8    0
ipqe        40      100    0      100     2     2     0     1     0     8    0
inpcb      280     1144    0     1137     2     0     2     2     0     8    1
rttmr       72        2    0        2     2     2     0     1     0     8    0
nd6         48        8    0        4     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     1     0     1     0     8    0
ppxss      1128       5    0        5     1     1     0     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      338    0      105    15     0    15    15     0     8    0
art_table   32      339    0      105     2     0     2     2     0     8    0
art_node    16       82    0       39     1     0     1     1     0     8    0
sysvmsgpl   40       17    0        6     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112      205    0      195     1     0     1     1     0     8    0
shmpl      112       24    0        4     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     2022    0      623    46     0    46    46     0     8    0
ffsino     240     2022    0      623    83     0    83    83     0     8    0
nchpl      144     2987    0     1380    61     0    61    61     0     8    0
uvmvnodes   72     2351    0        0    43     0    43    43     0     8    0
vnodes     208     2351    0        0   124     0   124   124     0     8    0
namei      1024    8475    0     8475     1     0     1     1     0     8    1
vcpupl     1984      19    0        0     3     0     3     3     0     8    0
vmpool     528       20    0        1     2     0     2     2     0     8    0
scsiplug    64        1    0        1     1     1     0     1     0     8    0
scxspl     192     8395    0     8395     2     1     1     1     0     8    1
plimitpl   152       68    0       61     1     0     1     1     0     8    0
sigapl     432      626    0      613     2     0     2     2     0     8    0
futexpl     56    13955    0    13955     1     0     1     1     0     8    1
knotepl    112      147    0      128     1     0     1     1     0     8    0
kqueuepl   104      147    0      145     1     0     1     1     0     8    0
pipepl     128      422    0      403     3     1     2     2     0     8    1
fdescpl    424      627    0      613     2     0     2     2     0     8    0
filepl     120     5223    0     5127     5     1     4     5     0     8    1
lockfpl    104      180    0      179     1     0     1     1     0     8    0
lockfspl    48       52    0       51     1     0     1     1     0     8    0
sessionpl  112       19    0        9     1     0     1     1     0     8    0
pgrppl      48       29    0       19     1     0     1     1     0     8    0
ucredpl     96      509    0      502     1     0     1     1     0     8    0
zombiepl   144      613    0      613     1     0     1     1     0     8    1
processpl  872      642    0      613     4     0     4     4     0     8    0
procpl     632     1169    0     1132     4     0     4     4     0     8    0
sosppl     128        8    0        8     2     2     0     1     0     8    0
sockpl     384     1506    0     1489     5     1     4     5     0     8    2
mcl64k     65536    293    0      293    33    33     0    33     0     8    0
mcl16k     16384     14    0       14     2     1     1     1     0     8    1
mcl12k     12288     12    0       12     2     1     1     1     0     8    1
mcl9k      9216      14    0       14     2     1     1     1     0     8    1
mcl8k      8192      77    0       77     1     0     1     1     0     8    1
mcl4k      4096      60    0       59     2     1     1     1     0     8    0
mcl2k2     2112       3    0        3     2     1     1     1     0     8    1
mcl2k      2048   69567    0    69513    26    18     8    19     0     8    0
mtagpl      80       37    0       11     2     1     1     1     0     8    0
mbufpl     256   114778    0   114620    34    21    13    22     0     8    0
bufpl      280     9189    0     2724   462     0   462   462     0     8    0
anonpl      16   113116    0    93326   103    13    90    98     0   107    8
amapchunkpl 152    3591    0     3429    23    11    12    17     0   158    4
amappl16   192     4675    0     3555    85    20    65    69     0     8    8
amappl15   184       56    0       51     1     0     1     1     0     8    0
amappl14   176      175    0      173     1     0     1     1     0     8    0
amappl13   168       62    0       58     1     0     1     1     0     8    0
amappl12   160        8    0        7     2     1     1     1     0     8    0
amappl11   152       57    0       45     1     0     1     1     0     8    0
amappl10   144       12    0       10     1     0     1     1     0     8    0
amappl9    136      791    0      787     1     0     1     1     0     8    0
amappl8    128      339    0      311     1     0     1     1     0     8    0
amappl7    120      101    0       90     1     0     1     1     0     8    0
amappl6    112       53    0       48     1     0     1     1     0     8    0
amappl5    104      163    0      152     1     0     1     1     0     8    0
amappl4     96      833    0      799     1     0     1     1     0     8    0
amappl3     88      209    0      202     1     0     1     1     0     8    0
amappl2     80     4223    0     4149     3     1     2     3     0     8    0
amappl1     72    21245    0    20832    27    18     9    20     0     8    0
amappl      80     1463    0     1410     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
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      64       25    0        4     1     0     1     1     0     8    0
uaddrrnd    24      647    0      614     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      647    0      614     1     0     1     1     0     8    0
vmmpekpl   168     8064    0     8041     2     0     2     2     0     8    0
vmmpepl    168    84577    0    82297   169    28   141   141     0   357   36
vmsppl     272      646    0      614     3     0     3     3     0     8    0
pdppl      4096    1300    0     1247     8     1     7     7     0     8    0
pvpl        32   309412    0   287347   302    24   278   299     0   265   96
pmappl     200      646    0      614     2     0     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      216    0       77     6     0     6     6     0     8    1

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/15 22:24 openbsd 12d482ab3315 eef6e580 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.