syzbot


pool: free list modified: uvmvnodes

Status: auto-closed as invalid on 2020/05/27 10:50
Reported-by: syzbot+8de49f0dc963ed58898f@syzkaller.appspotmail.com
First crash: 1732d, last: 1732d

Sample crash report:
login: panic: pool_do_get: uvmvnodes free list modified: page 0xfffffd8061053000; item addr 0xfffffd8061053010; offset 0x0=0x0 != 0x767032ea5b05561a
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*493365   4814      0           0  0x4000000    0  syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff8223ee8a) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff8259c7c0,9,ffff80001ee5e418) at pool_do_get+0x42a sys/kern/subr_pool.c:738
pool_get(ffffffff8259c7c0,9) at pool_get+0xb5 sys/kern/subr_pool.c:581
getnewvnode(1,ffff8000006b0800,ffffffff82275ec8,ffff80001ee5e518) at getnewvnode+0x115 sys/kern/vfs_subr.c:409
ffs_vget(ffff8000006b0800,c2a0,ffff80001ee5e740) at ffs_vget+0xa2 sys/ufs/ffs/ffs_vfsops.c:1333
ffs_inode_alloc(fffffd80611b6878,2000,fffffd806c3bfa80,ffff80001ee5e740) at ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392
ufs_makeinode(2000,fffffd80527aa9d8,ffff80001ee5e960,ffff80001ee5e9b0) at ufs_makeinode+0xaa sys/ufs/ufs/ufs_vnops.c:1832
ufs_mknod(ffff80001ee5e800) at ufs_mknod+0x4e sys/ufs/ufs/ufs_vnops.c:172
VOP_MKNOD(fffffd80527aa9d8,ffff80001ee5e960,ffff80001ee5e9b0,ffff80001ee5e890) at VOP_MKNOD+0xc6 sys/kern/vfs_vops.c:134
domknodat(ffff80001d3a8600,ffffff9c,20000000,2000,8613a) at domknodat+0x31e sys/kern/vfs_syscalls.c:1640
syscall(ffff80001ee5eb50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1cc98e6aa20, count: 2
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
pool_do_get: uvmvnodes free list modified: page 0xfffffd8061053000; item addr 0xfffffd8061053010; offset 0x0=0x0 != 0x767032ea5b05561a
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff8223ee8a) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff8259c7c0,9,ffff80001ee5e418) at pool_do_get+0x42a sys/kern/subr_pool.c:738
pool_get(ffffffff8259c7c0,9) at pool_get+0xb5 sys/kern/subr_pool.c:581
getnewvnode(1,ffff8000006b0800,ffffffff82275ec8,ffff80001ee5e518) at getnewvnode+0x115 sys/kern/vfs_subr.c:409
ffs_vget(ffff8000006b0800,c2a0,ffff80001ee5e740) at ffs_vget+0xa2 sys/ufs/ffs/ffs_vfsops.c:1333
ffs_inode_alloc(fffffd80611b6878,2000,fffffd806c3bfa80,ffff80001ee5e740) at ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392
ufs_makeinode(2000,fffffd80527aa9d8,ffff80001ee5e960,ffff80001ee5e9b0) at ufs_makeinode+0xaa sys/ufs/ufs/ufs_vnops.c:1832
ufs_mknod(ffff80001ee5e800) at ufs_mknod+0x4e sys/ufs/ufs/ufs_vnops.c:172
VOP_MKNOD(fffffd80527aa9d8,ffff80001ee5e960,ffff80001ee5e9b0,ffff80001ee5e890) at VOP_MKNOD+0xc6 sys/kern/vfs_vops.c:134
domknodat(ffff80001d3a8600,ffffff9c,20000000,2000,8613a) at domknodat+0x31e sys/kern/vfs_syscalls.c:1640
syscall(ffff80001ee5eb50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1cc98e6aa20, count: -13
ddb> show registers
rdi               0xffffffff81bf3907    db_enter+0x17
rsi                           0x47dd    __ALIGN_SIZE+0x37dd
rbp               0xffff80001ee5e280
rbx               0xffff80001ee5e330
rdx                           0x47de    __ALIGN_SIZE+0x37de
rcx               0xffff80001d431000
rax               0xffff80001d431000
r8                0xffff80001ee5e240
r9                               0x1
r10               0xffff8000009f3740
r11               0xa590ba21c4269a5c
r12                     0x3000000008
r13               0xffff80001ee5e290
r14                            0x100
r15                              0x1
rip               0xffffffff81bf3908    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001ee5e270
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.1) pid=493365 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=32, usrpri=54, nice=20
    forw=0xffffffffffffffff, list=0xffff80001d3a8d50,0xffffffff825700a8
    process=0xffff8000ffffb190 user=0xffff80001ee59000, vmspace=0xfffffd80564dccc8
    estcpu=4, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  4814  116758  62055      0  2           0                syz-executor.1
* 4814  493365  62055      0  7   0x4000000                syz-executor.1
 35050  272588  78035      0  3        0x80  nanosleep     syz-executor.0
 35050  419754  78035      0  3   0x4000080  netio         syz-executor.0
 35050   10622  78035      0  3   0x4000080  fsleep        syz-executor.0
 84698  233415      0      0  3     0x14200  bored         sosplice
 78035   82142  32045      0  2       0x482                syz-executor.0
 62055  159533  32045      0  2       0x482                syz-executor.1
 32045  286258  13029      0  3        0x82  thrsleep      syz-fuzzer
 32045  499091  13029      0  3   0x4000082  thrsleep      syz-fuzzer
 32045  483614  13029      0  3   0x4000082  thrsleep      syz-fuzzer
 32045  161252  13029      0  3   0x4000082  thrsleep      syz-fuzzer
 32045  326463  13029      0  3   0x4000082  kqread        syz-fuzzer
 32045  479749  13029      0  3   0x4000082  thrsleep      syz-fuzzer
 32045  423928  13029      0  3   0x4000082  thrsleep      syz-fuzzer
 13029  311715  57716      0  3    0x10008a  pause         ksh
 57716   49339  56223      0  3        0x92  select        sshd
 75773  219456      1      0  3    0x100083  ttyin         getty
 56223  210786      1      0  3        0x80  select        sshd
 79854  331033  51309     73  3    0x100090  kqread        syslogd
 51309   11812      1      0  3    0x100082  netio         syslogd
 10197  257911      1     77  3    0x100090  poll          dhclient
 34295  397382      1      0  3        0x80  poll          dhclient
 79627  284252      0      0  3     0x14200  bored         smr
 10915   30889      0      0  2     0x14200                zerothread
 50748  251092      0      0  3     0x14200  aiodoned      aiodoned
 83655  101344      0      0  3     0x14200  syncer        update
 85436   33829      0      0  3     0x14200  cleaner       cleaner
 26498  514274      0      0  3     0x14200  reaper        reaper
 70893    4702      0      0  3     0x14200  pgdaemon      pagedaemon
 13006  217294      0      0  3     0x14200  bored         crynlk
 80933  382908      0      0  3     0x14200  bored         crypto
 23157  269045      0      0  3  0x40014200  acpi0         acpi0
 61645  277184      0      0  3     0x14200  bored         softnet
 57506   21280      0      0  3     0x14200  bored         systqmp
  1562  310652      0      0  3     0x14200  bored         systq
 27527  468516      0      0  3  0x40014200  bored         softclock
 92370  430254      0      0  3  0x40014200                idle0
     1  300911      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
         devbuf  9488   6342K    7112K  78643K     10887        0
            pcb    13      8K       8K  78643K        41        0
         rtable    99      2K       3K  78643K       216        0
         ifaddr    67     14K      14K  78643K        76        0
       counters    21     16K      16K  78643K        21        0
       ioctlops     0      0K       2K  78643K        23        0
            iov     0      0K      16K  78643K        13        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1225     77K      77K  78643K      1307        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         5        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      0K       0K  78643K        28        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     6     17K      25K  78643K       127        0
          sigio     0      0K       0K  78643K         4        0
           proc    49     38K      63K  78643K       376        0
        subproc    32      2K       2K  78643K        34        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K         7        0
       in_multi    55      2K       3K  78643K        74        0
    ether_multi     1      0K       0K  78643K         6        0
            mrt     0      0K       0K  78643K         3        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       1K  78643K       191        0
     pfkey data     0      0K       1K  78643K         2        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   102     37K      39K  78643K      1123        0
       UVM aobj    11      2K       2K  78643K        15        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        16        0
            NDP    11      0K       0K  78643K        15        0
           temp    82   3008K    3072K  78643K      3344        0
         kqueue     3      4K       8K  78643K         9        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
arp         64        6    0        0     1     0     1     1     0     8    0
rtpcb       80       31    0       29     1     0     1     1     0     8    0
rtentry    112       50    0        9     2     0     2     2     0     8    0
unpcb      120      313    0      299     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32       84    0       84     1     0     1     1     0     8    1
tcpcb      544       72    0       68     3     0     3     3     0     8    2
inpcb      280      162    0      151     4     0     4     4     0     8    3
rttmr       72        1    0        1     1     0     1     1     0     8    1
nd6         48        7    0        3     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     0     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      213    0       40    13     0    13    13     0     8    0
art_table   32      214    0       40     2     0     2     2     0     8    0
art_node    16       49    0       11     1     0     1     1     0     8    0
semupl     112        1    0        1     1     0     1     1     0     8    1
semapl     112       26    0       16     1     0     1     1     0     8    0
shmpl      112       13    0        4     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1563    0      166    46     0    46    46     0     8    0
ffsino     240     1563    0      166    83     0    83    83     0     8    0
nchpl      144     1928    0      327    60     0    60    60     0     8    0
uvmvnodes   72     1676    0        0    31     0    31    31     0     8    0
uvmvnodes: pool(0xffffffff8259c7c0:uvmvnodes): free list modified: page 0xfffffd8061053000; item ordinal 0; addr 0xfffffd8061053010 (p 0xfffffd8061053000); offset 0x0=0x0
uvmvnodes: pool(0xffffffff8259c7c0:uvmvnodes): page inconsistency: page 0xfffffd8061053000; item ordinal 1; addr 0xffff9f0fc062f54a
vnodes     208     1677    0        0    89     0    89    89     0     8    0
namei      1024    4839    0     4838     1     0     1     1     0     8    0
vcpupl     1984       2    0        0     1     0     1     1     0     8    0
vmpool     528        2    0        0     1     0     1     1     0     8    0
scxspl     192     5940    0     5939     1     0     1     1     0     8    0
plimitpl   152       16    0        9     1     0     1     1     0     8    0
sigapl     424      314    0      284     4     0     4     4     0     8    0
futexpl     56     2719    0     2718     1     0     1     1     0     8    0
knotepl    112       59    0       40     1     0     1     1     0     8    0
kqueuepl   144       18    0       16     1     0     1     1     0     8    0
pipelkpl    16      146    0      135     1     0     1     1     0     8    0
pipepl     120      292    0      271     2     0     2     2     0     8    1
fdescpl    432      299    0      284     2     0     2     2     0     8    0
filepl     120     2004    0     1894     5     0     5     5     0     8    1
lockfpl    104       31    0       30     1     0     1     1     0     8    0
lockfspl    48       13    0       12     1     0     1     1     0     8    0
sessionpl  112       17    0        7     1     0     1     1     0     8    0
pgrppl      48       17    0        7     1     0     1     1     0     8    0
ucredpl     96      139    0      132     1     0     1     1     0     8    0
zombiepl   144      284    0      284     1     0     1     1     0     8    1
processpl  896      314    0      284     4     0     4     4     0     8    0
procpl     624      443    0      404     4     0     4     4     0     8    1
sosppl     128        3    0        3     1     0     1     1     0     8    1
sockpl     400      508    0      481     8     0     8     8     0     8    5
mcl64k     65536      7    0        6     1     0     1     1     0     8    0
mcl12k     12288      2    0        2     1     0     1     1     0     8    1
mcl9k      9216       3    0        2     1     0     1     1     0     8    0
mcl8k      8192       6    0        6     1     0     1     1     0     8    1
mcl4k      4096      20    0       20     2     1     1     1     0     8    1
mcl2k      2048   64085    0    64045    14     2    12    12     0     8    6
mtagpl      80       31    0        2     2     1     1     1     0     8    0
mbufpl     256   101840    0   101698    16     3    13    13     0     8    0
bufpl      280     4325    0      163   298     0   298   298     0     8    0
anonpl      16    44365    0    27843    73     2    71    71     0   107    4
amapchunkpl 152    1919    0     1773    20     0    20    20     0   158   14
amappl16   192     1521    0      608    49     0    49    49     0     8    3
amappl15   184        1    0        0     1     0     1     1     0     8    0
amappl14   176        5    0        2     2     1     1     1     0     8    0
amappl13   168       23    0       22     1     0     1     1     0     8    0
amappl12   160       98    0       94     2     1     1     1     0     8    0
amappl11   152       64    0       51     1     0     1     1     0     8    0
amappl10   144       15    0        9     1     0     1     1     0     8    0
amappl9    136      379    0      376     1     0     1     1     0     8    0
amappl8    128      270    0      251     1     0     1     1     0     8    0
amappl7    120      105    0       95     1     0     1     1     0     8    0
amappl6    112       22    0       18     1     0     1     1     0     8    0
amappl5    104      231    0      218     1     0     1     1     0     8    0
amappl4     96      431    0      406     1     0     1     1     0     8    0
amappl3     88      111    0      104     1     0     1     1     0     8    0
amappl2     80     1688    0     1611     3     1     2     3     0     8    0
amappl1     72    15139    0    14708    26    15    11    20     0     8    2
amappl      80      670    0      623     2     0     2     2     0    84    1
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       18    0       17     1     0     1     1     0     8    0
aobjpl      64       14    0        4     1     0     1     1     0     8    0
uaddrrnd    24      301    0      284     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      301    0      284     1     0     1     1     0     8    0
vmmpekpl   168     6358    0     6333     2     0     2     2     0     8    0
vmmpepl    168    43356    0    41273   116     5   111   111     0   357   20
vmsppl     272      300    0      284     2     0     2     2     0     8    0
pdppl      4096     608    0      570     6     0     6     6     0     8    1
pvpl        32   148277    0   128593   172     0   172   172     0   265   13
pmappl     200      300    0      284     1     0     1     1     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      160    0        8     5     0     5     5     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/27 10:49 openbsd d223862ca31d 40bcfdd5 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.