syzbot


panic: m_copym0: m == NULL and not COPYALL

Status: auto-closed as invalid on 2020/10/29 04:56
Reported-by: syzbot+99e1c896202acd479fe8@syzkaller.appspotmail.com
First crash: 1835d, last: 1571d

Sample crash report:
panic: m_copym0: m == NULL and not COPYALL
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*351152  12953      0        0x12          0    0  sshd
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82422f01) at panic+0x164 sys/kern/subr_prf.c:218
m_copym(fffffd805e206700,2a4,3b4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664
tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673
tcp_usrreq(fffffd805da73328,9,fffffd805e206600,0,0,ffff80001d702c68) at tcp_usrreq+0xa54
sosend(fffffd805da73328,0,ffff80001d71f138,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555
dofilewritev(ffff80001d702c68,4,ffff80001d71f138,0,ffff80001d71f220) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_write(ffff80001d702c68,ffff80001d71f1d0,ffff80001d71f220) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff80001d71f2a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe35b0, count: 5
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> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
m_copym0: m == NULL and not COPYALL
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82422f01) at panic+0x164 sys/kern/subr_prf.c:218
m_copym(fffffd805e206700,2a4,3b4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664
tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673
tcp_usrreq(fffffd805da73328,9,fffffd805e206600,0,0,ffff80001d702c68) at tcp_usrreq+0xa54
sosend(fffffd805da73328,0,ffff80001d71f138,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555
dofilewritev(ffff80001d702c68,4,ffff80001d71f138,0,ffff80001d71f220) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_write(ffff80001d702c68,ffff80001d71f1d0,ffff80001d71f220) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff80001d71f2a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe35b0, count: -10
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80001d71ec00
rbx               0xffff80001d71ecb0
rdx                             0x8b
rcx                              0x2
rax                              0x1
r8                0xffff80001d71ebc0
r9                0xffffffff821f998f    kprintf+0x15f
r10                              0x1
r11               0xa1a2fd528d914d70
r12                     0x3000000008
r13               0xffff80001d71ec10
r14                            0x100
r15                              0x1
rip               0xffffffff81589c68    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001d71ebf0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (sshd) pid=351152 stat=onproc
    flags process=12<EXEC,SUGID,8ORPHAN> proc=0
    pri=24, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff80001d703158,0xffff80001d702510
    process=0xffff80001d705288 user=0xffff80001d71a000, vmspace=0xfffffd806bc0a990
    estcpu=0, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 16701  289632  33579      0  2           0                syz-executor.1
 16701  440120  33579      0  3   0x4000080  poll          syz-executor.1
 66557   31019  92797      0  2         0x2                syz-executor.0
 33579  320241  92797      0  3        0x82  nanosleep     syz-executor.1
 13161  149211      0      0  3     0x14200  bored         sosplice
 92797  207261  61139      0  3        0x82  thrsleep      syz-fuzzer
 92797  393864  61139      0  2   0x4000002                syz-fuzzer
 92797  102625  61139      0  3   0x4000082  thrsleep      syz-fuzzer
 92797  325866  61139      0  3   0x4000082  thrsleep      syz-fuzzer
 92797  271945  61139      0  3   0x4000082  thrsleep      syz-fuzzer
 92797  512710  61139      0  2   0x4000002                syz-fuzzer
 92797  389115  61139      0  3   0x4000082  thrsleep      syz-fuzzer
 61139  177685  12953      0  3    0x10008a  pause         ksh
*12953  351152   2701      0  7        0x12                sshd
  3660  234337      1      0  3    0x100083  ttyin         getty
  2701   33599      1      0  3        0x80  select        sshd
 68255  253986  45264     73  3    0x100090  kqread        syslogd
 45264  302093      1      0  3    0x100082  netio         syslogd
 59221  265501      1     77  3    0x100090  poll          dhclient
 73890  340299      1      0  3        0x80  poll          dhclient
 91272  147876      0      0  3     0x14200  bored         smr
 27721  521282      0      0  2     0x14200                zerothread
  3388  392524      0      0  3     0x14200  aiodoned      aiodoned
 68954  230723      0      0  3     0x14200  syncer        update
 49561  144051      0      0  3     0x14200  cleaner       cleaner
 81521   37340      0      0  3     0x14200  reaper        reaper
 58390  312188      0      0  3     0x14200  pgdaemon      pagedaemon
 55331   19788      0      0  3     0x14200  bored         crynlk
  4608  195379      0      0  3     0x14200  bored         crypto
 66404  368430      0      0  3  0x40014200  acpi0         acpi0
 83631  258824      0      0  3     0x14200  bored         softnet
 68436  234954      0      0  3     0x14200  bored         systqmp
 80792  303554      0      0  3     0x14200  bored         systq
 64471  507986      0      0  3  0x40014200  bored         softclock
 67362   11003      0      0  3  0x40014200                idle0
     1  143908      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  9493   6340K    6599K  78643K     10882        0
            pcb    13      8K       8K  78643K        87        0
         rtable   118      5K       7K  78643K       492        0
         ifaddr    70     14K      14K  78643K       175        0
         sysctl     2      0K       0K  78643K         2        0
       counters    21     16K      16K  78643K        25        0
       ioctlops     0      0K       4K  78643K        77        0
            iov     0      0K      16K  78643K        34        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1223     77K      77K  78643K      1371        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       1K  78643K        76        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    195K     288K  78643K     12938        0
      file desc     5     13K      25K  78643K       390        0
          sigio     0      0K       0K  78643K         4        0
           proc    49     38K      55K  78643K       465        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        68        0
       in_multi    51      3K       3K  78643K       139        0
    ether_multi     1      0K       0K  78643K        15        0
            mrt     0      0K       0K  78643K         4        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    55    254K     254K  78643K        55        0
           exec     0      0K       1K  78643K       220        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   125     39K      39K  78643K      1799        0
       UVM aobj    11      2K       2K  78643K        13        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        62        0
            NDP    11      0K       0K  78643K        30        0
           temp   110   3863K    3929K  78643K      6572        0
         kqueue     3      4K       8K  78643K        13        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       10    0        4     1     0     1     1     0     8    0
rtpcb       88       37    0       35     1     0     1     1     0     8    0
rtentry    112       84    0       39     2     0     2     2     0     8    0
unpcb      120     1025    0     1017     1     0     1     1     0     8    0
syncache   272        4    0        4     1     1     0     1     0     8    0
tcpqe       32      121    0      121     1     1     0     1     0     8    0
tcpcb      592      154    0      146     3     1     2     2     0     8    0
ipq         40        2    0        2     1     1     0     1     0     8    0
ipqe        40        8    0        8     1     1     0     1     0     8    0
inpcb      296      767    0      760     4     2     2     2     0     8    1
rttmr       72        2    0        2     1     0     1     1     0     8    1
nd6         48       23    0       17     1     0     1     1     0     8    0
pkpcb       40        8    0        8     1     0     1     1     0     8    1
ppxss      1136       1    0        1     1     1     0     1     0     8    0
pfrktable  1344      69    0       67     4     3     1     1     0     8    0
pftag       88       25    0       24     2     1     1     1     0     8    0
pfrule     1360      24    0       18     2     1     1     1     0     8    0
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      331    0      136    15     2    13    15     0     8    0
art_table   32      333    0      136     2     0     2     2     0     8    0
art_node    16       81    0       40     1     0     1     1     0     8    0
sysvmsgpl   40       44    0       35     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112       72    0       62     1     0     1     1     0     8    0
shmpl      112       10    0        2     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1862    0      467    88     0    88    88     0     8    0
ffsino     240     1862    0      467    83     0    83    83     0     8    0
nchpl      144     2551    0      975    60     0    60    60     0     8    0
uvmvnodes   72     2010    0        0    37     0    37    37     0     8    0
vnodes     208     2010    0        0   106     0   106   106     0     8    0
namei      1024    6917    0     6917     3     2     1     1     0     8    1
vcpupl     1984       1    0        0     1     0     1     1     0     8    0
vmpool     528        1    0        0     1     0     1     1     0     8    0
pfiaddrpl  120       20    0       18     4     3     1     1     0     8    0
scxspl     200     7383    0     7383     2     1     1     1     0     8    1
plimitpl   152       46    0       39     1     0     1     1     0     8    0
sigapl     424      571    0      542     4     0     4     4     0     8    0
futexpl     56     8082    0     8082     3     2     1     1     0     8    1
knotepl    112       97    0       77     1     0     1     1     0     8    0
kqueuepl   152       50    0       48     1     0     1     1     0     8    0
pipepl     272      131    0      119     2     0     2     2     0     8    1
fdescpl    432      556    0      542     2     0     2     2     0     8    0
filepl     120     4135    0     4036     6     0     6     6     0     8    3
lockfpl    104       37    0       36     1     0     1     1     0     8    0
lockfspl    48       17    0       16     1     0     1     1     0     8    0
sessionpl  120       19    0        9     1     0     1     1     0     8    0
pgrppl      48       19    0        9     1     0     1     1     0     8    0
ucredpl     96      364    0      356     1     0     1     1     0     8    0
zombiepl   144      542    0      542     1     0     1     1     0     8    1
processpl  944      571    0      542     4     0     4     4     0     8    0
procpl     632      992    0      956     4     0     4     4     0     8    0
sosppl     144        5    0        5     2     1     1     1     0     8    1
sockpl     400     1846    0     1829     7     3     4     4     0     8    2
mcl64k     65536     14    0       14     4     3     1     1     0     8    1
mcl16k     16384      3    0        3     3     2     1     1     0     8    1
mcl12k     12288     11    0       11     2     1     1     1     0     8    1
mcl9k      9216       8    0        8     2     1     1     1     0     8    1
mcl8k      8192      16    0       16     3     2     1     1     0     8    1
mcl4k      4096      36    0       36     4     3     1     1     0     8    1
mcl2k2     2112       2    0        2     1     0     1     1     0     8    1
mcl2k      2048   90373    0    90312    18    10     8    16     0     8    0
mtagpl      96       24    0       19     2     1     1     1     0     8    0
mbufpl     256   145905    0   145784    18     6    12    14     0     8    0
bufpl      280     3915    0      122   271     0   271   271     0     8    0
anonpl      16    72225    0    56021    76     2    74    75     0   107    0
amapchunkpl 152    2676    0     2485    10     1     9    10     0   158    0
amappl16   192     2466    0     1505    51     1    50    50     0     8    1
amappl15   184        1    0        0     1     0     1     1     0     8    0
amappl14   176       12    0        9     1     0     1     1     0     8    0
amappl13   168      113    0      106     1     0     1     1     0     8    0
amappl12   160       96    0       91     1     0     1     1     0     8    0
amappl11   152      142    0      133     1     0     1     1     0     8    0
amappl10   144       70    0       66     1     0     1     1     0     8    0
amappl9    136      478    0      477     1     0     1     1     0     8    0
amappl8    128      456    0      429     1     0     1     1     0     8    0
amappl7    120      163    0      151     1     0     1     1     0     8    0
amappl6    112      116    0      109     1     0     1     1     0     8    0
amappl5    104      412    0      401     1     0     1     1     0     8    0
amappl4     96      532    0      499     1     0     1     1     0     8    0
amappl3     88      202    0      192     1     0     1     1     0     8    0
amappl2     80     3495    0     3431     2     0     2     2     0     8    0
amappl1     72    21695    0    21279    24    15     9    17     0     8    0
amappl      80     1280    0     1224     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       12    0        2     1     0     1     1     0     8    0
uaddrrnd    24      557    0      542     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      557    0      542     1     0     1     1     0     8    0
vmmpekpl   168     7435    0     7409     2     0     2     2     0     8    0
vmmpepl    168    76132    0    74065   156    37   119   149     0   357   28
vmsppl     272      556    0      542     3     1     2     2     0     8    1
pdppl      4096    1120    0     1085     6     1     5     6     0     8    0
pvpl        32   218074    0   198870   175     2   173   175     0   265    0
pmappl     200      556    0      542     1     0     1     1     0     8    0
extentpl    40       53    0       36     1     0     1     1     0     8    0
phpool     112      267    0       39     7     0     7     7     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82422f01) at panic+0x164 sys/kern/subr_prf.c:218
m_copym(fffffd805e206700,2a4,3b4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664
tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673
tcp_usrreq(fffffd805da73328,9,fffffd805e206600,0,0,ffff80001d702c68) at tcp_usrreq+0xa54
sosend(fffffd805da73328,0,ffff80001d71f138,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555
dofilewritev(ffff80001d702c68,4,ffff80001d71f138,0,ffff80001d71f220) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_write(ffff80001d702c68,ffff80001d71f1d0,ffff80001d71f220) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff80001d71f2a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe35b0, count: -10
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82422f01) at panic+0x164 sys/kern/subr_prf.c:218
m_copym(fffffd805e206700,2a4,3b4,2) at m_copym+0x589 sys/kern/uipc_mbuf.c:664
tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673
tcp_usrreq(fffffd805da73328,9,fffffd805e206600,0,0,ffff80001d702c68) at tcp_usrreq+0xa54
sosend(fffffd805da73328,0,ffff80001d71f138,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555
dofilewritev(ffff80001d702c68,4,ffff80001d71f138,0,ffff80001d71f220) at dofilewritev+0x1ab sys/kern/sys_generic.c:365
sys_write(ffff80001d702c68,ffff80001d71f1d0,ffff80001d71f220) at sys_write+0x83 sys/kern/sys_generic.c:285
syscall(ffff80001d71f2a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe35b0, count: -10

Crashes (306):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/03 15:12 openbsd 02ddb7a22afb 63a73341 .config console log report ci-openbsd-main
2020/08/02 11:38 openbsd 41d03808d33a 63a73341 .config console log report ci-openbsd-main
2020/08/02 05:31 openbsd 724b49ef0a35 d895b3be .config console log report ci-openbsd-main
2020/08/01 17:07 openbsd 18f4917e2c82 d895b3be .config console log report ci-openbsd-main
2020/07/31 19:48 openbsd d7a9fa610752 d895b3be .config console log report ci-openbsd-multicore
2020/07/29 22:37 openbsd 511c53b12928 233283a1 .config console log report ci-openbsd-main
2020/07/25 09:31 openbsd a9f43bc31f08 0a13649c .config console log report ci-openbsd-main
2020/07/24 22:05 openbsd 6e780b9a59f4 554af388 .config console log report ci-openbsd-main
2020/07/23 08:13 openbsd fad015d206fd 340ea530 .config console log report ci-openbsd-main
2020/07/23 00:48 openbsd fad015d206fd 340ea530 .config console log report ci-openbsd-main
2020/07/22 22:00 openbsd e9ef9ac65b9c 128cd85f .config console log report ci-openbsd-main
2020/07/22 17:34 openbsd e9ef9ac65b9c 128cd85f .config console log report ci-openbsd-main
2020/07/21 13:39 openbsd 38194102e48c 328906f3 .config console log report ci-openbsd-main
2020/07/17 16:01 openbsd 452daaedc6a4 9c812472 .config console log report ci-openbsd-multicore
2020/07/16 15:59 openbsd e44adad9b7cd a3e915fe .config console log report ci-openbsd-main
2020/07/14 14:19 openbsd 07af7ebb9803 6f458026 .config console log report ci-openbsd-main
2020/07/12 00:04 openbsd a8ec3f05749f 7ba05d2d .config console log report ci-openbsd-main
2020/07/11 18:15 openbsd b1f788244d72 7ba05d2d .config console log report ci-openbsd-main
2020/07/11 09:49 openbsd c0d956de7478 18d18b59 .config console log report ci-openbsd-main
2020/07/09 15:20 openbsd 69657d9abefd ff85e8be .config console log report ci-openbsd-multicore
2020/07/06 11:47 openbsd 7c1a9eceeb1c bed10395 .config console log report ci-openbsd-main
2020/07/06 08:18 openbsd 7c1a9eceeb1c bed10395 .config console log report ci-openbsd-main
2020/07/06 05:55 openbsd 6c07c68ec7a7 bed10395 .config console log report ci-openbsd-main
2020/07/05 07:40 openbsd f724afe49a5c bed10395 .config console log report ci-openbsd-main
2020/07/05 05:14 openbsd 474af46fb119 bed10395 .config console log report ci-openbsd-main
2020/07/04 19:05 openbsd 474af46fb119 bed10395 .config console log report ci-openbsd-main
2020/07/04 11:23 openbsd c99d424e0aca bed10395 .config console log report ci-openbsd-main
2020/07/04 00:11 openbsd e62bf3fe2c47 bed10395 .config console log report ci-openbsd-main
2020/07/03 20:08 openbsd e62bf3fe2c47 bed10395 .config console log report ci-openbsd-main
2020/07/03 07:33 openbsd 3ba668391f4c bed10395 .config console log report ci-openbsd-main
2020/07/02 23:29 openbsd b1b451713294 bed10395 .config console log report ci-openbsd-main
2020/07/02 19:46 openbsd b1b451713294 bed10395 .config console log report ci-openbsd-main
2020/06/30 03:24 openbsd 83fd2a221a65 ce9ef6f2 .config console log report ci-openbsd-main
2020/06/29 16:03 openbsd c3a4abad4b7f 0375051c .config console log report ci-openbsd-multicore
2020/06/29 11:39 openbsd c3a4abad4b7f 0375051c .config console log report ci-openbsd-main
2020/06/27 08:53 openbsd a72c50bce973 ffec44b5 .config console log report ci-openbsd-main
2020/06/24 15:20 openbsd e9c5ed46e587 41694dbf .config console log report ci-openbsd-main
2020/06/24 10:43 openbsd 95d22deeeb03 bbad15ae .config console log report ci-openbsd-main
2020/06/23 20:45 openbsd 8569c6f62927 54566aff .config console log report ci-openbsd-main
2020/06/23 19:33 openbsd 8569c6f62927 54566aff .config console log report ci-openbsd-main
2020/06/23 01:42 openbsd 4d943fd61ab7 1afe1535 .config console log report ci-openbsd-main
2020/06/22 08:06 openbsd 54392b432564 eabcced4 .config console log report ci-openbsd-main
2020/06/21 17:51 openbsd 45dd89a788b7 eabcced4 .config console log report ci-openbsd-main
2020/06/20 23:33 openbsd c4b445c6ea7c c655ec77 .config console log report ci-openbsd-main
2020/06/20 17:13 openbsd c4b445c6ea7c c655ec77 .config console log report ci-openbsd-main
2020/06/19 11:31 openbsd 4b70128590f5 03658df6 .config console log report ci-openbsd-main
2020/06/19 06:00 openbsd 92a7c86f3042 3ea11d3f .config console log report ci-openbsd-main
2019/11/13 14:10 openbsd 16e245ae7f37 048f2d49 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.