syzbot


pool: free list modified: tcpqe

Status: auto-closed as invalid on 2020/07/05 09:39
Reported-by: syzbot+90bbb4f8f815316c734a@syzkaller.appspotmail.com
First crash: 1807d, last: 1690d

Sample crash report:
panic: pool_p_free: tcpqe free list modified: page 0xfffffd80589f1000; item addr 0xfffffd80589f1000; offset 0x0=0x0
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
* 60664    980      0     0x14000      0x200    0  systqmp
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff8222bfea) at panic+0x15c sys/kern/subr_prf.c:207
pool_p_free(ffffffff82590db0,fffffd80589f1f90) at pool_p_free+0x1de sys/kern/subr_pool.c:983
pool_gc_pages(0) at pool_gc_pages+0x225 sys/kern/subr_pool.c:1578
taskq_thread(ffffffff824dcb70) at taskq_thread+0x52 sys/kern/kern_task.c:370
end trace frame: 0x0, count: 10
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_p_free: tcpqe free list modified: page 0xfffffd80589f1000; item addr 0xfffffd80589f1000; offset 0x0=0x0
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff8222bfea) at panic+0x15c sys/kern/subr_prf.c:207
pool_p_free(ffffffff82590db0,fffffd80589f1f90) at pool_p_free+0x1de sys/kern/subr_pool.c:983
pool_gc_pages(0) at pool_gc_pages+0x225 sys/kern/subr_pool.c:1578
taskq_thread(ffffffff824dcb70) at taskq_thread+0x52 sys/kern/kern_task.c:370
end trace frame: 0x0, count: -5
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80001d702050
rbx               0xffff80001d702100
rdx                              0x2
rcx                                0
rax                                0
r8                0xffff80001d702010
r9                               0x1
r10                                0
r11               0x7484b4470b8fa881
r12                     0x3000000008
r13               0xffff80001d702060
r14                            0x100
r15                              0x1
rip               0xffffffff81152a98    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001d702040
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (systqmp) pid=60664 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    pri=32, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff80001d6e25f0,0xffff80001d6e1c40
    process=0xffff8000ffffeac8 user=0xffff80001d6fd000, vmspace=0xffffffff825a0508
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 44525  114452  17767      0  2           0                syz-executor.0
 44525  236796  17767      0  3   0x4000080  fsleep        syz-executor.0
 26690    8936  43788      0  2           0                syz-executor.1
 26690   15347  43788      0  2   0x4000000                syz-executor.1
 60714  255777      0      0  3     0x14200  bored         sosplice
 17767  429880  67357      0  3        0x82  nanosleep     syz-executor.0
 43788  498961  67357      0  2       0x482                syz-executor.1
 67357    6087   1930      0  3        0x82  thrsleep      syz-fuzzer
 67357   49750   1930      0  3   0x4000082  thrsleep      syz-fuzzer
 67357  267627   1930      0  3   0x4000082  thrsleep      syz-fuzzer
 67357  394898   1930      0  3   0x4000082  thrsleep      syz-fuzzer
 67357  394404   1930      0  3   0x4000082  thrsleep      syz-fuzzer
 67357  300269   1930      0  3   0x4000082  kqread        syz-fuzzer
 67357   34105   1930      0  3   0x4000082  thrsleep      syz-fuzzer
  1930  412655  15206      0  3    0x10008a  pause         ksh
 15206  510207  45840      0  3        0x92  select        sshd
 32938  466824      1      0  3    0x100083  ttyin         getty
 45840  102905      1      0  3        0x80  select        sshd
 63084   99802  88225     73  3    0x100090  kqread        syslogd
 88225  202301      1      0  3    0x100082  netio         syslogd
 62838   83850      1     77  3    0x100090  poll          dhclient
 76432   72724      1      0  3        0x80  poll          dhclient
 27505  399436      0      0  3     0x14200  bored         smr
 73799  296048      0      0  2     0x14200                zerothread
  9951  384849      0      0  3     0x14200  aiodoned      aiodoned
 85783  480279      0      0  3     0x14200  syncer        update
 77660   24505      0      0  3     0x14200  cleaner       cleaner
 77772   91485      0      0  3     0x14200  reaper        reaper
 46441  203883      0      0  3     0x14200  pgdaemon      pagedaemon
 35860  353128      0      0  3     0x14200  bored         crynlk
 61895  312640      0      0  3     0x14200  bored         crypto
 98652  332342      0      0  3  0x40014200  acpi0         acpi0
 25874  465697      0      0  3     0x14200  bored         softnet
*  980   60664      0      0  7     0x14200                systqmp
 78703  425527      0      0  3     0x14200  bored         systq
 37640  349275      0      0  3  0x40014200  bored         softclock
 76483  450373      0      0  3  0x40014200                idle0
     1  342458      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  9470   6332K    6775K  78643K     10653        0
            pcb    13      8K       8K  78643K        41        0
         rtable   105      3K       3K  78643K       205        0
         ifaddr    53     11K      11K  78643K        63        0
       counters    22     16K      16K  78643K        23        0
       ioctlops     0      0K       2K  78643K        21        0
            iov     0      0K      32K  78643K         6        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1217     77K      77K  78643K      1248        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    10      0K       0K  78643K        11        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     6     17K      25K  78643K        94        0
           proc    48     38K      54K  78643K       364        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         6        0
       in_multi    33      2K       2K  78643K        39        0
    ether_multi     1      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       193        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    94     37K      37K  78643K      1079        0
       UVM aobj    10      4K       4K  78643K        10        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        22        0
            NDP     8      0K       0K  78643K        13        0
           temp    74   3028K    3107K  78643K      6915        0
         kqueue     3      4K      10K  78643K        12        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       25    0       23     1     0     1     1     0     8    0
rtentry    112       45    0        1     2     0     2     2     0     8    0
unpcb      120       47    0       39     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32      102    0      102     1     1     0     1     0     8    0
tcpcb      544       40    0       36     1     0     1     1     0     8    0
ipq         40        1    0        1     1     0     1     1     0     8    1
ipqe        40        3    0        3     1     0     1     1     0     8    1
inpcb      280      112    0      105     2     0     2     2     0     8    1
nd6         48        6    0        0     1     0     1     1     0     8    0
pkpcb       40        1    0        1     1     0     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      189    0        0    12     0    12    12     0     8    0
art_table   32      190    0        0     2     0     2     2     0     8    0
art_node    16       44    0        4     1     0     1     1     0     8    0
semupl     112        1    0        1     1     0     1     1     0     8    1
semapl     112        9    0        1     1     0     1     1     0     8    0
shmpl      112        8    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1502    0      103    46     0    46    46     0     8    0
ffsino     240     1502    0      103    83     0    83    83     0     8    0
nchpl      144     1807    0      196    60     0    60    60     0     8    0
uvmvnodes   72     1562    0        0    29     0    29    29     0     8    0
vnodes     208     1562    0        0    83     0    83    83     0     8    0
namei      1024    4518    0     4518     1     0     1     1     0     8    1
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     5355    0     5355     1     0     1     1     0     8    1
plimitpl   152       23    0       16     1     0     1     1     0     8    0
sigapl     424      281    0      251     4     0     4     4     0     8    0
futexpl     56     1501    0     1500     1     0     1     1     0     8    0
knotepl    112       65    0       46     1     0     1     1     0     8    0
kqueuepl   144      116    0      113     1     0     1     1     0     8    0
pipelkpl    16       77    0       67     1     0     1     1     0     8    0
pipepl     120      154    0      135     1     0     1     1     0     8    0
fdescpl    432      266    0      251     2     0     2     2     0     8    0
filepl     120     1467    0     1370     4     0     4     4     0     8    1
lockfpl    104       25    0       24     1     0     1     1     0     8    0
lockfspl    48        9    0        8     1     0     1     1     0     8    0
sessionpl  112       17    0        7     1     0     1     1     0     8    0
pgrppl      48       19    0        9     1     0     1     1     0     8    0
ucredpl     96      117    0      110     1     0     1     1     0     8    0
zombiepl   144      251    0      251     1     0     1     1     0     8    1
processpl  920      281    0      251     4     0     4     4     0     8    0
procpl     624      367    0      329     4     0     4     4     0     8    1
sosppl     128        3    0        3     1     0     1     1     0     8    1
sockpl     400      185    0      168     3     0     3     3     0     8    1
mcl64k     65536      9    0        9     1     0     1     1     0     8    1
mcl8k      8192       2    0        2     1     0     1     1     0     8    1
mcl4k      4096      13    0       13     2     1     1     1     0     8    1
mcl2k2     2112       1    0        1     1     0     1     1     0     8    1
mcl2k      2048   62176    0    62131    18     4    14    14     0     8    7
mtagpl      80        4    0        2     2     1     1     1     0     8    0
mbufpl     256    98693    0    98612    12     3     9     9     0     8    0
bufpl      280     4104    0      161   282     0   282   282     0     8    0
anonpl      16    44807    0    30625    75     1    74    74     0   107   17
amapchunkpl 152    1430    0     1295     9     0     9     9     0   158    2
amappl16   192     1363    0      577    48     1    47    48     0     8    7
amappl15   184        1    0        0     1     0     1     1     0     8    0
amappl14   176        2    0        1     2     1     1     1     0     8    0
amappl13   168       84    0       79     1     0     1     1     0     8    0
amappl12   160       11    0       10     1     0     1     1     0     8    0
amappl11   152       64    0       51     1     0     1     1     0     8    0
amappl10   144       23    0       19     1     0     1     1     0     8    0
amappl9    136      377    0      374     1     0     1     1     0     8    0
amappl8    128      260    0      249     1     0     1     1     0     8    0
amappl7    120      107    0       96     1     0     1     1     0     8    0
amappl6    112       21    0       19     1     0     1     1     0     8    0
amappl5    104      184    0      173     1     0     1     1     0     8    0
amappl4     96      500    0      466     2     1     1     2     0     8    0
amappl3     88      132    0      124     1     0     1     1     0     8    0
amappl2     80     1328    0     1256     3     1     2     3     0     8    0
amappl1     72    14425    0    14001    26    13    13    20     0     8    4
amappl      80      633    0      589     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        9    0        0     1     0     1     1     0     8    0
uaddrrnd    24      268    0      251     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      268    0      251     1     0     1     1     0     8    0
vmmpekpl   168     5882    0     5855     2     0     2     2     0     8    0
vmmpepl    168    39086    0    37148   131     4   127   127     0   357   42
vmsppl     272      267    0      251     2     0     2     2     0     8    0
pdppl      4096     542    0      504     6     0     6     6     0     8    1
pvpl        32   139936    0   122720   172     0   172   172     0   265   33
pmappl     200      267    0      251     1     0     1     1     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      152    0       10     5     0     5     5     0     8    0

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/06 09:38 openbsd e0f5a5efbe63 34833561 .config console log report ci-openbsd-main
2020/03/03 23:53 openbsd b244f117c338 1f73b64b .config console log report ci-openbsd-multicore
2020/02/07 18:54 openbsd 5185a7002a54 06150bf1 .config console log report ci-openbsd-multicore
2019/12/11 16:12 openbsd 548054a96d3d 0d368675 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.