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]
Message-ID: <202103121235.oqU9JKsO-lkp@intel.com>
Date:   Fri, 12 Mar 2021 12:35:50 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mike Rapoport <rppt@...ux.ibm.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Russell King <rmk+kernel@...linux.org.uk>
Subject: include/linux/mmzone.h:1244:29: sparse: sparse: invalid access past
 the end of 'mem_section' (512 512)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f78d76e72a4671ea52d12752d92077788b4f5d50
commit: 0697e5e06ea0d96e2d1508104ff3b13e4dddc4bb ARM: 8974/1: use SPARSMEM_STATIC when SPARSEMEM is enabled
date:   10 months ago
config: arm-randconfig-s032-20210312 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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.3-262-g5e674421-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0697e5e06ea0d96e2d1508104ff3b13e4dddc4bb
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0697e5e06ea0d96e2d1508104ff3b13e4dddc4bb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm 

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 >>)"
   lib/crypto/chacha20poly1305.c: note: in included file (through include/linux/gfp.h, include/linux/slab.h, include/linux/crypto.h, ...):
>> include/linux/mmzone.h:1244:29: sparse: sparse: invalid access past the end of 'mem_section' (512 512)
>> include/linux/mmzone.h:1244:29: sparse: sparse: invalid access past the end of 'mem_section' (512 512)
>> include/linux/mmzone.h:1244:29: sparse: sparse: invalid access past the end of 'mem_section' (512 512)
--
   lib/crypto/chacha20poly1305-selftest.c: note: in included file (through include/linux/gfp.h, include/linux/mm.h, include/linux/scatterlist.h, ...):
>> include/linux/mmzone.h:1244:29: sparse: sparse: invalid access past the end of 'mem_section' (512 512)

vim +/mem_section +1244 include/linux/mmzone.h

29751f6991e845 Andy Whitcroft 2005-06-23  1241  
29751f6991e845 Andy Whitcroft 2005-06-23  1242  static inline struct page *__section_mem_map_addr(struct mem_section *section)
29751f6991e845 Andy Whitcroft 2005-06-23  1243  {
29751f6991e845 Andy Whitcroft 2005-06-23 @1244  	unsigned long map = section->section_mem_map;
29751f6991e845 Andy Whitcroft 2005-06-23  1245  	map &= SECTION_MAP_MASK;
29751f6991e845 Andy Whitcroft 2005-06-23  1246  	return (struct page *)map;
29751f6991e845 Andy Whitcroft 2005-06-23  1247  }
29751f6991e845 Andy Whitcroft 2005-06-23  1248  

:::::: The code at line 1244 was first introduced by commit
:::::: 29751f6991e845f7d002a6ae520bf996b38c8dcd [PATCH] sparsemem hotplug base

:::::: TO: Andy Whitcroft <apw@...dowen.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ