syzbot


pool: free list modified: sockpl (2)

Status: auto-closed as invalid on 2022/08/02 08:04
Reported-by: syzbot+3384a3034cc10d7dfbeb@syzkaller.appspotmail.com
First crash: 789d, last: 733d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd pool: free list modified: sockpl 2 1532d 1542d 0/3 auto-closed as invalid on 2020/05/25 10:55
openbsd pool: free list modified: sockpl (3) 39 4d06h 595d 0/3 upstream: reported on 2022/09/19 02:44

Sample crash report:
panic: pool_do_get: sockpl free list modified: page 0xfffffd807c050000; item addr 0xfffffd807c050e28; offset 0x0=0x0 != 0x739231093e35e373
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*185987  60417      0           0  0x4000000    0  syz-executor.7
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82608c37) at panic+0x161 sys/kern/subr_prf.c:202
pool_do_get(ffffffff82a90b78,9,ffff800026337558) at pool_do_get+0x427 sys/kern/subr_pool.c:740
pool_get(ffffffff82a90b78,9) at pool_get+0xb3 sys/kern/subr_pool.c:584
socreate(2,ffff800026337628,2,0) at socreate+0xa7 soalloc sys/kern/uipc_socket.c:147 [inline]
socreate(2,ffff800026337628,2,0) at socreate+0xa7 sys/kern/uipc_socket.c:176
sys_socket(ffff8000216322a0,ffff8000263376b8,ffff800026337710) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
syscall(ffff800026337780) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfeae5a8e0c0, count: 7
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
*cpu0: pool_do_get: sockpl free list modified: page 0xfffffd807c050000; item addr 0xfffffd807c050e28; offset 0x0=0x0 != 0x739231093e35e373
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82608c37) at panic+0x161 sys/kern/subr_prf.c:202
pool_do_get(ffffffff82a90b78,9,ffff800026337558) at pool_do_get+0x427 sys/kern/subr_pool.c:740
pool_get(ffffffff82a90b78,9) at pool_get+0xb3 sys/kern/subr_pool.c:584
socreate(2,ffff800026337628,2,0) at socreate+0xa7 soalloc sys/kern/uipc_socket.c:147 [inline]
socreate(2,ffff800026337628,2,0) at socreate+0xa7 sys/kern/uipc_socket.c:176
sys_socket(ffff8000216322a0,ffff8000263376b8,ffff800026337710) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
syscall(ffff800026337780) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfeae5a8e0c0, count: -8
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff8000263373d0
rbx               0x739231093e35e373
rdx                                0
rcx                                0
rax               0xffff8000216322a0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xdea527686c33bd3a
r11               0x21ad0a79e272cb3c
r12                                0
r13               0xfffffd807c050e28
r14                                0
r15                              0x1
rip               0xffffffff823da9f8    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff8000263373c0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (syz-executor.7) pid=185987 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=82, usrpri=82, nice=20
    forw=0xffffffffffffffff, list=0xffff800021610fd0,0xffff800021632fd0
    process=0xffff8000ffff7398 user=0xffff800026332000, vmspace=0xfffffd807c235dd8
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 56498   26089  65285      0  2           0                syz-executor.1
 94951  298263  27030      0  2           0                syz-executor.5
 94951   87637  27030      0  2   0x4000000                syz-executor.5
 94951  377703  27030      0  3   0x4000080  fsleep        syz-executor.5
 60417  237830  38830      0  2           0                syz-executor.7
*60417  185987  38830      0  7   0x4000000                syz-executor.7
 60417   77028  38830      0  3   0x4000080  fsleep        syz-executor.7
 97908  188381  84583      0  2           0                syz-executor.6
 97908  423821  84583      0  3   0x4000080  fsleep        syz-executor.6
 64821  159680  30955      0  2           0                syz-executor.4
 64821   59366  30955      0  3   0x4000080  fsleep        syz-executor.4
 32186  246846  10075      0  2         0x2                syz-executor.3
 84583  324317  10075      0  3        0x82  nanoslp       syz-executor.6
 30955  398105  10075      0  3        0x82  nanoslp       syz-executor.4
 38830  205221  10075      0  3        0x82  nanoslp       syz-executor.7
  6350  141286      0      0  3     0x14200  acct          acct
 39827  163849  10075      0  2         0x2                syz-executor.0
  7747   67073      1      0  3    0x100083  ttyin         getty
 27030  115677  10075      0  3        0x82  nanoslp       syz-executor.5
 33486  128239      0      0  3     0x14200  bored         sosplice
   175  400282  10075      0  3        0x82  nanoslp       syz-executor.2
 65285  446831  10075      0  3        0x82  nanoslp       syz-executor.1
 10075  454376  10930      0  3        0x82  thrsleep      syz-fuzzer
 10075  106471  10930      0  3   0x4000082  nanoslp       syz-fuzzer
 10075  274964  10930      0  3   0x4000082  kqread        syz-fuzzer
 10075  457909  10930      0  3   0x4000082  thrsleep      syz-fuzzer
 10075  175919  10930      0  3   0x4000082  thrsleep      syz-fuzzer
 10075  515813  10930      0  3   0x4000082  thrsleep      syz-fuzzer
 10075  148753  10930      0  3   0x4000082  thrsleep      syz-fuzzer
 10075  325826  10930      0  3   0x4000082  thrsleep      syz-fuzzer
 10075   12931  10930      0  3   0x4000082  thrsleep      syz-fuzzer
 10930  430534   9274      0  3    0x10008a  sigsusp       ksh
  9274  140900  62659      0  3        0x9a  kqread        sshd
 62659  393959      1      0  3        0x88  kqread        sshd
  8354  380435  86071     73  3   0x1100090  kqread        syslogd
 86071  340462      1      0  3    0x100082  netio         syslogd
 73909  442209      1      0  3    0x100080  kqread        resolvd
 70683  359161  52729     77  3    0x100092  kqread        dhcpleased
 61409  225906  52729     77  3    0x100092  kqread        dhcpleased
 52729  320440      1      0  3        0x80  kqread        dhcpleased
 44811  485139      0      0  3     0x14200  bored         smr
 75714  210273      0      0  2     0x14200                zerothread
 12895  395579      0      0  3     0x14200  aiodoned      aiodoned
 43633  247769      0      0  3     0x14200  syncer        update
 55618   26451      0      0  3     0x14200  cleaner       cleaner
 84005   29777      0      0  3     0x14200  reaper        reaper
  7771  450379      0      0  3     0x14200  pgdaemon      pagedaemon
 96444   98174      0      0  3     0x14200  bored         viomb
 23309  264943      0      0  3  0x40014200  acpi0         acpi0
 95847  239832      0      0  3     0x14200  bored         softnet
 94010  367826      0      0  3     0x14200  bored         softnet
  8158  247283      0      0  3     0x14200  bored         softnet
 35971  122915      0      0  3     0x14200  bored         softnet
 87704  264474      0      0  3     0x14200  bored         systqmp
 58366  491530      0      0  3     0x14200  bored         systq
 18768  235891      0      0  3  0x40014200  bored         softclock
 14547  145240      0      0  3  0x40014200                idle0
     1  380600      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 10200   6429K    7052K  78643K     17344        0
            pcb    13     12K      14K  78643K       315        0
         rtable   177      9K      13K  78643K      1034        0
         ifaddr   154     36K      36K  78643K       596        0
         sysctl     2      0K       0K  78643K         2        0
       counters    26     17K      17K  78643K        97        0
       ioctlops     0      0K       4K  78643K      2928        0
            iov     0      0K      32K  78643K       171        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1342     84K      84K  78643K      4504        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        37        0
         VM map     2      0K       0K  78643K         2        0
            sem    11      1K       1K  78643K        18        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    15     53K      69K  78643K      5376        0
          sigio     0      0K       0K  78643K       123        0
           proc    61     59K      83K  78643K       887        0
        subproc   104      6K       7K  78643K       260        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       151        0
       in_multi    74      5K       6K  78643K       324        0
    ether_multi     1      0K       0K  78643K        40        0
            mrt     1      0K       0K  78643K        43        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   259   1155K    1155K  78643K       259        0
           exec     0      0K       2K  78643K      1083        0
     pfkey data     0      0K       0K  78643K         1        0
            tdb     3      0K       0K  78643K         3        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   298    368K     783K  78643K     28477        0
       UVM aobj     3      2K       2K  78643K         3        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       117        0
            NDP    11      0K       2K  78643K       125        0
           temp   212   4900K    5158K  78643K     47043        0
         kqueue    12     18K      28K  78643K       262        0
      SYN cache     2   4688K    4696K  78643K         4        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb      120      179    0      176     1     0     1     1     0     8    0
rtentry    112      274    0      196     4     1     3     4     0     8    0
unpcb      136     1954    0     1939    14    13     1     9     0     8    0
syncache   296       33    0       33     6     6     0     1     0     8    0
tcpqe       32       64    0       64     5     5     0     1     0     8    0
tcpcb      736      933    0      915    27    25     2     9     0     8    0
arp         88       46    0       32     1     0     1     1     0     8    0
ipq         40        5    0        5     4     4     0     1     0     8    0
ipqe        40       13    0       13     4     4     0     1     0     8    0
inpcb      312     4601    0     4574    71    62     9    16     0     8    6
ip6q        72       35    0       35     2     2     0     1     0     8    0
ip6af       40       69    0       69     2     2     0     1     0     8    0
nd6         48       64    0       46     1     0     1     1     0     8    0
pkpcb       40       14    0       14     5     5     0     1     0     8    0
kcovpl      48       20    0       12     1     0     1     1     0     8    0
ppxss      1152      20    0       20     4     4     0     1     0     8    0
pfstscr     40      103    0       73     1     0     1     1     0     8    0
pfosfp      40        6    0        3     1     0     1     1     0     8    0
pfosfpen   112        6    0        0     1     0     1     1     0     8    0
pfrktable  1344      68    0       68     2     2     0     1     0     8    0
pftag       88        2    0        0     1     0     1     1     0     8    0
pfqueue    264        2    0        2     1     1     0     1     0     8    0
pfstitem    24      160    0      100     1     0     1     1     0     8    0
pfstkey    112      197    0      191     1     0     1     1     0     8    0
pfstate    336       99    0       69     4     1     3     3     0     8    0
pfrule     1360     107    0      100     5     4     1     2     0     8    0
rttmrq      48       10    0        4     1     0     1     1     0     8    0
rttmr       72       13    0       13     4     4     0     1     0     8    0
art_heap8  4096       2    0        1     2     1     1     2     0     8    0
art_heap4  256     1190    0      850    37    15    22    29     0     8    0
art_table   32     1192    0      851     4     1     3     4     0     8    0
art_node    16      273    0      206     1     0     1     1     0     8    0
sysvmsgpl   40       31    0       23     2     1     1     1     0     8    0
semupl     112        7    0        7     1     1     0     1     0     8    0
semapl     112        9    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     9063    0     7615    92     1    91    91     0     8    0
ffsino     240     9063    0     7615    86     0    86    86     0     8    0
nchpl      144    15438    0    13804    63     0    63    63     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     224     5926    0        0   349     0   349   349     0     8    0
namei      1024   50724    0    50723     6     5     1     2     0     8    0
vcpupl     1984      84    0        1    11     0    11    11     0     8    0
vmpool     528      513    0      430     6     0     6     6     0     8    0
pfiaddrpl  120       21    0       21     3     3     0     1     0     8    0
kstatmem   264      164    0      142     2     0     2     2     0     8    0
scsiplug    72        3    0        3     1     1     0     1     0     8    0
scxspl     216    44363    0    44363    17    16     1     8     0     8    1
plimitpl   152      371    0      357     1     0     1     1     0     8    0
sigapl     424     5642    0     5597     6     0     6     6     0     8    0
futexpl     64    39855    0    39851     6     5     1     1     0     8    0
knotepl    120    79983    0    79903    50    39    11    11     0     8    6
kqueuepl   184      522    0      514     2     1     1     2     0     8    0
pipepl     304      515    0      487    12     9     3     8     0     8    0
fdescpl    432     5623    0     5597     4     0     4     4     0     8    0
filepl     120    29836    0    29577    64    52    12    15     0     8    4
lockfpl    104     1103    0     1101     2     1     1     2     0     8    0
lockfspl    48      406    0      404     1     0     1     1     0     8    0
sessionpl  144       36    0       20     1     0     1     1     0     8    0
pgrppl      48       46    0       30     1     0     1     1     0     8    0
ucredpl     96     7077    0     7067     1     0     1     1     0     8    0
zombiepl   144     5598    0     5597     5     4     1     1     0     8    0
processpl  1000    5642    0     5597     6     0     6     6     0     8    0
procpl     672    11956    0    11897     9     3     6     7     0     8    0
sosppl     168       37    0       37     4     4     0     1     0     8    0
sockpl     448     6757    0     6712   135   124    11    30     0     8    6
sockpl: pool(0xffffffff82a90b78:sockpl): free list modified: page 0xfffffd807c050000; item ordinal 0; addr 0xfffffd807c050e28 (p 0xfffffd806aec1000); offset 0x0=0x0
pool(sockpl): free list modified: page 0xfffffd807c050000; item ordinal 0; addr 0xfffffd807c050e28 (p 0xfffffd806aec1000); offset 0x0=0x0
sockpl: pool(0xffffffff82a90b78:sockpl): page inconsistency: page 0xfffffd807c050000; item ordinal 1; addr 0x603fd52986c56ad4
mcl64k     65536     52    0       52    14    13     1     1     0     8    1
mcl16k     16384     35    0       35     9     8     1     1     0     8    1
mcl12k     12288     63    0       63    11    10     1     1     0     8    1
mcl9k      9216      26    0       26    10    10     0     1     0     8    0
mcl8k      8192      76    0       76    23    22     1     1     0     8    1
mcl4k      4096     346    0      346    16    15     1     1     0     8    1
mcl2k2     2112      22    0       22    12    11     1     1     0     8    1
mcl2k      2048   33523    0    33466    67    58     9    19     0     8    1
mtagpl      96      397    0      226     7     1     6     6     0     8    0
mbufpl     256   102321    0   101921    58    28    30    48     0     8    0
bufpl      288    11167    0     4766   458     0   458   458     0     8    0
anonpl      24  1009064    0   998150   156    72    84    92     0   188    0
amapchunkpl 152   99442    0    98942   550   528    22   343     0   158    1
amappl16   200    17314    0    16993   142   124    18    35     0     8    0
amappl15   192      297    0      296     1     0     1     1     0     8    0
amappl14   184      953    0      948     1     0     1     1     0     8    0
amappl13   176      718    0      711     1     0     1     1     0     8    0
amappl12   168     1272    0     1264     1     0     1     1     0     8    0
amappl11   160      371    0      355     1     0     1     1     0     8    0
amappl10   152      976    0      971     1     0     1     1     0     8    0
amappl9    144      809    0      805     1     0     1     1     0     8    0
amappl8    136     1365    0     1279     3     0     3     3     0     8    0
amappl7    128      701    0      690     1     0     1     1     0     8    0
amappl6    120      586    0      568     2     1     1     2     0     8    0
amappl5    112     4519    0     4505     1     0     1     1     0     8    0
amappl4    104     1679    0     1645     3     1     2     2     0     8    1
amappl3     96    16334    0    16285     2     0     2     2     0     8    0
amappl2     88     7366    0     7298     4     2     2     3     0     8    0
amappl1     80   128760    0   128164    32    17    15    19     0     8    1
amappl      88    27432    0    27271     8     3     5     5     0    92    0
dma4096    4096       1    0        1     1     1     0     1     0     8    0
dma1024    1024       1    0        0     1     0     1     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      72        2    0        0     1     0     1     1     0     8    0
uaddrrnd    24     6136    0     6027     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     6136    0     6027     1     0     1     1     0     8    0
vmmpekpl   168    34219    0    34161     3     0     3     3     0     8    0
vmmpepl    168   532487    0   530153   220   104   116   116     0   357    6
vmsppl     272     6135    0     6027     8     0     8     8     0     8    0
rwobjpl     24   129156    0   121917    46     1    45    45     0     8    0
pdppl      4096   12278    0    12137   546   399   147   150     0     8    6
pvpl        32  2126524    0  2112144   309   172   137   256     0   265    0
pmappl     216     6135    0     6027     8     1     7     7     0     8    0
extentpl    40       58    0       38     1     0     1     1     0     8    0
phpool     112     1670    0      783    26     0    26    26     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82608c37) at panic+0x161 sys/kern/subr_prf.c:202
pool_do_get(ffffffff82a90b78,9,ffff800026337558) at pool_do_get+0x427 sys/kern/subr_pool.c:740
pool_get(ffffffff82a90b78,9) at pool_get+0xb3 sys/kern/subr_pool.c:584
socreate(2,ffff800026337628,2,0) at socreate+0xa7 soalloc sys/kern/uipc_socket.c:147 [inline]
socreate(2,ffff800026337628,2,0) at socreate+0xa7 sys/kern/uipc_socket.c:176
sys_socket(ffff8000216322a0,ffff8000263376b8,ffff800026337710) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
syscall(ffff800026337780) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfeae5a8e0c0, count: -8
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82608c37) at panic+0x161 sys/kern/subr_prf.c:202
pool_do_get(ffffffff82a90b78,9,ffff800026337558) at pool_do_get+0x427 sys/kern/subr_pool.c:740
pool_get(ffffffff82a90b78,9) at pool_get+0xb3 sys/kern/subr_pool.c:584
socreate(2,ffff800026337628,2,0) at socreate+0xa7 soalloc sys/kern/uipc_socket.c:147 [inline]
socreate(2,ffff800026337628,2,0) at socreate+0xa7 sys/kern/uipc_socket.c:176
sys_socket(ffff8000216322a0,ffff8000263376b8,ffff800026337710) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:96
syscall(ffff800026337780) at syscall+0x44e sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfeae5a8e0c0, count: -8

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/04 08:03 openbsd c091463f2365 dc9e5259 .config console log report ci-openbsd-main pool: free list modified: sockpl
2022/04/24 11:39 openbsd eabc055742cf 131df97d .config console log report ci-openbsd-main pool: free list modified: sockpl
2022/03/09 17:35 openbsd d4130671fee9 9e8eaa75 .config console log report ci-openbsd-main pool: free list modified: sockpl
* Struck through repros no longer work on HEAD.