syzbot


pool: free list modified: art_heap4

Status: auto-closed as invalid on 2020/03/19 11:43
Reported-by: syzbot+e61a74552e65a7ae9143@syzkaller.appspotmail.com
First crash: 1553d, last: 1529d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd pool: free list modified: art_heap4 (2) 4 1343d 1373d 3/3 fixed on 2020/08/05 06:16
openbsd pool: free list modified: art_heap4 (3) 1 623d 623d 0/3 auto-obsoleted due to no activity on 2022/09/11 15:13

Sample crash report:
panic: pool_do_get: art_heap4 free list modified: page 0xfffffd8050e47000; item addr 0xfffffd8050e47000; offset 0x0=0x0 != 0x5852b347ed71b04f
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*160838  54516      0           0  0x4000000    0  syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff8221a365) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff82540ae0,a,ffff80001e45d4e8) at pool_do_get+0x42a sys/kern/subr_pool.c:746
pool_get(ffffffff82540ae0,a) at pool_get+0xb5 sys/kern/subr_pool.c:581
art_table_get(ffff800000a07a80,fffffd805e2c1ee0,10) at art_table_get+0x12e sys/net/art.c:722
art_insert(ffff800000a07a80,fffffd805e2c2b60,ffff800000025254,20) at art_insert+0x155 sys/net/art.c:387
rtable_insert(6,ffff800000025250,0,ffff8000009e85e0,1,fffffd8054c89a88) at rtable_insert+0x2b4 sys/net/rtable.c:554
rtrequest(1,ffff80001e45d808,1,ffff80001e45d8d8,6) at rtrequest+0x8be sys/net/route.c:941
rt_ifa_add(ffff800000a27400,240404,ffff800000a27440,6) at rt_ifa_add+0x290 sys/net/route.c:1133
rt_ifa_addlocal(ffff800000a27400) at rt_ifa_addlocal+0x149 sys/net/route.c:1242
in6_update_ifa(ffff8000009e6800,ffff80001e45dcd0,0) at in6_update_ifa+0x13bb sys/netinet6/in6.c:723
in6_ioctl_change_ifaddr(8080691a,ffff80001e45dcd0,ffff8000009e6800) at in6_ioctl_change_ifaddr+0x40c sys/netinet6/in6.c:352
ifioctl(fffffd805d8ecd88,8080691a,ffff80001e45dcd0,ffff80001e447650) at ifioctl+0xe60 sys/net/if.c:2291
sys_ioctl(ffff80001e447650,ffff80001e45dde8,ffff80001e45de30) at sys_ioctl+0x5b9
end trace frame: 0xffff80001e45dea0, count: 0
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: art_heap4 free list modified: page 0xfffffd8050e47000; item addr 0xfffffd8050e47000; offset 0x0=0x0 != 0x5852b347ed71b04f
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff8221a365) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff82540ae0,a,ffff80001e45d4e8) at pool_do_get+0x42a sys/kern/subr_pool.c:746
pool_get(ffffffff82540ae0,a) at pool_get+0xb5 sys/kern/subr_pool.c:581
art_table_get(ffff800000a07a80,fffffd805e2c1ee0,10) at art_table_get+0x12e sys/net/art.c:722
art_insert(ffff800000a07a80,fffffd805e2c2b60,ffff800000025254,20) at art_insert+0x155 sys/net/art.c:387
rtable_insert(6,ffff800000025250,0,ffff8000009e85e0,1,fffffd8054c89a88) at rtable_insert+0x2b4 sys/net/rtable.c:554
rtrequest(1,ffff80001e45d808,1,ffff80001e45d8d8,6) at rtrequest+0x8be sys/net/route.c:941
rt_ifa_add(ffff800000a27400,240404,ffff800000a27440,6) at rt_ifa_add+0x290 sys/net/route.c:1133
rt_ifa_addlocal(ffff800000a27400) at rt_ifa_addlocal+0x149 sys/net/route.c:1242
in6_update_ifa(ffff8000009e6800,ffff80001e45dcd0,0) at in6_update_ifa+0x13bb sys/netinet6/in6.c:723
in6_ioctl_change_ifaddr(8080691a,ffff80001e45dcd0,ffff8000009e6800) at in6_ioctl_change_ifaddr+0x40c sys/netinet6/in6.c:352
ifioctl(fffffd805d8ecd88,8080691a,ffff80001e45dcd0,ffff80001e447650) at ifioctl+0xe60 sys/net/if.c:2291
sys_ioctl(ffff80001e447650,ffff80001e45dde8,ffff80001e45de30) at sys_ioctl+0x5b9
syscall(ffff80001e45deb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc89f57eb60, count: -16
ddb> show registers
rdi               0xffffffff82063a77    db_enter+0x17
rsi                           0x4a12    __ALIGN_SIZE+0x3a12
rbp               0xffff80001e45d350
rbx               0xffff80001e45d400
rdx                           0x4a13    __ALIGN_SIZE+0x3a13
rcx               0xffff80001d413000
rax               0xffff80001d413000
r8                0xffff80001e45d310
r9                               0x1
r10               0xffff8000009e75c0
r11               0x6ccaab48d1323b0d
r12                     0x3000000008
r13               0xffff80001e45d360
r14                            0x100
r15                              0x1
rip               0xffffffff82063a78    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001e45d340
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.0) pid=160838 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=72, usrpri=72, nice=20
    forw=0xffffffffffffffff, list=0xffff80001e4469f8,0xffffffff8254da30
    process=0xffff8000ffff6378 user=0xffff80001e458000, vmspace=0xfffffd8052fb7998
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 54516  396563  21578      0  2           0                syz-executor.0
*54516  160838  21578      0  7   0x4000000                syz-executor.0
 93409  211539      0      0  3     0x14200  bored         sosplice
 20107  228836  76824      0  2         0x2                syz-executor.1
 21578  359878  76824      0  3        0x82  nanosleep     syz-executor.0
 76824  287292  59015      0  3        0x82  thrsleep      syz-fuzzer
 76824  393689  59015      0  3   0x4000082  nanosleep     syz-fuzzer
 76824  334426  59015      0  3   0x4000082  thrsleep      syz-fuzzer
 76824  268397  59015      0  3   0x4000082  thrsleep      syz-fuzzer
 76824   33844  59015      0  3   0x4000082  thrsleep      syz-fuzzer
 76824  339564  59015      0  3   0x4000082  kqread        syz-fuzzer
 76824  158530  59015      0  3   0x4000082  thrsleep      syz-fuzzer
 59015  280695  50484      0  3    0x10008a  pause         ksh
 50484     999  71194      0  3        0x92  select        sshd
 65576   96732      1      0  3    0x100083  ttyin         getty
 71194  327943      1      0  3        0x80  select        sshd
 11676  421106  72986     73  3    0x100090  kqread        syslogd
 72986  519615      1      0  3    0x100082  netio         syslogd
 25941   68987      1     77  3    0x100090  poll          dhclient
 47911  473622      1      0  3        0x80  poll          dhclient
 57760   30217      0      0  2     0x14200                zerothread
 34731    7479      0      0  3     0x14200  aiodoned      aiodoned
 12915  184898      0      0  3     0x14200  syncer        update
 65557   98224      0      0  3     0x14200  cleaner       cleaner
  4641  295820      0      0  3     0x14200  reaper        reaper
 28173  410484      0      0  3     0x14200  pgdaemon      pagedaemon
 43775  429855      0      0  3     0x14200  bored         crynlk
 32160  407833      0      0  3     0x14200  bored         crypto
 41612   57382      0      0  3  0x40014200  acpi0         acpi0
 66545  215125      0      0  3     0x14200  bored         softnet
 20211  400451      0      0  3     0x14200  bored         systqmp
 79159  356625      0      0  3     0x14200  bored         systq
 80727  207186      0      0  3  0x40014200  bored         softclock
 66400  241846      0      0  3  0x40014200                idle0
 58435  139567      0      0  3     0x14200  bored         smr
     1  449104      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  9530   6371K    7338K  78643K     11317        0
            pcb    13      8K       8K  78643K        81        0
         rtable   102      4K       4K  78643K       301        0
         ifaddr   102     19K      20K  78643K       154        0
       counters    19     16K      16K  78643K        19        0
       ioctlops     0      0K       2K  78643K        41        0
            iov     0      0K      24K  78643K        84        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1222     77K      77K  78643K      1468        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       152        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     5     13K      25K  78643K       345        0
          sigio     0      0K       0K  78643K        14        0
           proc    48     38K      63K  78643K       416        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        27        0
       in_multi    98      4K       4K  78643K       141        0
    ether_multi     1      0K       0K  78643K         7        0
            mrt     0      0K       0K  78643K         1        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    90    397K     397K  78643K        90        0
           exec     0      0K       1K  78643K       215        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   128     55K      55K  78643K      1768        0
       UVM aobj    40      2K       2K  78643K        40        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        80        0
            NDP    15      0K       0K  78643K        25        0
           temp   145   3027K    3101K  78643K     20035        0
         kqueue     0      0K       0K  78643K         2        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        2     1     0     1     1     0     8    0
rtpcb       80       61    0       59     1     0     1     1     0     8    0
rtentry    112       55    0       17     2     0     2     2     0     8    0
unpcb      120      241    0      233     1     0     1     1     0     8    0
syncache   264        5    0        5     2     2     0     1     0     8    0
tcpqe       32        1    0        1     1     1     0     1     0     8    0
tcpcb      544      249    0      245     4     1     3     3     0     8    2
ipq         40        5    0        5     2     1     1     1     0     8    1
ipqe        40      225    0      225     2     1     1     1     0     8    1
inpcb      280      570    0      562     5     1     4     4     0     8    3
nd6         48        6    0        4     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     0     1     1     0     8    1
ppxss      1128       3    0        3     2     2     0     1     0     8    0
art_heap8  4096       3    0        0     3     0     3     3     0     8    0
art_heap4  256      288    0       82    16     1    15    15     0     8    0
art_heap4: pool(0xffffffff82540ae0:art_heap4): free list modified: page 0xfffffd8050e47000; item ordinal 0; addr 0xfffffd8050e47000 (p 0xfffffd8062b9f000); offset 0x0=0x0
pool(art_heap4): free list modified: page 0xfffffd8050e47000; item ordinal 0; addr 0xfffffd8050e47000 (p 0xfffffd8062b9f000); offset 0x0=0x0
art_heap4: pool(0xffffffff82540ae0:art_heap4): page inconsistency: page 0xfffffd8050e47000; item ordinal 1; addr 0xfd1fc5c07e7cbd3a
art_table   32      292    0       82     2     0     2     2     0     8    0
art_node    16       54    0       18     1     0     1     1     0     8    0
sysvmsgpl   40       38    0       16     1     0     1     1     0     8    0
semupl     112        3    0        3     1     1     0     1     0     8    0
semapl     112      150    0      140     1     0     1     1     0     8    0
shmpl      112       38    0        0     2     0     2     2     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1936    0      540    46     0    46    46     0     8    0
ffsino     240     1936    0      540    83     0    83    83     0     8    0
nchpl      144     2652    0     1035    62     1    61    61     0     8    0
uvmvnodes   72     2143    0        0    39     0    39    39     0     8    0
vnodes     208     2143    0        0   113     0   113   113     0     8    0
namei      1024    7874    0     7874     1     0     1     1     0     8    1
vcpupl     1984       6    0        0     1     0     1     1     0     8    0
vmpool     528        6    0        0     1     0     1     1     0     8    0
scxspl     192     7829    0     7829     1     0     1     1     0     8    1
plimitpl   152       39    0       32     1     0     1     1     0     8    0
sigapl     432      516    0      503     2     0     2     2     0     8    0
futexpl     56    11114    0    11114     1     0     1     1     0     8    1
knotepl    112      141    0      122     1     0     1     1     0     8    0
kqueuepl   104      221    0      219     1     0     1     1     0     8    0
pipepl     128      392    0      373     3     1     2     2     0     8    1
fdescpl    424      517    0      503     2     0     2     2     0     8    0
filepl     120     4225    0     4129     6     1     5     5     0     8    2
lockfpl    104      129    0      128     1     0     1     1     0     8    0
lockfspl    48       49    0       48     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      443    0      436     1     0     1     1     0     8    0
zombiepl   144      505    0      505     1     0     1     1     0     8    1
processpl  872      534    0      505     4     0     4     4     0     8    0
procpl     632     1043    0     1007     4     0     4     4     0     8    0
sosppl     128        2    0        2     1     1     0     1     0     8    0
sockpl     384      884    0      866     8     1     7     7     0     8    5
mcl64k     65536     59    0       59     1     0     1     1     0     8    1
mcl16k     16384      6    0        6     3     2     1     1     0     8    1
mcl12k     12288      9    0        9     1     0     1     1     0     8    1
mcl9k      9216      11    0       11     1     0     1     1     0     8    1
mcl8k      8192      18    0       18     2     1     1     1     0     8    1
mcl4k      4096      47    0       47     1     0     1     1     0     8    1
mcl2k2     2112       1    0        1     1     1     0     1     0     8    0
mcl2k      2048   69249    0    69208    17    11     6    14     0     8    0
mtagpl      80       29    0        6     2     1     1     1     0     8    0
mbufpl     256   112844    0   112715    39    16    23    23     0     8   11
bufpl      280     7347    0     1328   430     0   430   430     0     8    0
anonpl      16    84722    0    64631    97    10    87    96     0   107    3
amapchunkpl 152    2935    0     2755    17     8     9    17     0   158    0
amappl16   192     4034    0     2948    62     4    58    62     0     8    3
amappl15   184       50    0       46     1     0     1     1     0     8    0
amappl14   176       28    0       23     1     0     1     1     0     8    0
amappl13   168        2    0        2     2     2     0     1     0     8    0
amappl12   160       12    0        9     2     1     1     1     0     8    0
amappl11   152       45    0       34     1     0     1     1     0     8    0
amappl10   144      181    0      176     1     0     1     1     0     8    0
amappl9    136      564    0      561     1     0     1     1     0     8    0
amappl8    128      125    0       96     1     0     1     1     0     8    0
amappl7    120      255    0      245     1     0     1     1     0     8    0
amappl6    112       61    0       55     1     0     1     1     0     8    0
amappl5    104      134    0      122     1     0     1     1     0     8    0
amappl4     96      732    0      703     1     0     1     1     0     8    0
amappl3     88      129    0      121     1     0     1     1     0     8    0
amappl2     80     3379    0     3309     3     1     2     3     0     8    0
amappl1     72    19123    0    18692    26    16    10    20     0     8    0
amappl      80     1267    0     1221     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       18    0       17     1     0     1     1     0     8    0
aobjpl      64       39    0        0     1     0     1     1     0     8    0
uaddrrnd    24      523    0      503     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      523    0      503     1     0     1     1     0     8    0
vmmpekpl   168     7702    0     7675     2     0     2     2     0     8    0
vmmpepl    168    70286    0    68074   144    39   105   136     0   357    7
vmsppl     272      522    0      503     2     0     2     2     0     8    0
pdppl      4096    1052    0     1012     7     1     6     6     0     8    0
pvpl        32   243970    0   221382   217     9   208   217     0   265   23
pmappl     200      522    0      503     2     0     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      184    0       35     6     1     5     5     0     8    0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/20 11:42 openbsd 811d28426ea5 e30cbdae .config console log report ci-openbsd-main
2019/11/26 07:27 openbsd 943f8c8c295c f746151a .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.