syzbot


panic: pool_cache_item_magic_chpeackni:c : mkbeurfnpell cdipaug fnroestei cli assts emrodtiiofni e"d!:_ kietermn eald_d

Status: closed as dup on 2019/12/25 05:29
Reported-by: syzbot+906ac06571fe2274b628@syzkaller.appspotmail.com
First crash: 1794d, last: 1794d
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_magic_chpeackni:c : mkbeurfnpell  cdipaug fnroestei cli assts emrodtiiofni e"d!:_ kietermn eald_drlo c0kx_ffhefflfdd()80" 7fba4filc8e0d0:+ f16il e0 x0"/!s=0yxzk9aclbdl8e5r/34mca8ne4abg2e82r
s
/Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 180709  14751      0           0  0x4000000    1  syz-executor.1
*173392  95099      0        0x12          0    0  sshd
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821cab8d) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82642c50) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline]
pool_cache_get(ffffffff82642c50) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892
pool_get(ffffffff82642c50,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
tcp_output(ffff800000a03980) at tcp_output+0x14e6
tcp_usrreq(fffffd806e970c08,9,fffffd80621da600,0,0,ffff800020ad9b38) at tcp_usrreq+0xa55
sosend(fffffd806e970c08,0,ffff800020b033d8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:524
dofilewritev(ffff800020ad9b38,4,ffff800020b033d8,0,ffff800020b034c0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364
sys_write(ffff800020ad9b38,ffff800020b03470,ffff800020b034c0) at sys_write+0x83 sys/kern/sys_generic.c:284
syscall(ffff800020b03540) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b03540) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc3060, 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{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 0xfffffd807b4fc800+16 0x0!=0x9cbd8534c8e4b282
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821cab8d) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff82642c50) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline]
pool_cache_get(ffffffff82642c50) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892
pool_get(ffffffff82642c50,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
tcp_output(ffff800000a03980) at tcp_output+0x14e6
tcp_usrreq(fffffd806e970c08,9,fffffd80621da600,0,0,ffff800020ad9b38) at tcp_usrreq+0xa55
sosend(fffffd806e970c08,0,ffff800020b033d8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:524
dofilewritev(ffff800020ad9b38,4,ffff800020b033d8,0,ffff800020b034c0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364
sys_write(ffff800020ad9b38,ffff800020b03470,ffff800020b034c0) at sys_write+0x83 sys/kern/sys_generic.c:284
syscall(ffff800020b03540) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020b03540) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc3060, count: -12
ddb{0}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800020b02dd0
rbx               0xffff800020b02e80
rdx               0xffff800020ad9b38
rcx                                0
rax                                0
r8                0xffffffff81bc48af    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0xc25e1885b572d961
r12                     0x3000000008
r13               0xffff800020b02de0
r14                            0x100
r15                              0x1
rip               0xffffffff8148b938    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800020b02dc0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{0}> show proc
PROC (sshd) pid=173392 stat=onproc
    flags process=12<EXEC,SUGID> proc=0
    pri=51, usrpri=51, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ad9648,0xffff800020ad8020
    process=0xffff800020aa3c50 user=0xffff800020afe000, vmspace=0xfffffd806e7a0008
    estcpu=1, cpticks=2, pctcpu=0.6
    user=0, sys=2, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 14751  491598   7760      0  2           0                syz-executor.1
 14751  180709   7760      0  7   0x4000000                syz-executor.1
 67836  160562  16099      0  2           0                syz-executor.0
 67836  469787  16099      0  2   0x4000000                syz-executor.0
  7760  298874  96556      0  3        0x82  nanosleep     syz-executor.1
 38354  405886      0      0  3     0x14200  bored         sosplice
 29117  399467      1      0  3    0x100083  ttyin         getty
 16099  395260  96556      0  3        0x82  nanosleep     syz-executor.0
 96556  259128  56581      0  3        0x82  thrsleep      syz-fuzzer
 96556  106340  56581      0  3   0x4000082  nanosleep     syz-fuzzer
 96556   15249  56581      0  3   0x4000082  thrsleep      syz-fuzzer
 96556  506723  56581      0  3   0x4000082  thrsleep      syz-fuzzer
 96556  471812  56581      0  3   0x4000082  thrsleep      syz-fuzzer
 96556  402968  56581      0  3   0x4000082  nanosleep     syz-fuzzer
 96556  201450  56581      0  3   0x4000082  thrsleep      syz-fuzzer
 96556  301901  56581      0  3   0x4000082  thrsleep      syz-fuzzer
 96556  203885  56581      0  3   0x4000082  kqread        syz-fuzzer
 96556  444617  56581      0  3   0x4000082  thrsleep      syz-fuzzer
 56581  199541  95099      0  3    0x10008a  pause         ksh
*95099  173392  46035      0  7        0x12                sshd
 46035  365262      1      0  3        0x80  select        sshd
 95769  198674  87018     74  3    0x100092  bpf           pflogd
 87018  345406      1      0  3        0x80  netio         pflogd
 49398  207824  77233     73  3    0x100090  kqread        syslogd
 77233  514636      1      0  3    0x100082  netio         syslogd
 55845  369107      1     77  3    0x100090  poll          dhclient
 94977  415790      1      0  3        0x80  poll          dhclient
  6918  285950      0      0  2     0x14200                zerothread
 72175  170591      0      0  3     0x14200  aiodoned      aiodoned
 36124  493923      0      0  3     0x14200  syncer        update
 49152  352496      0      0  3     0x14200  cleaner       cleaner
 50781  210525      0      0  3     0x14200  reaper        reaper
 21238  106950      0      0  3     0x14200  pgdaemon      pagedaemon
 73366   87216      0      0  3     0x14200  bored         crynlk
  9515  504611      0      0  3     0x14200  bored         crypto
 36960  441453      0      0  3  0x40014200  acpi0         acpi0
 86580  459959      0      0  3  0x40014200                idle1
 44272  212278      0      0  3     0x14200  bored         softnet
 14142   79272      0      0  3     0x14200  bored         systqmp
 51610  289966      0      0  3     0x14200  bored         systq
 61503  356982      0      0  3  0x40014200  bored         softclock
 13687  372464      0      0  3  0x40014200                idle0
 81472  377017      0      0  3     0x14200  bored         smr
     1   33302      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
CPU 1:
exclusive sched_lock &sched_lock r = 0 (0xffffffff82638aa0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  sleep_setup+0xe9 sys/kern/kern_synch.c:366
#2  msleep+0xe2 sleep_setup_timeout sys/kern/kern_synch.c:405 [inline]
#2  msleep+0xe2 sys/kern/kern_synch.c:238
#3  taskq_next_work+0xbe sys/kern/kern_task.c:323
#4  taskq_thread+0xe5 sys/kern/kern_task.c:366
#5  proc_trampoline+0x1c
Process 95099 (sshd) thread 0xffff800020ad9b38 (173392)
exclusive rwlock netlock r = 0 (0xffffffff82453b98)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  solock+0x5a sys/kern/uipc_socket2.c:282
#2  sosend+0x559 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{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9512   7049K    8075K  78643K     11627        0
            pcb    13      8K       8K  78643K        95        0
         rtable   110      4K       4K  78643K       382        0
         ifaddr    71     14K      15K  78643K       148        0
       counters    39     33K      33K  78643K        39        0
       ioctlops     0      0K       4K  78643K      1484        0
            iov     0      0K      16K  78643K        81        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1228     77K      77K  78643K      1560        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        96        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     6     17K      25K  78643K       376        0
          sigio     0      0K       0K  78643K        18        0
           proc    60     63K      95K  78643K       526        0
        subproc    32      2K       2K  78643K        51        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        27        0
       in_multi    61      3K       3K  78643K        90        0
    ether_multi     1      0K       0K  78643K         4        0
            mrt     0      0K       0K  78643K         1        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    55    254K     254K  78643K        55        0
           exec     0      0K       1K  78643K       261        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     23K      32K  78643K      2278        0
       UVM aobj    31      2K       2K  78643K        33        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       123        0
            NDP    11      0K       0K  78643K        31        0
           temp   131   3019K    3653K  78643K      8945        0
         kqueue     0      0K       0K  78643K         7        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       13    0        4     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       58    0       56     1     0     1     1     0     8    0
rtentry    112       76    0       31     2     0     2     2     0     8    0
unpcb      120      269    0      259     1     0     1     1     0     8    0
syncache   264        5    0        5     2     1     1     1     0     8    1
tcpqe       32      384    0      384     1     1     0     1     0     8    0
tcpcb      544      334    0      330     1     0     1     1     0     8    0
inpcb      280      994    0      987     4     1     3     3     0     8    2
nd6         48        8    0        5     1     0     1     1     0     8    0
pkpcb       40        1    0        1     1     1     0     1     0     8    0
swfcl       56        2    0        0     1     0     1     1     0     8    0
ppxss      1128       9    0        9     2     2     0     1     0     8    0
pffrag     232       13    0        8     2     1     1     1     0   482    0
pffrnode    88       10    0        8     2     1     1     1     0     8    0
pffrent     40      385    0      355     2     1     1     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       55    0       10     1     0     1     1     0     8    0
pfstkey    112       55    0       10     2     0     2     2     0     8    0
pfstate    328       55    0       10     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      339    0      112    15     0    15    15     0     8    0
art_table   32      340    0      112     2     0     2     2     0     8    0
art_node    16       75    0       33     1     0     1     1     0     8    0
sysvmsgpl   40       36    0       14     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112       90    0       80     1     0     1     1     0     8    0
shmpl      112       31    0        2     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     2008    0      602    46     0    46    46     0     8    0
ffsino     272     2008    0      602    95     1    94    95     0     8    0
nchpl      144     2736    0     1126    61     0    61    61     0     8    0
uvmvnodes   72     2308    0        0    42     0    42    42     0     8    0
vnodes     208     2308    0        0   122     0   122   122     0     8    0
namei      1024    8234    0     8234     2     1     1     1     0     8    1
percpumem   16       30    0        0     1     0     1     1     0     8    0
scsiplug    64        1    0        1     1     1     0     1     0     8    0
scxspl     192     7925    0     7925     7     6     1     5     0     8    1
plimitpl   152       41    0       32     1     0     1     1     0     8    0
sigapl     432      573    0      557     3     1     2     3     0     8    0
futexpl     56     8986    0     8986     1     0     1     1     0     8    1
knotepl    112      100    0       81     1     0     1     1     0     8    0
kqueuepl   104      116    0      114     1     0     1     1     0     8    0
pipepl     160      478    0      459     3     1     2     2     0     8    1
fdescpl    488      574    0      557     3     0     3     3     0     8    0
filepl     152     4784    0     4681     9     3     6     6     0     8    1
lockfpl    104      199    0      198     1     0     1     1     0     8    0
lockfspl    48       74    0       73     1     0     1     1     0     8    0
sessionpl  112       20    0        9     1     0     1     1     0     8    0
pgrppl      48       22    0       11     1     0     1     1     0     8    0
ucredpl     96      418    0      409     1     0     1     1     0     8    0
zombiepl   144      557    0      557     2     1     1     1     0     8    1
processpl  904      590    0      557     4     0     4     4     0     8    0
procpl     632     1437    0     1393     5     0     5     5     0     8    1
srpgc       64        2    0        2     1     1     0     1     0     8    0
sosppl     128       14    0       14     3     2     1     1     0     8    1
sockpl     384     1333    0     1314    11     5     6     6     0     8    4
mcl64k     65536     14    0        0     2     0     2     2     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       5    0        0     1     0     1     1     0     8    0
mcl4k      4096       8    0        0     1     0     1     1     0     8    0
mcl2k2     2112       3    0        0     1     0     1     1     0     8    0
mcl2k      2048     175    0        0    21     0    21    21     0     8    0
mtagpl      80       30    0        0     1     0     1     1     0     8    0
mbufpl     256      798    0        0    50     1    49    49     0     8    0
bufpl      280     7098    0     1344   411     0   411   411     0     8    0
anonpl      16    83909    0    64481   101    11    90    94     0   125   11
amapchunkpl 152    3679    0     3520    16     6    10    12     0   158    2
amappl16   192     3077    0     2017    70    13    57    65     0     8    4
amappl15   184      435    0      428     1     0     1     1     0     8    0
amappl14   176       37    0       34     1     0     1     1     0     8    0
amappl12   160      145    0      142     1     0     1     1     0     8    0
amappl11   152       58    0       43     1     0     1     1     0     8    0
amappl10   144       14    0        8     1     0     1     1     0     8    0
amappl9    136      615    0      611     1     0     1     1     0     8    0
amappl8    128      137    0      108     1     0     1     1     0     8    0
amappl7    120      110    0       99     1     0     1     1     0     8    0
amappl6    112       59    0       49     1     0     1     1     0     8    0
amappl5    104      291    0      275     1     0     1     1     0     8    0
amappl4     96      700    0      665     1     0     1     1     0     8    0
amappl3     88      270    0      260     1     0     1     1     0     8    0
amappl2     80     3831    0     3746     3     1     2     3     0     8    0
amappl1     72    22761    0    22299    27    17    10    21     0     8    0
amappl      80     1704    0     1657     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       32    0        2     1     0     1     1     0     8    0
uaddrrnd    24      574    0      557     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      574    0      557     1     0     1     1     0     8    0
vmmpekpl   168     8906    0     8877     2     0     2     2     0     8    0
vmmpepl    168    79302    0    76948   154    33   121   140     0   357   18
vmsppl     368      573    0      557     2     0     2     2     0     8    0
pdppl      4096    1155    0     1114     7     1     6     6     0     8    0
pvpl        32   241962    0   219251   226    12   214   219     0   265   27
pmappl     232      573    0      557     2     1     1     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      210    0        7     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
2019/12/25 04:56 openbsd b4dcb8dabafe be5c2c81 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.