syzbot


panic: pool_cache_item_mapgaincic_:ch ekecrkn: elm budfiaplg nocsptu ifc reaes sleirsttio mn od"!if_ikeedr:ne ilt_lemo c

Status: closed as dup on 2020/05/19 06:31
Reported-by: syzbot+61d13019aeed6011f607@syzkaller.appspotmail.com
First crash: 1649d, last: 1649d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
pool: cpu free list modified: mbufpl syz 15863 1570d 1856d

Sample crash report:
panic: pool_cache_item_mapgaincic_:ch ekecrkn: elm budfiaplg nocsptu ifc reaes sleirsttio mn od"!if_ikeedr:ne ilt_lemo cka_hddelrd (0)xf"ff fffaidl8e06d:8 ef8il1eb 0"0/+s16yz k0axl0l!e=0rx/m22a9ncag6bear3s/5bm4ul8t81ic5o5r
e/Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 238103  95809      0           0  0x4000000    1  syz-executor.1
* 10152  30975      0           0  0x4000000    0  syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821fa911) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82649900) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff82649900) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff82649900,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283
ip6_fragment(fffffd806d65c300,28,11,500) at ip6_fragment+0xec sys/netinet6/ip6_output.c:810
ip6_output(fffffd806d65c300,0,fffffd806f6e3a48,0,0,fffffd806f6e39d8) at ip6_output+0x1b92 sys/netinet6/ip6_output.c:736
udp6_output(fffffd806f6e39d8,fffffd806525e800,0,0) at udp6_output+0x36a sys/netinet6/udp6_output.c:236
sosend(fffffd8066ca8980,0,ffff800023187cc0,0,0,8a) at sosend+0x671 sys/kern/uipc_socket.c:549
sendit(ffff800020ec69d8,a,ffff800023187da0,a,ffff800023187e80) at sendit+0x52b sys/kern/uipc_syscalls.c:657
sys_sendto(ffff800020ec69d8,ffff800023187e38,ffff800023187e80) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522
syscall(ffff800023187f00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023187f00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfd659630ab0, count: 2
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{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8068e81b00+16 0x0!=0x229c6ba35b488155
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821fa911) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82649900) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff82649900) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff82649900,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283
ip6_fragment(fffffd806d65c300,28,11,500) at ip6_fragment+0xec sys/netinet6/ip6_output.c:810
ip6_output(fffffd806d65c300,0,fffffd806f6e3a48,0,0,fffffd806f6e39d8) at ip6_output+0x1b92 sys/netinet6/ip6_output.c:736
udp6_output(fffffd806f6e39d8,fffffd806525e800,0,0) at udp6_output+0x36a sys/netinet6/udp6_output.c:236
sosend(fffffd8066ca8980,0,ffff800023187cc0,0,0,8a) at sosend+0x671 sys/kern/uipc_socket.c:549
sendit(ffff800020ec69d8,a,ffff800023187da0,a,ffff800023187e80) at sendit+0x52b sys/kern/uipc_syscalls.c:657
sys_sendto(ffff800020ec69d8,ffff800023187e38,ffff800023187e80) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522
syscall(ffff800023187f00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023187f00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfd659630ab0, count: -13
ddb{0}> show registers
rdi               0xffffffff817718b7    db_enter+0x17
rsi                           0x78dc    __ALIGN_SIZE+0x68dc
rbp               0xffff800023187620
rbx               0xffff8000231876d0
rdx                           0x78dd    __ALIGN_SIZE+0x68dd
rcx               0xffff800020f72000
rax               0xffff800020f72000
r8                0xffffffff8136065f    kprintf+0x16f
r9                               0x1
r10                              0x2
r11               0xa1264cdc3a1afd6b
r12                     0x3000000008
r13               0xffff800023187630
r14                            0x100
r15                              0x1
rip               0xffffffff817718b8    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800023187610
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.0) pid=10152 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=32, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ec6c48,0xffff800020ec6028
    process=0xffff800020e92ba8 user=0xffff800023182000, vmspace=0xfffffd807f0008a0
    estcpu=36, cpticks=7, pctcpu=0.0
    user=0, sys=2, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 95809  242746  48444      0  2           0                syz-executor.1
 95809  238103  48444      0  7   0x4000000                syz-executor.1
 30975  500394  64692      0  2           0                syz-executor.0
*30975   10152  64692      0  7   0x4000000                syz-executor.0
 70430  210873      0      0  3     0x14200  bored         sosplice
 48444  350673  53095      0  3        0x82  nanosleep     syz-executor.1
 64692  320720  53095      0  3        0x82  nanosleep     syz-executor.0
 53095   25743  66944      0  3        0x82  thrsleep      syz-fuzzer
 53095  423466  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  189674  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  490459  66944      0  3   0x4000082  kqread        syz-fuzzer
 53095  294815  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  194630  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  347606  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  177281  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  508259  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  421349  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 53095  511420  66944      0  3   0x4000082  thrsleep      syz-fuzzer
 66944  484666  70351      0  3    0x10008a  pause         ksh
 70351  229382  15950      0  3        0x92  select        sshd
 72719  487189      1      0  3    0x100083  ttyin         getty
 15950  215115      1      0  3        0x80  select        sshd
 14228  345600  92529     74  3    0x100092  bpf           pflogd
 92529  359695      1      0  3        0x80  netio         pflogd
 29601   42136  96937     73  3    0x100090  kqread        syslogd
 96937   27125      1      0  3    0x100082  netio         syslogd
 33521   50337      1     77  3    0x100090  poll          dhclient
 97859   72608      1      0  3        0x80  poll          dhclient
 60576  110894      0      0  3     0x14200  bored         smr
 61956  386441      0      0  2     0x14200                zerothread
 78131  113619      0      0  3     0x14200  aiodoned      aiodoned
 67353   64128      0      0  3     0x14200  syncer        update
 19963  450001      0      0  3     0x14200  cleaner       cleaner
 85928  473425      0      0  3     0x14200  reaper        reaper
 60329  394435      0      0  3     0x14200  pgdaemon      pagedaemon
 84259  283489      0      0  3     0x14200  bored         crynlk
 17983   14672      0      0  3     0x14200  bored         crypto
 18108    2157      0      0  3  0x40014200  acpi0         acpi0
 14202  389691      0      0  3  0x40014200                idle1
  8633  104372      0      0  3     0x14200  bored         softnet
  9234  464225      0      0  3     0x14200  bored         systqmp
 30105   44675      0      0  3     0x14200  bored         systq
 46723  464241      0      0  3  0x40014200  bored         softclock
 41176  134400      0      0  3  0x40014200                idle0
     1  477621      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 30975 (syz-executor.0) thread 0xffff800020ec69d8 (10152)
exclusive rwlock netlock r = 0 (0xffffffff824a2978)
#0  witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline]
#0  witness_lock+0x4c7 sys/kern/subr_witness.c:1164
#1  solock+0x5a sys/kern/uipc_socket2.c:282
#2  sosend+0x559 sys/kern/uipc_socket.c:537
#3  sendit+0x52b sys/kern/uipc_syscalls.c:657
#4  sys_sendto+0x80 sys/kern/uipc_syscalls.c:522
#5  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#6  Xsyscall+0x128
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9520   6424K    6940K  78643K     10985        0
            pcb    13      8K       8K  78643K        58        0
         rtable    96      3K       4K  78643K       274        0
         ifaddr    69     13K      14K  78643K       104        0
       counters    43     33K      34K  78643K        53        0
       ioctlops     0      0K       4K  78643K      1487        0
            iov     0      0K      16K  78643K        28        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1220     77K      77K  78643K      1319        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     2      1K       1K  78643K         2        0
            sem    12      0K       1K  78643K        30        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1824    197K     290K  78643K     13058        0
      file desc     6     17K      25K  78643K       205        0
          sigio     0      0K       0K  78643K        18        0
           proc    61     63K      83K  78643K       448        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        20        0
       in_multi    32      2K       2K  78643K        69        0
    ether_multi     1      0K       0K  78643K         6        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       227        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   125     39K      43K  78643K      1619        0
       UVM aobj    13      7K       7K  78643K        19        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        28        0
            NDP    12      0K       0K  78643K        23        0
           temp   110   3044K    3116K  78643K      8687        0
         kqueue     5      5K       8K  78643K        21        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{0}> 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
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       39    0       37     1     0     1     1     0     8    0
rtentry    112       54    0       16     2     0     2     2     0     8    0
unpcb      120      142    0      130     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32       73    0       73     2     2     0     1     0     8    0
tcpcb      544      222    0      218     1     0     1     1     0     8    0
inpcb      280      441    0      432     2     0     2     2     0     8    1
nd6         48        9    0        7     1     0     1     1     0     8    0
ppxss      1128       1    0        1     1     1     0     1     0     8    0
pffrag     232        1    0        1     1     0     1     1     0   482    1
pffrnode    88        1    0        1     1     0     1     1     0     8    1
pffrent     40       45    0       45     1     0     1     1     0     8    1
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       33    0        4     1     0     1     1     0     8    0
pfstkey    112       33    0        4     1     0     1     1     0     8    0
pfstate    328       33    0        4     3     0     3     3     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      251    0       95    13     0    13    13     0     8    0
art_table   32      252    0       95     2     0     2     2     0     8    0
art_node    16       53    0       17     1     0     1     1     0     8    0
sysvmsgpl   40       10    0       10     1     1     0     1     0     8    0
semupl     112        3    0        3     1     1     0     1     0     8    0
semapl     112       22    0       12     1     0     1     1     0     8    0
shmpl      112       17    0        6     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1677    0      267    89     0    89    89     0     8    0
ffsino     272     1677    0      267    95     0    95    95     0     8    0
nchpl      144     2145    0      538    60     0    60    60     0     8    0
uvmvnodes   72     1792    0        0    33     0    33    33     0     8    0
vnodes     208     1792    0        0    95     0    95    95     0     8    0
namei      1024    5745    0     5745     1     0     1     1     0     8    1
percpumem   16       37    0        5     1     0     1     1     0     8    0
vcpupl     1984       2    0        0     1     0     1     1     0     8    0
vmpool     560        6    0        4     1     0     1     1     0     8    0
scxspl     192     5959    0     5959     6     4     2     5     0     8    2
plimitpl   152       31    0       23     1     0     1     1     0     8    0
sigapl     424      421    0      388     4     0     4     4     0     8    0
futexpl     56     3085    0     3085     1     0     1     1     0     8    1
knotepl    112       84    0       64     1     0     1     1     0     8    0
kqueuepl   144       47    0       44     1     0     1     1     0     8    0
pipelkpl    48      111    0      101     1     0     1     1     0     8    0
pipepl     120      222    0      203     1     0     1     1     0     8    0
fdescpl    496      405    0      388     3     0     3     3     0     8    0
filepl     152     2416    0     2311     5     0     5     5     0     8    0
lockfpl    104       59    0       58     1     0     1     1     0     8    0
lockfspl    48       22    0       21     1     0     1     1     0     8    0
sessionpl  112       18    0        7     1     0     1     1     0     8    0
pgrppl      48       22    0       11     1     0     1     1     0     8    0
ucredpl     96      161    0      151     1     0     1     1     0     8    0
zombiepl   144      388    0      388     1     0     1     1     0     8    1
processpl  984      421    0      388     5     0     5     5     0     8    0
procpl     624      834    0      789     5     0     5     5     0     8    1
sosppl     128        5    0        5     2     1     1     1     0     8    1
sockpl     400      624    0      601     5     0     5     5     0     8    2
mcl64k     65536      8    0        0     1     0     1     1     0     8    0
mcl12k     12288      3    0        0     1     0     1     1     0     8    0
mcl9k      9216       2    0        0     1     0     1     1     0     8    0
mcl8k      8192       1    0        0     1     0     1     1     0     8    0
mcl4k      4096       4    0        0     1     0     1     1     0     8    0
mcl2k2     2112       1    0        0     1     0     1     1     0     8    0
mcl2k      2048     169    0        0    21     0    21    21     0     8    0
mtagpl      80       40    0        0     1     0     1     1     0     8    0
mbufpl     256      281    0        0    17     0    17    17     0     8    0
bufpl      280     3772    0      135   260     0   260   260     0     8    0
anonpl      16    61063    0    47044    73     1    72    72     0   124   14
amapchunkpl 152    2145    0     2003    10     3     7    10     0   158    1
amappl16   192     2371    0     1626    53     9    44    49     0     8    6
amappl15   184        1    0        1     1     1     0     1     0     8    0
amappl14   176       24    0       19     1     0     1     1     0     8    0
amappl13   168      110    0      107     1     0     1     1     0     8    0
amappl12   160        9    0        4     1     0     1     1     0     8    0
amappl11   152       54    0       39     1     0     1     1     0     8    0
amappl10   144       31    0       23     1     0     1     1     0     8    0
amappl9    136      382    0      381     1     0     1     1     0     8    0
amappl8    128      347    0      315     2     0     2     2     0     8    0
amappl7    120      125    0      112     1     0     1     1     0     8    0
amappl6    112       22    0       19     2     1     1     1     0     8    0
amappl5    104      307    0      289     1     0     1     1     0     8    0
amappl4     96      569    0      540     1     0     1     1     0     8    0
amappl3     88      103    0       98     1     0     1     1     0     8    0
amappl2     80     2294    0     2215     2     0     2     2     0     8    0
amappl1     72    19005    0    18551    24    14    10    18     0     8    0
amappl      80     1089    0     1041     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       18    0        6     1     0     1     1     0     8    0
uaddrrnd    24      411    0      392     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      411    0      392     1     0     1     1     0     8    0
vmmpekpl   168     6924    0     6890     2     0     2     2     0     8    0
vmmpepl    168    56404    0    54393   111    12    99   104     0   357   11
vmsppl     368      410    0      392     2     0     2     2     0     8    0
pdppl      4096     830    0      786     6     0     6     6     0     8    0
pvpl        32   187048    0   169307   174     0   174   174     0   265   30
pmappl     232      410    0      392     2     0     2     2     0     8    0
extentpl    40       53    0       36     1     0     1     1     0     8    0
phpool     112      266    0        3     8     0     8     8     0     8    0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821fa911) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82649900) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff82649900) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff82649900,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283
ip6_fragment(fffffd806d65c300,28,11,500) at ip6_fragment+0xec sys/netinet6/ip6_output.c:810
ip6_output(fffffd806d65c300,0,fffffd806f6e3a48,0,0,fffffd806f6e39d8) at ip6_output+0x1b92 sys/netinet6/ip6_output.c:736
udp6_output(fffffd806f6e39d8,fffffd806525e800,0,0) at udp6_output+0x36a sys/netinet6/udp6_output.c:236
sosend(fffffd8066ca8980,0,ffff800023187cc0,0,0,8a) at sosend+0x671 sys/kern/uipc_socket.c:549
sendit(ffff800020ec69d8,a,ffff800023187da0,a,ffff800023187e80) at sendit+0x52b sys/kern/uipc_syscalls.c:657
sys_sendto(ffff800020ec69d8,ffff800023187e38,ffff800023187e80) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522
syscall(ffff800023187f00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800023187f00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xfd659630ab0, count: -13
ddb{0}> machine ddbcpu 1

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/17 12:19 openbsd 487c6a4bcac2 37bccd4e .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.