syzbot


panic: attempt to execute user address 0x0 in supervipasnoirc: mokdeern

Status: closed as dup on 2019/10/02 12:47
Reported-by: syzbot+42adac2e39e65fa90fb9@syzkaller.appspotmail.com
First crash: 1877d, last: 1877d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: attempt to execute user address syz 1539 1789d 1883d

Sample crash report:
panic: attempt to execute user address 0x0 in supervipasnoirc:  mokdeern
e
lStopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*456615  69609      0           0  0x4000000    0  syz-executor.1
  18840  29870      0           0  0x4000000    1  syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pageflttrap() at pageflttrap+0x40b
kerntrap(ffff800023ba6ae0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287
alltraps_kern_meltdown(6,ffff800022d96000,fffffd80667c2158,10,ffff8000000253f0,ffff800023ba6d48) at alltraps_kern_meltdown+0x7b
0(b,ffff800023ba6ca8,83,ffff800023ba6d48,0,b) at 0
rt_clone(ffff800023ba6db8,fffffd806f6ca198,0) at rt_clone+0x78 sys/net/route.c:266
rtalloc_mpath(fffffd806f6ca198,fffffd8067e6a5f0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
rtalloc_mpath(fffffd806f6ca198,fffffd8067e6a5f0,0) at rtalloc_mpath+0xba sys/net/route.c:359
ip_output(fffffd8067e6a500,0,fffffd806f6ca188,20,0,fffffd806f6ca118) at ip_output+0x4f2 sys/netinet/ip_output.c:204
rip_output(fffffd8067e6a500,fffffd8066942008,ffff800023ba6fc8,ffff800022d96000) at rip_output+0x252 sys/netinet/raw_ip.c:289
rip_usrreq(fffffd8066942008,9,fffffd8067e6a500,0,0,ffff800020ab0ee8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538
sosend(fffffd8066942008,0,ffff800023ba7130,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524
sendit(ffff800020ab0ee8,5,ffff800023ba7210,0,ffff800023ba72f0) at sendit+0x52b sys/kern/uipc_syscalls.c:662
sys_sendto(ffff800020ab0ee8,ffff800023ba72a8,ffff800023ba72f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
end trace frame: 0xffff800023ba7360, count: 0
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{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
attempt to execute user address 0x0 in supervisor mode
ddb{0}> 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
pageflttrap() at pageflttrap+0x40b
kerntrap(ffff800023ba6ae0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287
alltraps_kern_meltdown(6,ffff800022d96000,fffffd80667c2158,10,ffff8000000253f0,ffff800023ba6d48) at alltraps_kern_meltdown+0x7b
0(b,ffff800023ba6ca8,83,ffff800023ba6d48,0,b) at 0
rt_clone(ffff800023ba6db8,fffffd806f6ca198,0) at rt_clone+0x78 sys/net/route.c:266
rtalloc_mpath(fffffd806f6ca198,fffffd8067e6a5f0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
rtalloc_mpath(fffffd806f6ca198,fffffd8067e6a5f0,0) at rtalloc_mpath+0xba sys/net/route.c:359
ip_output(fffffd8067e6a500,0,fffffd806f6ca188,20,0,fffffd806f6ca118) at ip_output+0x4f2 sys/netinet/ip_output.c:204
rip_output(fffffd8067e6a500,fffffd8066942008,ffff800023ba6fc8,ffff800022d96000) at rip_output+0x252 sys/netinet/raw_ip.c:289
rip_usrreq(fffffd8066942008,9,fffffd8067e6a500,0,0,ffff800020ab0ee8) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538
sosend(fffffd8066942008,0,ffff800023ba7130,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524
sendit(ffff800020ab0ee8,5,ffff800023ba7210,0,ffff800023ba72f0) at sendit+0x52b sys/kern/uipc_syscalls.c:662
sys_sendto(ffff800020ab0ee8,ffff800023ba72a8,ffff800023ba72f0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
syscall(ffff800023ba7370) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800023ba7370) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffffd7,0,6,cbed73d1010) at Xsyscall+0x128
end of kernel
end trace frame: 0xcc13610e4f0, count: -16
ddb{0}> show registers
rdi               0xffffffff812d2ac7    db_enter+0x17
rsi                           0x206f    __ALIGN_SIZE+0x106f
rbp               0xffff800023ba6950
rbx               0xffff800023ba6a00
rdx                           0x2070    __ALIGN_SIZE+0x1070
rcx               0xffff800022d96000
rax               0xffff800022d96000
r8                0xffffffff81c6670f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0x5038aaa8f12e11e7
r12                     0x3000000008
r13               0xffff800023ba6960
r14                            0x100
r15                              0x1
rip               0xffffffff812d2ac8    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800023ba6940
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.1) pid=456615 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ab18c8,0xffffffff8264fc48
    process=0xffff800020adc380 user=0xffff800023ba2000, vmspace=0xfffffd807f00b450
    estcpu=36, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 69609  226886  27096      0  2           0                syz-executor.1
*69609  456615  27096      0  7   0x4000000                syz-executor.1
 29870  403708  31618      0  2           0                syz-executor.0
 29870   18840  31618      0  7   0x4000000                syz-executor.0
 27096  253046  63459      0  3        0x82  nanosleep     syz-executor.1
 57236  376985      0      0  3     0x14200  bored         sosplice
 31618  240022  63459      0  3        0x82  nanosleep     syz-executor.0
 63459  262789  68107      0  3        0x82  thrsleep      syz-fuzzer
 63459  414769  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 63459   83980  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 63459  111090  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 63459  418037  68107      0  3   0x4000082  kqread        syz-fuzzer
 63459  453771  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 63459  326063  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 63459  390805  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 63459  429572  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 63459   75786  68107      0  3   0x4000082  thrsleep      syz-fuzzer
 68107  492452  81209      0  3    0x10008a  pause         ksh
 81209  317370  28490      0  3        0x92  select        sshd
 52590  205621      1      0  3    0x100083  ttyin         getty
 28490  215594      1      0  3        0x80  select        sshd
  3804  258529  80237     74  3    0x100092  bpf           pflogd
 80237  211775      1      0  3        0x80  netio         pflogd
  8839  383432  75336     73  3    0x100090  kqread        syslogd
 75336  421469      1      0  3    0x100082  netio         syslogd
 29987  407736      1     77  3    0x100090  poll          dhclient
 85231  375866      1      0  3        0x80  poll          dhclient
 48110   84915      0      0  2     0x14200                zerothread
 57238  463835      0      0  3     0x14200  aiodoned      aiodoned
 33486  471303      0      0  3     0x14200  syncer        update
 44973   89346      0      0  3     0x14200  cleaner       cleaner
 37750   17625      0      0  3     0x14200  reaper        reaper
 33419  240345      0      0  3     0x14200  pgdaemon      pagedaemon
 55519  343216      0      0  3     0x14200  bored         crynlk
 44882  251073      0      0  3     0x14200  bored         crypto
 33344   34992      0      0  3  0x40014200  acpi0         acpi0
 79121  384622      0      0  3  0x40014200                idle1
 94861  246021      0      0  3     0x14200  bored         softnet
 87709  162456      0      0  3     0x14200  bored         systqmp
 42298  390826      0      0  3     0x14200  bored         systq
 45031    3891      0      0  3  0x40014200  bored         softclock
 84045  450622      0      0  3  0x40014200                idle0
 11920  150832      0      0  3     0x14200  bored         smr
     1  462383      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 69609 (syz-executor.1) thread 0xffff800020ab0ee8 (456615)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82651848)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  rt_clone+0x5c sys/net/route.c:266
#2  rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline]
#2  rtalloc_mpath+0xba sys/net/route.c:359
#3  ip_output+0x4f2 sys/netinet/ip_output.c:204
#4  rip_output+0x252 sys/netinet/raw_ip.c:289
#5  rip_usrreq+0x46a sys/netinet/raw_ip.c:538
#6  sosend+0x645 sys/kern/uipc_socket.c:524
#7  sendit+0x52b sys/kern/uipc_syscalls.c:662
#8  sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
#9  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#9  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#10 Xsyscall+0x128
exclusive rwlock netlock r = 0 (0xffffffff8246c0b8)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  solock+0x5a sys/kern/uipc_socket2.c:282
#2  sosend+0x51b sys/kern/uipc_socket.c:512
#3  sendit+0x52b sys/kern/uipc_syscalls.c:662
#4  sys_sendto+0x80 sys/kern/uipc_syscalls.c:527
#5  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6  Xsyscall+0x128
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  9546   6550K    7325K  78643K     12376        0        0
            pcb    13     10K      12K  78643K       149        0        0
         rtable   111     12K      12K  78643K       720        0        0
         ifaddr    66     14K      15K  78643K       247        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1510        0        0
            iov     0      0K      16K  78643K       156        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1220     77K      77K  78643K      1826        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        16        0        0
         VM map     2      1K       1K  78643K        10        0        0
            sem    11      1K       1K  78643K        11        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1808    196K     290K  78643K     12765        0        0
      file desc     6     17K      25K  78643K       731        0        0
          sigio     1      0K       0K  78643K         8        0        0
           proc    60     63K      83K  78643K       635        0        0
        subproc    32      2K       2K  78643K        85        0        0
    NFS srvsock     1      0K       0K  78643K         1        0        0
     NFS daemon     1     16K      16K  78643K         1        0        0
    ip_moptions     0      0K       1K  78643K        96        0        0
       in_multi    30      2K       2K  78643K       107        0        0
    ether_multi     1      0K       0K  78643K        10        0        0
            mrt     0      0K       0K  78643K         6        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    60    265K     265K  78643K        60        0        0
           exec     0      0K       1K  78643K       313        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    98     21K      30K  78643K      3502        0        0
       UVM aobj    30      2K       2K  78643K        31        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       134        0        0
            NDP    14      0K       0K  78643K        72        0        0
           temp   185   3556K    3631K  78643K     22438        0        0
         kqueue     0      0K       0K  78643K        15        0        0
      SYN cache     2     16K      16K  78643K         2        0        0
ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       18    0       13     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       61    0       59     1     0     1     1     0     8    0
rtentry    112      113    0       69     2     0     2     2     0     8    0
unpcb      120      546    0      536     2     1     1     2     0     8    0
syncache   264        7    0        7     3     3     0     1     0     8    0
tcpqe       32     6157    0     6157     1     1     0     1     0     8    0
tcpcb      544     1615    0     1611    13    11     2    11     0     8    1
inpcb      280     2134    0     2125    13    10     3     9     0     8    2
rttmr       72        1    0        1     1     1     0     1     0     8    0
nd6         48       12    0        9     1     0     1     1     0     8    0
pkpcb       40        1    0        1     1     0     1     1     0     8    1
ppxss      1128      39    0       39     4     3     1     1     0     8    1
pffrag     232        9    0        9     5     4     1     1     0   482    1
pffrnode    88        9    0        9     5     4     1     1     0     8    1
pffrent     40       63    0       63     5     4     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       55    0       28     1     0     1     1     0     8    0
pfstkey    112       55    0       28     1     0     1     1     0     8    0
pfstate    328       55    0       28     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      493    0      282    16     1    15    15     0     8    1
art_table   32      494    0      282     2     0     2     2     0     8    0
art_node    16      110    0       69     1     0     1     1     0     8    0
sysvmsgpl   40      100    0       61     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112        9    0        0     1     0     1     1     0     8    0
shmpl      112       29    0        1     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     2499    0     1098    46     0    46    46     0     8    0
ffsino     272     2499    0     1098    94     0    94    94     0     8    0
nchpl      144     3710    0     2108    61     0    61    61     0     8    0
uvmvnodes   72     2971    0        0    55     0    55    55     0     8    0
vnodes     208     2971    0        0   157     0   157   157     0     8    0
namei      1024   11241    0    11241     5     4     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
vmpool     552        8    0        8     3     2     1     1     0     8    1
scsiplug    64        1    0        1     1     0     1     1     0     8    1
scxspl     192    11782    0    11782    17    14     3     7     0     8    3
plimitpl   152       79    0       71     1     0     1     1     0     8    0
sigapl     432      922    0      906     3     1     2     3     0     8    0
futexpl     56    16330    0    16330     1     0     1     1     0     8    1
knotepl    112      212    0      193     1     0     1     1     0     8    0
kqueuepl   104      302    0      300     4     3     1     4     0     8    0
pipepl     112      562    0      543     3     2     1     2     0     8    0
fdescpl    488      923    0      906     3     0     3     3     0     8    0
filepl     152     7582    0     7479    19    13     6    14     0     8    2
lockfpl    104      256    0      255     1     0     1     1     0     8    0
lockfspl    48       83    0       82     1     0     1     1     0     8    0
sessionpl  112       21    0       10     1     0     1     1     0     8    0
pgrppl      48       29    0       18     1     0     1     1     0     8    0
ucredpl     96      785    0      776     1     0     1     1     0     8    0
zombiepl   144      906    0      906     4     3     1     1     0     8    1
processpl  896      939    0      906     4     0     4     4     0     8    0
procpl     632     2584    0     2540     7     2     5     5     0     8    1
srpgc       64        4    0        4     2     1     1     1     0     8    1
sosppl     128        7    0        7     2     2     0     1     0     8    0
sockpl     384     2749    0     2728    21    14     7    14     0     8    4
mcl64k     65536    271    0        0    33     0    33    33     0     8    0
mcl16k     16384      3    0        0     1     0     1     1     0     8    0
mcl12k     12288      4    0        0     1     0     1     1     0     8    0
mcl9k      9216       4    0        0     1     0     1     1     0     8    0
mcl8k      8192       4    0        0     1     0     1     1     0     8    0
mcl4k      4096       9    0        0     2     0     2     2     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     173    0        0    21     0    21    21     0     8    0
mtagpl      80       39    0        0     1     0     1     1     0     8    0
mbufpl     256      448    0        0    26     1    25    25     0     8    0
bufpl      256     8547    0     1499   441     0   441   441     0     8    0
anonpl      16   121372    0   106068    89     4    85    85     0   124   14
amapchunkpl 152    5748    0     5640    12     6     6    10     0   158    0
amappl16   192     5149    0     4203    69    13    56    60     0     8    8
amappl15   184      382    0      380     1     0     1     1     0     8    0
amappl14   176       51    0       49     2     1     1     1     0     8    0
amappl13   168      392    0      390     2     1     1     1     0     8    0
amappl12   160       17    0       15     2     1     1     1     0     8    0
amappl11   152       64    0       49     1     0     1     1     0     8    0
amappl10   144       72    0       67     1     0     1     1     0     8    0
amappl9    136      659    0      652     1     0     1     1     0     8    0
amappl8    128      199    0      175     1     0     1     1     0     8    0
amappl7    120      116    0      109     1     0     1     1     0     8    0
amappl6    112       78    0       68     1     0     1     1     0     8    0
amappl5    104      165    0      151     1     0     1     1     0     8    0
amappl4     96     1208    0     1174     2     1     1     2     0     8    0
amappl3     88      128    0      122     1     0     1     1     0     8    0
amappl2     80     6890    0     6806     4     2     2     3     0     8    0
amappl1     72    30146    0    29703    26    16    10    20     0     8    0
amappl      80     2883    0     2845     3     1     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       30    0        1     1     0     1     1     0     8    0
uaddrrnd    24      931    0      906     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      931    0      906     1     0     1     1     0     8    0
vmmpekpl   168    10917    0    10880     2     0     2     2     0     8    0
vmmpepl    168   122557    0   120383   194    67   127   127     0   357   30
vmsppl     368      922    0      906     2     0     2     2     0     8    0
pdppl      4096    1869    0     1828     8     2     6     6     0     8    0
pvpl        32   345595    0   327044   227    27   200   200     0   265   34
pmappl     232      930    0      914     4     2     2     2     0     8    1
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      671    0       22    19     0    19    19     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/02 12:24 openbsd 65ab43f212c4 2e29b534 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.