syzbot


panic: pool_cache_paitniemc:_ mkageirnce_lc hdeicagkn:o msbtuicfp al sscpeurt iforne e" !l_ikset rnmeoldi_floieckd_:h ei

Status: closed as dup on 2019/12/02 08:42
Reported-by: syzbot+ea85168c8a8bb299f5e8@syzkaller.appspotmail.com
First crash: 1609d, last: 1609d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
pool: cpu free list modified: mbufpl syz 15863 1360d 1647d

Sample crash report:
panic: pool_cache_paitniemc:_ mkageirnce_lc hdeicagkn:o msbtuicfp al sscpeurt iforne e" !l_ikset rnmeoldi_floieckd_:h eiltde(m) "addr 0xfffffd8066083f00+16 0x0!=0xbf1d09a7cdf25cbc
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 405765  38804      0           0          0    0  syz-executor.0
* 39477  56873      0        0x12          0    1  sshd
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff8268a180) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline]
pool_cache_get(ffffffff8268a180) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892
pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572
m_copym(fffffd806214f100,16c,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline]
m_copym(fffffd806214f100,16c,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667
tcp_output(ffff800000a82000) at tcp_output+0x151c sys/netinet/tcp_output.c:673
tcp_usrreq(fffffd806e97aa88,9,fffffd806d651600,0,0,ffff800020ac1be8) at tcp_usrreq+0xa45
sosend(fffffd806e97aa88,0,ffff800020a89d78,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524
dofilewritev(ffff800020ac1be8,4,ffff800020a89d78,0,ffff800020a89e60) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364
sys_write(ffff800020ac1be8,ffff800020a89e10,ffff800020a89e60) at sys_write+0x83 sys/kern/sys_generic.c:284
syscall(ffff800020a89ee0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020a89ee0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff2400, count: 3
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{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8066083f00+16 0x0!=0xbf1d09a7cdf25cbc
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff8268a180) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline]
pool_cache_get(ffffffff8268a180) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892
pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572
m_copym(fffffd806214f100,16c,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline]
m_copym(fffffd806214f100,16c,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667
tcp_output(ffff800000a82000) at tcp_output+0x151c sys/netinet/tcp_output.c:673
tcp_usrreq(fffffd806e97aa88,9,fffffd806d651600,0,0,ffff800020ac1be8) at tcp_usrreq+0xa45
sosend(fffffd806e97aa88,0,ffff800020a89d78,0,0,80) at sosend+0x645 sys/kern/uipc_socket.c:524
dofilewritev(ffff800020ac1be8,4,ffff800020a89d78,0,ffff800020a89e60) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364
sys_write(ffff800020ac1be8,ffff800020a89e10,ffff800020a89e60) at sys_write+0x83 sys/kern/sys_generic.c:284
syscall(ffff800020a89ee0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020a89ee0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff2400, count: -12
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800020a89720
rbx               0xffff800020a897d0
rdx               0xffff800020ac1be8
rcx                                0
rax                                0
r8                0xffffffff81a61d1f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0x4e29e11d00492136
r12                     0x3000000008
r13               0xffff800020a89730
r14                            0x100
r15                              0x1
rip               0xffffffff8157cc78    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800020a89710
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (sshd) pid=39477 stat=onproc
    flags process=12<EXEC,SUGID> proc=0
    pri=50, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ac07a8,0xffff800020ac0530
    process=0xffff800020ac3238 user=0xffff800020a84000, vmspace=0xfffffd806e7be458
    estcpu=0, cpticks=2, pctcpu=0.1
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 38804  405765   9051      0  7           0                syz-executor.0
  9051  379283  71479      0  2         0x2                syz-executor.0
 62770  259024  71479      0  2         0x2                syz-executor.1
 26448    6126      0      0  3     0x14200  bored         sosplice
 71479  430545  79398      0  3        0x82  thrsleep      syz-fuzzer
 71479  127265  79398      0  3   0x4000082  nanosleep     syz-fuzzer
 71479  225910  79398      0  3   0x4000082  thrsleep      syz-fuzzer
 71479   38705  79398      0  3   0x4000082  thrsleep      syz-fuzzer
 71479  459138  79398      0  3   0x4000082  thrsleep      syz-fuzzer
 71479  292685  79398      0  3   0x4000082  thrsleep      syz-fuzzer
 71479  279565  79398      0  3   0x4000082  kqread        syz-fuzzer
 71479   44579  79398      0  3   0x4000082  thrsleep      syz-fuzzer
 71479  298982  79398      0  3   0x4000082  thrsleep      syz-fuzzer
 71479  341095  79398      0  3   0x4000082  thrsleep      syz-fuzzer
 79398  375224  56873      0  3    0x10008a  pause         ksh
*56873   39477  33291      0  7        0x12                sshd
 32094   48478      1      0  3    0x100083  ttyin         getty
 33291  509414      1      0  3        0x80  select        sshd
 40040   11040  37080     74  3    0x100092  bpf           pflogd
 37080  485504      1      0  3        0x80  netio         pflogd
 74674  328411  12231     73  3    0x100090  kqread        syslogd
 12231  132236      1      0  3    0x100082  netio         syslogd
 59977  226919      1     77  3    0x100090  poll          dhclient
 78096   20173      1      0  3        0x80  poll          dhclient
 24233  453373      0      0  2     0x14200                zerothread
 37045  257269      0      0  3     0x14200  aiodoned      aiodoned
 83969  178998      0      0  3     0x14200  syncer        update
 24287  188158      0      0  3     0x14200  cleaner       cleaner
  3731  415825      0      0  3     0x14200  reaper        reaper
 79095  366181      0      0  3     0x14200  pgdaemon      pagedaemon
 14760   81575      0      0  3     0x14200  bored         crynlk
 32277  107270      0      0  3     0x14200  bored         crypto
 20084  224903      0      0  3  0x40014200  acpi0         acpi0
 19044    3389      0      0  3  0x40014200                idle1
 59087     809      0      0  3     0x14200  bored         softnet
 29475  363104      0      0  3     0x14200  bored         systqmp
  6706  233083      0      0  3     0x14200  bored         systq
 66148   29994      0      0  3  0x40014200  bored         softclock
 61864  141099      0      0  3  0x40014200                idle0
  9439  302745      0      0  3     0x14200  bored         smr
     1  281602      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 9051 (syz-executor.0) thread 0xffff800020a8a7b0 (379283)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82687c48)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline]
#1  syscall+0x400 sys/arch/amd64/amd64/trap.c:555
#2  Xsyscall+0x128
Process 56873 (sshd) thread 0xffff800020ac1be8 (39477)
exclusive rwlock netlock r = 0 (0xffffffff8249b598)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  solock+0x5a sys/kern/uipc_socket2.c:282
#2  sosend+0x51b sys/kern/uipc_socket.c:512
#3  dofilewritev+0x1b7 sys/kern/sys_generic.c:364
#4  sys_write+0x83 sys/kern/sys_generic.c:284
#5  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#5  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#6  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9545   6622K    6918K  78643K     11440        0
            pcb    13      8K       9K  78643K       297        0
         rtable   111      4K       4K  78643K       366        0
         ifaddr    74     14K      14K  78643K       141        0
       counters    39     33K      33K  78643K        39        0
       ioctlops     0      0K       4K  78643K      1493        0
            iov     0      0K      16K  78643K        80        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1220     77K      77K  78643K      1541        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         6        0
         VM map     5      2K       2K  78643K         5        0
            sem    12      1K       1K  78643K        93        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     5     13K      25K  78643K       377        0
          sigio     0      0K       0K  78643K         6        0
           proc    60     63K      83K  78643K       574        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       190        0
       in_multi    58      3K       3K  78643K        89        0
    ether_multi     1      0K       0K  78643K         1        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    60    265K     265K  78643K        60        0
           exec     0      0K       1K  78643K       258        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   126     55K      56K  78643K      2291        0
       UVM aobj    16      2K       2K  78643K        20        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       158        0
            NDP    13      0K       0K  78643K        31        0
           temp   141   3579K    3655K  78643K     21482        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64       10    0        4     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       96       49    0       47     1     0     1     1     0     8    0
rtentry    112       69    0       25     2     0     2     2     0     8    0
unpcb      120      272    0      261     1     0     1     1     0     8    0
syncache   280        6    0        6     3     3     0     1     0     8    0
tcpqe       32      252    0      252     3     3     0     1     0     8    0
tcpcb      640      352    0      348     3     1     2     2     0     8    1
ipq         40        1    0        1     1     1     0     1     0     8    0
ipqe        40        2    0        2     1     1     0     1     0     8    0
inpcb      280     1060    0     1053     2     0     2     2     0     8    1
nd6         48        9    0        5     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     1     0     1     0     8    0
ppxss      1128       6    0        6     1     0     1     1     0     8    1
pffrag     232       11    0       11     1     1     0     1     0   482    0
pffrnode    88       11    0       11     1     1     0     1     0     8    0
pffrent     40      327    0      327     1     1     0     1     0     8    0
pfosfp      40      846    0      423     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfstitem    24       45    0        7     1     0     1     1     0     8    0
pfstkey    112       45    0        7     2     0     2     2     0     8    0
pfstate    328       45    0        7     4     0     4     4     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      330    0      114    17     3    14    14     0     8    0
art_table   32      331    0      114     2     0     2     2     0     8    0
art_node    16       68    0       28     1     0     1     1     0     8    0
sysvmsgpl   40       28    0       16     1     0     1     1     0     8    0
semupl     112        3    0        3     1     1     0     1     0     8    0
semapl     112       91    0       81     1     0     1     1     0     8    0
shmpl      112       18    0        4     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1942    0      537    46     0    46    46     0     8    0
ffsino     272     1942    0      537    95     0    95    95     0     8    0
nchpl      144     2689    0     1084    61     0    61    61     0     8    0
uvmvnodes   72     2237    0        0    41     0    41    41     0     8    0
vnodes     208     2237    0        0   118     0   118   118     0     8    0
namei      1024    7929    0     7929     1     0     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
vcpupl     1984       3    0        0     1     0     1     1     0     8    0
vmpool     552        3    0        0     1     0     1     1     0     8    0
scsiplug    64        1    0        1     1     0     1     1     0     8    1
scxspl     208     8246    0     8246     8     6     2     6     0     8    2
plimitpl   152       45    0       37     1     0     1     1     0     8    0
sigapl     432      569    0      554     3     1     2     3     0     8    0
futexpl     56     8427    0     8427     1     0     1     1     0     8    1
knotepl    112      132    0      113     1     0     1     1     0     8    0
kqueuepl   104      126    0      124     1     0     1     1     0     8    0
pipepl     160      616    0      597     2     0     2     2     0     8    1
fdescpl    488      570    0      554     3     0     3     3     0     8    0
filepl     152     4671    0     4571     7     1     6     6     0     8    2
lockfpl    104      176    0      175     1     0     1     1     0     8    0
lockfspl    48       43    0       42     1     0     1     1     0     8    0
sessionpl  128       20    0        9     1     0     1     1     0     8    0
pgrppl      48       25    0       14     1     0     1     1     0     8    0
ucredpl     96      316    0      307     1     0     1     1     0     8    0
zombiepl   144      554    0      554     1     0     1     1     0     8    1
processpl  928      586    0      554     5     0     5     5     0     8    0
procpl     648     1400    0     1359     5     0     5     5     0     8    1
srpgc       80        2    0        2     1     1     0     1     0     8    0
sosppl     144        6    0        6     1     1     0     1     0     8    0
sockpl     384     1393    0     1373     7     2     5     5     0     8    2
mcl64k     65536      6    0        0     1     0     1     1     0     8    0
mcl16k     16384      2    0        0     1     0     1     1     0     8    0
mcl12k     12288      4    0        0     1     0     1     1     0     8    0
mcl9k      9216       2    0        0     1     0     1     1     0     8    0
mcl8k      8192       6    0        0     1     0     1     1     0     8    0
mcl4k      4096       7    0        0     1     0     1     1     0     8    0
mcl2k2     2112       4    0        0     1     0     1     1     0     8    0
mcl2k      2048     166    0        0    20     0    20    20     0     8    0
mtagpl      80       15    0        0     1     0     1     1     0     8    0
mbufpl     256      257    0        0    15     0    15    15     0     8    0
bufpl      280     7067    0     1312   412     0   412   412     0     8    0
anonpl      16    83360    0    66481    92     2    90    90     0   124    7
amapchunkpl 152    3824    0     3681    14     7     7    12     0   158    0
amappl16   192     3148    0     2043    72     8    64    68     0     8    8
amappl14   176       69    0       63     1     0     1     1     0     8    0
amappl13   168       48    0       47     1     0     1     1     0     8    0
amappl12   160       15    0       11     1     0     1     1     0     8    0
amappl11   152      212    0      196     1     0     1     1     0     8    0
amappl10   144       15    0        8     1     0     1     1     0     8    0
amappl9    136      746    0      741     1     0     1     1     0     8    0
amappl8    128      315    0      282     2     0     2     2     0     8    0
amappl7    120       48    0       42     1     0     1     1     0     8    0
amappl6    112      212    0      202     1     0     1     1     0     8    0
amappl5    104      157    0      140     1     0     1     1     0     8    0
amappl4     96      873    0      843     2     1     1     2     0     8    0
amappl3     88      123    0      116     1     0     1     1     0     8    0
amappl2     80     3480    0     3417     3     1     2     3     0     8    0
amappl1     72    22653    0    22235    26    16    10    20     0     8    0
amappl      80     1697    0     1647     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       19    0        4     1     0     1     1     0     8    0
uaddrrnd    24      573    0      554     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      573    0      554     1     0     1     1     0     8    0
vmmpekpl   168     9234    0     9199     2     0     2     2     0     8    0
vmmpepl    168    79961    0    77735   164    21   143   143     0   357   39
vmsppl     368      569    0      554     2     0     2     2     0     8    0
pdppl      4096    1153    0     1111     6     0     6     6     0     8    0
pvpl        32   251959    0   232187   211     2   209   209     0   265   17
pmappl     232      572    0      554     3     1     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      168    0        6     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
2019/11/30 12:16 openbsd f4ae6ec74ba8 3a75be00 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.