syzbot


panic: pool_cache_item_magic_check: mbufpl cpu free plainsitc :mo dkierfnieeld: idtieamg nadosdtr ic0x affssffefrdt8i0o

Status: closed as dup on 2020/02/09 09:06
Reported-by: syzbot+3ab4908893c053f4129e@syzkaller.appspotmail.com
First crash: 1749d, last: 1749d
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_check: mbufpl cpu free plainsitc :mo dkierfnieeld:  idtieamg nadosdtr ic0x affssffefrdt8i0on6 85"!f6_k90e0rn+e16l_ l0xo0c!k_=0hex1ld66(6)d"f f8a5ie2le1bdb: 0f7bil
e
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 421859   9353      0           0  0x4000000    1  syz-executor.1
*361817  15677      0           0  0x4000000    0  syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821d1d12) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff8263b560) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff8263b560) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff8263b560,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
ip_fragment(fffffd8063e17a00,ffff80000017b2a8,5b4) at ip_fragment+0x13a sys/netinet/ip_output.c:682
ip_output(fffffd8063e17a00,0,fffffd806f6e4c78,20,0,fffffd806f6e4c08) at ip_output+0xfc1 sys/netinet/ip_output.c:501
rip_output(fffffd8063e17a00,fffffd8063991b20,ffff8000219ad728,ffff800023dae000) at rip_output+0x252 sys/netinet/raw_ip.c:289
rip_usrreq(fffffd8063991b20,9,fffffd8063e17a00,0,0,ffff800020ac3878) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538
sosend(fffffd8063991b20,0,ffff8000219ad8a0,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549
sendit(ffff800020ac3878,8,ffff8000219ad980,0,ffff8000219ada60) at sendit+0x52b sys/kern/uipc_syscalls.c:657
sys_sendto(ffff800020ac3878,ffff8000219ada18,ffff8000219ada60) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522
syscall(ffff8000219adae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000219adae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x99025d244c0, count: 1
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 0xfffffd80685f6900+16 0x0!=0x1666df85e21bb07b
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821d1d12) at panic+0x15c sys/kern/subr_prf.c:207
pool_cache_get(ffffffff8263b560) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline]
pool_cache_get(ffffffff8263b560) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884
pool_get(ffffffff8263b560,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
ip_fragment(fffffd8063e17a00,ffff80000017b2a8,5b4) at ip_fragment+0x13a sys/netinet/ip_output.c:682
ip_output(fffffd8063e17a00,0,fffffd806f6e4c78,20,0,fffffd806f6e4c08) at ip_output+0xfc1 sys/netinet/ip_output.c:501
rip_output(fffffd8063e17a00,fffffd8063991b20,ffff8000219ad728,ffff800023dae000) at rip_output+0x252 sys/netinet/raw_ip.c:289
rip_usrreq(fffffd8063991b20,9,fffffd8063e17a00,0,0,ffff800020ac3878) at rip_usrreq+0x46a sys/netinet/raw_ip.c:538
sosend(fffffd8063991b20,0,ffff8000219ad8a0,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549
sendit(ffff800020ac3878,8,ffff8000219ad980,0,ffff8000219ada60) at sendit+0x52b sys/kern/uipc_syscalls.c:657
sys_sendto(ffff800020ac3878,ffff8000219ada18,ffff8000219ada60) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522
syscall(ffff8000219adae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000219adae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x99025d244c0, count: -14
ddb{0}> show registers
rdi               0xffffffff81e05b47    db_enter+0x17
rsi                           0x8a21    __ALIGN_SIZE+0x7a21
rbp               0xffff8000219ad2b0
rbx               0xffff8000219ad360
rdx                           0x8a22    __ALIGN_SIZE+0x7a22
rcx               0xffff800023dae000
rax               0xffff800023dae000
r8                0xffffffff81f53faf    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0x30d3771c5da8a8b2
r12                     0x3000000008
r13               0xffff8000219ad2c0
r14                            0x100
r15                              0x1
rip               0xffffffff81e05b48    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff8000219ad2a0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.0) pid=361817 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=32, usrpri=86, nice=20
    forw=0xffffffffffffffff, list=0xffff800020ac3398,0xffff800020ac2778
    process=0xffff800020aa96a0 user=0xffff8000219a8000, vmspace=0xfffffd807f000a10
    estcpu=36, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  9353  372871  13532      0  2           0                syz-executor.1
  9353  421859  13532      0  7   0x4000000                syz-executor.1
 15677  354920  59418      0  2           0                syz-executor.0
*15677  361817  59418      0  7   0x4000000                syz-executor.0
 65191  149495      0      0  3     0x14200  bored         sosplice
 59418  164234  89639      0  3        0x82  nanosleep     syz-executor.0
 13532  250175  89639      0  3        0x82  nanosleep     syz-executor.1
 89639  180000  98526      0  3        0x82  thrsleep      syz-fuzzer
 89639  430246  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 89639  415422  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 89639    8477  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 89639  301511  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 89639  332171  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 89639  141557  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 89639  418075  98526      0  3   0x4000082  kqread        syz-fuzzer
 89639  303958  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 89639  250609  98526      0  3   0x4000082  thrsleep      syz-fuzzer
 98526  288958   3002      0  3    0x10008a  pause         ksh
  3002  243098  35946      0  3        0x92  select        sshd
 47363  134552      1      0  3    0x100083  ttyin         getty
 35946   40778      1      0  3        0x80  select        sshd
 51164  484084  48084     74  3    0x100092  bpf           pflogd
 48084  227107      1      0  3        0x80  netio         pflogd
 90241  404411   7856     73  3    0x100090  kqread        syslogd
  7856  289099      1      0  3    0x100082  netio         syslogd
 73884   15501      1     77  3    0x100090  poll          dhclient
 12618  417943      1      0  3        0x80  poll          dhclient
 23385   77892      0      0  2     0x14200                zerothread
 41877  458022      0      0  3     0x14200  aiodoned      aiodoned
 64778  300820      0      0  3     0x14200  syncer        update
 90179  249984      0      0  3     0x14200  cleaner       cleaner
 40601  359545      0      0  3     0x14200  reaper        reaper
 61760  430282      0      0  3     0x14200  pgdaemon      pagedaemon
 46404  189216      0      0  3     0x14200  bored         crynlk
 60258  429895      0      0  3     0x14200  bored         crypto
 56059   18628      0      0  3  0x40014200  acpi0         acpi0
 51648  373834      0      0  3  0x40014200                idle1
 68118  188249      0      0  3     0x14200  bored         softnet
 50876  373169      0      0  3     0x14200  bored         systqmp
  1123  508714      0      0  3     0x14200  bored         systq
   342  475505      0      0  3  0x40014200  bored         softclock
 71425  305380      0      0  3  0x40014200                idle0
 62046  410139      0      0  3     0x14200  bored         smr
     1  293741      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
Process 15677 (syz-executor.0) thread 0xffff800020ac3878 (361817)
exclusive rwlock netlock r = 0 (0xffffffff824742a8)
#0  witness_lock+0x52e 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  9573   7204K    7591K  78643K     11994        0
            pcb    13      8K       8K  78643K       102        0
         rtable   100      3K       4K  78643K       407        0
         ifaddr    76     14K      16K  78643K       164        0
       counters    43     33K      34K  78643K        71        0
       ioctlops     0      0K       4K  78643K      1482        0
            iov     0      0K      16K  78643K       295        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1225     77K      77K  78643K      1729        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        40        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     6     17K      25K  78643K       381        0
          sigio     0      0K       0K  78643K         9        0
           proc    61     63K      95K  78643K       527        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        46        0
       in_multi    42      2K       2K  78643K       136        0
    ether_multi     1      0K       0K  78643K        15        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       246        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   133     87K     103K  78643K      2317        0
       UVM aobj    38      2K       2K  78643K        40        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       1K  78643K        99        0
            NDP    13      0K       0K  78643K        38        0
           temp   116   3013K    3077K  78643K      9196        0
         kqueue     3      4K      20K  78643K        53        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       12    0        6     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       86    0       46     2     0     2     2     0     8    0
unpcb      120      333    0      322     1     0     1     1     0     8    0
syncache   264        6    0        6     2     1     1     1     0     8    1
tcpqe       32       10    0       10     1     1     0     1     0     8    0
tcpcb      544      186    0      182     2     1     1     2     0     8    0
inpcb      280      571    0      563     3     1     2     2     0     8    1
nd6         48       12    0        9     1     0     1     1     0     8    0
pkpcb       40        2    0        2     1     1     0     1     0     8    0
ppxss      1128       1    0        1     1     1     0     1     0     8    0
pffrag     232       11    0       11     2     1     1     1     0   482    1
pffrnode    88       11    0       11     2     1     1     1     0     8    1
pffrent     40      156    0      156     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       60    0        9     1     0     1     1     0     8    0
pfstkey    112       60    0        9     2     0     2     2     0     8    0
pfstate    328       60    0        8     5     0     5     5     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      418    0      218    16     2    14    16     0     8    0
art_table   32      419    0      218     2     0     2     2     0     8    0
art_node    16       85    0       48     1     0     1     1     0     8    0
sysvmsgpl   40       20    0        9     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112       38    0       28     1     0     1     1     0     8    0
shmpl      112       38    0        2     2     0     2     2     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1984    0      583    46     0    46    46     0     8    0
ffsino     272     1984    0      583    95     0    95    95     0     8    0
nchpl      144     2810    0     1206    61     0    61    61     0     8    0
uvmvnodes   72     2454    0        0    45     0    45    45     0     8    0
vnodes     208     2454    0        0   130     0   130   130     0     8    0
namei      1024    8330    0     8330     1     0     1     1     0     8    1
percpumem   16       46    0       14     1     0     1     1     0     8    0
vcpupl     1984       4    0        0     1     0     1     1     0     8    0
vmpool     560        6    0        2     1     0     1     1     0     8    0
scsiplug    64        1    0        1     1     0     1     1     0     8    1
scxspl     192     8195    0     8195     8     7     1     7     0     8    1
plimitpl   152       46    0       38     1     0     1     1     0     8    0
sigapl     432      577    0      561     3     1     2     3     0     8    0
futexpl     56     7968    0     7968     1     0     1     1     0     8    1
knotepl    112      124    0      105     1     0     1     1     0     8    0
kqueuepl   104      101    0       99     1     0     1     1     0     8    0
pipelkpl    48      138    0      128     1     0     1     1     0     8    0
pipepl     120      276    0      257     2     1     1     2     0     8    0
fdescpl    496      578    0      561     3     0     3     3     0     8    0
filepl     152     4398    0     4295     8     2     6     6     0     8    2
lockfpl    104      150    0      149     1     0     1     1     0     8    0
lockfspl    48       46    0       45     1     0     1     1     0     8    0
sessionpl  112       19    0        8     1     0     1     1     0     8    0
pgrppl      48       25    0       14     1     0     1     1     0     8    0
ucredpl     96      399    0      390     1     0     1     1     0     8    0
zombiepl   144      561    0      561     1     0     1     1     0     8    1
processpl  960      594    0      561     5     0     5     5     0     8    0
procpl     624     1449    0     1405     4     0     4     4     0     8    0
sosppl     128        2    0        2     1     0     1     1     0     8    1
sockpl     400      950    0      929     8     4     4     5     0     8    1
mcl64k     65536     12    0        0     2     0     2     2     0     8    0
mcl16k     16384      1    0        0     1     0     1     1     0     8    0
mcl12k     12288      2    0        0     1     0     1     1     0     8    0
mcl9k      9216       5    0        0     1     0     1     1     0     8    0
mcl8k      8192       2    0        0     1     0     1     1     0     8    0
mcl4k      4096      11    0        0     2     0     2     2     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     243    0        0    30     0    30    30     0     8    0
mtagpl      80       21    0        0     1     0     1     1     0     8    0
mbufpl     256      433    0        0    26     0    26    26     0     8    0
bufpl      280     4948    0      204   339     0   339   339     0     8    0
anonpl      16    77925    0    61365    86    14    72    85     0   125    1
amapchunkpl 152    3817    0     3667    23     3    20    20     0   158   12
amappl16   192     3059    0     2102    59    10    49    58     0     8    1
amappl15   184       60    0       57     1     0     1     1     0     8    0
amappl14   176       35    0       33     1     0     1     1     0     8    0
amappl13   168        8    0        8     1     0     1     1     0     8    1
amappl12   160        4    0        4     1     1     0     1     0     8    0
amappl11   152      248    0      229     1     0     1     1     0     8    0
amappl10   144       18    0       11     1     0     1     1     0     8    0
amappl9    136      755    0      750     1     0     1     1     0     8    0
amappl8    128      276    0      252     1     0     1     1     0     8    0
amappl7    120      111    0       98     1     0     1     1     0     8    0
amappl6    112      254    0      243     1     0     1     1     0     8    0
amappl5    104      152    0      135     1     0     1     1     0     8    0
amappl4     96      833    0      801     1     0     1     1     0     8    0
amappl3     88      125    0      118     1     0     1     1     0     8    0
amappl2     80     3668    0     3583     3     1     2     3     0     8    0
amappl1     72    22791    0    22325    26    16    10    21     0     8    0
amappl      80     1732    0     1679     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       39    0        2     1     0     1     1     0     8    0
uaddrrnd    24      584    0      563     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      584    0      563     1     0     1     1     0     8    0
vmmpekpl   168     8192    0     8161     2     0     2     2     0     8    0
vmmpepl    168    79193    0    76941   150    20   130   130     0   357   32
vmsppl     368      583    0      563     2     0     2     2     0     8    0
pdppl      4096    1175    0     1130     6     0     6     6     0     8    0
pvpl        32   229874    0   210056   201    13   188   201     0   265   20
pmappl     232      583    0      563     2     0     2     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      204    0       10     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/07 23:24 openbsd 5185a7002a54 06150bf1 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.