syzbot


kernel: double fault trap, code=0

Status: auto-closed as invalid on 2019/10/25 08:51
Reported-by: syzbot+afa8f7d7fe6390b90de5@syzkaller.appspotmail.com
First crash: 2016d, last: 2016d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd kernel: double fault trap, code=0 (4) C 493 1425d 1682d 3/3 fixed on 2021/01/09 22:01
openbsd kernel: double fault trap, code=0 (2) syz 2 1848d 1848d 0/3 closed as invalid on 2020/02/21 15:02
openbsd kernel: double fault trap, code=0 (3) C 69 1715d 1724d 3/3 fixed on 2020/03/12 12:20

Sample crash report:
""	�~<t'jO�qzHtD^U""	�~<t'jO�qzHtD^Ukernel: double fault trap, code=0
Stopped at      ipsp_spd_lookup+0x41:   callq   __sanitizer_cov_trace_pc+0x4
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
the kernel did not panic
ddb> trace
ipsp_spd_lookup(fffffd8035445300,2,14,ffff80001491324c,2,0) at ipsp_spd_lookup+0x41 sys/netinet/ip_spd.c:149
ip_output_ipsec_lookup(fffffd8035445300,14,ffff80001491324c,fffffd803ead2118,0) at ip_output_ipsec_lookup+0x57 sys/netinet/ip_output.c:539
ip_output(fffffd8035445300,0,fffffd803ead2188,800,0,fffffd803ead2118) at ip_output+0x794 sys/netinet/ip_output.c:243
tcp_output(ffff80000098f880) at tcp_output+0x2544 sys/netinet/tcp_output.c:1040
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_output(ffff80000098f880) at tcp_output+0x2880 sys/netinet/tcp_output.c:1084
tcp_usrreq(fffffd803641e008,9,fffffd8035445400,0,0,ffff8000ffff4718) at tcp_usrreq+0x23b
sosend(fffffd803641e008,0,ffff800014916a98,0,0,80) at sosend+0x660 sys/kern/uipc_socket.c:513
dofilewritev(ffff8000ffff4718,4,ffff800014916a98,0,ffff800014916bb0) at dofilewritev+0x1a9 sys/kern/sys_generic.c:364
sys_write(ffff8000ffff4718,ffff800014916b40,ffff800014916bb0) at sys_write+0x83 sys/kern/sys_generic.c:284
syscall(ffff800014916c20) at syscall+0x511
Xsyscall(0,4,648a1915f06,4,4,64b9b4b29c0) at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffcff50, count: -42
ddb> show registers
rdi               0xfffffd8035445300
rsi                              0x2
rbp               0xffff800014913110
rbx               0xfffffd8035445300
rdx                             0x14
rcx               0xffff80001491324c
rax                                0
r8                               0x2
r9                                 0
r10               0x79948419f62286d9
r11               0xcfda9defb0dc6a1b
r12                             0x14
r13               0xffff80001491324c
r14                              0x2
r15               0xfffffd8035445300
rip               0xffffffff8117a5c1    ipsp_spd_lookup+0x41
cs                               0x8
rflags                       0x10286    __ALIGN_SIZE+0xf286
rsp               0xffff800014912ff0
ss                              0x10
ipsp_spd_lookup+0x41:   callq   __sanitizer_cov_trace_pc+0x4
ddb> show proc
PROC (sshd) pid=519709 stat=onproc
    flags process=12<EXEC,SUGID> proc=0
    pri=50, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff8000ffff4268,0xffff8000ffff4020
    process=0xffff8000149529f0 user=0xffff800014911000, vmspace=0xfffffd803f013738
    estcpu=0, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 49042  396197  93934      0  2       0x482                syz-executor.1
 29908   84869  93934      0  2         0x2                syz-executor.0
 76585  290934      1      0  3    0x100083  ttyin         getty
 26690  108993      0      0  3     0x14200  bored         sosplice
 93934  308772  32368      0  3        0x82  thrsleep      syz-fuzzer
 93934  398251  32368      0  2   0x4000082                syz-fuzzer
 93934  355611  32368      0  3   0x4000082  thrsleep      syz-fuzzer
 93934   91273  32368      0  3   0x4000082  thrsleep      syz-fuzzer
 93934  221681  32368      0  3   0x4000082  thrsleep      syz-fuzzer
 93934  226920  32368      0  3   0x4000082  thrsleep      syz-fuzzer
 93934  132072  32368      0  3   0x4000082  thrsleep      syz-fuzzer
 93934   27622  32368      0  2   0x4000002                syz-fuzzer
 32368  208718  12939      0  3    0x10008a  pause         ksh
*12939  519709  81980      0  7        0x12                sshd
 81980  267501      1      0  3        0x80  select        sshd
 71683   18116  61368     73  3    0x100010  biowait       syslogd
 61368  450800      1      0  3    0x100082  netio         syslogd
 56409   97509      1     77  3    0x100090  poll          dhclient
 50620  224152      1      0  3        0x80  poll          dhclient
 71045  348811      0      0  3     0x14200  pgzero        zerothread
 67788  435539      0      0  3     0x14200  aiodoned      aiodoned
 67849  194804      0      0  3     0x14200  syncer        update
 59974  507757      0      0  3     0x14200  cleaner       cleaner
 50032  336395      0      0  3     0x14200  reaper        reaper
  9469   97950      0      0  3     0x14200  pgdaemon      pagedaemon
 84458  340679      0      0  3     0x14200  bored         crynlk
 68835  273295      0      0  3     0x14200  bored         crypto
 65121  221430      0      0  3  0x40014200  acpi0         acpi0
 11428   86553      0      0  3     0x14200  bored         softnet
 48850  452169      0      0  3     0x14200  bored         systqmp
 89846  455896      0      0  3     0x14200  bored         systq
 91427   94542      0      0  3  0x40014200  bored         softclock
  4772  215192      0      0  3  0x40014200                idle0
 87517  214969      0      0  3     0x14200  bored         smr
     1   51877      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  9496   6340K   14537K  78643K     17329        0        0
            pcb    23      9K      11K  78643K      1264        0        0
         rtable   108      3K       4K  78643K       978        0        0
         ifaddr    52     13K      15K  78643K       334        0        0
       counters    19     16K      16K  78643K        19        0        0
       ioctlops     0      0K       2K  78643K        85        0        0
            iov     0      0K      20K  78643K       354        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1202     76K      76K  78643K      3578        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        44        0        0
         VM map     2      0K       0K  78643K         2        0        0
            sem    12      0K       1K  78643K       423        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1793    195K     288K  78643K     12537        0        0
      file desc     4      9K      25K  78643K      2674        0        0
          sigio     0      0K       0K  78643K        51        0        0
           proc    43     30K      55K  78643K       911        0        0
        subproc    64  65538K   67586K  78643K       345        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       242        0        0
       in_multi    33      2K       2K  78643K       210        0        0
    ether_multi     1      0K       0K  78643K        16        0        0
            mrt     0      0K       0K  78643K         7        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys   102    450K     450K  78643K       102        0        0
           exec     0      0K       1K  78643K       455        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    79     20K      38K  78643K      7129        0        0
       UVM aobj   130      6K       6K  78643K       144        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        97        0        0
            NDP    10      0K       0K  78643K        97        0        0
           temp   156   2711K    3351K  78643K     11990        0        0
         kqueue     0      0K       0K  78643K        20        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       22    0       16     1     0     1     1     0     8    0
inpcbpl    280     1152    0     1145     1     0     1     1     0     8    0
plimitpl   152      175    0      168     1     0     1     1     0     8    0
rtentry    112      133    0       89     3     1     2     2     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32       30    0       30     1     1     0     1     0     8    0
tcpcb      544      433    0      429     1     0     1     1     0     8    0
nd6         48       30    0       24     2     1     1     1     0     8    0
ppxss      1128      53    0       53    13    12     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      569    0      378    14     2    12    13     0     8    0
art_table   32      570    0      378     3     1     2     2     0     8    0
art_node    16      132    0       92     1     0     1     1     0     8    0
sysvmsgpl   40        8    0        0     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112      421    0      411     1     0     1     1     0     8    0
shmpl      112      142    0       14     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     5520    0     4078    47     0    47    47     0     8    0
ffsino     240     5520    0     4078    86     0    86    86     0     8    0
nchpl      144     9416    0     7795    61     0    61    61     0     8    0
uvmvnodes   72     6772    0        0   124     0   124   124     0     8    0
vnodes     200     6772    0        0   357     0   357   357     0     8    0
namei      1024   29749    0    29749     3     2     1     1     0     8    1
scsiplug    64        5    0        5     4     4     0     1     0     8    0
scxspl     192    37455    0    37454    15    14     1     6     0     8    0
sigapl     432     2822    0     2810     2     0     2     2     0     8    0
futexpl     56    45109    0    45109     4     3     1     1     0     8    1
knotepl    112      695    0      676     1     0     1     1     0     8    0
kqueuepl   104      640    0      638     1     0     1     1     0     8    0
pipepl     112     1746    0     1727     5     3     2     2     0     8    1
fdescpl    424     2823    0     2810     2     0     2     2     0     8    0
filepl     120    16865    0    16771     9     4     5     5     0     8    2
lockfpl    104      865    0      865     6     5     1     1     0     8    1
lockfspl    48      313    0      313     6     5     1     1     0     8    1
sessionpl  112       27    0       17     1     0     1     1     0     8    0
pgrppl      48       61    0       51     1     0     1     1     0     8    0
ucredpl     96     3128    0     3121     1     0     1     1     0     8    0
zombiepl   144     2810    0     2809     1     0     1     1     0     8    0
processpl  840     2838    0     2809     4     0     4     4     0     8    0
procpl     600     6082    0     6046     4     0     4     4     0     8    0
sosppl     128       49    0       49    11    10     1     1     0     8    1
sockpl     384     2253    0     2236     9     5     4     4     0     8    2
mcl64k     65536    334    0      334    39    39     0    33     0     8    0
mcl16k     16384      9    0        9     4     4     0     1     0     8    0
mcl12k     12288     60    0       60     8     7     1     1     0     8    1
mcl9k      9216      30    0       30    13    12     1     1     0     8    1
mcl8k      8192      47    0       47    11    10     1     1     0     8    1
mcl4k      4096     154    0      154     5     4     1     1     0     8    1
mcl2k2     2112      14    0       14     7     6     1     1     0     8    1
mcl2k      2048   61736    0    61688    17    10     7    13     0     8    0
mtagpl      80        4    0        4     2     2     0     1     0     8    0
mbufpl     256   114987    0   114889    31    23     8    21     0     8    0
bufpl      256    14326    0     7554   424     0   424   424     0     8    0
anonpl      16   312630    0   303096   131    74    57    66     0    62    4
amapchunkpl 152   13369    0    13271    43    28    15    15     0   158   10
amappl16   192    17100    0    16461   169   136    33    46     0     8    0
amappl15   184        8    0        8     1     0     1     1     0     8    1
amappl14   176     1360    0     1356     1     0     1     1     0     8    0
amappl13   168        3    0        3     2     1     1     1     0     8    1
amappl12   160      768    0      764     1     0     1     1     0     8    0
amappl11   152      105    0       92     1     0     1     1     0     8    0
amappl10   144      568    0      566     1     0     1     1     0     8    0
amappl9    136      645    0      642     1     0     1     1     0     8    0
amappl8    128      213    0      192     1     0     1     1     0     8    0
amappl7    120      551    0      544     1     0     1     1     0     8    0
amappl6    112       87    0       79     1     0     1     1     0     8    0
amappl5    104      981    0      971     1     0     1     1     0     8    0
amappl4     96     1496    0     1470     2     1     1     2     0     8    0
amappl3     88     2980    0     2973     1     0     1     1     0     8    0
amappl2     80    23537    0    23492     2     0     2     2     0     8    0
amappl1     72    58993    0    58592    25    15    10    19     0     8    0
amappl      80     6449    0     6417     1     0     1     1     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
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      143    0       14     3     0     3     3     0     8    0
uaddrrnd    24     2823    0     2810     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     2823    0     2810     1     0     1     1     0     8    0
vmmpekpl   168    22350    0    22327     2     0     2     2     0     8    0
vmmpepl    168   295441    0   293957   199   104    95    95     0   357   20
vmsppl     264     2822    0     2810     4     2     2     2     0     8    1
pdppl      4096    5652    0     5620     8     2     6     6     0     8    1
pvpl        32   964483    0   951947   384   157   227   265     0   265  103
pmappl     200     2822    0     2810     1     0     1     1     0     8    0
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      649    0       98    18     2    16    18     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/16 16:54 openbsd f42f1754a5d1 f59a9cb5 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.