linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* include/linux/mmzone.h:1244:29: sparse: sparse: invalid access past the end of 'mem_section' (512 512)
@ 2021-03-12  4:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-12  4:35 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: kbuild-all, linux-kernel, Russell King

[-- Attachment #1: Type: text/plain, Size: 2960 bytes --]

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@intel.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@shadowen.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 23420 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-12  4:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12  4:35 include/linux/mmzone.h:1244:29: sparse: sparse: invalid access past the end of 'mem_section' (512 512) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).