syzbot


panic: pool_cachpe_aniitec:m_ mkaerginecl_c dheicakg:no mstbuifpcl acsspue rftiroeen "l!i_kste rmnoedli_flioecd:k _hie

Status: closed as dup on 2020/02/15 09:17
Reported-by: syzbot+2d7aa927f750f0899bb2@syzkaller.appspotmail.com
First crash: 1742d, last: 1742d
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_cachpe_aniitec:m_ mkaerginecl_c dheicakg:no mstbuifpcl  acsspue rftiroeen  "l!i_kste rmnoedli_flioecd:k _hietledm ()a"dd fra i0xleffd:f fffdil8e0 7"1d/sby46z0k0+al16le r0/xm0!an=0agxe6r4s27/am4ubclatidcof2r8ef/dke1r
n
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 360714  73354      0           0  0x4000000    0  syz-executor.0
*444974  87138      0     0x14000      0x200    1  softnet
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821cf9a6) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff826160b8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff826160b8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff826160b8,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_copym(fffffd8063a1b400,b00,cc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline]
m_copym(fffffd8063a1b400,b00,cc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667
tcp_output(ffff800000a04760) at tcp_output+0x15ba sys/netinet/tcp_output.c:673
tcp_input(ffff800020a4f878,ffff800020a4f884,6,2) at tcp_input+0x2353
ip_deliver(ffff800020a4f878,ffff800020a4f884,6,2) at ip_deliver+0x353 sys/netinet/ip_input.c:668
ip_ours(ffff800020a4f878,ffff800020a4f884,ffff800020a28000,0) at ip_ours+0x412
ip_input_if(ffff800020a4f878,ffff800020a4f884,4,0,ffff80000017b2a8) at ip_input_if+0x6ce
ipv4_input(ffff80000017b2a8,fffffd806d1f1900) at ipv4_input+0x48 sys/netinet/ip_input.c:215
ether_input(ffff80000017b2a8,fffffd806d1f1900,0) at ether_input+0x345 sys/net/if_ethersubr.c:461
if_input_process(ffff80000017b2a8,ffff800020a4f9a8) at if_input_process+0xfb if_ih_input sys/net/if.c:909 [inline]
if_input_process(ffff80000017b2a8,ffff800020a4f9a8) at if_input_process+0xfb sys/net/if.c:943
ifiq_process(ffff80000017b6a0) at ifiq_process+0x80 sys/net/ifq.c:646
end trace frame: 0xffff800020a4fa60, 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{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 0xfffffd8071db4600+16 0x0!=0x6427a4bcadf28fd1
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821cf9a6) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff826160b8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff826160b8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff826160b8,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_copym(fffffd8063a1b400,b00,cc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline]
m_copym(fffffd8063a1b400,b00,cc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667
tcp_output(ffff800000a04760) at tcp_output+0x15ba sys/netinet/tcp_output.c:673
tcp_input(ffff800020a4f878,ffff800020a4f884,6,2) at tcp_input+0x2353
ip_deliver(ffff800020a4f878,ffff800020a4f884,6,2) at ip_deliver+0x353 sys/netinet/ip_input.c:668
ip_ours(ffff800020a4f878,ffff800020a4f884,ffff800020a28000,0) at ip_ours+0x412
ip_input_if(ffff800020a4f878,ffff800020a4f884,4,0,ffff80000017b2a8) at ip_input_if+0x6ce
ipv4_input(ffff80000017b2a8,fffffd806d1f1900) at ipv4_input+0x48 sys/netinet/ip_input.c:215
ether_input(ffff80000017b2a8,fffffd806d1f1900,0) at ether_input+0x345 sys/net/if_ethersubr.c:461
if_input_process(ffff80000017b2a8,ffff800020a4f9a8) at if_input_process+0xfb if_ih_input sys/net/if.c:909 [inline]
if_input_process(ffff80000017b2a8,ffff800020a4f9a8) at if_input_process+0xfb sys/net/if.c:943
ifiq_process(ffff80000017b6a0) at ifiq_process+0x80 sys/net/ifq.c:646
taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369
end trace frame: 0x0, count: -15
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800020a4f110
rbx               0xffff800020a4f1c0
rdx               0xffff800020a28000
rcx                                0
rax                                0
r8                0xffffffff8165436f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0x94167ee4b57882c1
r12                     0x3000000008
r13               0xffff800020a4f120
r14                            0x100
r15                              0x1
rip               0xffffffff81e17a48    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800020a4f100
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (softnet) pid=444974 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    pri=32, usrpri=51, nice=20
    forw=0xffffffffffffffff, list=0xffff800020a28270,0xffff800020a284f0
    process=0xffff800020a2b680 user=0xffff800020a4a000, vmspace=0xffffffff82614658
    estcpu=1, cpticks=3, pctcpu=0.12
    user=0, sys=2, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 73354  366620  86979      0  3        0x80  fsleep        syz-executor.0
 73354  360714  86979      0  7   0x4000000                syz-executor.0
 27944  455864      0      0  3     0x14200  bored         sosplice
 99920  262166   9848      0  2         0x2                syz-executor.1
 86979  144797   9848      0  2       0x482                syz-executor.0
  9848  121158  62151      0  3        0x82  kqread        syz-fuzzer
  9848  289954  62151      0  2   0x4000482                syz-fuzzer
  9848  265529  62151      0  3   0x4000082  thrsleep      syz-fuzzer
  9848  410653  62151      0  3   0x4000082  thrsleep      syz-fuzzer
  9848   78615  62151      0  3   0x4000082  thrsleep      syz-fuzzer
  9848  344261  62151      0  3   0x4000082  thrsleep      syz-fuzzer
  9848  313417  62151      0  2   0x4000482                syz-fuzzer
  9848   70318  62151      0  3   0x4000082  thrsleep      syz-fuzzer
  9848  277944  62151      0  3   0x4000082  thrsleep      syz-fuzzer
  9848  441700  62151      0  3   0x4000082  thrsleep      syz-fuzzer
 62151  234520  27831      0  3    0x10008a  pause         ksh
 27831   26210  92777      0  3        0x92  select        sshd
 41025  220033      1      0  3    0x100083  ttyin         getty
 92777  506289      1      0  3        0x80  select        sshd
 72549  224206  34815     74  3    0x100092  bpf           pflogd
 34815  298829      1      0  3        0x80  netio         pflogd
  8677  321089  53404     73  3    0x100090  kqread        syslogd
 53404  310002      1      0  3    0x100082  netio         syslogd
 49864   16013      1     77  3    0x100090  poll          dhclient
 42313  285650      1      0  3        0x80  poll          dhclient
 95943  104652      0      0  2     0x14200                zerothread
 53407  316058      0      0  3     0x14200  aiodoned      aiodoned
 36786   35397      0      0  3     0x14200  syncer        update
 28472  144413      0      0  3     0x14200  cleaner       cleaner
 70428   94783      0      0  3     0x14200  reaper        reaper
 47608  424323      0      0  3     0x14200  pgdaemon      pagedaemon
 65085  252677      0      0  3     0x14200  bored         crynlk
 80347  445604      0      0  3     0x14200  bored         crypto
 91066  509109      0      0  3  0x40014200  acpi0         acpi0
 70318  423567      0      0  3  0x40014200                idle1
*87138  444974      0      0  7     0x14200                softnet
 52483  325555      0      0  3     0x14200  bored         systqmp
 67689  220139      0      0  3     0x14200  bored         systq
 64976   11437      0      0  3  0x40014200  bored         softclock
 95782  325689      0      0  3  0x40014200                idle0
 61958  507230      0      0  3     0x14200  bored         smr
     1    6038      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 73354 (syz-executor.0) thread 0xffff800020ae7608 (366620)
shared rwlock vmmaplk r = 0 (0xfffffd807efff748)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1448
#2  uvm_fault+0x7f sys/uvm/uvm_fault.c:524
#3  pageflttrap+0x1b8 sys/arch/amd64/amd64/trap.c:221
#4  usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
#5  recall_trap+0x8
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82619670)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180
#2  usertrap+0x21a sys/arch/amd64/amd64/trap.c:384
#3  recall_trap+0x8
Process 87138 (softnet) thread 0xffff800020a28000 (444974)
shared rwlock netlock r = 0 (0xffffffff824c2118)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  if_input_process+0x84 sys/net/if.c:941
#2  ifiq_process+0x80 sys/net/ifq.c:646
#3  taskq_thread+0x9c sys/kern/kern_task.c:369
#4  proc_trampoline+0x1c
shared rwlock softnet r = 0 (0xffff80000002b0e0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  taskq_thread+0x8f sys/kern/kern_task.c:368
#2  proc_trampoline+0x1c
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9506   6418K    7196K  78643K     11257        0
            pcb    13      9K       9K  78643K       117        0
         rtable   110      4K       4K  78643K       301        0
         ifaddr    78     17K      17K  78643K       126        0
       counters    43     33K      34K  78643K        59        0
       ioctlops     0      0K       4K  78643K      1485        0
            iov     0      0K      16K  78643K        26        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1231     77K      78K  78643K      1392        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         7        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      1K       1K  78643K        59        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     5     13K      25K  78643K       266        0
          sigio     0      0K       0K  78643K        15        0
           proc    62     63K      95K  78643K       457        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        58        0
       in_multi    82      3K       4K  78643K       142        0
    ether_multi     1      0K       0K  78643K        21        0
            mrt     0      0K       0K  78643K         7        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       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   118     54K      70K  78643K      1777        0
       UVM aobj    24      4K       4K  78643K        30        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        66        0
            NDP    10      0K       0K  78643K        23        0
           temp   121   3021K    3086K  78643K     11504        0
         kqueue     3      4K      20K  78643K        27        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        9    0        1     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       41    0       39     1     0     1     1     0     8    0
rtentry    112       59    0       14     2     0     2     2     0     8    0
unpcb      120      231    0      221     1     0     1     1     0     8    0
syncache   264        8    0        8     2     2     0     1     0     8    0
tcpqe       32      456    0      456     1     1     0     1     0     8    0
tcpcb      544      186    0      182     1     0     1     1     0     8    0
inpcb      280      914    0      907     5     2     3     3     0     8    2
rttmr       72        2    0        2     2     1     1     1     0     8    1
nd6         48        7    0        3     1     0     1     1     0     8    0
pkpcb       40        4    0        4     1     1     0     1     0     8    0
ppxss      1128       1    0        1     1     1     0     1     0     8    0
pffrag     232        6    0        6     2     2     0     1     0   482    0
pffrnode    88        6    0        6     2     2     0     1     0     8    0
pffrent     40      184    0      184     2     2     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       57    0       20     1     0     1     1     0     8    0
pfstkey    112       57    0       20     2     0     2     2     0     8    0
pfstate    328       57    0       20     4     0     4     4     0     8    0
pfrule     1360      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      234    0       42    14     1    13    13     0     8    0
art_table   32      236    0       42     2     0     2     2     0     8    0
art_node    16       58    0       17     1     0     1     1     0     8    0
sysvmsgpl   40       24    0       18     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112       55    0       45     1     0     1     1     0     8    0
shmpl      112       28    0        6     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1763    0      359    46     0    46    46     0     8    0
ffsino     272     1763    0      359    95     1    94    95     0     8    0
nchpl      144     2334    0      729    61     1    60    61     0     8    0
uvmvnodes   72     1940    0        0    36     0    36    36     0     8    0
vnodes     208     1940    0        0   103     0   103   103     0     8    0
namei      1024    6724    0     6724     1     0     1     1     0     8    1
percpumem   16       40    0        8     1     0     1     1     0     8    0
vcpupl     1984       2    0        0     1     0     1     1     0     8    0
vmpool     560        2    0        0     1     0     1     1     0     8    0
scsiplug    64        1    0        1     1     1     0     1     0     8    0
scxspl     192     6937    0     6937    10     9     1     7     0     8    1
plimitpl   152       31    0       23     1     0     1     1     0     8    0
sigapl     432      465    0      450     3     1     2     3     0     8    0
futexpl     56     9063    0     9062     1     0     1     1     0     8    0
knotepl    112       83    0       64     1     0     1     1     0     8    0
kqueuepl   144       61    0       59     1     0     1     1     0     8    0
pipelkpl    48      154    0      144     1     0     1     1     0     8    0
pipepl     120      308    0      289     1     0     1     1     0     8    0
fdescpl    496      466    0      450     3     0     3     3     0     8    0
filepl     152     3804    0     3703     8     2     6     7     0     8    2
lockfpl    104       60    0       59     1     0     1     1     0     8    0
lockfspl    48       23    0       22     1     0     1     1     0     8    0
sessionpl  112       18    0        7     1     0     1     1     0     8    0
pgrppl      48       20    0        9     1     0     1     1     0     8    0
ucredpl     96      236    0      227     1     0     1     1     0     8    0
zombiepl   144      450    0      450     1     0     1     1     0     8    1
processpl  960      482    0      450     5     0     5     5     0     8    0
procpl     624     1012    0      970     4     0     4     4     0     8    0
sosppl     128       27    0       27     3     2     1     1     0     8    1
sockpl     400     1202    0     1183     9     4     5     6     0     8    3
mcl64k     65536     12    0        0     2     0     2     2     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       4    0        0     1     0     1     1     0     8    0
mcl4k      4096      12    0        0     2     0     2     2     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     214    0        0    26     0    26    26     0     8    0
mtagpl      80       45    0        0     1     0     1     1     0     8    0
mbufpl     256      413    0        0    25     0    25    25     0     8    0
bufpl      280     4599    0      174   317     0   317   317     0     8    0
anonpl      16    55722    0    38756    71     1    70    70     0   125    0
amapchunkpl 152    2639    0     2505    22    10    12    20     0   158    6
amappl16   192     2089    0     1160    49     1    48    48     0     8    1
amappl15   184        2    0        1     2     1     1     1     0     8    0
amappl14   176        7    0        5     2     1     1     1     0     8    0
amappl13   168      259    0      255     1     0     1     1     0     8    0
amappl12   160        7    0        4     1     0     1     1     0     8    0
amappl11   152       73    0       54     1     0     1     1     0     8    0
amappl10   144       17    0       12     1     0     1     1     0     8    0
amappl9    136      403    0      398     1     0     1     1     0     8    0
amappl8    128      320    0      296     1     0     1     1     0     8    0
amappl7    120      117    0      107     1     0     1     1     0     8    0
amappl6    112       24    0       19     1     0     1     1     0     8    0
amappl5    104      144    0      128     1     0     1     1     0     8    0
amappl4     96      966    0      931     2     1     1     2     0     8    0
amappl3     88      121    0      115     1     0     1     1     0     8    0
amappl2     80     2787    0     2718     3     1     2     3     0     8    0
amappl1     72    19797    0    19365    26    16    10    20     0     8    0
amappl      80     1258    0     1213     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       29    0        6     1     0     1     1     0     8    0
uaddrrnd    24      468    0      450     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      468    0      450     1     0     1     1     0     8    0
vmmpekpl   168     7620    0     7585     2     0     2     2     0     8    0
vmmpepl    168    63799    0    61729   119    22    97   112     0   357    6
vmsppl     368      467    0      450     2     0     2     2     0     8    0
pdppl      4096     943    0      902     6     0     6     6     0     8    0
pvpl        32   184745    0   164625   175     4   171   171     0   265    6
pmappl     232      467    0      450     2     0     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      197    0        9     6     0     6     6     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/14 23:54 openbsd ed57633150db 5d7b90f1 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.