syzbot


pool: free list modified: mtagpl

Status: auto-closed as invalid on 2020/05/11 20:59
Reported-by: syzbot+4a065d06fe0d38e3e35e@syzkaller.appspotmail.com
First crash: 1745d, last: 1745d

Sample crash report:
panic: pool_do_get: mtagpl free list modified: page 0xfffffd806abd3000; item addr 0xfffffd806abd3008; offset 0x0=0x0 != 0x7e6088faba725153
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*400651  86675      0           0  0x4000000    0  syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82223520) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff8254ced0,1,ffff80001d41dd08) at pool_do_get+0x42a sys/kern/subr_pool.c:738
pool_get(ffffffff8254ced0,1) at pool_get+0xb5 sys/kern/subr_pool.c:581
m_tag_get(100,4,1) at m_tag_get+0x74 sys/kern/uipc_mbuf2.c:264
bpf_movein(ffff80001d41e1e8,ffff800000a82a00,ffff80001d41df48,ffff80001d41de48) at bpf_movein+0x355 sys/net/bpf.c:259
bpfwrite(41700,ffff80001d41e1e8,1) at bpfwrite+0x137 sys/net/bpf.c:613
spec_write(ffff80001d41e040) at spec_write+0xcc sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8056df10d0,ffff80001d41e1e8,1,fffffd806c3be960) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269
vn_write(fffffd805465d798,ffff80001d41e1e8,1) at vn_write+0x193 sys/kern/vfs_vnops.c:414
dofilewritev(ffff80001d36d018,1b,ffff80001d41e1e8,1,ffff80001d41e2d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:364
sys_pwrite(ffff80001d36d018,ffff80001d41e288,ffff80001d41e2d0) at sys_pwrite+0x8f sys/kern/vfs_syscalls.c:3315
syscall(ffff80001d41e350) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe6cec66b0d0, count: 1
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: mtagpl free list modified: page 0xfffffd806abd3000; item addr 0xfffffd806abd3008; offset 0x0=0x0 != 0x7e6088faba725153
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff82223520) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff8254ced0,1,ffff80001d41dd08) at pool_do_get+0x42a sys/kern/subr_pool.c:738
pool_get(ffffffff8254ced0,1) at pool_get+0xb5 sys/kern/subr_pool.c:581
m_tag_get(100,4,1) at m_tag_get+0x74 sys/kern/uipc_mbuf2.c:264
bpf_movein(ffff80001d41e1e8,ffff800000a82a00,ffff80001d41df48,ffff80001d41de48) at bpf_movein+0x355 sys/net/bpf.c:259
bpfwrite(41700,ffff80001d41e1e8,1) at bpfwrite+0x137 sys/net/bpf.c:613
spec_write(ffff80001d41e040) at spec_write+0xcc sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8056df10d0,ffff80001d41e1e8,1,fffffd806c3be960) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269
vn_write(fffffd805465d798,ffff80001d41e1e8,1) at vn_write+0x193 sys/kern/vfs_vnops.c:414
dofilewritev(ffff80001d36d018,1b,ffff80001d41e1e8,1,ffff80001d41e2d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:364
sys_pwrite(ffff80001d36d018,ffff80001d41e288,ffff80001d41e2d0) at sys_pwrite+0x8f sys/kern/vfs_syscalls.c:3315
syscall(ffff80001d41e350) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xe6cec66b0d0, count: -14
ddb> show registers
rdi               0xffffffff815ab277    db_enter+0x17
rsi                           0x4351    __ALIGN_SIZE+0x3351
rbp               0xffff80001d41db70
rbx               0xffff80001d41dc20
rdx                           0x4352    __ALIGN_SIZE+0x3352
rcx               0xffff80001f653000
rax               0xffff80001f653000
r8                0xffff80001d41db30
r9                               0x1
r10               0xffff80000002a340
r11               0x2c04873e996edf82
r12                     0x3000000008
r13               0xffff80001d41db80
r14                            0x100
r15                              0x1
rip               0xffffffff815ab278    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001d41db60
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.1) pid=400651 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=32, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff80001d36e878,0xffffffff82583be8
    process=0xffff8000ffffb190 user=0xffff80001d419000, vmspace=0xfffffd806bc09000
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 86675  446447  62404      0  2           0                syz-executor.1
*86675  400651  62404      0  7   0x4000000                syz-executor.1
 10458  515497      0      0  3     0x14200  bored         sosplice
 62404  259900  42596      0  3        0x82  nanosleep     syz-executor.1
 69720  471678  42596      0  3        0x82  nanosleep     syz-executor.0
 42596  376731  47246      0  3        0x82  thrsleep      syz-fuzzer
 42596  433146  47246      0  3   0x4000082  thrsleep      syz-fuzzer
 42596  425921  47246      0  3   0x4000082  thrsleep      syz-fuzzer
 42596  216177  47246      0  3   0x4000082  thrsleep      syz-fuzzer
 42596  193563  47246      0  3   0x4000082  thrsleep      syz-fuzzer
 42596  200789  47246      0  3   0x4000082  kqread        syz-fuzzer
 42596  162456  47246      0  3   0x4000082  thrsleep      syz-fuzzer
 42596  325229  47246      0  3   0x4000082  thrsleep      syz-fuzzer
 47246  186217  44752      0  3    0x10008a  pause         ksh
 44752  125460  17481      0  3        0x92  select        sshd
 10130  398151      1      0  3    0x100083  ttyin         getty
 17481  427195      1      0  3        0x80  select        sshd
 63571  199763  83473     73  3    0x100090  kqread        syslogd
 83473  391438      1      0  3    0x100082  netio         syslogd
 87606  204276      1     77  3    0x100090  poll          dhclient
 81561  479331      1      0  3        0x80  poll          dhclient
  4061  391153      0      0  2     0x14200                zerothread
 18248  187059      0      0  3     0x14200  aiodoned      aiodoned
 10642   78170      0      0  3     0x14200  syncer        update
 53578  337116      0      0  3     0x14200  cleaner       cleaner
  6580  414373      0      0  3     0x14200  reaper        reaper
 85830  178529      0      0  3     0x14200  pgdaemon      pagedaemon
 81853   88908      0      0  3     0x14200  bored         crynlk
 66865  468792      0      0  3     0x14200  bored         crypto
  2806  197443      0      0  3  0x40014200  acpi0         acpi0
 10139   70799      0      0  3     0x14200  bored         softnet
 96941   76870      0      0  3     0x14200  bored         systqmp
 67348   16288      0      0  3     0x14200  bored         systq
 13555  167823      0      0  3  0x40014200  bored         softclock
 50705  451164      0      0  3  0x40014200                idle0
 34794  334201      0      0  3     0x14200  bored         smr
     1  332506      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  9518   6538K    6978K  78643K     11133        0
            pcb    19      8K       8K  78643K        80        0
         rtable   102      3K       4K  78643K       456        0
         ifaddr    84     17K      17K  78643K       122        0
       counters    21     16K      16K  78643K        26        0
       ioctlops     0      0K       2K  78643K        25        0
            iov     0      0K      12K  78643K       112        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1220     77K      77K  78643K      1378        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         4        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      1K       1K  78643K        22        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     5     13K      25K  78643K       235        0
          sigio     0      0K       0K  78643K         4        0
           proc    49     38K      63K  78643K       403        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        55        0
       in_multi    81      3K       3K  78643K       134        0
    ether_multi     1      0K       0K  78643K        12        0
            mrt     0      0K       0K  78643K         4        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    61    281K     281K  78643K        61        0
           exec     0      0K       1K  78643K       203        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   106     21K      37K  78643K      1432        0
       UVM aobj     9      2K       2K  78643K        12        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        50        0
            NDP    12      0K       0K  78643K        23        0
           temp   106   3008K    3073K  78643K      6368        0
         kqueue     3      4K      10K  78643K        33        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        7    0        1     1     0     1     1     0     8    0
rtpcb       80      243    0      241     1     0     1     1     0     8    0
rtentry    112       59    0       18     2     0     2     2     0     8    0
unpcb      120      118    0      107     1     0     1     1     0     8    0
syncache   264        7    0        7     2     1     1     1     0     8    1
tcpqe       32      129    0      129     2     1     1     1     0     8    1
tcpcb      544      113    0      107     1     0     1     1     0     8    0
ipq         40        2    0        2     2     1     1     1     0     8    1
ipqe        40       47    0       47     2     1     1     1     0     8    1
inpcb      280      373    0      357     3     1     2     2     0     8    0
rttmr       72        2    0        2     1     0     1     1     0     8    1
nd6         48        6    0        4     1     0     1     1     0     8    0
ppxss      1128       1    0        1     1     1     0     1     0     8    0
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      273    0       80    15     1    14    15     0     8    0
art_table   32      275    0       80     2     0     2     2     0     8    0
art_node    16       58    0       19     1     0     1     1     0     8    0
sysvmsgpl   40       18    0        9     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112       20    0       10     1     0     1     1     0     8    0
shmpl      112       10    0        3     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1764    0      365    46     0    46    46     0     8    0
ffsino     240     1764    0      365    83     0    83    83     0     8    0
nchpl      144     2345    0      730    60     0    60    60     0     8    0
uvmvnodes   72     1912    0        0    35     0    35    35     0     8    0
vnodes     208     1912    0        0   101     0   101   101     0     8    0
namei      1024    6484    0     6484     1     0     1     1     0     8    1
scsiplug    64        2    0        2     1     1     0     1     0     8    0
scxspl     192     7196    0     7196     1     0     1     1     0     8    1
plimitpl   152       37    0       30     1     0     1     1     0     8    0
sigapl     432      406    0      393     2     0     2     2     0     8    0
futexpl     56     6648    0     6648     1     0     1     1     0     8    1
knotepl    112       84    0       65     1     0     1     1     0     8    0
kqueuepl   104       78    0       76     1     0     1     1     0     8    0
pipelkpl    16      158    0      148     1     0     1     1     0     8    0
pipepl     120      316    0      297     2     0     2     2     0     8    1
fdescpl    432      407    0      393     2     0     2     2     0     8    0
filepl     120     3166    0     3051     4     0     4     4     0     8    0
lockfpl    104       69    0       67     1     0     1     1     0     8    0
lockfspl    48       25    0       23     1     0     1     1     0     8    0
sessionpl  112       17    0        7     1     0     1     1     0     8    0
pgrppl      48       21    0       11     1     0     1     1     0     8    0
ucredpl     96      470    0      463     1     0     1     1     0     8    0
zombiepl   144      393    0      392     1     0     1     1     0     8    0
processpl  896      422    0      392     4     0     4     4     0     8    0
procpl     624      727    0      689     4     0     4     4     0     8    0
sosppl     128        7    0        7     2     1     1     1     0     8    1
sockpl     400      735    0      706     5     1     4     4     0     8    1
mcl64k     65536     39    0       39     1     0     1     1     0     8    1
mcl16k     16384      4    0        4     2     1     1     1     0     8    1
mcl12k     12288      5    0        5     2     1     1     1     0     8    1
mcl9k      9216       6    0        6     2     1     1     1     0     8    1
mcl8k      8192      17    0       17     2     1     1     1     0     8    1
mcl4k      4096      38    0       38     2     1     1     1     0     8    1
mcl2k2     2112       2    0        2     2     1     1     1     0     8    1
mcl2k      2048   64921    0    64873    15     8     7    14     0     8    0
mtagpl      80       27    0        2     2     1     1     1     0     8    0
mtagpl: pool(0xffffffff8254ced0:mtagpl): free list modified: page 0xfffffd806abd3000; item ordinal 0; addr 0xfffffd806abd3008 (p 0xfffffd806abd3000); offset 0x0=0x0
pool(mtagpl): free list modified: page 0xfffffd806abd3000; item ordinal 0; addr 0xfffffd806abd3008 (p 0xfffffd806abd3000); offset 0x0=0x0
mtagpl: pool(0xffffffff8254ced0:mtagpl): page inconsistency: page 0xfffffd806abd3000; item ordinal 1; addr 0xebe1bddf116864a7
mbufpl     256   106954    0   106721    42    16    26    33     0     8    6
bufpl      280     5141    0      185   354     0   354   354     0     8    0
anonpl      16    61372    0    44905    83     4    79    82     0   107   11
amapchunkpl 152    2604    0     2475    19    13     6    19     0   158    0
amappl16   192     2534    0     1623    61    10    51    58     0     8    5
amappl15   184       51    0       46     1     0     1     1     0     8    0
amappl14   176       26    0       23     1     0     1     1     0     8    0
amappl13   168       97    0       95     1     0     1     1     0     8    0
amappl12   160        4    0        4     1     1     0     1     0     8    0
amappl11   152       48    0       37     1     0     1     1     0     8    0
amappl10   144       13    0       11     1     0     1     1     0     8    0
amappl9    136      574    0      570     1     0     1     1     0     8    0
amappl8    128      107    0       86     1     0     1     1     0     8    0
amappl7    120       91    0       81     1     0     1     1     0     8    0
amappl6    112       60    0       55     1     0     1     1     0     8    0
amappl5    104      137    0      126     1     0     1     1     0     8    0
amappl4     96      719    0      689     1     0     1     1     0     8    0
amappl3     88      144    0      135     1     0     1     1     0     8    0
amappl2     80     2490    0     2421     3     1     2     3     0     8    0
amappl1     72    16893    0    16474    26    16    10    20     0     8    0
amappl      80      955    0      915     1     0     1     1     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       18    0       17     1     0     1     1     0     8    0
aobjpl      64       11    0        3     1     0     1     1     0     8    0
uaddrrnd    24      407    0      393     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      407    0      393     1     0     1     1     0     8    0
vmmpekpl   168     7053    0     7025     2     0     2     2     0     8    0
vmmpepl    168    57090    0    55094   122    21   101   117     0   357   12
vmsppl     272      406    0      393     2     1     1     2     0     8    0
pdppl      4096     820    0      786     6     1     5     6     0     8    0
pvpl        32   189952    0   170465   194     3   191   194     0   265   31
pmappl     200      406    0      393     1     0     1     1     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      188    0       33     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/11 20:58 openbsd f8ef6c4b53c9 4d1ab643 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.