syzbot


uvm_fault: uvmfault_anonget

Status: auto-closed as invalid on 2020/08/29 13:32
Reported-by: syzbot+91e73beabfe2c8de5a09@syzkaller.appspotmail.com
First crash: 1635d, last: 1635d

Sample crash report:
uvm_fault(0xffffffff82639870, 0xfffffd0000000048, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      uvmfault_anonget+0x89:  movl    0x48(%r13),%ebx
ddb{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xffffffff82639870, 0xfffffd0000000048, 0, 1) -> e
uvmfault_anonget(ffff800020f49bd8,fffffd806940fac0,fffffd80694a1000) at uvmfault_anonget+0x89 sys/uvm/uvm_fault.c:287
end trace frame: 0xffff800020f49c80, count: 0
ddb{0}> trace
uvmfault_anonget(ffff800020f49bd8,fffffd806940fac0,fffffd80694a1000) at uvmfault_anonget+0x89 sys/uvm/uvm_fault.c:287
uvm_fault(fffffd806e95bb88,c0022fe000,1,2) at uvm_fault+0x88a sys/uvm/uvm_fault.c:842
pageflttrap(ffff800020f49d70,1) at pageflttrap+0x1b8 sys/arch/amd64/amd64/trap.c:221
usertrap(ffff800020f49d70) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0xc00042ad98, count: -5
ddb{0}> show registers
rdi               0xffff800020f49bd8
rsi               0xfffffd806940fac0
rbp               0xffff800020f49a40
rbx                              0x1
rdx               0xfffffd80694a1000
rcx               0xffff800020e6c008
rax                                0
r8                0xffffffff8132263f    pmap_extract+0x12f
r9                               0x1
r10                              0x2
r11               0xacd7bd619681d786
r12               0xffff800020f49bd8
r13               0xfffffd0000000000
r14                              0x3
r15               0xfffffd80694a1000
rip               0xffffffff81dcb1b9    uvmfault_anonget+0x89
cs                               0x8
rflags                       0x10286    __ALIGN_SIZE+0xf286
rsp               0xffff800020f499d0
ss                                 0
uvmfault_anonget+0x89:  movl    0x48(%r13),%ebx
ddb{0}> show proc
PROC (syz-fuzzer) pid=129450 stat=onproc
    flags process=2<EXEC,8ORPHAN> proc=4000000<THREAD>
    pri=61, usrpri=62, nice=20
    forw=0xffffffffffffffff, list=0xffff800020e6cc38,0xffff800020e6d398
    process=0xffff800020ec8018 user=0xffff800020f44000, vmspace=0xfffffd806e95bb88
    estcpu=12, cpticks=2, pctcpu=0.8
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 26540  246531  37100      0  2           0                syz-executor.1
 26540  312510  37100      0  2   0x4000000                syz-executor.1
 59991  203493  98305      0  3        0x82  piperd        syz-executor.0
 17378  190070      0      0  3     0x14200  bored         sosplice
 37100  289033  98305      0  2       0x482                syz-executor.1
 98305   93944  32350      0  3        0x82  kqread        syz-fuzzer
 98305   19543  32350      0  7   0x4000482                syz-fuzzer
 98305  172068  32350      0  3   0x4000082  thrsleep      syz-fuzzer
 98305  137028  32350      0  3   0x4000082  thrsleep      syz-fuzzer
 98305  125439  32350      0  3   0x4000082  thrsleep      syz-fuzzer
 98305  459346  32350      0  3   0x4000082  thrsleep      syz-fuzzer
*98305  129450  32350      0  7   0x4000002                syz-fuzzer
 98305   46564  32350      0  3   0x4000082  thrsleep      syz-fuzzer
 98305  351562  32350      0  3   0x4000082  thrsleep      syz-fuzzer
 98305  147135  32350      0  3   0x4000082  thrsleep      syz-fuzzer
 32350  452152  73746      0  3    0x10008a  pause         ksh
 73746  218377  84492      0  3        0x92  select        sshd
 89336  344239      1      0  3    0x100083  ttyin         getty
 84492  329199      1      0  3        0x80  select        sshd
 98833  497388  39837     74  3    0x100092  bpf           pflogd
 39837  461412      1      0  3        0x80  netio         pflogd
 20128   99336   1373     73  3    0x100090  kqread        syslogd
  1373  280608      1      0  3    0x100082  netio         syslogd
  6844  469228      1     77  3    0x100090  poll          dhclient
 82822  172576      1      0  3        0x80  poll          dhclient
   188  170551      0      0  3     0x14200  bored         smr
 62839  284176      0      0  2     0x14200                zerothread
 70241  155852      0      0  3     0x14200  aiodoned      aiodoned
 70503  213848      0      0  3     0x14200  syncer        update
 72436  274440      0      0  3     0x14200  cleaner       cleaner
 86265    9676      0      0  3     0x14200  reaper        reaper
 98028  283821      0      0  3     0x14200  pgdaemon      pagedaemon
 57135    7299      0      0  3     0x14200  bored         crynlk
 18293  137852      0      0  3     0x14200  bored         crypto
 74996  137960      0      0  3  0x40014200  acpi0         acpi0
 91855  311271      0      0  3  0x40014200                idle1
  8537  189203      0      0  3     0x14200  bored         softnet
 25449  293497      0      0  3     0x14200  bored         systqmp
 72670  216469      0      0  3     0x14200  bored         systq
 64356  192471      0      0  3  0x40014200  bored         softclock
 85510  507754      0      0  3  0x40014200                idle0
     1  440826      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 98305 (syz-fuzzer) thread 0xffff800020e6c008 (129450)
shared rwlock vmmaplk r = 0 (0xfffffd806e95bba0)
#0  witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0  witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1  uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1448
#2  uvm_fault+0x7f sys/uvm/uvm_fault.c:524
#3  pageflttrap+0x1b8 sys/arch/amd64/amd64/trap.c:221
#4  usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
#5  recall_trap+0x8
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82641ae8)
#0  witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0  witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1  pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180
#2  usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
#3  recall_trap+0x8
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9517   6415K    6931K  78643K     11585        0
            pcb    13      8K       8K  78643K        58        0
         rtable   112      3K       4K  78643K       287        0
         ifaddr    71     13K      14K  78643K        92        0
       counters    43     33K      34K  78643K        49        0
       ioctlops     0      0K       4K  78643K      1478        0
            iov     0      0K      16K  78643K        36        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1224     77K      77K  78643K      1480        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         9        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      1K       1K  78643K        17        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1824    197K     290K  78643K     13058        0
      file desc     5     13K      25K  78643K       397        0
           proc    62     63K      95K  78643K       533        0
        subproc    32      2K       2K  78643K        51        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        22        0
       in_multi    40      2K       2K  78643K        73        0
    ether_multi     1      0K       0K  78643K         8        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    31    148K     148K  78643K        31        0
           exec     0      0K       1K  78643K       245        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   127     23K      23K  78643K      2220        0
       UVM aobj    24      7K       7K  78643K        26        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        36        0
            NDP    12      0K       0K  78643K        21        0
           temp   100   3034K    3102K  78643K      6568        0
         kqueue     3      4K      12K  78643K        13        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       10    0        2     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       31    0       29     1     0     1     1     0     8    0
rtentry    112       58    0       12     2     0     2     2     0     8    0
unpcb      120      115    0      105     1     0     1     1     0     8    0
syncache   264        9    0        9     2     2     0     1     0     8    0
tcpqe       32       80    0       80     1     1     0     1     0     8    0
tcpcb      544      278    0      274     1     0     1     1     0     8    0
inpcb      280      444    0      435     2     1     1     2     0     8    0
nd6         48        9    0        3     1     0     1     1     0     8    0
pffrag     232        3    0        3     1     1     0     1     0   482    0
pffrnode    88        3    0        3     1     1     0     1     0     8    0
pffrent     40        6    0        6     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       40    0       18     1     0     1     1     0     8    0
pfstkey    112       40    0       18     1     0     1     1     0     8    0
pfstate    328       40    0       18     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      239    0       44    13     0    13    13     0     8    0
art_table   32      240    0       44     2     0     2     2     0     8    0
art_node    16       57    0       15     1     0     1     1     0     8    0
sysvmsgpl   40        7    0        5     1     0     1     1     0     8    0
semupl     112        3    0        3     1     1     0     1     0     8    0
semapl     112       11    0        1     1     0     1     1     0     8    0
shmpl      112       24    0        2     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1888    0      483    90     1    89    89     0     8    0
ffsino     272     1888    0      483    94     0    94    94     0     8    0
nchpl      144     2642    0     1048    60     0    60    60     0     8    0
uvmvnodes   72     2167    0        0    40     0    40    40     0     8    0
vnodes     208     2167    0        0   115     0   115   115     0     8    0
namei      1024    7334    0     7334     2     1     1     1     0     8    1
percpumem   16       35    0        3     1     0     1     1     0     8    0
vmpool     560        1    0        1     1     0     1     1     0     8    1
scxspl     192     7022    0     7022     8     7     1     7     0     8    1
plimitpl   152       28    0       20     1     0     1     1     0     8    0
sigapl     424      610    0      578     4     0     4     4     0     8    0
futexpl     56     5343    0     5343     2     1     1     1     0     8    1
knotepl    112       85    0       66     1     0     1     1     0     8    0
kqueuepl   144      202    0      200     1     0     1     1     0     8    0
pipelkpl    48      102    0       92     1     0     1     1     0     8    0
pipepl     120      204    0      185     1     0     1     1     0     8    0
fdescpl    496      594    0      578     3     0     3     3     0     8    0
filepl     152     3004    0     2904     6     1     5     6     0     8    1
lockfpl    104       58    0       57     1     0     1     1     0     8    0
lockfspl    48       24    0       23     1     0     1     1     0     8    0
sessionpl  112       19    0        8     1     0     1     1     0     8    0
pgrppl      48       19    0        8     1     0     1     1     0     8    0
ucredpl     96      332    0      323     1     0     1     1     0     8    0
zombiepl   144      578    0      578     1     0     1     1     0     8    1
processpl  984      610    0      578     5     0     5     5     0     8    0
procpl     624     1396    0     1354     4     0     4     4     0     8    0
sosppl     128        2    0        2     1     0     1     1     0     8    1
sockpl     400      612    0      593     7     4     3     6     0     8    1
mcl64k     65536     10    0        0     2     0     2     2     0     8    0
mcl16k     16384      1    0        0     1     0     1     1     0     8    0
mcl12k     12288      2    0        0     1     0     1     1     0     8    0
mcl9k      9216       3    0        0     1     0     1     1     0     8    0
mcl8k      8192       3    0        0     1     0     1     1     0     8    0
mcl4k      4096       9    0        0     2     0     2     2     0     8    0
mcl2k2     2112       1    0        0     1     0     1     1     0     8    0
mcl2k      2048     159    0        0    19     0    19    19     0     8    0
mtagpl      80       22    0        0     1     0     1     1     0     8    0
mbufpl     256      195    0        0    11     0    11    11     0     8    0
bufpl      280     4665    0      133   324     0   324   324     0     8    0
anonpl      16    63070    0    51459    69     6    63    67     0   124    1
amapchunkpl 152    3167    0     3037     8     1     7     8     0   158    0
amappl16   192     2487    0     1655    47     3    44    45     0     8    2
amappl15   184        1    0        0     1     0     1     1     0     8    0
amappl14   176       37    0       31     1     0     1     1     0     8    0
amappl13   168       46    0       41     1     0     1     1     0     8    0
amappl12   160        7    0        4     1     0     1     1     0     8    0
amappl11   152       55    0       40     1     0     1     1     0     8    0
amappl10   144      178    0      173     1     0     1     1     0     8    0
amappl9    136      568    0      567     1     0     1     1     0     8    0
amappl8    128      558    0      521     2     0     2     2     0     8    0
amappl7    120      291    0      277     1     0     1     1     0     8    0
amappl6    112       33    0       23     1     0     1     1     0     8    0
amappl5    104      490    0      474     1     0     1     1     0     8    0
amappl4     96      513    0      481     1     0     1     1     0     8    0
amappl3     88      108    0      103     1     0     1     1     0     8    0
amappl2     80     3712    0     3636     2     0     2     2     0     8    0
amappl1     72    22645    0    22201    23    13    10    18     0     8    0
amappl      80     1664    0     1622     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        2     1     0     1     1     0     8    0
uaddrrnd    24      595    0      579     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      595    0      579     1     0     1     1     0     8    0
vmmpekpl   168     8098    0     8064     2     0     2     2     0     8    0
vmmpepl    168    78624    0    76619   139    18   121   121     0   357   29
vmsppl     368      594    0      579     2     0     2     2     0     8    0
pdppl      4096    1198    0     1158     6     0     6     6     0     8    0
pvpl        32   206846    0   192100   167    12   155   167     0   265    6
pmappl     232      594    0      579     2     1     1     2     0     8    0
extentpl    40       53    0       36     1     0     1     1     0     8    0
phpool     112      263    0        9     8     0     8     8     0     8    0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
uvmfault_anonget(ffff800020f49bd8,fffffd806940fac0,fffffd80694a1000) at uvmfault_anonget+0x89 sys/uvm/uvm_fault.c:287
uvm_fault(fffffd806e95bb88,c0022fe000,1,2) at uvm_fault+0x88a sys/uvm/uvm_fault.c:842
pageflttrap(ffff800020f49d70,1) at pageflttrap+0x1b8 sys/arch/amd64/amd64/trap.c:221
usertrap(ffff800020f49d70) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0xc00042ad98, count: -5
ddb{0}> machine ddbcpu 1
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
ddb{1}> trace
x86_ipi_db(ffff800020e00ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352
x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
__sanitizer_cov_trace_cmp4(966e6,966e7) at __sanitizer_cov_trace_cmp4+0x5d kd_curproc sys/dev/kcov.c:416 [inline]
__sanitizer_cov_trace_cmp4(966e6,966e7) at __sanitizer_cov_trace_cmp4+0x5d trace_cmp sys/dev/kcov.c:104 [inline]
__sanitizer_cov_trace_cmp4(966e6,966e7) at __sanitizer_cov_trace_cmp4+0x5d sys/dev/kcov.c:135
__mp_lock(ffffffff826418e0) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff826418e0) at __mp_lock+0x139 sys/kern/kern_lock.c:147
__mp_acquire_count(ffffffff826418e0,1) at __mp_acquire_count+0x51 sys/kern/kern_lock.c:227
mi_switch() at mi_switch+0x392 sys/kern/sched_bsd.c:435
sleep_finish(ffff800020f18d80,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418
sleep_finish_all(ffff800020f18d80,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline]
sleep_finish_all(ffff800020f18d80,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393
tsleep(ffffffff825e82d0,120,ffffffff821f1999,2) at tsleep+0x1cc sys/kern/kern_synch.c:155
sys_nanosleep(ffff800020ed0760,ffff800020f18eb0,ffff800020f18f00) at sys_nanosleep+0x205 sys/kern/kern_time.c:297
syscall(ffff800020f18f80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020f18f80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc00004ff38, count: -13

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/31 13:32 openbsd e075d9d39ba6 a0331e89 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.