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:   Sat, 6 Jun 2020 05:53:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Stephen Rothwell <sfr@...b.auug.org.au>
Cc:     kbuild-all@...ts.01.org, netdev@...r.kernel.org,
        Steffen Klassert <steffen.klassert@...unet.com>
Subject: [ipsec:master 2/2] arch/c6x/include/asm/unaligned.h:43:17: sparse:
 sparse: cast truncates bits from constant value (5c0 becomes c0)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git master
head:   a4902d914e508f3691fa7ef885a76d2b7e735805
commit: a4902d914e508f3691fa7ef885a76d2b7e735805 [2/2] xfrm: merge fixup for "remove output_finish indirection from xfrm_state_afinfo"
config: c6x-randconfig-s031-20200605 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-246-g41f651b4-dirty
        git checkout a4902d914e508f3691fa7ef885a76d2b7e735805
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=c6x CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> arch/c6x/include/asm/unaligned.h:43:17: sparse: sparse: cast truncates bits from constant value (5c0 becomes c0)
   arch/c6x/include/asm/unaligned.h:43:17: sparse: sparse: cast truncates bits from constant value (600 becomes 0)
   arch/c6x/include/asm/unaligned.h:43:17: sparse: sparse: cast truncates bits from constant value (525 becomes 25)
   arch/c6x/include/asm/unaligned.h:43:17: sparse: sparse: cast truncates bits from constant value (2100 becomes 0)

vim +43 arch/c6x/include/asm/unaligned.h

a7f626c1948ab61 Aurelien Jacquiot 2011-10-04  38  
a7f626c1948ab61 Aurelien Jacquiot 2011-10-04  39  static inline void put_unaligned_be16(u16 val, void *p)
a7f626c1948ab61 Aurelien Jacquiot 2011-10-04  40  {
a7f626c1948ab61 Aurelien Jacquiot 2011-10-04  41  	u8 *_p = p;
a7f626c1948ab61 Aurelien Jacquiot 2011-10-04  42  	_p[0] = val >> 8;
a7f626c1948ab61 Aurelien Jacquiot 2011-10-04 @43  	_p[1] = val;
a7f626c1948ab61 Aurelien Jacquiot 2011-10-04  44  }
a7f626c1948ab61 Aurelien Jacquiot 2011-10-04  45  

:::::: The code at line 43 was first introduced by commit
:::::: a7f626c1948ab6178d2338831c5ffea7385e9f7f C6X: headers

:::::: TO: Aurelien Jacquiot <a-jacquiot@...com>
:::::: CC: Mark Salter <msalter@...hat.com>

---
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" (24072 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ