syzbot


kernel: page fault trap, code=0 (2)

Status: closed as dup on 2019/03/15 22:11
Reported-by: syzbot+0bc97a4c43558c5ec628@syzkaller.appspotmail.com
First crash: 2079d, last: 2078d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
uvm_fault: rtable_satoplen 158 2071d 2088d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd kernel: page fault trap, code=0 5 2130d 2171d 0/3 closed as dup on 2018/12/12 17:51
openbsd kernel: page fault trap, code=0 (4) 2 1187d 1216d 0/3 auto-closed as invalid on 2021/11/20 18:10
openbsd kernel: page fault trap, code=0 (3) 1 1629d 1629d 0/3 closed as invalid on 2020/06/06 15:46

Sample crash report:
oLlož•‘(²­‚z˜CoLlož•‘(²­‚z˜Cukernel: page fault trap, code=0
Stopped at      memcpy+0x15:    repe movsq      (%rsi),%es:(%rdi)
ddb{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
kernel page fault
uvm_fault(0xffffffff82239270, 0xffff8000019bb000, 0, 1) -> e
memcpy(fffffd8070e20af8,ffff8000019baf0d,0,fffffd8070e20af8,a135255c26c224b8,ffff800020c59378) at memcpy+0x15
end trace frame: 0xffff800020c59280, count: 0
ddb{1}> trace
memcpy(fffffd8070e20af8,ffff8000019baf0d,0,fffffd8070e20af8,a135255c26c224b8,ffff800020c59378) at memcpy+0x15
rtrequest(1,ffff800020c59378,0,ffff800020c592c0,0) at rtrequest+0x83c sys/net/route.c:917
rtm_output(ffff8000019baf00,ffff800020c59370,ffff800020c59378,0,0) at rtm_output+0x760 sys/net/rtsock.c:888
route_output(fffffd8071628900,fffffd806ca27190,0,0) at route_output+0x79b sys/net/rtsock.c:806
route_usrreq(fffffd806ca27190,9,fffffd8071628900,0,0,ffff800020b38e28) at route_usrreq+0x35d sys/net/rtsock.c:271
sosend(fffffd806ca27190,0,ffff800020c59638,0,0,0) at sosend+0x6eb sys/kern/uipc_socket.c:513
sendit(ffff800020b38e28,4,ffff800020c596f8,0,ffff800020c597c0) at sendit+0x590 sys/kern/uipc_syscalls.c:662
sys_sendto(ffff800020b38e28,ffff800020c597d8,ffff800020c597c0) at sys_sendto+0x92
syscall(ffff800020c59870) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline]
syscall(ffff800020c59870) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574
Xsyscall(6,0,ffffffffffffffd8,0,6,6907cc67010) at Xsyscall+0x128
end of kernel
end trace frame: 0x692c2193080, count: -10
ddb{1}> show registers
rdi               0xffff8000019badf0
rsi               0xffff8000019baffd
rbp               0xffff800020c59170
rbx               0xffff8000019baf0d
rdx                            0x100
rcx                              0x2
rax               0xfffffffffffffdf3
r8                                 0
r9                               0x5
r10               0x8ffda2acf337a850
r11               0xffff8000019bad00
r12               0xffff8000019bad00
r13                            0x100
r14                                0
r15               0xfffffd8070e20af8
rip               0xffffffff81908ab5    memcpy+0x15
cs                               0x8
rflags                       0x10202    __ALIGN_SIZE+0xf202
rsp               0xffff800020c59108
ss                              0x10
memcpy+0x15:    repe movsq      (%rsi),%es:(%rdi)
ddb{1}> show proc
PROC (syz-executor.1) pid=324745 stat=onproc
    flags process=1000<SINGLEEXIT> proc=4080000<SUSPSINGLE,THREAD>
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020b38bd0,0xffffffff8233d1e8
    process=0xffff800020b8c9f0 user=0xffff800020c54000, vmspace=0xfffffd807effd9d8
    estcpu=36, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 16970  497910  47202      0  3      0x3000  suspend       syz-executor.1
*16970  324745  47202      0  7   0x4081000                syz-executor.1
 79532  397355  32306      0  2           0                syz-executor.0
 79532  377860  32306      0  7   0x4000000                syz-executor.0
 80139  501072      1      0  3    0x100083  ttyin         getty
 81291  356058      0      0  3     0x14200  bored         sosplice
 47202  314903  57649      0  3        0x82  nanosleep     syz-executor.1
 32306   25859  57649      0  3        0x82  nanosleep     syz-executor.0
 57649   58164  57293      0  3        0x82  thrsleep      syz-fuzzer
 57649  345708  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57649  441406  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57649  469082  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57649  462112  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57649   24089  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57649  376247  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57649  315245  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57649  260438  57293      0  3   0x4000082  kqread        syz-fuzzer
 57649  147462  57293      0  3   0x4000082  thrsleep      syz-fuzzer
 57293   32288  16094      0  3    0x10008a  pause         ksh
 16094   42601  17616      0  3        0x92  select        sshd
 17616  355759      1      0  3        0x80  select        sshd
 44259  409315  42407     74  3    0x100092  bpf           pflogd
 42407   53494      1      0  3        0x80  netio         pflogd
 15306   47888  39045     73  2    0x100090                syslogd
 39045  275032      1      0  3    0x100082  netio         syslogd
 33919  302408      1     77  3    0x100090  poll          dhclient
 21405   97128      1      0  3        0x80  poll          dhclient
 84260  492601      0      0  2     0x14200                zerothread
 63401  109562      0      0  3     0x14200  aiodoned      aiodoned
 16461  341087      0      0  3     0x14200  syncer        update
 51854  196717      0      0  3     0x14200  cleaner       cleaner
  3468   87582      0      0  3     0x14200  reaper        reaper
 93871   82977      0      0  3     0x14200  pgdaemon      pagedaemon
 56203  437774      0      0  3     0x14200  bored         crynlk
 96299  364460      0      0  3     0x14200  bored         crypto
 36855  118832      0      0  3  0x40014200  acpi0         acpi0
 48822  389251      0      0  3  0x40014200                idle1
 71727  157513      0      0  3     0x14200  bored         softnet
 67325  266557      0      0  3     0x14200  bored         systqmp
 16156  212630      0      0  3     0x14200  bored         systq
 19297  127102      0      0  3  0x40014200  bored         softclock
 46886  175044      0      0  3  0x40014200                idle0
 36306  397499      0      0  3     0x14200  bored         smr
     1  109401      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 16970 (syz-executor.1) thread 0xffff800020b38e28 (324745)
exclusive rwlock netlock r = 0 (0xffffffff821d1ad8) locked @ /syzkaller/managers/multicore/kernel/sys/net/rtsock.c:883
#0  witness_lock+0x594 sys/kern/subr_witness.c:1205
#1  rtm_output+0x6b0 sys/net/rtsock.c:884
#2  route_output+0x79b sys/net/rtsock.c:806
#3  route_usrreq+0x35d sys/net/rtsock.c:271
#4  sosend+0x6eb sys/kern/uipc_socket.c:513
#5  sendit+0x590 sys/kern/uipc_syscalls.c:662
#6  sys_sendto+0x92
#7  syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline]
#7  syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574
#8  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff823542d8) locked @ /syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/trap.c:161
#0  witness_lock+0x594 sys/kern/subr_witness.c:1205
#1  solock+0x7e sys/kern/uipc_socket2.c:292
#2  sosend+0x586 sys/kern/uipc_socket.c:501
#3  sendit+0x590 sys/kern/uipc_syscalls.c:662
#4  sys_sendto+0x92
#5  syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline]
#5  syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574
#6  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  9517   6439K    6449K  78643K     10818        0        0
            pcb    27      9K      10K  78643K       636        0        0
         rtable   106      4K       4K  78643K       578        0        0
         ifaddr    56     13K      14K  78643K       175        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1479        0        0
            iov     0      0K      24K  78643K        68        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1192     75K      75K  78643K      1499        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         8        0        0
         VM map     2      1K       1K  78643K         2        0        0
            sem    12      0K       0K  78643K        81        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1808    196K     290K  78643K     12628        0        0
      file desc     6     17K      25K  78643K       729        0        0
          sigio     0      0K       0K  78643K         8        0        0
           proc    53     50K      71K  78643K       391        0        0
        subproc    64  65538K   67586K  78643K        68        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        60        0        0
       in_multi    33      2K       2K  78643K        47        0        0
    ether_multi     1      0K       0K  78643K         1        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    72    318K     318K  78643K        72        0        0
           exec     0      0K       1K  78643K       232        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    84     20K      21K  78643K      2973        0        0
       UVM aobj    23      2K       2K  78643K        29        0        0
        memdesc     1      4K       4K  78643K         1        0        0
    crypto data     1      1K       1K  78643K         1        0        0
    ip6_options     0      0K       1K  78643K        38        0        0
            NDP    11      0K       0K  78643K        46        0        0
           temp   153   2376K    2447K  78643K      4994        0        0
         kqueue     0      0K       0K  78643K         7        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64        4    0        0     1     0     1     1     0     8    0
inpcbpl    280      303    0      296     1     0     1     1     0     8    0
plimitpl   152       33    0       25     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtentry    112       61    0       20     2     0     2     2     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32       12    0       12     1     1     0     1     0     8    0
tcpcb      544       93    0       89     1     0     1     1     0     8    0
nd6         48        4    0        0     1     0     1     1     0     8    0
ppxss      1128      28    0       28     3     2     1     1     0     8    1
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       20    0       10     1     0     1     1     0     8    0
pfstkey    112       20    0       10     1     0     1     1     0     8    0
pfstate    328       20    0       10     2     0     2     2     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      186    0        0    12     0    12    12     0     8    0
art_table   32      187    0        0     2     0     2     2     0     8    0
art_node    16       40    0        6     1     0     1     1     0     8    0
sysvmsgpl   40       10    0        4     1     0     1     1     0     8    0
semapl     112       79    0       69     1     0     1     1     0     8    0
shmpl      112       27    0        6     2     1     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     2606    0     1191    46     0    46    46     0     8    0
ffsino     272     2606    0     1191    95     0    95    95     0     8    0
nchpl      144     3754    0     2127    61     0    61    61     0     8    0
uvmvnodes   72     2694    0        0    49     0    49    49     0     8    0
vnodes     200     2694    0        0   142     0   142   142     0     8    0
namei      1024   10270    0    10270     2     1     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
scxspl     192    11024    0    11024    10     9     1     6     0     8    1
sigapl     432      926    0      910     3     1     2     3     0     8    0
futexpl     56     6297    0     6297     1     0     1     1     0     8    1
knotepl    112      157    0      130     3     2     1     2     0     8    0
kqueuepl   104      119    0      117     1     0     1     1     0     8    0
pipepl     112      444    0      425     2     1     1     1     0     8    0
fdescpl    488      927    0      910     3     0     3     3     0     8    0
filepl     152     4741    0     4640     5     0     5     5     0     8    0
lockfpl    104      202    0      202     3     2     1     1     0     8    1
lockfspl    32      257    0      257     3     2     1     1     0     8    1
sessionpl  112       19    0        8     1     0     1     1     0     8    0
pgrppl      48       23    0       12     1     0     1     1     0     8    0
ucredpl     96      947    0      938     1     0     1     1     0     8    0
zombiepl   144      910    0      910     2     1     1     1     0     8    1
processpl  840      943    0      910     4     0     4     4     0     8    0
procpl     600     2310    0     2266     4     0     4     4     0     8    0
sosppl     128        9    0        9     2     1     1     1     0     8    1
sockpl     384      880    0      859     3     0     3     3     0     8    0
mcl64k     65536      4    0        0     1     0     1     1     0     8    0
mcl16k     16384      2    0        0     1     0     1     1     0     8    0
mcl12k     12288      4    0        0     1     0     1     1     0     8    0
mcl9k      9216       3    0        0     1     0     1     1     0     8    0
mcl8k      8192       6    0        0     1     0     1     1     0     8    0
mcl4k      4096       7    0        0     1     0     1     1     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     123    0        0    15     0    15    15     0     8    0
mtagpl      80        1    0        0     1     0     1     1     0     8    0
mbufpl     256      195    0        0    10     1     9     9     0     8    0
bufpl      256     6791    0     1046   360     0   360   360     0     8    0
anonpl      16    97351    0    88483    72    14    58    69     0   125   20
amapchunkpl 152    4286    0     4197     6     1     5     5     0   158    0
amappl16   192     4154    0     3686    56    31    25    48     0     8    1
amappl15   184      362    0      357     1     0     1     1     0     8    0
amappl14   176      386    0      378     1     0     1     1     0     8    0
amappl13   168       29    0       25     1     0     1     1     0     8    0
amappl12   160      362    0      360     2     1     1     1     0     8    0
amappl11   152      565    0      551     1     0     1     1     0     8    0
amappl10   144       67    0       62     1     0     1     1     0     8    0
amappl9    136      726    0      721     1     0     1     1     0     8    0
amappl8    128      484    0      466     1     0     1     1     0     8    0
amappl7    120       27    0       24     1     0     1     1     0     8    0
amappl6    112       55    0       49     1     0     1     1     0     8    0
amappl5    104      112    0       98     1     0     1     1     0     8    0
amappl4     96      325    0      301     2     1     1     2     0     8    0
amappl3     88      147    0      141     1     0     1     1     0     8    0
amappl2     80     7804    0     7737     2     0     2     2     0     8    0
amappl1     72    28316    0    27858    24    14    10    19     0     8    0
amappl      72     2542    0     2506     1     0     1     1     0    75    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
dma64       64      259    0      259     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       28    0        6     1     0     1     1     0     8    0
uaddrrnd    24      927    0      910     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      927    0      910     1     0     1     1     0     8    0
vmmpekpl   168    11163    0    11141     2     0     2     2     0     8    0
vmmpepl    168   103478    0   101920   109    31    78    89     0   357   10
vmsppl     360      926    0      910     2     0     2     2     0     8    0
pdppl      4096    1862    0     1820     6     0     6     6     0     8    0
pvpl        32   294832    0   282721   172    21   151   164     0   265   51
pmappl     224      926    0      910     2     1     1     2     0     8    0
extentpl    40       39    0       25     1     0     1     1     0     8    0
phpool     112      513    0        5    15     0    15    15     0     8    0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/03/15 07:15 openbsd fee69528d2cd d72db19b .config console log report ci-openbsd-multicore
2019/03/15 01:41 openbsd fee69528d2cd d72db19b .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.