* drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c:1807:41: sparse: sparse: invalid access past the end of 'mask' (16 16)
@ 2022-01-12 16:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-12 16:19 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 6226 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Srujana Challa <schalla@marvell.com>
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: Shijith Thotton <sthotton@marvell.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: daadb3bd0e8d3e317e36bc2c1542e86c528665e5
commit: d9d7749773e8895aaedc11f1d2885a9eee5c73ac crypto: octeontx2 - add apis for custom engine groups
date: 5 weeks ago
:::::: branch date: 15 hours ago
:::::: commit date: 5 weeks ago
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20220113/202201130053.4gSoTezs-lkp(a)intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d9d7749773e8895aaedc11f1d2885a9eee5c73ac
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d9d7749773e8895aaedc11f1d2885a9eee5c73ac
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash drivers/crypto/marvell/octeontx2/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c:1807:41: sparse: sparse: invalid access past the end of 'mask' (16 16)
vim +/mask +1807 drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
d9d7749773e889 Srujana Challa 2021-12-01 1757
d9d7749773e889 Srujana Challa 2021-12-01 1758 void otx2_cpt_print_uc_dbg_info(struct otx2_cptpf_dev *cptpf)
d9d7749773e889 Srujana Challa 2021-12-01 1759 {
d9d7749773e889 Srujana Challa 2021-12-01 1760 struct otx2_cpt_eng_grps *eng_grps = &cptpf->eng_grps;
d9d7749773e889 Srujana Challa 2021-12-01 1761 struct otx2_cpt_eng_grp_info *mirrored_grp;
d9d7749773e889 Srujana Challa 2021-12-01 1762 char engs_info[2 * OTX2_CPT_NAME_LENGTH];
d9d7749773e889 Srujana Challa 2021-12-01 1763 struct otx2_cpt_eng_grp_info *grp;
d9d7749773e889 Srujana Challa 2021-12-01 1764 struct otx2_cpt_engs_rsvd *engs;
d9d7749773e889 Srujana Challa 2021-12-01 1765 u32 mask[4];
d9d7749773e889 Srujana Challa 2021-12-01 1766 int i, j;
d9d7749773e889 Srujana Challa 2021-12-01 1767
d9d7749773e889 Srujana Challa 2021-12-01 1768 pr_debug("Engine groups global info");
d9d7749773e889 Srujana Challa 2021-12-01 1769 pr_debug("max SE %d, max IE %d, max AE %d", eng_grps->avail.max_se_cnt,
d9d7749773e889 Srujana Challa 2021-12-01 1770 eng_grps->avail.max_ie_cnt, eng_grps->avail.max_ae_cnt);
d9d7749773e889 Srujana Challa 2021-12-01 1771 pr_debug("free SE %d", eng_grps->avail.se_cnt);
d9d7749773e889 Srujana Challa 2021-12-01 1772 pr_debug("free IE %d", eng_grps->avail.ie_cnt);
d9d7749773e889 Srujana Challa 2021-12-01 1773 pr_debug("free AE %d", eng_grps->avail.ae_cnt);
d9d7749773e889 Srujana Challa 2021-12-01 1774
d9d7749773e889 Srujana Challa 2021-12-01 1775 for (i = 0; i < OTX2_CPT_MAX_ENGINE_GROUPS; i++) {
d9d7749773e889 Srujana Challa 2021-12-01 1776 grp = &eng_grps->grp[i];
d9d7749773e889 Srujana Challa 2021-12-01 1777 pr_debug("engine_group%d, state %s", i,
d9d7749773e889 Srujana Challa 2021-12-01 1778 grp->is_enabled ? "enabled" : "disabled");
d9d7749773e889 Srujana Challa 2021-12-01 1779 if (grp->is_enabled) {
d9d7749773e889 Srujana Challa 2021-12-01 1780 mirrored_grp = &eng_grps->grp[grp->mirror.idx];
d9d7749773e889 Srujana Challa 2021-12-01 1781 pr_debug("Ucode0 filename %s, version %s",
d9d7749773e889 Srujana Challa 2021-12-01 1782 grp->mirror.is_ena ?
d9d7749773e889 Srujana Challa 2021-12-01 1783 mirrored_grp->ucode[0].filename :
d9d7749773e889 Srujana Challa 2021-12-01 1784 grp->ucode[0].filename,
d9d7749773e889 Srujana Challa 2021-12-01 1785 grp->mirror.is_ena ?
d9d7749773e889 Srujana Challa 2021-12-01 1786 mirrored_grp->ucode[0].ver_str :
d9d7749773e889 Srujana Challa 2021-12-01 1787 grp->ucode[0].ver_str);
d9d7749773e889 Srujana Challa 2021-12-01 1788 if (is_2nd_ucode_used(grp))
d9d7749773e889 Srujana Challa 2021-12-01 1789 pr_debug("Ucode1 filename %s, version %s",
d9d7749773e889 Srujana Challa 2021-12-01 1790 grp->ucode[1].filename,
d9d7749773e889 Srujana Challa 2021-12-01 1791 grp->ucode[1].ver_str);
d9d7749773e889 Srujana Challa 2021-12-01 1792 }
d9d7749773e889 Srujana Challa 2021-12-01 1793
d9d7749773e889 Srujana Challa 2021-12-01 1794 for (j = 0; j < OTX2_CPT_MAX_ETYPES_PER_GRP; j++) {
d9d7749773e889 Srujana Challa 2021-12-01 1795 engs = &grp->engs[j];
d9d7749773e889 Srujana Challa 2021-12-01 1796 if (engs->type) {
d9d7749773e889 Srujana Challa 2021-12-01 1797 get_engs_info(grp, engs_info,
d9d7749773e889 Srujana Challa 2021-12-01 1798 2 * OTX2_CPT_NAME_LENGTH, j);
d9d7749773e889 Srujana Challa 2021-12-01 1799 pr_debug("Slot%d: %s", j, engs_info);
d9d7749773e889 Srujana Challa 2021-12-01 1800 bitmap_to_arr32(mask, engs->bmap,
d9d7749773e889 Srujana Challa 2021-12-01 1801 eng_grps->engs_num);
d9d7749773e889 Srujana Challa 2021-12-01 1802 if (is_dev_otx2(cptpf->pdev))
d9d7749773e889 Srujana Challa 2021-12-01 1803 pr_debug("Mask: %8.8x %8.8x %8.8x %8.8x",
d9d7749773e889 Srujana Challa 2021-12-01 1804 mask[3], mask[2], mask[1],
d9d7749773e889 Srujana Challa 2021-12-01 1805 mask[0]);
d9d7749773e889 Srujana Challa 2021-12-01 1806 else
d9d7749773e889 Srujana Challa 2021-12-01 @1807 pr_debug("Mask: %8.8x %8.8x %8.8x %8.8x %8.8x",
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-12 16:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 16:19 drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c:1807:41: sparse: sparse: invalid access past the end of 'mask' (16 16) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.