lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 19 Oct 2022 04:18:52 +0800
From:   kernel test robot <lkp@...el.com>
To:     Linus Walleij <linus.walleij@...aro.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [arm-integrator:dlink-dwl-8610ap 10/10]
 drivers/mtd/parsers/parser_trx.c:37:9: sparse: sparse: non size-preserving
 pointer to integer cast

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git dlink-dwl-8610ap
head:   62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf
commit: 62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf [10/10] mtd: parsers: trx: Rewrite partition parsing
config: sparc64-randconfig-s041-20221018
compiler: sparc64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator dlink-dwl-8610ap
        git checkout 62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/mtd/parsers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

sparse warnings: (new ones prefixed by >>)
>> drivers/mtd/parsers/parser_trx.c:37:9: sparse: sparse: non size-preserving pointer to integer cast

vim +37 drivers/mtd/parsers/parser_trx.c

    34	
    35	static void parser_trx_dump_trx(struct trx_header *trx)
    36	{
  > 37		pr_debug("TRX at %08x\n", (u32)trx);
    38		pr_debug("  MAGIC %08x\n", trx->magic);
    39		pr_debug("  LENGTH %08x\n", trx->length);
    40		pr_debug("  CRC32 %08x\n", trx->crc32);
    41		pr_debug("  FLAGS %04x\n", trx->flags);
    42		pr_debug("  VERSION %04x\n", trx->version);
    43		pr_debug("  OFFSET[0] %08x\n", trx->offset[0]);
    44		pr_debug("  OFFSET[1] %08x\n", trx->offset[1]);
    45		pr_debug("  OFFSET[2] %08x\n", trx->offset[2]);
    46	}
    47	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (121269 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ