From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4349DC433EF for ; Tue, 8 Feb 2022 01:50:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7D2076B0073; Mon, 7 Feb 2022 20:50:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 781876B0075; Mon, 7 Feb 2022 20:50:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 621966B0078; Mon, 7 Feb 2022 20:50:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 5108A6B0073 for ; Mon, 7 Feb 2022 20:50:09 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 1A2E312065C for ; Tue, 8 Feb 2022 01:50:09 +0000 (UTC) X-FDA: 79117932138.01.785D22D Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf07.hostedemail.com (Postfix) with ESMTP id 8BC8640006 for ; Tue, 8 Feb 2022 01:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644285008; x=1675821008; h=date:from:to:cc:subject:message-id:mime-version; bh=PeLjm367U55yBtJqIxiPRB2hvccMy6zA6D8uelEZ8I0=; b=Nzm6jTQ/AorrnHmrF1PWyeLOZ2h32LoiLZHi+o+llifdQUqCJEhgOgIh amQbsKw2qMUboaut2nCkWH0CP3S78yU/3FzgdzuevvOLOWOZeG8G1BqfR SQOF8psxzBHTcEj71ai8cL2PUG/QSjvSfGBsfAHEd1KWqviUgAmw8lrTw mHvbnSEPns2FQvo5EP03XLOpXpSOxy5A0cM9vWJcaz09mOOv67vCyxNa4 cG2Adzk8vdFb10YW1V2EkN+goZFsi0e3w+tYKhpjR0Shtezql/iRRf4qF 0o9EoVaS7r+2frbGPa8EJxPcDuNEwbtIrzpnmtKJf/F8srRysiDFcEH9I w==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="273375840" X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="273375840" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 17:50:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="499404201" Received: from lkp-server01.sh.intel.com (HELO 9dd77a123018) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 07 Feb 2022 17:50:04 -0800 Received: from kbuild by 9dd77a123018 with local (Exim 4.92) (envelope-from ) id 1nHFds-0001CF-7a; Tue, 08 Feb 2022 01:50:04 +0000 Date: Tue, 8 Feb 2022 09:49:38 +0800 From: kernel test robot To: Stephen Rothwell Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 4211/4212] include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' Message-ID: <202202080910.X71Dr91P-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-User: Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Nzm6jTQ/"; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf07.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8BC8640006 X-Stat-Signature: 5ittrkqbrktq9i8dzxhcstzoknnpgu4w X-HE-Tag: 1644285007-960396 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b3c0a155ef77550d48f6eb7c6fdd6075764a5622 commit: 2080104cef88386d398c18976a57cc80fec4291f [4211/4212] Merge branch 'akpm-current/current' config: arm-randconfig-r034-20220207 (https://download.01.org/0day-ci/archive/20220208/202202080910.X71Dr91P-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2080104cef88386d398c18976a57cc80fec4291f git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 2080104cef88386d398c18976a57cc80fec4291f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/gfp.h:6, from include/linux/radix-tree.h:12, from include/linux/fs.h:15, from include/linux/highmem.h:5, from net/ceph/messenger.c:6: net/ceph/messenger.c: In function 'ceph_msgr_init': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ -- In file included from include/linux/gfp.h:6, from include/linux/radix-tree.h:12, from include/linux/fs.h:15, from include/linux/highmem.h:5, from include/linux/bvec.h:10, from include/linux/blk_types.h:10, from include/linux/blkdev.h:9, from drivers/md/dm-kcopyd.c:14: drivers/md/dm-kcopyd.c: In function 'dm_kcopyd_init': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ -- In file included from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from drivers/md/dm-crypt.c:12: drivers/md/dm-crypt.c: In function 'crypt_iv_eboiv_gen': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ -- In file included from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from fs/direct-io.c:24: fs/direct-io.c: In function 'dio_zero_block': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ fs/direct-io.c: In function 'do_direct_IO': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ -- In file included from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from fs/iomap/direct-io.c:6: fs/iomap/direct-io.c: In function 'iomap_dio_zero': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ -- In file included from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from block/blk-lib.c:6: block/blk-lib.c: In function '__blkdev_issue_zero_pages': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ -- In file included from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from security/keys/encrypted-keys/encrypted.c:15: security/keys/encrypted-keys/encrypted.c: In function 'derived_key_encrypt.constprop': >> include/linux/mmzone.h:1431:23: warning: array subscript 32 is outside array bounds of 'struct mem_section[32][1]' [-Warray-bounds] 1431 | unsigned long map = section->section_mem_map; | ^~~ include/linux/mmzone.h:1389:27: note: while referencing 'mem_section' 1389 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ vim +1431 include/linux/mmzone.h 29751f6991e845 Andy Whitcroft 2005-06-23 1428 29751f6991e845 Andy Whitcroft 2005-06-23 1429 static inline struct page *__section_mem_map_addr(struct mem_section *section) 29751f6991e845 Andy Whitcroft 2005-06-23 1430 { 29751f6991e845 Andy Whitcroft 2005-06-23 @1431 unsigned long map = section->section_mem_map; 29751f6991e845 Andy Whitcroft 2005-06-23 1432 map &= SECTION_MAP_MASK; 29751f6991e845 Andy Whitcroft 2005-06-23 1433 return (struct page *)map; 29751f6991e845 Andy Whitcroft 2005-06-23 1434 } 29751f6991e845 Andy Whitcroft 2005-06-23 1435 :::::: The code at line 1431 was first introduced by commit :::::: 29751f6991e845f7d002a6ae520bf996b38c8dcd [PATCH] sparsemem hotplug base :::::: TO: Andy Whitcroft :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org