syzbot


uvm_fault: x86_ipi_db (5)

Status: closed as invalid on 2021/08/23 05:23
Reported-by: syzbot+6a52b192b1d4d094a246@syzkaller.appspotmail.com
First crash: 968d, last: 968d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd uvm_fault: x86_ipi_db (3) 4 1147d 1164d 0/3 auto-closed as invalid on 2021/05/25 04:20
openbsd uvm_fault: x86_ipi_db (6) 1 964d 964d 0/3 closed as invalid on 2021/08/26 17:38
openbsd uvm_fault: x86_ipi_db (2) 1 1197d 1197d 0/3 closed as invalid on 2021/01/29 06:54
openbsd uvm_fault: x86_ipi_db (8) 176 1d06h 787d 0/3 upstream: reported on 2022/02/19 02:28
openbsd uvm_fault: x86_ipi_db (7) 4 838d 838d 3/3 fixed on 2021/12/30 22:14
openbsd uvm_fault: x86_ipi_db 1 1201d 1201d 0/3 closed as invalid on 2021/01/03 08:45
openbsd uvm_fault: x86_ipi_db (4) 1 982d 982d 0/3 closed as invalid on 2021/08/08 05:33

Sample crash report:
uvm_fault(fffffd806ee78e68,20000000,0,2) at uvm_fault+0x240 sys/uvm/uvm_fault.c:638
kpageflttrap(ffff8000242b3340,20000080) at kpageflttrap+0x1fd sys/arch/amd64/amd64/trap.c:264
kerntrap(ffff8000242b3340) at kerntrap+0xef sys/arch/amd64/amd64/trap.c:318
alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b
copyout() at copyout+0x53
syscall(ffff8000242b3570) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000242b3570) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xbcd2eb07a00, count: -15
ddb{0}> show registers
rdi               0xffff80002349c000
rsi                           0x3969    __ALIGN_SIZE+0x2969
rbp               0xffff8000242b2cc0
rbx                              0x3
rdx               0xffff80002349c000
rcx                           0x3968    __ALIGN_SIZE+0x2968
rax               0xffffffff8150d207    db_enter+0x17
r8                0xffffffff81c323dc    witness_checkorder+0x10cc
r9                               0x5
r10               0xdfea5deb9b99da47
r11               0x164442da07d6c6f9
r12               0xfffffd8002da87c0
r13                                0
r14                                0
r15                                0
rip               0xffffffff8150d208    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff8000242b2cb0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.1) pid=313654 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=32, usrpri=78, nice=20
    forw=0xffffffffffffffff, list=0xffff800021272540,0xffffffff828e52d0
    process=0xffff8000ffffa5b8 user=0xffff8000242ae000, vmspace=0xfffffd806ee78e68
    estcpu=36, cpticks=0, pctcpu=0.0
    user=0, sys=0, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 51073  408758  71589      0  2           0                syz-executor.1
*51073  313654  71589      0  7   0x4000000                syz-executor.1
 51870  270575      0      0  3     0x14200  bored         sosplice
 71589   73654   1255      0  3        0x82  nanoslp       syz-executor.1
 75293  481970   1255      0  3         0x2  biowait       syz-executor.0
  1255  505622   1883      0  3        0x82  thrsleep      syz-fuzzer
  1255  169106   1883      0  3   0x4000082  nanoslp       syz-fuzzer
  1255  303854   1883      0  3   0x4000082  thrsleep      syz-fuzzer
  1255  492637   1883      0  3   0x4000082  thrsleep      syz-fuzzer
  1255  149542   1883      0  3   0x4000082  thrsleep      syz-fuzzer
  1255  477002   1883      0  3   0x4000082  kqread        syz-fuzzer
  1255  446993   1883      0  3   0x4000082  thrsleep      syz-fuzzer
  1255  497865   1883      0  3   0x4000082  nanoslp       syz-fuzzer
  1883  360730  17356      0  3    0x10008a  sigsusp       ksh
 17356  173433  69534      0  3        0x9a  select        sshd
 94725  347449      1      0  3    0x100083  ttyin         getty
 69534  248507      1      0  3        0x88  select        sshd
 33626  377757   3986     74  3    0x100092  bpf           pflogd
  3986  158376      1      0  3        0x80  netio         pflogd
 99957   11453  32636     73  3    0x100090  kqread        syslogd
 32636  495452      1      0  3    0x100082  netio         syslogd
 31399  175198      1      0  3    0x100080  kqread        resolvd
 17375   71594  58608     77  3    0x100092  kqread        dhcpleased
  7444  226281  58608     77  3    0x100092  kqread        dhcpleased
 58608  284362      1      0  3        0x80  kqread        dhcpleased
 33880  468288      0      0  3     0x14200  bored         smr
 24943  114459      0      0  2     0x14200                zerothread
 67501  154135      0      0  3     0x14200  aiodoned      aiodoned
 84420  253888      0      0  3     0x14200  syncer        update
 34939  411108      0      0  3     0x14200  cleaner       cleaner
 18923  419300      0      0  3     0x14200  reaper        reaper
 29371  138234      0      0  3     0x14200  pgdaemon      pagedaemon
 54922  365275      0      0  3     0x14200  bored         crynlk
  5537    5154      0      0  3     0x14200  bored         crypto
 46442  388737      0      0  3     0x14200  bored         viomb
 94962   60168      0      0  3  0x40014200  acpi0         acpi0
 29912   26595      0      0  7  0x40014200                idle1
 98587  349276      0      0  3     0x14200  bored         softnet
 85785  183723      0      0  3     0x14200  bored         systqmp
 60776   99782      0      0  3     0x14200  bored         systq
 24704  131097      0      0  3  0x40014200  bored         softclock
 57988  503732      0      0  3  0x40014200                idle0
     1   37480      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 51073 (syz-executor.1) thread 0xffff8000212737a0 (313654)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829dbb18)
#0  witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0  witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1  uvm_fault+0x224 sys/uvm/uvm_fault.c:637
#2  kpageflttrap+0x1fd sys/arch/amd64/amd64/trap.c:264
#3  kerntrap+0xef sys/arch/amd64/amd64/trap.c:318
#4  alltraps_kern_meltdown+0x7b
#5  copyout+0x53
#6  syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#6  syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#7  Xsyscall+0x128
exclusive rwlock fdlock r = 0 (0xfffffd806f0d0a10)
#0  witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0  witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1  sys_socketpair+0x20f
#2  syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#2  syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#3  Xsyscall+0x128
Process 75293 (syz-executor.0) thread 0xffff800021273500 (481970)
exclusive rrwlock inode r = 0 (0xfffffd8068e6d920)
#0  witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0  witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1  rw_enter+0x3e2 sys/kern/kern_rwlock.c:310
#2  rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3  ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140
#4  ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1350
#5  ffs_inode_alloc+0x1c3 sys/ufs/ffs/ffs_alloc.c:394
#6  ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162
#7  VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:457
#8  domkdirat+0x121 sys/kern/vfs_syscalls.c:3070
#9  syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#9  syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#10 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806b050d58)
#0  witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0  witness_lock+0x4b0 sys/kern/subr_witness.c:1182
#1  rw_enter+0x3e2 sys/kern/kern_rwlock.c:310
#2  rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3  VOP_LOCK+0x87 sys/kern/vfs_vops.c:614
#4  vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5  vfs_lookup+0xdd sys/kern/vfs_lookup.c:413
#6  namei+0x55a sys/kern/vfs_lookup.c:245
#7  domkdirat+0x75 sys/kern/vfs_syscalls.c:3055
#8  syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8  syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
#9  Xsyscall+0x128
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10142   6491K    6944K  78643K     12899        0
            pcb    13      8K       8K  78643K       120        0
         rtable   104      3K       3K  78643K       313        0
         ifaddr    53     12K      12K  78643K       134        0
       counters    44     34K      34K  78643K        68        0
       ioctlops     0      0K       4K  78643K      1516        0
            iov     0      0K      16K  78643K        29        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         6        0
         vnodes  1218     77K      77K  78643K      1819        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        13        0
         VM map     2      1K       1K  78643K         2        0
            sem    11      1K       1K  78643K        17        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12598        0
      file desc     5     13K      25K  78643K      2289        0
          sigio     0      0K       0K  78643K        39        0
           proc    71     87K     111K  78643K       378        0
        subproc    32      2K       2K  78643K        51        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       102        0
       in_multi    33      2K       2K  78643K       206        0
    ether_multi     1      0K       0K  78643K        36        0
            mrt     0      0K       0K  78643K        40        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    43    201K     201K  78643K        43        0
           exec     0      0K       2K  78643K       446        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   186     26K      34K  78643K     28730        0
       UVM aobj     5      2K       2K  78643K         5        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        91        0
            NDP     8      0K       0K  78643K        26        0
           temp   114   4206K    4270K  78643K      7839        0
         kqueue    10     14K      22K  78643K       171        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       42    0       39     1     0     1     1     0     8    0
rtentry    112       92    0       48     2     0     2     2     0     8    0
unpcb      120      485    0      468     1     0     1     1     0     8    0
syncache   296       15    0       15     2     2     0     1     0     8    0
tcpqe       32       25    0       25     2     2     0     1     0     8    0
tcpcb      736      365    0      361     9     6     3     3     0     8    2
arp        120        8    0        2     1     0     1     1     0     8    0
inpcb      304      854    0      847     3     2     1     2     0     8    0
rttmr       72       10    0       10     1     1     0     1     0     8    0
nd6         48       35    0       29     1     0     1     1     0     8    0
kcovpl      48        3    0        1     1     0     1     1     0     8    0
ppxss      1248      11    0       11     2     1     1     1     0     8    1
pffrag     232        1    0        1     1     1     0     1     0   482    0
pffrnode    88        1    0        1     1     1     0     1     0     8    0
pffrent     40        5    0        5     1     1     0     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
pfstitem    24       71    0       46     1     0     1     1     0     8    0
pfstkey    112       71    0       46     2     0     2     2     0     8    0
pfstate    320       71    0       46     6     2     4     5     0     8    1
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      236    0       48    12     0    12    12     0     8    0
art_table   32      237    0       48     2     0     2     2     0     8    0
art_node    16       91    0       51     1     0     1     1     0     8    0
sysvmsgpl   40       38    0       27     1     0     1     1     0     8    0
semupl     112        5    0        5     1     1     0     1     0     8    0
semapl     112        9    0        0     1     0     1     1     0     8    0
shmpl      112        2    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     4262    0     2854    89     0    89    89     0     8    0
ffsino     272     4262    0     2854    95     0    95    95     0     8    0
nchpl      144     7016    0     5402    61     0    61    61     0     8    0
uvmvnodes   72     4725    0        0    86     0    86    86     0     8    0
vnodes     224     4725    0        0   278     0   278   278     0     8    0
namei      1024   17670    0    17669     1     0     1     1     0     8    0
percpumem   16       46    0       12     1     0     1     1     0     8    0
scxspl     216    20281    0    20280     9     8     1     8     0     8    0
plimitpl   152       64    0       55     1     0     1     1     0     8    0
sigapl     424     2538    0     2503     6     1     5     5     0     8    1
futexpl     56    16625    0    16625     1     0     1     1     0     8    1
knotepl    112       63    0        0     2     0     2     2     0     8    0
kqueuepl   216      924    0      914     1     0     1     1     0     8    0
pipepl     336      155    0      145     6     4     2     2     0     8    1
fdescpl    496     2521    0     2503     3     0     3     3     0     8    0
filepl     152     7819    0     7704     5     0     5     5     0     8    0
lockfpl    104      210    0      208     1     0     1     1     0     8    0
lockfspl    48       76    0       74     1     0     1     1     0     8    0
sessionpl  144       19    0        8     1     0     1     1     0     8    0
pgrppl      48       19    0        8     1     0     1     1     0     8    0
ucredpl     96     1055    0     1043     1     0     1     1     0     8    0
zombiepl   144     2503    0     2503     1     0     1     1     0     8    1
processpl  1072    2538    0     2503     3     0     3     3     0     8    0
procpl     672     5073    0     5030     7     3     4     5     0     8    0
sosppl     168       11    0       11     1     1     0     1     0     8    0
sockpl     480     1382    0     1355     4     0     4     4     0     8    0
mcl64k     65536      5    0        0     1     0     1     1     0     8    0
mcl16k     16384     17    0        0     3     0     3     3     0     8    0
mcl12k     12288     12    0        0     2     0     2     2     0     8    0
mcl9k      9216       1    0        0     1     0     1     1     0     8    0
mcl8k      8192       6    0        0     1     0     1     1     0     8    0
mcl4k      4096       6    0        0     1     0     1     1     0     8    0
mcl2k2     2112       9    0        0     1     0     1     1     0     8    0
mcl2k      2048     195    0        0    17     0    17    17     0     8    0
mtagpl      96      119    0        0     3     0     3     3     0     8    0
mbufpl     256      652    0        0    37     1    36    36     0     8    0
bufpl      280     5921    0      134   414     0   414   414     0     8    0
anonpl      24   621976    0   615087    62    18    44    54     0   186    1
amapchunkpl 152   67929    0    67537    26     9    17    22     0   158    1
amappl16   200     4506    0     4339    12     3     9    11     0     8    0
amappl15   192        1    0        0     1     0     1     1     0     8    0
amappl14   184        4    0        2     1     0     1     1     0     8    0
amappl13   176     1242    0     1239     1     0     1     1     0     8    0
amappl12   168        1    0        1     1     1     0     1     0     8    0
amappl11   160       44    0       29     1     0     1     1     0     8    0
amappl10   152       50    0       43     1     0     1     1     0     8    0
amappl9    144       16    0       14     1     0     1     1     0     8    0
amappl8    136     1503    0     1462     3     1     2     2     0     8    0
amappl7    128     1178    0     1159     1     0     1     1     0     8    0
amappl6    120      131    0      121     1     0     1     1     0     8    0
amappl5    112     1721    0     1703     1     0     1     1     0     8    0
amappl4    104      667    0      643     1     0     1     1     0     8    0
amappl3     96     1295    0     1290     1     0     1     1     0     8    0
amappl2     88     1658    0     1606     2     0     2     2     0     8    0
amappl1     80    44104    0    43660    13     3    10    13     0     8    0
amappl      88    28241    0    28112     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      64        4    0        0     1     0     1     1     0     8    0
uaddrrnd    24     2521    0     2503     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     2521    0     2503     1     0     1     1     0     8    0
vmmpekpl   168    17484    0    17461     2     0     2     2     0     8    0
vmmpepl    168   277636    0   276172    73     4    69    70     0   357    2
vmsppl     368     2520    0     2503     2     0     2     2     0     8    0
rwobjpl     56    48893    0    47993    16     3    13    14     0     8    0
pdppl      4096    5050    0     5006    62    16    46    50     0     8    2
pvpl        32  1361128    0  1350736   167    78    89   136     0   265    3
pmappl     224     2520    0     2503     2     0     2     2     0     8    0
extentpl    40       58    0       40     1     0     1     1     0     8    0
phpool     112      345    0       30     9     0     9     9     0     8    0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399
witness_checkorder(fffffd8068e6db40,9,0) at witness_checkorder+0x10f3 witness_debugger sys/kern/subr_witness.c:2502 [inline]
witness_checkorder(fffffd8068e6db40,9,0) at witness_checkorder+0x10f3 sys/kern/subr_witness.c:1105
rw_enter(fffffd8068e6db30,81) at rw_enter+0xd1 sys/kern/kern_rwlock.c:250
rrw_enter(fffffd8068e6db30,81) at rrw_enter+0x8b sys/kern/kern_rwlock.c:461
VOP_LOCK(fffffd8066144a88,81) at VOP_LOCK+0x87 sys/kern/vfs_vops.c:614
vn_lock(fffffd8066144a88,81) at vn_lock+0x84 sys/kern/vfs_vnops.c:579
uvn_get(fffffd807304ba70,0,ffff8000242b3048,ffff8000242b3018,0,0) at uvn_get+0x256 uvm_vnode_lock sys/uvm/uvm_vnode.c:1499 [inline]
uvn_get(fffffd807304ba70,0,ffff8000242b3048,ffff8000242b3018,0,0) at uvn_get+0x256 sys/uvm/uvm_vnode.c:993
uvm_fault_lower(ffff8000242b31b0,ffff8000242b31e8,ffff8000242b3130,0) at uvm_fault_lower+0x302 sys/uvm/uvm_fault.c:1251
uvm_fault(fffffd806ee78e68,20000000,0,2) at uvm_fault+0x240 sys/uvm/uvm_fault.c:638
kpageflttrap(ffff8000242b3340,20000080) at kpageflttrap+0x1fd sys/arch/amd64/amd64/trap.c:264
kerntrap(ffff8000242b3340) at kerntrap+0xef sys/arch/amd64/amd64/trap.c:318
alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b
copyout() at copyout+0x53
syscall(ffff8000242b3570) at syscall+0x5a9 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000242b3570) at syscall+0x5a9 sys/arch/amd64/amd64/trap.c:587
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xbcd2eb07a00, count: -15
ddb{0}> machine ddbcpu 1
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
ddb{1}> trace
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:353
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
acpicpu_idle() at acpicpu_idle+0x2eb sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178
end trace frame: 0x0, count: -5

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/22 07:12 openbsd bee784fa9ac3 b599f2fc .config console log report ci-openbsd-multicore uvm_fault: x86_ipi_db
* Struck through repros no longer work on HEAD.