syzbot


pool: free list modified: art_table

Status: auto-closed as invalid on 2020/05/08 14:47
Reported-by: syzbot+b37faff4b5f2d4c7b8f4@syzkaller.appspotmail.com
First crash: 1531d, last: 1531d

Sample crash report:
panic: pool_do_get: art_table free list modified: page 0xfffffd8067d10000; item addr 0xfffffd8067d10010; offset 0x0=0x0 != 0x7fe238986de7cf58
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*165075  70024      0           0  0x4000000    0  syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff822252cd) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff825581b0,a,ffff800021481008) at pool_do_get+0x42a sys/kern/subr_pool.c:738
pool_get(ffffffff825581b0,a) at pool_get+0xb5 sys/kern/subr_pool.c:581
art_table_get(ffff80000007da40,fffffd80565ee8e8,1a) at art_table_get+0xac sys/net/art.c:708
art_insert(ffff80000007da40,fffffd805e372990,ffff80000002d824,20) at art_insert+0x155 sys/net/art.c:387
rtable_insert(0,ffff80000002d820,0,ffff8000009f19a0,1,fffffd8056acebd8) at rtable_insert+0x2b4 sys/net/rtable.c:554
rtrequest(1,ffff800021481328,1,ffff8000214813f0,0) at rtrequest+0x8be sys/net/route.c:941
rt_ifa_add(ffff800000a10a00,240404,ffff800000a10a58,0) at rt_ifa_add+0x25c sys/net/route.c:1130
rt_ifa_addlocal(ffff800000a10a00) at rt_ifa_addlocal+0x149 sys/net/route.c:1237
in_ifinit(ffff800000a46800,ffff800000a10a00,ffff800000a10a58,0) at in_ifinit+0x1cf sys/netinet/in.c:688
in_ioctl_change_ifaddr(8040691a,ffff800021481730,ffff800000a46800,1) at in_ioctl_change_ifaddr+0x68c sys/netinet/in.c:519
in_ioctl(8040691a,ffff800021481730,ffff800000a46800,1) at in_ioctl+0x2fb sys/netinet/in.c:246
ifioctl(fffffd805da86e18,8040691a,ffff800021481730,ffff80001d36dc48) at ifioctl+0xe60 sys/net/if.c:2290
end trace frame: 0xffff800021481830, 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_table free list modified: page 0xfffffd8067d10000; item addr 0xfffffd8067d10010; offset 0x0=0x0 != 0x7fe238986de7cf58
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff822252cd) at panic+0x15c sys/kern/subr_prf.c:207
pool_do_get(ffffffff825581b0,a,ffff800021481008) at pool_do_get+0x42a sys/kern/subr_pool.c:738
pool_get(ffffffff825581b0,a) at pool_get+0xb5 sys/kern/subr_pool.c:581
art_table_get(ffff80000007da40,fffffd80565ee8e8,1a) at art_table_get+0xac sys/net/art.c:708
art_insert(ffff80000007da40,fffffd805e372990,ffff80000002d824,20) at art_insert+0x155 sys/net/art.c:387
rtable_insert(0,ffff80000002d820,0,ffff8000009f19a0,1,fffffd8056acebd8) at rtable_insert+0x2b4 sys/net/rtable.c:554
rtrequest(1,ffff800021481328,1,ffff8000214813f0,0) at rtrequest+0x8be sys/net/route.c:941
rt_ifa_add(ffff800000a10a00,240404,ffff800000a10a58,0) at rt_ifa_add+0x25c sys/net/route.c:1130
rt_ifa_addlocal(ffff800000a10a00) at rt_ifa_addlocal+0x149 sys/net/route.c:1237
in_ifinit(ffff800000a46800,ffff800000a10a00,ffff800000a10a58,0) at in_ifinit+0x1cf sys/netinet/in.c:688
in_ioctl_change_ifaddr(8040691a,ffff800021481730,ffff800000a46800,1) at in_ioctl_change_ifaddr+0x68c sys/netinet/in.c:519
in_ioctl(8040691a,ffff800021481730,ffff800000a46800,1) at in_ioctl+0x2fb sys/netinet/in.c:246
ifioctl(fffffd805da86e18,8040691a,ffff800021481730,ffff80001d36dc48) at ifioctl+0xe60 sys/net/if.c:2290
sys_ioctl(ffff80001d36dc48,ffff800021481848,ffff800021481890) at sys_ioctl+0x4a1
syscall(ffff800021481910) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x8d62d1a59b0, count: -17
ddb> show registers
rdi               0xffffffff81008d67    db_enter+0x17
rsi                           0x691b    __ALIGN_SIZE+0x591b
rbp               0xffff800021480e70
rbx               0xffff800021480f20
rdx                           0x691c    __ALIGN_SIZE+0x591c
rcx               0xffff80001e42d000
rax               0xffff80001e42d000
r8                0xffff800021480e30
r9                               0x1
r10               0xffff8000009f2c80
r11                0xa3ddce0f4a09972
r12                     0x3000000008
r13               0xffff800021480e80
r14                            0x100
r15                              0x1
rip               0xffffffff81008d68    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800021480e60
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.1) pid=165075 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=32, usrpri=52, nice=20
    forw=0xffffffffffffffff, list=0xffff80001d36d288,0xffffffff82550f40
    process=0xffff8000ffffbc10 user=0xffff80002147c000, vmspace=0xfffffd8069d87ab0
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 70024   11712  60214      0  2           0                syz-executor.1
*70024  165075  60214      0  7   0x4000000                syz-executor.1
 60214   62550    467      0  3        0x82  nanosleep     syz-executor.1
 90934  208174    467      0  3        0x82  nanosleep     syz-executor.0
 91559  210023      0      0  3     0x14200  bored         sosplice
   467  281007  70271      0  3        0x82  thrsleep      syz-fuzzer
   467  437974  70271      0  3   0x4000082  thrsleep      syz-fuzzer
   467  294140  70271      0  3   0x4000082  thrsleep      syz-fuzzer
   467  477918  70271      0  3   0x4000082  thrsleep      syz-fuzzer
   467  122143  70271      0  3   0x4000082  thrsleep      syz-fuzzer
   467   66187  70271      0  3   0x4000082  thrsleep      syz-fuzzer
   467  310891  70271      0  3   0x4000082  thrsleep      syz-fuzzer
   467   70777  70271      0  3   0x4000082  kqread        syz-fuzzer
 70271  493337  56497      0  3    0x10008a  pause         ksh
 56497  517589  29526      0  3        0x92  select        sshd
 12056  296221      1      0  3    0x100083  ttyin         getty
 29526  480908      1      0  3        0x80  select        sshd
 99846  354443  89167     73  3    0x100090  kqread        syslogd
 89167  231188      1      0  3    0x100082  netio         syslogd
 43071  317812      1     77  2    0x100090                dhclient
 40955   57285      1      0  3        0x80  poll          dhclient
 95891  221931      0      0  2     0x14200                zerothread
 39389  365947      0      0  3     0x14200  aiodoned      aiodoned
 89259  112990      0      0  3     0x14200  syncer        update
 53402   74610      0      0  3     0x14200  cleaner       cleaner
  1875  166015      0      0  3     0x14200  reaper        reaper
 43992  115241      0      0  3     0x14200  pgdaemon      pagedaemon
 54445  393306      0      0  3     0x14200  bored         crynlk
  7729  377482      0      0  3     0x14200  bored         crypto
 39597  419395      0      0  3  0x40014200  acpi0         acpi0
 35302   18140      0      0  3     0x14200  bored         softnet
 28465  455159      0      0  2     0x14200                systqmp
 14498  324282      0      0  3     0x14200  bored         systq
 26453   19437      0      0  3  0x40014200  bored         softclock
  2125   23660      0      0  3  0x40014200                idle0
 70318  270749      0      0  3     0x14200  bored         smr
     1  103301      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    6920K  78643K     12174        0
            pcb    13      8K       8K  78643K       220        0
         rtable    97      3K       4K  78643K       562        0
         ifaddr    90     17K      17K  78643K       232        0
       counters    21     16K      16K  78643K        46        0
       ioctlops     0      0K       2K  78643K        49        0
            iov     0      0K      24K  78643K       199        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1225     77K      77K  78643K      1799        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        19        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      0K       0K  78643K       437        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     5     13K      25K  78643K       842        0
          sigio     0      0K       0K  78643K        10        0
           proc    50     38K      54K  78643K       521        0
        subproc    32      2K       2K  78643K        68        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       119        0
       in_multi    65      3K       3K  78643K       215        0
    ether_multi     1      0K       0K  78643K        33        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    61    281K     281K  78643K        61        0
           exec     0      0K       1K  78643K       326        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   121     70K      72K  78643K      3060        0
       UVM aobj    50      2K       2K  78643K        58        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       162        0
            NDP    15      0K       0K  78643K        54        0
           temp   142   3018K    3098K  78643K     37669        0
         kqueue     3      4K      14K  78643K        79        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       12    0        7     1     0     1     1     0     8    0
rtpcb       80       87    0       85     1     0     1     1     0     8    0
rtentry    112      112    0       74     2     0     2     2     0     8    0
unpcb      120      657    0      648     1     0     1     1     0     8    0
syncache   264        6    0        6     3     3     0     1     0     8    0
tcpqe       32       44    0       44     2     2     0     1     0     8    0
tcpcb      544      432    0      427     3     1     2     2     0     8    1
ipq         40        9    0        9     2     2     0     1     0     8    0
ipqe        40      151    0      151     2     2     0     1     0     8    0
inpcb      280     1200    0     1192     6     3     3     3     0     8    2
nd6         48       18    0       17     1     0     1     1     0     8    0
pkpcb       40        4    0        4     2     2     0     1     0     8    0
swfcl       56        2    0        0     1     0     1     1     0     8    0
ppxss      1128       5    0        5     2     2     0     1     0     8    0
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      537    0      360    18     5    13    16     0     8    0
art_table   32      539    0      360     3     0     3     3     0     8    0
art_table: pool(0xffffffff825581b0:art_table): free list modified: page 0xfffffd8067d10000; item ordinal 0; addr 0xfffffd8067d10010 (p 0xfffffd8067d10000); offset 0x0=0x0
art_table: pool(0xffffffff825581b0:art_table): page inconsistency: page 0xfffffd8067d10000; item ordinal 1; addr 0xffffa09609b747ee
art_node    16      111    0       73     1     0     1     1     0     8    0
sysvmsgpl   40       14    0       14     1     1     0     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112      435    0      425     1     0     1     1     0     8    0
shmpl      112       56    0        8     2     0     2     2     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     2870    0     1470    46     0    46    46     0     8    0
ffsino     240     2870    0     1470    83     0    83    83     0     8    0
nchpl      144     4460    0     2858    60     0    60    60     0     8    0
uvmvnodes   72     3308    0        0    61     0    61    61     0     8    0
vnodes     208     3308    0        0   175     0   175   175     0     8    0
namei      1024   13931    0    13931     2     1     1     1     0     8    1
vcpupl     1984       7    0        2     1     0     1     1     0     8    0
vmpool     528        9    0        4     1     0     1     1     0     8    0
scxspl     192    14980    0    14980     1     0     1     1     0     8    1
plimitpl   152       98    0       91     1     0     1     1     0     8    0
sigapl     432     1007    0      994     2     0     2     2     0     8    0
futexpl     56    29884    0    29884     2     1     1     1     0     8    1
knotepl    112      181    0      162     1     0     1     1     0     8    0
kqueuepl   104      931    0      929     1     0     1     1     0     8    0
pipelkpl    16      638    0      628     1     0     1     1     0     8    0
pipepl     120     1276    0     1257     5     4     1     3     0     8    0
fdescpl    432     1008    0      994     2     0     2     2     0     8    0
filepl     120     9805    0     9709    16    11     5     8     0     8    2
lockfpl    104      308    0      306     1     0     1     1     0     8    0
lockfspl    48      110    0      108     1     0     1     1     0     8    0
sessionpl  112       19    0        9     1     0     1     1     0     8    0
pgrppl      48       25    0       15     1     0     1     1     0     8    0
ucredpl     96      966    0      958     1     0     1     1     0     8    0
zombiepl   144      994    0      993     1     0     1     1     0     8    0
processpl  896     1023    0      993     4     0     4     4     0     8    0
procpl     624     2035    0     1997     4     0     4     4     0     8    0
sosppl     128       11    0       11     2     2     0     1     0     8    0
sockpl     400     1960    0     1941     9     4     5     6     0     8    2
mcl64k     65536     91    0       91     2     1     1     1     0     8    1
mcl16k     16384     18    0       18     2     2     0     1     0     8    0
mcl12k     12288     27    0       27     2     1     1     1     0     8    1
mcl9k      9216      19    0       19     2     2     0     1     0     8    0
mcl8k      8192      38    0       38     2     1     1     1     0     8    1
mcl4k      4096      84    0       84     3     2     1     1     0     8    1
mcl2k2     2112       9    0        9     3     3     0     1     0     8    0
mcl2k      2048   66758    0    66714    18    12     6    14     0     8    0
mtagpl      80       85    0       23     3     1     2     2     0     8    0
mbufpl     256   113441    0   113177    40    20    20    31     0     8    0
bufpl      280     7418    0     2010   387     0   387   387     0     8    0
anonpl      16   121584    0   104998   105    21    84    84     0   107   15
amapchunkpl 152    5822    0     5693    32    24     8    20     0   158    0
amappl16   192     6103    0     5182    81    22    59    59     0     8   12
amappl15   184       54    0       50     1     0     1     1     0     8    0
amappl14   176      181    0      178     1     0     1     1     0     8    0
amappl13   168       58    0       58     1     1     0     1     0     8    0
amappl12   160        9    0        8     1     0     1     1     0     8    0
amappl11   152       55    0       44     1     0     1     1     0     8    0
amappl10   144       17    0       15     1     0     1     1     0     8    0
amappl9    136      838    0      832     1     0     1     1     0     8    0
amappl8    128      395    0      368     1     0     1     1     0     8    0
amappl7    120      102    0       91     1     0     1     1     0     8    0
amappl6    112       65    0       57     1     0     1     1     0     8    0
amappl5    104      170    0      159     1     0     1     1     0     8    0
amappl4     96     1251    0     1222     1     0     1     1     0     8    0
amappl3     88      292    0      284     1     0     1     1     0     8    0
amappl2     80     7252    0     7183     3     1     2     3     0     8    0
amappl1     72    27525    0    27099    25    15    10    20     0     8    0
amappl      80     2315    0     2271     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       57    0        8     1     0     1     1     0     8    0
uaddrrnd    24     1017    0      998     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1017    0      998     1     0     1     1     0     8    0
vmmpekpl   168    11224    0    11194     2     0     2     2     0     8    0
vmmpepl    168   127294    0   125270   157    57   100   147     0   357    6
vmsppl     272     1016    0      998     3     1     2     2     0     8    0
pdppl      4096    2040    0     2001     7     1     6     6     0     8    0
pvpl        32   342550    0   322893   230    32   198   200     0   265   37
pmappl     200     1016    0      998     4     2     2     2     0     8    1
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      203    0       53     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/08 14:46 openbsd 3a92740d5dea 06150bf1 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.