syzbot


uvm_fault: fdcopy

Status: auto-closed as invalid on 2020/12/10 04:00
Reported-by: syzbot+0f988cc4b719e77cb972@syzkaller.appspotmail.com
First crash: 1535d, last: 1535d

Sample crash report:
uvm_fault(0xfffffd80701be030, 0x4d, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      fdcopy+0x2df:   movl    0x4c(%r15),%ebx
ddb{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xfffffd80701be030, 0x4d, 0, 1) -> e
fdcopy(ffff800020eb23f8) at fdcopy+0x2df sys/kern/kern_descrip.c:1165
end trace frame: 0xffff800020ee5dc0, count: 0
ddb{0}> trace
fdcopy(ffff800020eb23f8) at fdcopy+0x2df sys/kern/kern_descrip.c:1165
process_new(ffff800020e9e290,ffff800020eb23f8,1) at process_new+0x12c sys/kern/kern_fork.c:253
fork1(ffff800020e9f160,1,ffffffff812e4340,0,ffff800020ee5ed0,0) at fork1+0x313 sys/kern/kern_fork.c:377
syscall(ffff800020ee5f50) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020ee5f50) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:568
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffd05f0, count: -5
ddb{0}> show registers
rdi                              0x1
rsi                              0x2
rbp               0xffff800020ee5d60
rbx               0xfffffd80783b43f0
rdx                                0
rcx               0xfffffd80783b4180
rax               0xffff800000678000
r8                             0xe10
r9                                 0
r10               0x688183533a3219d9
r11               0xeaa6b94196f86e0a
r12                             0x51
r13                             0x51
r14               0xfffffd80783b4010
r15                              0x1
rip               0xffffffff82336a1f    fdcopy+0x2df
cs                               0x8
rflags                       0x10202    __ALIGN_SIZE+0xf202
rsp               0xffff800020ee5d10
ss                              0x10
fdcopy+0x2df:   movl    0x4c(%r15),%ebx
ddb{0}> show proc
PROC (syz-executor.0) pid=217697 stat=onproc
    flags process=2<EXEC,8ORPHAN> proc=0
    pri=17, usrpri=80, nice=20
    forw=0xffffffffffffffff, list=0xffff800020e9e018,0xffffffff82889050
    process=0xffff800020eb23f8 user=0xffff800020ee1000, vmspace=0xfffffd80701be030
    estcpu=36, cpticks=1, pctcpu=0.4
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
*22085  217697  36232      0  7         0x2                syz-executor.0
 23330  253931  36232      0  2       0x482                syz-executor.1
 17126   32659      1      0  3    0x100083  ttyin         getty
 87538  181223      0      0  3     0x14200  bored         sosplice
 36232  384384  88119      0  3        0x82  thrsleep      syz-fuzzer
 36232  497237  88119      0  2   0x4000482                syz-fuzzer
 36232  474728  88119      0  2   0x4000482                syz-fuzzer
 36232  243988  88119      0  3   0x4000082  thrsleep      syz-fuzzer
 36232  102578  88119      0  3   0x4000082  thrsleep      syz-fuzzer
 36232   62037  88119      0  3   0x4000082  thrsleep      syz-fuzzer
 36232  104556  88119      0  3   0x4000082  thrsleep      syz-fuzzer
 36232  433381  88119      0  7   0x4000002                syz-fuzzer
 88119   62992  22558      0  3    0x10008a  pause         ksh
 22558  447163  45774      0  3        0x92  select        sshd
 45774  264407      1      0  3        0x80  select        sshd
 33501  294056  65048     74  3    0x100092  bpf           pflogd
 65048  252431      1      0  3        0x80  netio         pflogd
 24355  183743  39356     73  3    0x100090  kqread        syslogd
 39356  467007      1      0  3    0x100082  netio         syslogd
 39178  184448      1     77  3    0x100090  poll          dhclient
 25323  412889      1      0  3        0x80  poll          dhclient
 25409  258886      0      0  3     0x14200  bored         smr
  7585  476490      0      0  3     0x14200  pgzero        zerothread
 94142  297918      0      0  3     0x14200  aiodoned      aiodoned
 82167  102368      0      0  3     0x14200  syncer        update
  2654  179872      0      0  3     0x14200  cleaner       cleaner
 28598  139949      0      0  3     0x14200  reaper        reaper
 60957  519898      0      0  3     0x14200  pgdaemon      pagedaemon
 50438  378720      0      0  3     0x14200  bored         crynlk
 42834  149485      0      0  3     0x14200  bored         crypto
  1320  140003      0      0  3  0x40014200  acpi0         acpi0
 26692   55085      0      0  3  0x40014200                idle1
 12192  491367      0      0  3     0x14200  bored         softnet
 79905  120863      0      0  3     0x14200  bored         systqmp
 94073  104825      0      0  3     0x14200  bored         systq
 30749  129147      0      0  3  0x40014200  bored         softclock
  8956  478021      0      0  3  0x40014200                idle0
     1   47551      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 22085 (syz-executor.0) thread 0xffff800020e9f160 (217697)
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9557   6457K    7775K  78643K     23051        0
            pcb    13      8K       8K  78643K       683        0
         rtable    99     12K      16K  78643K      1719        0
         ifaddr    92     17K      18K  78643K       693        0
         sysctl     3      1K       1K  78643K         3        0
       counters    43     33K      34K  78643K       263        0
       ioctlops     0      0K       4K  78643K      2211        0
            iov     0      0K      28K  78643K       488        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1231     77K      78K  78643K      5519        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       9K  78643K        85        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      0K       0K  78643K      1026        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1824    197K     290K  78643K     13058        0
      file desc     5     13K      25K  78643K     10800        0
          sigio     0      0K       0K  78643K        67        0
           proc    64     63K      95K  78643K      1128        0
        subproc    32      2K       2K  78643K       178        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       735        0
       in_multi    33      2K       2K  78643K       446        0
    ether_multi     1      0K       0K  78643K        98        0
            mrt     0      0K       0K  78643K        73        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    79    360K     360K  78643K        79        0
           exec     0      0K       2K  78643K       839        0
     pfkey data     0      0K       0K  78643K         2        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   348    771K     771K  78643K     26490        0
       UVM aobj   131      4K       4K  78643K       136        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       559        0
            NDP    17      0K       0K  78643K       151        0
           temp   151   3967K    4036K  78643K     44670        0
         kqueue     4      5K      24K  78643K       664        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       21    0       15     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       96      482    0      480     1     0     1     1     0     8    0
rtentry    112      173    0      137     2     0     2     2     0     8    0
unpcb      120     3041    0     3014     8     6     2     2     0     8    1
syncache   272       96    0       96    12    12     0     1     0     8    0
tcpqe       32       46    0       46     7     7     0     1     0     8    0
tcpcb      592     2166    0     2153    29    26     3     6     0     8    1
inpcb      296     5565    0     5485    15     7     8     8     0     8    1
rttmr       72       25    0       25     5     4     1     1     0     8    1
nd6         48       34    0       28     1     0     1     1     0     8    0
pkpcb       40      125    0      125     7     7     0     1     0     8    0
kcovpl      48       10    0        8     1     0     1     1     0     8    0
ppxss      1128      15    0       15     2     2     0     1     0     8    0
pfstscr     40        5    0        5     1     1     0     1     0     8    0
pffrag     232       30    0       30     2     2     0     1     0   482    0
pffrnode    88       30    0       30     2     2     0     1     0     8    0
pffrent     40     1150    0     1150     3     3     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
pfrktable  1344     121    0      121     2     2     0     1     0     8    0
pftag       88        7    0        5     1     0     1     1     0     8    0
pfqueue    264       19    0       18     1     0     1     1     0     8    0
pfstitem    24       11    0        9     1     0     1     1     0     8    0
pfstkey    112       31    0       29     1     0     1     1     0     8    0
pfstate    328       21    0       19     1     0     1     1     0     8    0
pfrule     1360     113    0      104     4     2     2     3     0     8    0
art_heap8  4096       9    0        8     3     2     1     3     0     8    0
art_heap4  256      725    0      543    13     1    12    12     0     8    0
art_table   32      734    0      551     2     0     2     2     0     8    0
art_node    16      172    0      142     1     0     1     1     0     8    0
sysvmsgpl   40       26    0       12     1     0     1     1     0     8    0
semapl     112     1024    0     1014     1     0     1     1     0     8    0
shmpl      112      133    0        5     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    15485    0    14070    90     1    89    89     0     8    0
ffsino     272    15485    0    14070    95     0    95    95     0     8    0
nchpl      144    28662    0    27071    60     0    60    60     0     8    0
uvmvnodes   72    11803    0        0   215     0   215   215     0     8    0
vnodes     208    11803    0        0   622     0   622   622     0     8    0
namei      1024   72876    0    72876     2     1     1     1     0     8    1
percpumem   16      142    0      110     1     0     1     1     0     8    0
vcpupl     1984      57    0        0     8     0     8     8     0     8    0
vmpool     560      100    0       43     5     0     5     5     0     8    0
pfiaddrpl  120       52    0       52     2     2     0     1     0     8    0
scsiplug    72       15    0       15     3     3     0     1     0     8    0
scxspl     200    86009    0    86009    15    14     1     7     0     8    1
plimitpl   152      521    0      513     1     0     1     1     0     8    0
sigapl     424    10994    0    10963     4     0     4     4     0     8    0
futexpl     56    86427    0    86427     2     1     1     1     0     8    1
knotepl    112     1439    0     1419     2     1     1     2     0     8    0
kqueuepl   152     5841    0     5831     1     0     1     1     0     8    0
pipepl     304      558    0      547    11     9     2     2     0     8    0
fdescpl    496    10979    0    10963     3     0     3     3     0     8    0
filepl     152    41945    0    41843     8     3     5     7     0     8    1
lockfpl    104     1578    0     1577     1     0     1     1     0     8    0
lockfspl    48      567    0      566     1     0     1     1     0     8    0
sessionpl  120       28    0       17     1     0     1     1     0     8    0
pgrppl      48       56    0       45     1     0     1     1     0     8    0
ucredpl     96     6202    0     6193     1     0     1     1     0     8    0
zombiepl   144    10963    0    10962     2     1     1     1     0     8    0
processpl  1008   10995    0    10962     5     0     5     5     0     8    0
procpl     632    24810    0    24770     6     2     4     5     0     8    0
srpgc       72        2    0        2     1     1     0     1     0     8    0
sosppl     144      204    0      204    10    10     0     1     0     8    0
sockpl     400     9242    0     9133    29    16    13    14     0     8    1
mcl64k     65536     35    0        0     4     1     3     3     0     8    0
mcl16k     16384      8    0        0     1     0     1     1     0     8    0
mcl12k     12288     25    0        0     2     0     2     2     0     8    0
mcl9k      9216      12    0        0     1     0     1     1     0     8    0
mcl8k      8192      20    0        0     3     1     2     3     0     8    0
mcl4k      4096      17    0        0     3     0     3     3     0     8    0
mcl2k2     2112      13    0        0     1     0     1     1     0     8    0
mcl2k      2048     337    0        0    16     0    16    16     0     8    0
mtagpl      96      478    0        0    10     0    10    10     0     8    0
mbufpl     256     1217    0        0    64     1    63    63     0     8    0
bufpl      280    20192    0    13917   449     0   449   449     0     8    0
anonpl      16   840053    0   829592   127    67    60    60     0   124   15
amapchunkpl 152   46353    0    46078    64    49    15    23     0   158    3
amappl16   192    36714    0    36316    89    60    29    32     0     8    8
amappl15   184      508    0      505     1     0     1     1     0     8    0
amappl14   176       16    0       12     1     0     1     1     0     8    0
amappl13   168     1470    0     1468     1     0     1     1     0     8    0
amappl12   160     1258    0     1253     1     0     1     1     0     8    0
amappl11   152     2883    0     2868     1     0     1     1     0     8    0
amappl10   144      442    0      434     1     0     1     1     0     8    0
amappl9    136     4712    0     4711     1     0     1     1     0     8    0
amappl8    128     4954    0     4803     6     1     5     5     0     8    0
amappl7    120      772    0      763     1     0     1     1     0     8    0
amappl6    112     2980    0     2953     1     0     1     1     0     8    0
amappl5    104    10321    0    10309     1     0     1     1     0     8    0
amappl4     96     2727    0     2687     2     0     2     2     0     8    1
amappl3     88      303    0      297     1     0     1     1     0     8    0
amappl2     80    78035    0    77956     3     1     2     3     0     8    0
amappl1     72   294172    0   293738    24    14    10    19     0     8    0
amappl      80    25342    0    25229     3     0     3     3     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      135    0        5     3     0     3     3     0     8    0
uaddrrnd    24    11078    0    11006     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24    11078    0    11006     1     0     1     1     0     8    0
vmmpekpl   168    47833    0    47785     3     0     3     3     0     8    0
vmmpepl    168  1344271    0  1342547   177    80    97    97     0   357   10
vmsppl     368    11077    0    11006     7     0     7     7     0     8    0
pdppl      4096   22163    0    22069    13     0    13    13     0     8    0
pvpl        32  3753847    0  3742557   350   217   133   133     0   265   35
pmappl     232    11077    0    11006     5     0     5     5     0     8    0
extentpl    40       53    0       36     1     0     1     1     0     8    0
phpool     112      364    0       40    10     0    10    10     0     8    0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
fdcopy(ffff800020eb23f8) at fdcopy+0x2df sys/kern/kern_descrip.c:1165
process_new(ffff800020e9e290,ffff800020eb23f8,1) at process_new+0x12c sys/kern/kern_fork.c:253
fork1(ffff800020e9f160,1,ffffffff812e4340,0,ffff800020ee5ed0,0) at fork1+0x313 sys/kern/kern_fork.c:377
syscall(ffff800020ee5f50) at syscall+0x4a1 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020ee5f50) at syscall+0x4a1 sys/arch/amd64/amd64/trap.c:568
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffd05f0, count: -5
ddb{0}> machine ddbcpu 1
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/11 03:59 openbsd c090f2041eb4 409809d8 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.