syzbot


panic: uvm_fault: fault on non-pageable map (ADDR, ADDR)

Status: closed as dup on 2019/09/16 07:22
Reported-by: syzbot+e4d924e1c128b88f9558@syzkaller.appspotmail.com
First crash: 1693d, last: 1656d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: attempt to execute user address 0x0 in supervisor mode 426 1683d 1698d

Sample crash report:
panic: uvm_fault: fault on non-pageable map (0xffffffff82559bf8, 0xffff800000aa7000)
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*217546  57071      0           0  0x4000000    0  syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
uvm_fault(ffffffff825597b0,ffff800000aa7000,1,4) at uvm_fault+0x2148 uvmfault_amapcopy sys/uvm/uvm_fault.c:463 [inline]
uvm_fault(ffffffff825597b0,ffff800000aa7000,1,4) at uvm_fault+0x2148 sys/uvm/uvm_fault.c:559
pageflttrap() at pageflttrap+0x239 sys/arch/amd64/amd64/trap.c:199
kerntrap(ffff80001798cf50) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287
alltraps_kern_meltdown(6,ffff800017788000,fffffd802db818c8,11,ffff80000005bfe0,ffff80001798d1b8) at alltraps_kern_meltdown+0x7b
ffff800000aa7800(b,ffff80001798d118,83,ffff80001798d1b8,0,b) at 0xffff800000aa7800
rt_match(fffffd8037005198,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline]
rt_match(fffffd8037005198,0,1,0) at rt_match+0xbe sys/net/route.c:242
in_pcbselsrc(ffff80001798d290,fffffd803037b120,fffffd8037005118) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934
in_pcbconnect(fffffd8037005118,fffffd803037b100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492
tcp_usrreq(fffffd8037006c00,4,0,fffffd803037b100,0,ffff8000ffff2508) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228
sys_connect(ffff8000ffff2508,ffff80001798d438,ffff80001798d480) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388
syscall(ffff80001798d500) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,fffffffffffffecf,0,3,1bb846df010) at Xsyscall+0x128
end of kernel
end trace frame: 0x1be772d3400, count: 1
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
uvm_fault: fault on non-pageable map (0xffffffff82559bf8, 0xffff800000aa7000)
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
uvm_fault(ffffffff825597b0,ffff800000aa7000,1,4) at uvm_fault+0x2148 uvmfault_amapcopy sys/uvm/uvm_fault.c:463 [inline]
uvm_fault(ffffffff825597b0,ffff800000aa7000,1,4) at uvm_fault+0x2148 sys/uvm/uvm_fault.c:559
pageflttrap() at pageflttrap+0x239 sys/arch/amd64/amd64/trap.c:199
kerntrap(ffff80001798cf50) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287
alltraps_kern_meltdown(6,ffff800017788000,fffffd802db818c8,11,ffff80000005bfe0,ffff80001798d1b8) at alltraps_kern_meltdown+0x7b
ffff800000aa7800(b,ffff80001798d118,83,ffff80001798d1b8,0,b) at 0xffff800000aa7800
rt_match(fffffd8037005198,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline]
rt_match(fffffd8037005198,0,1,0) at rt_match+0xbe sys/net/route.c:242
in_pcbselsrc(ffff80001798d290,fffffd803037b120,fffffd8037005118) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934
in_pcbconnect(fffffd8037005118,fffffd803037b100) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492
tcp_usrreq(fffffd8037006c00,4,0,fffffd803037b100,0,ffff8000ffff2508) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228
sys_connect(ffff8000ffff2508,ffff80001798d438,ffff80001798d480) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388
syscall(ffff80001798d500) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,fffffffffffffecf,0,3,1bb846df010) at Xsyscall+0x128
end of kernel
end trace frame: 0x1be772d3400, count: -14
ddb> show registers
rdi               0xffffffff817df537    db_enter+0x17
rsi                           0x31a1    __ALIGN_SIZE+0x21a1
rbp               0xffff80001798cb80
rbx               0xffff80001798cc30
rdx                           0x31a2    __ALIGN_SIZE+0x21a2
rcx               0xffff800017788000
rax               0xffff800017788000
r8                0xffff80001798cb40
r9                               0x1
r10               0xffff800000a64540
r11               0x11f88dab1730682b
r12                     0x3000000008
r13               0xffff80001798cb90
r14                            0x100
r15                              0x1
rip               0xffffffff817df538    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001798cb70
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.1) pid=217546 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=79, usrpri=79, nice=20
    forw=0xffffffffffffffff, list=0xffff8000ffff2780,0xffffffff825a6d38
    process=0xffff8000ffff66d0 user=0xffff800017988000, vmspace=0xfffffd803f013cc0
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 57071  172558  22756      0  2           0                syz-executor.1
*57071  217546  22756      0  7   0x4000000                syz-executor.1
 22756  182987  85534      0  3        0x82  nanosleep     syz-executor.1
 62520  437310  85534      0  3         0x2  biowait       syz-executor.0
 70003  100525      0      0  3     0x14200  acct          acct
 69277  262392      0      0  3     0x14200  bored         sosplice
 85534  289423   5196      0  3        0x82  thrsleep      syz-fuzzer
 85534  333552   5196      0  3   0x4000082  nanosleep     syz-fuzzer
 85534  114138   5196      0  3   0x4000082  thrsleep      syz-fuzzer
 85534  253636   5196      0  3   0x4000082  thrsleep      syz-fuzzer
 85534  203984   5196      0  3   0x4000082  thrsleep      syz-fuzzer
 85534   79477   5196      0  3   0x4000082  kqread        syz-fuzzer
 85534  373427   5196      0  3   0x4000082  thrsleep      syz-fuzzer
  5196  305814  15222      0  3    0x10008a  pause         ksh
 15222  387388  56838      0  3        0x92  select        sshd
 67028  111798      1      0  3    0x100083  ttyin         getty
 56838  160628      1      0  3        0x80  select        sshd
 64867  369830  26409     73  3    0x100090  kqread        syslogd
 26409  478297      1      0  3    0x100082  netio         syslogd
 47591  411282      1     77  3    0x100090  poll          dhclient
 24305  111791      1      0  3        0x80  poll          dhclient
 28905  489029      0      0  2     0x14200                zerothread
 89447  267733      0      0  3     0x14200  aiodoned      aiodoned
 72839  521883      0      0  3     0x14200  syncer        update
 86511  267762      0      0  3     0x14200  cleaner       cleaner
 54534  510270      0      0  3     0x14200  reaper        reaper
 13967   41034      0      0  3     0x14200  pgdaemon      pagedaemon
 47263   13042      0      0  3     0x14200  bored         crynlk
 17978  329564      0      0  3     0x14200  bored         crypto
 47875  167863      0      0  3  0x40014200  acpi0         acpi0
 23973  417553      0      0  3     0x14200  bored         softnet
  8456   61792      0      0  3     0x14200  bored         systqmp
 47210  383533      0      0  3     0x14200  bored         systq
 24732  248441      0      0  3  0x40014200  bored         softclock
 50769    6647      0      0  3  0x40014200                idle0
 78632  523185      0      0  3     0x14200  bored         smr
     1  127393      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 Kern Lim
         devbuf  9606   6799K   14566K  78643K     14448        0        0
            pcb    13     10K      12K  78643K       446        0        0
         rtable   120      8K       9K  78643K      1220        0        0
         ifaddr    81     17K      18K  78643K       338        0        0
       counters    19     16K      16K  78643K        19        0        0
       ioctlops     0      0K       2K  78643K       129        0        0
            iov     0      0K      26K  78643K       418        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1214     76K      77K  78643K      2611        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        28        0        0
         VM map    23      5K       5K  78643K        36        0        0
            sem    12      0K       1K  78643K       363        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1793    195K     288K  78643K     12645        0        0
      file desc     5     13K      25K  78643K      1627        0        0
          sigio     0      0K       0K  78643K        44        0        0
           proc    50     38K      63K  78643K       804        0        0
        subproc    32      2K       2K  78643K       170        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       143        0        0
       in_multi    30      2K       2K  78643K       231        0        0
    ether_multi     1      0K       0K  78643K         9        0        0
            mrt     0      0K       0K  78643K        10        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys   162    715K     715K  78643K       162        0        0
           exec     0      0K       1K  78643K       454        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   151    234K     234K  78643K      4959        0        0
       UVM aobj   130      6K       6K  78643K       142        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       401        0        0
            NDP    19      0K       0K  78643K       106        0        0
           temp   219   3540K    3612K  78643K     26044        0        0
         kqueue     0      0K       0K  78643K        25        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       44    0       38     1     0     1     1     0     8    0
rtpcb       80      200    0      198     1     0     1     1     0     8    0
rtentry    112      239    0      195     2     0     2     2     0     8    0
unpcb      120     1338    0     1330     3     2     1     2     0     8    0
syncache   264       15    0       15     5     4     1     1     0     8    1
tcpqe       32       68    0       68     2     1     1     1     0     8    1
tcpcb      544      843    0      838    18    16     2    15     0     8    1
ipq         40        9    0        9     3     3     0     1     0     8    0
ipqe        40       63    0       63     3     3     0     1     0     8    0
inpcb      280     2176    0     2168    20    18     2     9     0     8    1
rttmr       72        5    0        4     2     1     1     1     0     8    0
nd6         48       28    0       25     2     1     1     1     0     8    0
pkpcb       40        4    0        4     2     2     0     1     0     8    0
ppxss      1128      31    0       31     6     5     1     1     0     8    1
art_heap8  4096      11    0       10     7     6     1     3     0     8    0
art_heap4  256     1002    0      761    26     9    17    17     0     8    1
art_table   32     1013    0      771     3     0     3     3     0     8    0
art_node    16      238    0      197     1     0     1     1     0     8    0
sysvmsgpl   40       53    0       38     1     0     1     1     0     8    0
semapl     112      361    0      351     1     0     1     1     0     8    0
shmpl      112      140    0       12     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     4423    0     3021    46     0    46    46     0     8    0
ffsino     240     4423    0     3021    83     0    83    83     0     8    0
nchpl      144     7437    0     6941    60    41    19    60     0     8    0
uvmvnodes   72     5461    0        0   100     0   100   100     0     8    0
vnodes     208     5461    0        0   288     0   288   288     0     8    0
namei      1024   25056    0    25055     1     0     1     1     0     8    0
vcpupl     1984      21    0        0     3     0     3     3     0     8    0
vmpool     520       34    0       13     2     0     2     2     0     8    0
scsiplug    64        2    0        2     1     1     0     1     0     8    0
scxspl     192    23477    0    23476    15    11     4     7     0     8    3
plimitpl   152      148    0      141     1     0     1     1     0     8    0
sigapl     432     1774    0     1761     2     0     2     2     0     8    0
futexpl     56    47295    0    47295     1     0     1     1     0     8    1
knotepl    112      411    0      392     1     0     1     1     0     8    0
kqueuepl   104      561    0      559     4     3     1     4     0     8    0
pipepl     112     1484    0     1465     4     2     2     2     0     8    1
fdescpl    424     1775    0     1761     2     0     2     2     0     8    0
filepl     120    17143    0    17046    16    11     5    11     0     8    2
lockfpl    104     3422    0     3421     1     0     1     1     0     8    0
lockfspl    48      763    0      762     1     0     1     1     0     8    0
sessionpl  112       25    0       15     1     0     1     1     0     8    0
pgrppl      48       41    0       31     1     0     1     1     0     8    0
ucredpl     96     1823    0     1816     1     0     1     1     0     8    0
zombiepl   144     1761    0     1761     1     0     1     1     0     8    1
processpl  864     1791    0     1761     4     0     4     4     0     8    0
procpl     632     3789    0     3752     4     0     4     4     0     8    0
sosppl     128       38    0       38     6     5     1     1     0     8    1
sockpl     384     3768    0     3750    30    25     5    14     0     8    3
mcl64k     65536    452    0      452    34    33     1    33     0     8    1
mcl16k     16384     24    0       24     7     6     1     1     0     8    1
mcl12k     12288     52    0       52     4     3     1     1     0     8    1
mcl9k      9216      32    0       32     4     3     1     1     0     8    1
mcl8k      8192      58    0       56     2     1     1     1     0     8    0
mcl4k      4096     172    0      172     3     2     1     1     0     8    1
mcl2k2     2112      15    0       15     7     6     1     1     0     8    1
mcl2k      2048   70072    0    70026    16     9     7    13     0     8    0
mtagpl      80       88    0       77     2     1     1     1     0     8    0
mbufpl     256   125797    0   125648    53    37    16    24     0     8    1
bufpl      256    12519    0     6074   404     0   404   404     0     8    0
anonpl      16   244354    0   225559   136    50    86   107     0    62    6
amapchunkpl 152    9381    0     9256    39    29    10    15     0   158    3
amappl16   192    11596    0    10484   149    81    68    78     0     8   11
amappl15   184        8    0        8     1     1     0     1     0     8    0
amappl14   176      534    0      529     1     0     1     1     0     8    0
amappl13   168       86    0       86     1     0     1     1     0     8    1
amappl12   160      451    0      448     1     0     1     1     0     8    0
amappl11   152       70    0       59     1     0     1     1     0     8    0
amappl10   144      198    0      195     1     0     1     1     0     8    0
amappl9    136     1015    0     1008     1     0     1     1     0     8    0
amappl8    128      582    0      549     2     0     2     2     0     8    0
amappl7    120      242    0      236     1     0     1     1     0     8    0
amappl6    112       72    0       62     1     0     1     1     0     8    0
amappl5    104      665    0      654     1     0     1     1     0     8    0
amappl4     96     2024    0     1998     1     0     1     1     0     8    0
amappl3     88      641    0      631     1     0     1     1     0     8    0
amappl2     80    12959    0    12889     3     1     2     3     0     8    0
amappl1     72    41760    0    41347    26    16    10    20     0     8    0
amappl      80     4179    0     4127     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       17    0       17     1     1     0     1     0     8    0
aobjpl      64      141    0       12     3     0     3     3     0     8    0
uaddrrnd    24     1809    0     1761     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1809    0     1761     1     0     1     1     0     8    0
vmmpekpl   168    16057    0    16025     2     0     2     2     0     8    0
vmmpepl    168   225248    0   222995   218    78   140   140     0   357   34
vmsppl     272     1774    0     1761     2     1     1     2     0     8    0
pdppl      4096    3624    0     3569     9     1     8     8     0     8    0
pvpl        32   666683    0   645296   324    97   227   310     0   265   45
pmappl     200     1808    0     1774     2     0     2     2     0     8    0
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      670    0      123    17     1    16    17     0     8    0

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/23 10:11 openbsd fe57de6bf863 d0686497 .config console log report ci-openbsd-main
2019/10/17 10:05 openbsd 018bdca7fb8b 8c88c9c1 .config console log report ci-openbsd-multicore
2019/10/14 16:04 openbsd 0bd8f65804ca a6aef847 .config console log report ci-openbsd-multicore
2019/10/12 22:42 openbsd b8f72638b638 426631dd .config console log report ci-openbsd-multicore
2019/10/02 16:53 openbsd 65ab43f212c4 2e29b534 .config console log report ci-openbsd-main
2019/10/01 06:16 openbsd 9eb036517c72 c7a4fb99 .config console log report ci-openbsd-main
2019/09/27 17:39 openbsd 07be18166ab7 d8074e0b .config console log report ci-openbsd-main
2019/09/25 00:25 openbsd 5fb9eef93de4 0942eab8 .config console log report ci-openbsd-main
2019/09/23 17:43 openbsd 8566a01b6d70 1e9788a0 .config console log report ci-openbsd-multicore
2019/09/16 03:36 openbsd 4ab68d81de1b 32d59357 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.