syzbot


kernel: double fault trap, code=NUM

Status: closed as invalid on 2021/12/21 06:25
Reported-by: syzbot+6ed412376afabd197c2a@syzkaller.appspotmail.com
First crash: 1067d, last: 1067d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd kernel: double fault trap, code=NUM (2) C 34 99d 1042d 0/3 upstream: reported C repro on 2022/01/14 06:35

Sample crash report:
kernel: double fault trap, code=0
Stopped at      restore_saved+0x35:     xorq    0x30(%rsp),%r11
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
the kernel did not panic
ddb> trace
end trace frame: 0x0, count: -1
ddb> show registers
rdi               0xffff8000ffffefc0
rsi               0xffff8000216efce0
rbp                                0
rbx                                0
rdx                                0
rcx                                0
rax                              0x7
r8                                 0
r9                                 0
r10               0xc73924b3ffb7665c
r11               0x48648b7d0d04d1f4
r12               0xffff8000216efce0
r13               0xffff8000216e8000
r14               0xffff8000ffffefc0
r15               0xffff8000216efce0
rip               0xffffffff81c341e7    restore_saved+0x35
cs                               0x8
rflags                       0x10046    __ALIGN_SIZE+0xf046
rsp                                0
ss                              0x10
restore_saved+0x35:     xorq    0x30(%rsp),%r11
ddb> show proc
PROC (syz-executor.0) pid=354552 stat=onproc
    flags process=10<SUGID> proc=0
    pri=86, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff8000216ee000,0xffff8000216ee2b0
    process=0xffff8000216f6038 user=0xffff8000216e8000, vmspace=0xfffffd806b102010
    estcpu=36, cpticks=2, pctcpu=0.0
    user=0, sys=0, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
*52953  354552  43661      0  7        0x10                syz-executor.0
 52953  401393  43661      0  3   0x4000090  fsleep        syz-executor.0
 52953  491318  43661      0  3   0x4000090  fsleep        syz-executor.0
 52953  474644  43661      0  3   0x4000090  fsleep        syz-executor.0
 77034   54240      0      0  3     0x14280  nfsidl        nfsio
 92253  457888      0      0  3     0x14280  nfsidl        nfsio
 71272  195854      0      0  3     0x14280  nfsidl        nfsio
  1431  202910      0      0  3     0x14280  nfsidl        nfsio
 51343  499259      0      0  3     0x14280  nfsidl        nfsio
 37622  448213      0      0  3     0x14280  nfsidl        nfsio
 40427  411094      0      0  3     0x14280  nfsidl        nfsio
 18003  519040      0      0  3     0x14280  nfsidl        nfsio
 13140  282971      0      0  3     0x14280  nfsidl        nfsio
 55009  290395      0      0  3     0x14280  nfsidl        nfsio
 20174  106909      0      0  3     0x14280  nfsidl        nfsio
 50943  372629      0      0  3     0x14280  nfsidl        nfsio
 12625  390157      0      0  3     0x14280  nfsidl        nfsio
 36547  101543      0      0  3     0x14280  nfsidl        nfsio
 12028  150517      0      0  3     0x14280  nfsidl        nfsio
 23382  252450      0      0  3     0x14280  nfsidl        nfsio
 34468  422227      0      0  3     0x14280  nfsidl        nfsio
 69128  384471      0      0  3     0x14280  nfsidl        nfsio
 61045   72174      0      0  3     0x14280  nfsidl        nfsio
 26442  314249      0      0  3     0x14280  nfsidl        nfsio
 43661  108981  87871      0  3        0x82  nanoslp       syz-executor.0
 56481  431637      1      0  3    0x100083  ttyin         getty
 36740  511028  87871      0  3        0x82  nanoslp       syz-executor.1
  9860  112444      0      0  3     0x14200  acct          acct
 75037  395335      0      0  3     0x14200  bored         sosplice
 87871  125482  18968      0  3        0x82  thrsleep      syz-fuzzer
 87871  274025  18968      0  3   0x4000082  thrsleep      syz-fuzzer
 87871  111145  18968      0  3   0x4000082  thrsleep      syz-fuzzer
 87871  389127  18968      0  3   0x4000082  kqread        syz-fuzzer
 87871  137258  18968      0  3   0x4000082  thrsleep      syz-fuzzer
 87871  133608  18968      0  3   0x4000082  thrsleep      syz-fuzzer
 18968  453190  57248      0  3    0x10008a  sigsusp       ksh
 57248  374478  96204      0  3        0x9a  kqread        sshd
 96204  339034      1      0  3        0x88  kqread        sshd
 38808   15965  34140     73  3    0x100090  kqread        syslogd
 34140  497876      1      0  3    0x100082  netio         syslogd
  5117  170058      1      0  3    0x100080  kqread        resolvd
  8253  439860  90107     77  3    0x100092  kqread        dhcpleased
 20934  347724  90107     77  3    0x100092  kqread        dhcpleased
 90107  211722      1      0  3        0x80  kqread        dhcpleased
 42112  518997      0      0  3     0x14200  bored         smr
  7817  365784      0      0  2     0x14200                zerothread
 45438  247027      0      0  3     0x14200  aiodoned      aiodoned
 69222  514734      0      0  3     0x14200  syncer        update
 59178  123391      0      0  3     0x14200  cleaner       cleaner
 13257  187549      0      0  3     0x14200  reaper        reaper
 76774  135792      0      0  3     0x14200  pgdaemon      pagedaemon
 36609  126698      0      0  3     0x14200  bored         viomb
 96949  222755      0      0  3  0x40014200  acpi0         acpi0
  1445  389400      0      0  3     0x14200  bored         softnet
  3171  453819      0      0  3     0x14200  bored         systqmp
   202  520984      0      0  3     0x14200  bored         systq
 79110  490784      0      0  3  0x40014200  bored         softclock
  6141  195720      0      0  3  0x40014200                idle0
     1   37146      0      0  3     0x80082  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
         devbuf 10115   6388K    7555K  78643K     16650        0
            pcb    13     10K      12K  78643K       409        0
         rtable   131     17K      18K  78643K       950        0
         ifaddr    50     14K      16K  78643K       515        0
         sysctl     3      1K       1K  78643K         4        0
       counters    21     16K      17K  78643K        95        0
       ioctlops     0      0K       4K  78643K      2331        0
            iov     0      0K      16K  78643K       450        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1228     77K      77K  78643K      3272        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        25        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      0K       0K  78643K       365        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12598        0
      file desc     5     13K      25K  78643K      9317        0
          sigio     0      0K       0K  78643K        13        0
           proc    59     55K      71K  78643K       659        0
        subproc    26      1K       1K  78643K       122        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       308        0
       in_multi    30      2K       2K  78643K       306        0
    ether_multi     1      0K       0K  78643K        78        0
            mrt     1      0K       0K  78643K        18        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    73    334K     334K  78643K        73        0
           exec     0      0K       2K  78643K       827        0
     pfkey data     0      0K       1K  78643K         1        0
            tdb     3      0K       0K  78643K         3        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   244     84K     147K  78643K    111156        0
       UVM aobj    52      2K       2K  78643K        58        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       284        0
            NDP     5      0K       0K  78643K        97        0
           temp    84   4203K    4278K  78643K     57984        0
         kqueue    12     18K      38K  78643K       368        0
      SYN cache     2     16K      16K  78643K         2        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb      120      302    0      299     3     2     1     3     0     8    0
rtentry    112      138    0       98     2     0     2     2     0     8    0
unpcb      128     5736    0     5721    28    19     9     9     0     8    8
syncache   296      104    0      104    12    12     0     1     0     8    0
tcpqe       32       40    0       40     5     5     0     1     0     8    0
tcpcb      736     1063    0     1059    31    28     3     6     0     8    2
arp         88       26    0       17     1     0     1     1     0     8    0
ipq         40        5    0        5     2     2     0     1     0     8    0
ipqe        40      220    0      220     2     2     0     1     0     8    0
inpcb      304     2560    0     2553    18    16     2     6     0     8    1
rttmr       72        1    0        1     1     1     0     1     0     8    0
ip6q        72        1    0        1     1     1     0     1     0     8    0
ip6af       40        1    0        1     1     1     0     1     0     8    0
nd6         48       27    0       21     1     0     1     1     0     8    0
pkpcb       40       20    0       20     6     6     0     1     0     8    0
kcovpl      48        9    0        7     1     0     1     1     0     8    0
ppxss      1152      27    0       27     6     6     0     1     0     8    0
pfstscr     40       47    0       47     2     2     0     1     0     8    0
pffrag     232       15    0       15     1     1     0     1     0   482    0
pffrnode    88       15    0       15     1     1     0     1     0     8    0
pffrent     40      221    0      221     2     2     0     1     0     8    0
pfrktable  1344     198    0      186     2     1     1     2     0     8    0
pftag       88       43    0       41     3     2     1     1     0     8    0
pfstitem    24       31    0       31     2     2     0     1     0     8    0
pfstkey    112       64    0       64     2     2     0     1     0     8    0
pfstate    320       34    0       34     2     2     0     1     0     8    0
pfsrctr    152      245    0      244     1     0     1     1     0     8    0
pfrule     1360     142    0      103     4     0     4     4     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      572    0      401    12     1    11    12     0     8    0
art_table   32      573    0      401     2     0     2     2     0     8    0
art_node    16      137    0      105     1     0     1     1     0     8    0
sysvmsgpl   40       19    0        4     1     0     1     1     0     8    0
semupl     112       10    0       10     1     1     0     1     0     8    0
semapl     112      363    0      353     1     0     1     1     0     8    0
shmpl      112       55    0        6     2     0     2     2     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    12414    0    11017    88     0    88    88     0     8    0
ffsino     240    12414    0    11017    83     0    83    83     0     8    0
nchpl      144    23422    0    21831    60     0    60    60     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     224     5926    0        0   349     0   349   349     0     8    0
namei      1024   70279    0    70279     1     0     1     1     0     8    1
vcpupl     1984      10    0        3     2     1     1     2     0     8    0
vmpool     528       28    0       21     2     1     1     1     0     8    0
pfiaddrpl  120       67    0       47     1     0     1     1     0     8    0
scsiplug    72        8    0        8     3     3     0     1     0     8    0
scxspl     216    67796    0    67796    13    12     1     8     0     8    1
plimitpl   152      218    0      210     1     0     1     1     0     8    0
sigapl     424     9548    0     9497     6     0     6     6     0     8    0
futexpl     64    62522    0    62519     1     0     1     1     0     8    0
knotepl    112    69647    0    69604     3     1     2     3     0     8    0
kqueuepl   184      927    0      919     7     4     3     4     0     8    2
pipepl     304      787    0      777    21    20     1     6     0     8    0
fdescpl    432     9513    0     9497     4     2     2     3     0     8    0
filepl     120    42960    0    42857    40    29    11    11     0     8    7
lockfpl    104    14530    0    14528    13    11     2     4     0     8    1
lockfspl    48     1374    0     1372     1     0     1     1     0     8    0
sessionpl  144       26    0       16     1     0     1     1     0     8    0
pgrppl      48     1342    0     1332     1     0     1     1     0     8    0
ucredpl     96     5351    0     5340     1     0     1     1     0     8    0
zombiepl   144     9497    0     9496     1     0     1     1     0     8    0
processpl  1000    9548    0     9496     8     1     7     7     0     8    0
procpl     672    20100    0    20040    12     6     6     7     0     8    1
sosppl     168       37    0       37     7     7     0     1     0     8    0
sockpl     448     8635    0     8610   140   128    12    30     0     8    9
mcl64k     65536    239    0      239    21    20     1     1     0     8    1
mcl16k     16384     91    0       91    11    10     1     1     0     8    1
mcl12k     12288    114    0      114    15    14     1     1     0     8    1
mcl9k      9216      61    0       61    14    14     0     1     0     8    0
mcl8k      8192     199    0      199    18    17     1     1     0     8    1
mcl4k      4096     419    0      419    16    15     1     1     0     8    1
mcl2k2     2112      24    0       24    13    12     1     1     0     8    1
mcl2k      2048   43320    0    43277    57    48     9    13     0     8    2
mtagpl      96      583    0      449     7     2     5     6     0     8    0
mbufpl     256   159277    0   158837   351   313    38   287     0     8    0
bufpl      288    15572    0     9173   458     0   458   458     0     8    0
anonpl      24  2475540    0  2463831   196   122    74   113     0   188    2
amapchunkpl 152  271048    0   270605    66    47    19    30     0   158    1
amappl16   200    24295    0    23904    92    71    21    41     0     8    0
amappl15   192       88    0       83     1     0     1     1     0     8    0
amappl14   184     2301    0     2296     1     0     1     1     0     8    0
amappl13   176     4302    0     4301     1     0     1     1     0     8    0
amappl12   168        6    0        4     1     0     1     1     0     8    0
amappl11   160      366    0      352     1     0     1     1     0     8    0
amappl10   152      268    0      263     1     0     1     1     0     8    0
amappl9    144      671    0      669     1     0     1     1     0     8    0
amappl8    136     2272    0     2185     4     0     4     4     0     8    0
amappl7    128     1763    0     1757     1     0     1     1     0     8    0
amappl6    120      516    0      504     1     0     1     1     0     8    0
amappl5    112     9522    0     9504     1     0     1     1     0     8    0
amappl4    104     1336    0     1307     1     0     1     1     0     8    0
amappl3     96      390    0      374     1     0     1     1     0     8    0
amappl2     88    14021    0    13976     2     0     2     2     0     8    0
amappl1     80   149568    0   149156    13     3    10    12     0     8    0
amappl      88   110545    0   110408     4     0     4     4     0    92    0
dma4096    4096       1    0        1     1     1     0     1     0     8    0
dma1024    1024       1    0        0     1     0     1     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      72       57    0        6     1     0     1     1     0     8    0
uaddrrnd    24     9541    0     9518     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     9541    0     9518     1     0     1     1     0     8    0
vmmpekpl   168    45960    0    45932     2     0     2     2     0     8    0
vmmpepl    168   824809    0   823198   174    99    75    89     0   357    1
vmsppl     272     9540    0     9518     3     1     2     2     0     8    0
rwobjpl     24   186123    0   179012    46     2    44    46     0     8    0
pdppl      4096   19088    0    19043    74    27    47    52     0     8    2
pvpl        32  4222664    0  4209905   318   210   108   173     0   265    3
pmappl     216     9540    0     9518     3     1     2     2     0     8    0
extentpl    40       57    0       38     1     0     1     1     0     8    0
phpool     112     1375    0      610    31     7    24    29     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
end trace frame: 0x0, count: -1
ddb> machine ddbcpu 1
No such command
ddb> trace
end trace frame: 0x0, count: -1

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/20 07:27 openbsd 0b9027416dbe 021b36cb .config console log report ci-openbsd-main kernel: double fault trap, code=NUM
* Struck through repros no longer work on HEAD.