syzbot


kernel: privileged instruction fault trap, code=NUM

Status: auto-closed as invalid on 2022/05/08 07:58
Reported-by: syzbot+0bd4244b02b1ee24b3cd@syzkaller.appspotmail.com
First crash: 1018d, last: 1018d

Sample crash report:
kernel: privileged instruction fault trap, code=0
Stopped at      vmptrld+0xb:    rdrand  0(%rdi)
ddb{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
the kernel did not panic
ddb{0}> trace
vmptrld() at vmptrld+0xb
vm_create(ffff800000d03800,ffff8000211627e8) at vm_create+0x2d3 sys/arch/amd64/amd64/vmm.c:1545
vmmioctl(a00,c5005601,ffff800000d03800,1,ffff8000211627e8) at vmmioctl+0x1f2
VOP_IOCTL(fffffd8077b92ad0,c5005601,ffff800000d03800,1,fffffd807f7d86c0,ffff8000211627e8) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
vn_ioctl(fffffd807d2fc0b8,c5005601,ffff800000d03800,ffff8000211627e8) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531
sys_ioctl(ffff8000211627e8,ffff80002e3660d8,ffff80002e366130) at sys_ioctl+0x4a2
syscall(ffff80002e3661a0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e3661a0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x66c44703ef0, count: -8
ddb{0}> show registers
rdi               0xffff80002e360b50
rsi                              0x1
rbp               0xffff80002e365d30
rbx               0xffff800000679c00
rdx                                0
rcx                       0x11e57ed0    __kernel_phys_end+0xf257ed0
rax               0xfffffd8066156000
r8                                 0
r9                                 0
r10               0x605a30b90ceabc54
r11               0x22e1d6db1273d0e5
r12                              0x1
r13                                0
r14               0xffff80002e360800
r15               0xffff80002e360b50
rip               0xffffffff818e18a4    vmptrld+0xb
cs                               0x8
rflags                       0x10202    __ALIGN_SIZE+0xf202
rsp               0xffff80002e365cf8
ss                                 0
vmptrld+0xb:    rdrand  0(%rdi)
ddb{0}> show proc
PROC (syz-executor.1) pid=177798 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=32, usrpri=82, nice=20
    forw=0xffffffffffffffff, list=0xffff800021162a88,0xffff800021162018
    process=0xffff80002789edd0 user=0xffff80002e361000, vmspace=0xfffffd807e7c9740
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 23541   25865  71748      0  7           0                syz-executor.7
 23541  377769  71748      0  2   0x4000000                syz-executor.7
  2168   98637  59752      0  2           0                syz-executor.3
  2168  123372  59752      0  3   0x4000080  fsleep        syz-executor.3
 73317  293600  70228      0  2           0                syz-executor.5
 73317   28832  70228      0  3   0x4000080  fsleep        syz-executor.5
 73317   68309  70228      0  3   0x4000080  fsleep        syz-executor.5
 80450  427923  30408      0  2           0                syz-executor.4
 80450  132769  30408      0  3   0x4000080  fsleep        syz-executor.4
 92026  149835  86211      0  2           0                syz-executor.1
 92026  387094  86211      0  3   0x4000080  fsleep        syz-executor.1
*92026  177798  86211      0  7   0x4000000                syz-executor.1
 60522  294864  47321      0  2           0                syz-executor.2
 60522  117342  47321      0  2   0x4000080                syz-executor.2
 14810  459653  37443      0  2           0                syz-executor.0
 14810  364473  37443      0  3   0x4000080  fsleep        syz-executor.0
  1168   15365  90956      0  2           0                syz-executor.6
 59752  140848   8966      0  3        0x82  nanoslp       syz-executor.3
 40376  430032      0      0  3     0x14200  bored         sosplice
 26675  301274      1      0  3    0x100083  ttyopn        getty
 71748    8855   8966      0  3        0x82  nanoslp       syz-executor.7
 90956  515623   8966      0  2       0x482                syz-executor.6
 70228  460491   8966      0  3        0x82  nanoslp       syz-executor.5
 30408  147463   8966      0  3        0x82  nanoslp       syz-executor.4
 47321  343537   8966      0  3        0x82  nanoslp       syz-executor.2
 86211   87923   8966      0  3        0x82  nanoslp       syz-executor.1
 37443  109880   8966      0  3        0x82  nanoslp       syz-executor.0
  8966  401896  97546      0  3        0x82  thrsleep      syz-fuzzer
  8966   79130  97546      0  3   0x4000082  thrsleep      syz-fuzzer
  8966  419197  97546      0  3   0x4000082  thrsleep      syz-fuzzer
  8966   47356  97546      0  3   0x4000082  thrsleep      syz-fuzzer
  8966  222304  97546      0  3   0x4000082  thrsleep      syz-fuzzer
  8966  436739  97546      0  3   0x4000082  kqread        syz-fuzzer
  8966  315592  97546      0  3   0x4000082  thrsleep      syz-fuzzer
  8966  149874  97546      0  3   0x4000082  thrsleep      syz-fuzzer
 97546  446446  97816      0  3    0x10008a  sigsusp       ksh
 97816   19192  17485      0  3        0x9a  poll          sshd
 17485  384811      1      0  3        0x88  poll          sshd
 78582   11910  78896     74  3    0x100092  bpf           pflogd
 78896  416522      1      0  3        0x80  netio         pflogd
 81647  494224   7569     73  3    0x100090  kqread        syslogd
  7569  118791      1      0  3    0x100082  netio         syslogd
 31844  286038      1      0  3    0x100080  kqread        resolvd
   624  488302  57433     77  3    0x100092  kqread        dhcpleased
 70497  372153  57433     77  3    0x100092  kqread        dhcpleased
 57433  146748      1      0  3        0x80  kqread        dhcpleased
 65033  193977      0      0  2     0x14200                smr
 54510  305429      0      0  2     0x14200                zerothread
 60428  368153      0      0  3     0x14200  aiodoned      aiodoned
 72720  269049      0      0  3     0x14200  syncer        update
 39472  482213      0      0  3     0x14200  cleaner       cleaner
 12993  125701      0      0  3     0x14200  reaper        reaper
 33794  286904      0      0  3     0x14200  pgdaemon      pagedaemon
 45663  362474      0      0  3     0x14200  bored         viomb
  8068   23342      0      0  3  0x40014200  acpi0         acpi0
 60836  350923      0      0  3  0x40014200                idle1
 79631   98019      0      0  3     0x14200  bored         softnet
 37434  462392      0      0  3     0x14200  bored         systqmp
 58563  420827      0      0  3     0x14200  bored         systq
 82239   83632      0      0  2  0x40014200                softclock
 57591   17524      0      0  3  0x40014200                idle0
     1  168638      0      0  3     0x80082  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 92026 (syz-executor.1) thread 0xffff8000211627e8 (177798)
exclusive rwlock vm_list r = 0 (0xffff800000679c88)
#0  witness_lock+0x44d
#1  rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2  vm_create+0xa4 sys/arch/amd64/amd64/vmm.c:1508
#3  vmmioctl+0x1f2
#4  VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
#5  vn_ioctl+0xbc sys/kern/vfs_vnops.c:531
#6  sys_ioctl+0x4a2
#7  syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#7  syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#8  Xsyscall+0x128
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10213   6550K    6872K  78643K     12338        0
            pcb    13     14K      16K  78643K       224        0
         rtable   241      7K      10K  78643K       655        0
         ifaddr    89     18K      19K  78643K       211        0
         sysctl     2      0K       0K  78643K         2        0
       counters    56     35K      35K  78643K        76        0
       ioctlops     1      2K       4K  78643K      1584        0
            iov     0      0K      28K  78643K       106        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         5        0
         vnodes  1435     90K      90K  78643K      1699        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        11        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      1K       1K  78643K        16        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    18     65K      93K  78643K      1111        0
          sigio     1      0K       0K  78643K         1        0
           proc    69     87K     124K  78643K       651        0
        subproc   104      6K       6K  78643K       117        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        34        0
       in_multi    99      6K       6K  78643K       144        0
    ether_multi     1      0K       0K  78643K        13        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   205    917K     917K  78643K       205        0
           exec     0      0K       2K  78643K       725        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   361    104K     104K  78643K     15939        0
       UVM aobj    84      6K       6K  78643K        87        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       112        0
            NDP    12      0K       2K  78643K        40        0
           temp   118   4702K    4766K  78643K      8211        0
         kqueue    10     14K      18K  78643K        88        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{0}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       22    0        0     1     0     1     1     0     8    0
rtpcb      120       81    0       78     2     1     1     2     0     8    0
rtentry    112      126    0       15     4     0     4     4     0     8    0
unpcb      136      473    0      458     7     6     1     4     0     8    0
syncache   296        4    0        4     1     1     0     1     0     8    0
tcpcb      736     1575    0     1505    22    14     8    17     0     8    1
arp        120       20    0        2     1     0     1     1     0     8    0
inpcb      304     2269    0     2262    21    15     6    14     0     8    5
nd6         48       27    0        3     1     0     1     1     0     8    0
pkpcb       40        3    0        3     1     1     0     1     0     8    0
kcovpl      48        9    0        1     1     0     1     1     0     8    0
ppxss      1248       6    0        6     1     1     0     1     0     8    0
pfstscr     40        1    0        1     1     0     1     1     0     8    1
pffrag     232        2    0        0     1     0     1     1     0   482    0
pffrnode    88        2    0        0     1     0     1     1     0     8    0
pffrent     40        8    0        6     1     0     1     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfrke_plain 168      10    0       10     1     1     0     1     0     8    0
pfrktable  1344      74    0       74     4     4     0     1     0     8    0
pftag       88       10    0       10     2     2     0     1     0     8    0
pfstitem    24       53    0       32     1     0     1     1     0     8    0
pfstkey    112       55    0       34     1     0     1     1     0     8    0
pfstate    320       54    0       33     3     0     3     3     0     8    0
pfrule     1360      45    0       34     5     4     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      523    0       68    31     2    29    29     0     8    0
art_table   32      524    0       68     4     0     4     4     0     8    0
art_node    16      125    0       25     1     0     1     1     0     8    0
sysvmsgpl   40       30    0        7     2     1     1     1     0     8    0
semupl     112        3    0        3     1     1     0     1     0     8    0
semapl     112       10    0        0     1     0     1     1     0     8    0
shmpl      112       84    0        3     3     0     3     3     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     2703    0     1261    91     0    91    91     0     8    0
ffsino     272     2703    0     1261    97     0    97    97     0     8    0
nchpl      144     4311    0     2680    63     0    63    63     0     8    0
rtmask      32       20    0       20     1     1     0     1     0     8    0
uvmvnodes   80     3145    0        0    65     0    65    65     0     8    0
vnodes     224     3145    0        0   185     0   185   185     0     8    0
namei      1024   14563    0    14563     2     1     1     2     0     8    1
percpumem   16       50    0       10     1     0     1     1     0     8    0
vcpupl     2048       2    0        1     1     0     1     1     0     8    0
vmpool     560        5    0        4     2     1     1     1     0     8    0
pfiaddrpl  120       20    0       20     4     4     0     1     0     8    0
scxspl     216    12612    0    12612    10     9     1     8     0     8    1
plimitpl   152      161    0      146     1     0     1     1     0     8    0
sigapl     424     1412    0     1366     6     0     6     6     0     8    0
futexpl     64     8766    0     8760     1     0     1     1     0     8    0
knotepl    112      122    0        0     3     0     3     3     0     8    0
kqueuepl   216      306    0      300    10     6     4     5     0     8    3
pipepl     336      627    0      599    18    12     6     8     0     8    3
fdescpl    496     1397    0     1366     5     1     4     5     0     8    0
filepl     152     9303    0     9060    25    10    15    19     0     8    5
lockfpl    104      130    0      128     1     0     1     1     0     8    0
lockfspl    48       58    0       56     1     0     1     1     0     8    0
sessionpl  144       26    0        9     1     0     1     1     0     8    0
pgrppl      48       30    0       13     1     0     1     1     0     8    0
ucredpl     96      486    0      473     1     0     1     1     0     8    0
zombiepl   144     1366    0     1366     1     0     1     1     0     8    1
processpl  1064    1412    0     1366     4     0     4     4     0     8    0
procpl     672     3402    0     3340     8     1     7     7     0     8    1
srpgc       96        2    0        2     1     1     0     1     0     8    0
sosppl     168       11    0       11     3     2     1     1     0     8    1
sockpl     480     2831    0     2806    36    24    12    24     0     8    8
mcl64k     65536     13    0        0     2     0     2     2     0     8    0
mcl16k     16384      4    0        0     1     0     1     1     0     8    0
mcl12k     12288     12    0        0     2     0     2     2     0     8    0
mcl9k      9216       3    0        0     1     0     1     1     0     8    0
mcl8k      8192      22    0        0     3     1     2     3     0     8    0
mcl4k      4096      11    0        0     2     0     2     2     0     8    0
mcl2k2     2112       4    0        0     1     0     1     1     0     8    0
mcl2k      2048     178    0        0    22     0    22    22     0     8    0
mtagpl      96       86    0        0     3     0     3     3     0     8    0
mbufpl     256      459    0        0    28     0    28    28     0     8    0
bufpl      288     4933    0      148   342     0   342   342     0     8    0
anonpl      24   354378    0   334798   142    15   127   137     0   186    0
amapchunkpl 152   38861    0    37932    43     6    37    40     0   158    1
amappl16   200     3386    0     2788    47    14    33    45     0     8    1
amappl15   192      299    0      291     1     0     1     1     0     8    0
amappl14   184        4    0        2     1     0     1     1     0     8    0
amappl13   176       88    0       86     1     0     1     1     0     8    0
amappl12   168      212    0      207     1     0     1     1     0     8    0
amappl11   160       53    0       39     1     0     1     1     0     8    0
amappl10   152      165    0      159     1     0     1     1     0     8    0
amappl9    144      718    0      710     1     0     1     1     0     8    0
amappl8    136      874    0      810     3     0     3     3     0     8    0
amappl7    128      372    0      358     1     0     1     1     0     8    0
amappl6    120      450    0      428     2     1     1     2     0     8    0
amappl5    112     1269    0     1245     1     0     1     1     0     8    0
amappl4    104      870    0      844     1     0     1     1     0     8    0
amappl3     96      428    0      415     1     0     1     1     0     8    0
amappl2     88      685    0      641     3     1     2     3     0     8    0
amappl1     80    28440    0    27826    19     5    14    19     0     8    0
amappl      88    15435    0    15159     7     0     7     7     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       86    0        3     2     0     2     2     0     8    0
uaddrrnd    24     1402    0     1370     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1402    0     1370     1     0     1     1     0     8    0
vmmpekpl   168    16502    0    16443     3     0     3     3     0     8    0
vmmpepl    168   131043    0   128341   140    20   120   128     0   357    2
vmsppl     368     1401    0     1370     4     0     4     4     0     8    0
rwobjpl     56    36263    0    31419    70     1    69    69     0     8    0
pdppl      4096    2811    0     2741   145    74    71    83     0     8    1
pvpl        32   712504    0   688353   258    54   204   245     0   265    2
pmappl     248     1401    0     1370     3     0     3     3     0     8    0
extentpl    40       58    0       38     1     0     1     1     0     8    0
phpool     112      823    0      110    21     0    21    21     0     8    0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
vmptrld() at vmptrld+0xb
vm_create(ffff800000d03800,ffff8000211627e8) at vm_create+0x2d3 sys/arch/amd64/amd64/vmm.c:1545
vmmioctl(a00,c5005601,ffff800000d03800,1,ffff8000211627e8) at vmmioctl+0x1f2
VOP_IOCTL(fffffd8077b92ad0,c5005601,ffff800000d03800,1,fffffd807f7d86c0,ffff8000211627e8) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264
vn_ioctl(fffffd807d2fc0b8,c5005601,ffff800000d03800,ffff8000211627e8) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531
sys_ioctl(ffff8000211627e8,ffff80002e3660d8,ffff80002e366130) at sys_ioctl+0x4a2
syscall(ffff80002e3661a0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff80002e3661a0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x66c44703ef0, count: -8
ddb{0}> machine ddbcpu 1
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
ddb{1}> trace
x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
end of kernel
end trace frame: 0x7f7ffffe9990, count: -3

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/07 07:57 openbsd f05e79799977 a7dab638 .config console log report ci-openbsd-multicore kernel: privileged instruction fault trap, code=NUM
* Struck through repros no longer work on HEAD.