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:   Thu, 28 May 2020 18:15:33 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Milan Broz <gmazyland@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Mike Snitzer <snitzer@...hat.com>,
        Mikulas Patocka <mpatocka@...hat.com>
Subject: drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted
 __le32

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b0c3ba31be3e45a130e13b278cf3b90f69bda6f6
commit: bbb1658461ac85ef7e0563bb11283f94ea5eb651 dm crypt: Implement Elephant diffuser for Bitlocker compatibility
date:   4 months ago
config: parisc-randconfig-s032-20200528 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-240-gf0fe1cd9-dirty
        git checkout bbb1658461ac85ef7e0563bb11283f94ea5eb651
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=parisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)

   ./arch/parisc/include/generated/uapi/asm/unistd_32.h:380:41: sparse: sparse: no newline at end of file
   drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32
   drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32
   drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32
   drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32
   drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32
   drivers/md/dm-crypt.c:782:24: sparse: sparse: cast to restricted __le32
>> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32
>> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32
>> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32
>> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32
>> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32
>> drivers/md/dm-crypt.c:792:24: sparse: sparse: cast from restricted __le32

vim +792 drivers/md/dm-crypt.c

   785	
   786	static void diffuser_cpu_to_disk(__le32 *d, size_t n)
   787	{
   788	#ifndef __LITTLE_ENDIAN
   789		int i;
   790	
   791		for (i = 0; i < n; i++)
 > 792			d[i] = cpu_to_le32((u32)d[i]);
   793	#endif
   794	}
   795	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (33209 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ