syzbot


uvm_fault: VOP_ISLOCKED

Status: auto-closed as invalid on 2020/02/10 14:35
Reported-by: syzbot+551b7114ad4a6cb8c822@syzkaller.appspotmail.com
First crash: 1626d, last: 1626d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd uvm_fault: VOP_ISLOCKED (2) 1 773d 773d 0/3 auto-closed as invalid on 2022/06/12 16:12

Sample crash report:
uvm_fault(0xfffffd806e7bde68, 0x10, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      VOP_ISLOCKED+0x29:      movq    0x10(%rax),%r14
ddb{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xfffffd806e7bde68, 0x10, 0, 1) -> e
VOP_ISLOCKED(fffffd80617fd500) at VOP_ISLOCKED+0x29 sys/kern/vfs_vops.c:70
end trace frame: 0xffff800022d6b170, count: 0
ddb{0}> trace
VOP_ISLOCKED(fffffd80617fd500) at VOP_ISLOCKED+0x29 sys/kern/vfs_vops.c:70
getnewvnode() at getnewvnode+0x1cd sys/kern/vfs_subr.c:417
ffs_vget() at ffs_vget+0xa2 sys/ufs/ffs/ffs_vfsops.c:1327
ffs_inode_alloc() at ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392
ufs_mkdir(ffff800022d6b450) at ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164
VOP_MKDIR(fffffd807efca270,ffff800022d6b5b0,ffff800022d6b600,ffff800022d6b4e0) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450
domkdirat(ffff800020abe780,ffffff9c,200000c0,d00715ab) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983
syscall(ffff800022d6b780) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800022d6b780) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff8b,0,2,f6bd634b010) at Xsyscall+0x128
end of kernel
end trace frame: 0xf6e49722130, count: -9
ddb{0}> show registers
rdi               0xffffffff81e65491    VOP_ISLOCKED+0x21
rsi                            0xc6f
rbp               0xffff800022d6b0f0
rbx                           0x1726    __ALIGN_SIZE+0x726
rdx                            0xc70
rcx               0xffff800022d88000
rax                                0
r8                              0x30
r9                               0x7
r10               0xb037cbf15a9d8e84
r11                0xf8be77e4db919c0
r12               0xfffffd80617fd500
r13               0xffffffff82665460    vnode_free_list
r14               0xfffffd80617fd500
r15               0xffff8000006acc00
rip               0xffffffff81e65499    VOP_ISLOCKED+0x29
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff800022d6b0c0
ss                              0x10
VOP_ISLOCKED+0x29:      movq    0x10(%rax),%r14
ddb{0}> show proc
PROC (syz-executor.0) pid=518728 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=77, usrpri=77, nice=20
    forw=0xffffffffffffffff, list=0xffff800020abe018,0xffff800020abec80
    process=0xffff800020add500 user=0xffff800022d66000, vmspace=0xfffffd806e7bde68
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  3908   32385  94808      0  2           0                syz-executor.1
 16199   37297  20093      0  7           0                syz-executor.0
*16199  518728  20093      0  7   0x4000000                syz-executor.0
 94808  399829  55400      0  3        0x82  nanosleep     syz-executor.1
 20093  229603  55400      0  3        0x82  nanosleep     syz-executor.0
 13208  327322      0      0  3     0x14200  acct          acct
 65431   70754      1      0  3    0x100083  ttyin         getty
 80888   86460      0      0  3     0x14200  bored         sosplice
 55400  369872  15766      0  3        0x82  thrsleep      syz-fuzzer
 55400  396008  15766      0  3   0x4000082  nanosleep     syz-fuzzer
 55400  232794  15766      0  3   0x4000082  thrsleep      syz-fuzzer
 55400  371238  15766      0  3   0x4000082  thrsleep      syz-fuzzer
 55400  438117  15766      0  3   0x4000082  thrsleep      syz-fuzzer
 55400  489844  15766      0  3   0x4000082  thrsleep      syz-fuzzer
 55400   70506  15766      0  3   0x4000082  thrsleep      syz-fuzzer
 55400  275534  15766      0  3   0x4000082  thrsleep      syz-fuzzer
 55400  425277  15766      0  3   0x4000082  nanosleep     syz-fuzzer
 55400  492144  15766      0  3   0x4000082  kqread        syz-fuzzer
 15766  461761  52930      0  3    0x10008a  pause         ksh
 52930  147971  38954      0  3        0x92  select        sshd
 38954  221905      1      0  3        0x80  select        sshd
 65000  252857  40858     74  3    0x100092  bpf           pflogd
 40858  510085      1      0  3        0x80  netio         pflogd
  7639  166423  76187     73  3    0x100090  kqread        syslogd
 76187  365458      1      0  3    0x100082  netio         syslogd
 64797  190014      1     77  3    0x100090  poll          dhclient
 82960  420279      1      0  3        0x80  poll          dhclient
 63936  185435      0      0  2     0x14200                zerothread
 26387   20556      0      0  3     0x14200  aiodoned      aiodoned
 39179  146096      0      0  3     0x14200  syncer        update
 42047  221813      0      0  3     0x14200  cleaner       cleaner
  1994  522384      0      0  3     0x14200  reaper        reaper
 94481  431728      0      0  3     0x14200  pgdaemon      pagedaemon
 34290  178710      0      0  3     0x14200  bored         crynlk
 99751  311011      0      0  3     0x14200  bored         crypto
  5473  246194      0      0  3  0x40014200  acpi0         acpi0
 76341  224558      0      0  3  0x40014200                idle1
 92244  144455      0      0  3     0x14200  bored         softnet
 10353   22437      0      0  3     0x14200  bored         systqmp
 79683  379293      0      0  3     0x14200  bored         systq
 64941   38598      0      0  3  0x40014200  bored         softclock
  7960  336481      0      0  3  0x40014200                idle0
 33417  420329      0      0  3     0x14200  bored         smr
     1  178397      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 16199 (syz-executor.0) thread 0xffff800020abe780 (518728)
exclusive rrwlock inode r = 0 (0xfffffd807ec52c48)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  rw_enter+0x447 sys/kern/kern_rwlock.c:306
#2  rrw_enter+0x4f sys/kern/kern_rwlock.c:435
#3  VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615
#4  vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5  vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419
#6  namei+0x63c sys/kern/vfs_lookup.c:249
#7  domkdirat+0x75 sys/kern/vfs_syscalls.c:2968
#8  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#8  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#9  Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8264bbd8)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1  syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2  Xsyscall+0x128
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf  9563   6451K    8020K  78643K     15657        0        0
            pcb    13      8K       8K  78643K       460        0        0
         rtable   113     13K      13K  78643K      1703        0        0
         ifaddr   185     23K      24K  78643K       542        0        0
       counters    39     33K      33K  78643K        39        0        0
       ioctlops     0      0K       4K  78643K      1576        0        0
            iov     0      0K      32K  78643K       330        0        0
          mount     1      1K       1K  78643K         1        0        0
         vnodes  1226     77K      78K  78643K      3336        0        0
      UFS quota     1     32K      32K  78643K         1        0        0
      UFS mount     5     36K      36K  78643K         5        0        0
            shm     2      1K       9K  78643K        31        0        0
         VM map     8      4K       4K  78643K        11        0        0
            sem    12      0K       0K  78643K       958        0        0
        dirhash    12      2K       2K  78643K        12        0        0
           ACPI  1808    196K     290K  78643K     12765        0        0
      file desc     6     17K      25K  78643K      1965        0        0
          sigio     0      0K       0K  78643K        49        0        0
           proc    61     63K      95K  78643K      1368        0        0
        subproc    32      2K       2K  78643K       323        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       164        0        0
       in_multi    33      2K       2K  78643K       332        0        0
    ether_multi     1      0K       0K  78643K        16        0        0
            mrt     0      0K       0K  78643K         8        0        0
    ISOFS mount     1     32K      32K  78643K         1        0        0
  MSDOSFS mount     1     16K      16K  78643K         1        0        0
           ttys    84    371K     371K  78643K        84        0        0
           exec     0      0K       1K  78643K       574        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   159    106K     106K  78643K      7921        0        0
       UVM aobj   130      4K       4K  78643K       138        0        0
        memdesc     1      4K       4K  78643K         1        0        0
    crypto data     1      1K       1K  78643K         1        0        0
    ip6_options     0      0K       1K  78643K       460        0        0
            NDP    24      1K       1K  78643K       146        0        0
           temp   169   3556K    4195K  78643K     73007        0        0
         kqueue     0      0K       0K  78643K        22        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       71    0       65     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80      199    0      197     1     0     1     1     0     8    0
rtentry    112      312    0      270     2     0     2     2     0     8    0
unpcb      120     1075    0     1065     1     0     1     1     0     8    0
syncache   264       14    0       14     4     4     0     1     0     8    0
tcpcb      544     1979    0     1974     4     2     2     2     0     8    1
inpcb      280     4109    0     4102     7     5     2     4     0     8    1
rttmr       72        3    0        3     3     3     0     1     0     8    0
nd6         48       44    0       40     1     0     1     1     0     8    0
pkpcb       40       17    0       17     4     3     1     1     0     8    1
ppxss      1128      44    0       44     7     6     1     1     0     8    1
pffrag     232       59    0       59     3     2     1     1     0   482    1
pffrnode    88       59    0       59     3     2     1     1     0     8    1
pffrent     40     2303    0     2303     3     2     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      188    0      107     1     0     1     1     0     8    0
pfstkey    112      188    0      107     3     0     3     3     0     8    0
pfstate    328      188    0      107     9     0     9     9     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     1272    0     1058    23     9    14    15     0     8    0
art_table   32     1273    0     1058     2     0     2     2     0     8    0
art_node    16      311    0      273     1     0     1     1     0     8    0
sysvmsgpl   40       39    0       24     1     0     1     1     0     8    0
semapl     112      956    0      946     1     0     1     1     0     8    0
shmpl      112      136    0        8     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     4450    0     3047    46     0    46    46     0     8    0
ffsino     272     4450    0     3047    95     0    95    95     0     8    0
nchpl      144     7481    0     7042    60    33    27    60     0     8    8
uvmvnodes   72     5926    0        0   108     0   108   108     0     8    0
vnodes     208     5926    0        0   312     0   312   312     0     8    0
vnodes: pool(0xffffffff82665480:vnodes): page inconsistency: page 0x0; at page head addr 0xfffffd80617fdf90 (p 0xfffffd80617fd000)
namei      1024   26555    0    26554     1     0     1     1     0     8    0
percpumem   16       30    0        0     1     0     1     1     0     8    0
vcpupl     1984       7    0        1     1     0     1     1     0     8    0
vmpool     552        9    0        3     1     0     1     1     0     8    0
scsiplug    64        4    0        4     2     2     0     1     0     8    0
scxspl     192    24346    0    24346    15    12     3     4     0     8    3
plimitpl   152      171    0      163     1     0     1     1     0     8    0
sigapl     432     2114    0     2098     4     1     3     3     0     8    1
futexpl     56    50241    0    50241     1     0     1     1     0     8    1
knotepl    112      561    0      542     2     1     1     2     0     8    0
kqueuepl   104      617    0      615     1     0     1     1     0     8    0
pipepl     160     4190    0     4171     6     4     2     4     0     8    1
fdescpl    488     2115    0     2098     3     0     3     3     0     8    0
filepl     152    21090    0    20988    11     5     6     7     0     8    2
lockfpl    104      796    0      795     1     0     1     1     0     8    0
lockfspl    48      240    0      239     1     0     1     1     0     8    0
sessionpl  112       37    0       26     1     0     1     1     0     8    0
pgrppl      48       72    0       61     1     0     1     1     0     8    0
ucredpl     96     2067    0     2058     1     0     1     1     0     8    0
zombiepl   144     2098    0     2098     1     0     1     1     0     8    1
processpl  896     2132    0     2098     5     0     5     5     0     8    1
procpl     632     6266    0     6222     5     0     5     5     0     8    0
srpgc       64       25    0       25     7     6     1     1     0     8    1
sosppl     128      108    0      108     7     6     1     1     0     8    1
sockpl     384     5436    0     5417    16    12     4     8     0     8    2
mcl64k     65536     16    0        0     2     0     2     2     0     8    0
mcl16k     16384     16    0        0     2     0     2     2     0     8    0
mcl12k     12288     17    0        0     2     0     2     2     0     8    0
mcl9k      9216      11    0        0     1     0     1     1     0     8    0
mcl8k      8192      12    0        0     2     0     2     2     0     8    0
mcl4k      4096      17    0        0     3     0     3     3     0     8    0
mcl2k2     2112       6    0        0     1     0     1     1     0     8    0
mcl2k      2048     192    0        0    23     2    21    23     0     8    1
mtagpl      80       55    0        0     1     0     1     1     0     8    0
mbufpl     256      467    0        0    25     0    25    25     0     8    0
bufpl      256    12135    0     5077   442     0   442   442     0     8    0
anonpl      16   272405    0   253767   123    23   100   105     0   124    9
amapchunkpl 152   16201    0    16043    32    18    14    20     0   158    6
amappl16   192    10368    0     9109   100    29    71    75     0     8    7
amappl15   184      532    0      529     1     0     1     1     0     8    0
amappl14   176      405    0      399     1     0     1     1     0     8    0
amappl13   168      245    0      245     4     3     1     1     0     8    1
amappl12   160      338    0      330     1     0     1     1     0     8    0
amappl11   152      106    0       91     1     0     1     1     0     8    0
amappl10   144      346    0      340     1     0     1     1     0     8    0
amappl9    136     1043    0     1040     1     0     1     1     0     8    0
amappl8    128      679    0      622     3     0     3     3     0     8    0
amappl7    120      456    0      448     1     0     1     1     0     8    0
amappl6    112       64    0       53     1     0     1     1     0     8    0
amappl5    104      602    0      586     1     0     1     1     0     8    0
amappl4     96     2126    0     2093     1     0     1     1     0     8    0
amappl3     88      787    0      776     1     0     1     1     0     8    0
amappl2     80    15496    0    15417     3     1     2     3     0     8    0
amappl1     72    58246    0    57802    26    15    11    20     0     8    1
amappl      80     6839    0     6785     2     0     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      137    0        8     3     0     3     3     0     8    0
uaddrrnd    24     2124    0     2098     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     2124    0     2098     1     0     1     1     0     8    0
vmmpekpl   168    26472    0    26431     4     1     3     3     0     8    0
vmmpepl    168   284625    0   282089   206    46   160   160     0   357   47
vmsppl     368     2114    0     2098     2     0     2     2     0     8    0
pdppl      4096    4255    0     4208     7     0     7     7     0     8    0
pvpl        32   754392    0   733160   271    37   234   238     0   265   27
pmappl     232     2123    0     2101     3     1     2     2     0     8    0
extentpl    40       41    0       26     1     0     1     1     0     8    0
phpool     112      639    0       16    18     0    18    18     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/12 14:34 openbsd 32906ae91db3 048f2d49 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.