Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp970690rdb; Tue, 19 Sep 2023 16:30:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFquhD17IA8JtO9kaf7g4iWgsHDa6etTqrV5TWcMdXbN/K05PtNZLUedWdY8MAf1bcSFx8J X-Received: by 2002:a17:902:ce91:b0:1b8:76fc:5bf6 with SMTP id f17-20020a170902ce9100b001b876fc5bf6mr1037782plg.43.1695166233486; Tue, 19 Sep 2023 16:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695166233; cv=none; d=google.com; s=arc-20160816; b=mI23Sotz9pS9mUSii4P8sck9t5gmgH0N9IIlwKYdh2xxGaDc2pY8THC21GaOf50OGE fNFAQ85kUBdpWCmpt/ZPcBo/XZSrJVoISz1k+HoobWWVzePDCGPEbVJF6U+CeTmsW2gh j77UN0Fyp+Po67wwCB32E/fy0S+vr9CnqjSXeWlIZm6GiVDKOGDBsG/2aER3WmevK9Bx ebALmssfE7Ysz4nAipsocAC541gN38IQx6CVcTSQl8HKxm+F0A/6HvrGVyB9BojdY0Eu 3L+W6NjuhE/bKE4fbEJ4Z6OYOLQN6EXeh2fzhU+xFV5zRqQyMmdj0f28MKPrmTXCrVtT 4X/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=sYIbeBqksAMIxLiYR0uvTZqQHw80nT9zARBda53hBA4=; fh=tPJRsPP5Qx6bBEKClYZK2u0FwBmNVnbDhriiLpj9P54=; b=vS1ylCIqA64agI3LKQtCWbNj3ZYn6MXgiMuRvmGszv1XeNmw5iVfTv3cCK0JprcP// uL4Qt6FHfWomPijJVp8CJl3SX5QHSLspko3sB2B2qbS2sBenngojlidptgktOe25GjdR 8K2jFLXWX3lcdZ541mmqX3qVaT6DqWUD/GF03MTNfEOr8DEP9OJ0GIiF9k/8VDsMJOnD 2/se7lsOwcSksSw//uFgJw4w2mC35yYJG2zXeUxYcPAg8JQaxpPrvfRqcsGgn9WcY8Hv EuWsAiP8YegdW0lZBdgyGJ6UaT9CNeOpRtwa+m5EUsrv+JrtEt+O6stwTM8PeJu38yi9 az/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YRAWd9YP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i1-20020a170902cf0100b001a6f0eab385si10712191plg.55.2023.09.19.16.30.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 16:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YRAWd9YP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6A6AC80417FF; Tue, 19 Sep 2023 03:43:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbjISKnN (ORCPT + 99 others); Tue, 19 Sep 2023 06:43:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjISKnL (ORCPT ); Tue, 19 Sep 2023 06:43:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2767BE8 for ; Tue, 19 Sep 2023 03:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695120185; x=1726656185; h=date:from:to:cc:subject:message-id:mime-version; bh=HweMeV3StQaTObldLMr5619inUbeHhG0ufZI8LmTruE=; b=YRAWd9YPovFU3oXMAPK36IVyVEBO5IqCGiEbjHE+6tJ8cIUlqsxiJNz1 +zqlkTOX4hmlRDv3xyD/rK3PhDo8saSEDkPjWF3oyURk2uPUC2GXEwHJm LI4xc7NkqzfFpvgnVCPBUJKULJuvdJeFqAgJVElNRiryR9j5TrsS2CF7F 3PiAeFUcAZxttAfYQpGcqpE4JjZiBsQdObwA77YLA2EOgRzuWEYrqqna9 Qqs4qb0feDrJ1L+mYbcrKeygBCvi9aD/1EIY89Kd8iuFMXKf3zgQvZ6S3 IFxszfM1kj35Fh8GGY+xyOD7lKdgONtl2d02R16Z7J88fr/Dvi90gdpO4 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="379810572" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="379810572" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 03:43:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="739637974" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="739637974" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 19 Sep 2023 03:43:02 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qiYC4-0007EC-1r; Tue, 19 Sep 2023 10:43:00 +0000 Date: Tue, 19 Sep 2023 18:42:19 +0800 From: kernel test robot To: Amir Goldstein Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Alexander Larsson , Miklos Szeredi Subject: arch/alpha/include/asm/rwonce.h:25:35: warning: array subscript 0 is outside array bounds of 'struct inode[11885788707287082]' Message-ID: <202309191848.cMwd2D4d-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 19 Sep 2023 03:43:14 -0700 (PDT) tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2cf0f715623872823a72e451243bbf555d10d032 commit: 0af950f57fefabab628f1963af881e6b9bfe7f38 ovl: move ovl_entry into ovl_inode date: 3 months ago config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230919/202309191848.cMwd2D4d-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230919/202309191848.cMwd2D4d-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309191848.cMwd2D4d-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/compiler.h:246, from include/linux/build_bug.h:5, from include/linux/container_of.h:5, from include/linux/list.h:5, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from fs/overlayfs/util.c:7: In function 'ovl_upperdentry_dereference', inlined from 'ovl_dentry_upper' at fs/overlayfs/util.c:266:9, inlined from 'ovl_path_type' at fs/overlayfs/util.c:184:6: >> arch/alpha/include/asm/rwonce.h:25:35: warning: array subscript 0 is outside array bounds of 'struct inode[11885788707287082]' [-Warray-bounds=] 25 | __unqual_scalar_typeof(x) __x = \ | ^~~ include/asm-generic/rwonce.h:50:9: note: in expansion of macro '__READ_ONCE' 50 | __READ_ONCE(x); \ | ^~~~~~~~~~~ fs/overlayfs/ovl_entry.h:163:16: note: in expansion of macro 'READ_ONCE' 163 | return READ_ONCE(oi->__upperdentry); | ^~~~~~~~~ vim +25 arch/alpha/include/asm/rwonce.h d6462858851549 Will Deacon 2019-10-30 11 d6462858851549 Will Deacon 2019-10-30 12 /* d6462858851549 Will Deacon 2019-10-30 13 * Alpha is apparently daft enough to reorder address-dependent loads d6462858851549 Will Deacon 2019-10-30 14 * on some CPU implementations. Knock some common sense into it with d6462858851549 Will Deacon 2019-10-30 15 * a memory barrier in READ_ONCE(). d6462858851549 Will Deacon 2019-10-30 16 * d6462858851549 Will Deacon 2019-10-30 17 * For the curious, more information about this unusual reordering is d6462858851549 Will Deacon 2019-10-30 18 * available in chapter 15 of the "perfbook": d6462858851549 Will Deacon 2019-10-30 19 * d6462858851549 Will Deacon 2019-10-30 20 * https://kernel.org/pub/linux/kernel/people/paulmck/perfbook/perfbook.html d6462858851549 Will Deacon 2019-10-30 21 * d6462858851549 Will Deacon 2019-10-30 22 */ d6462858851549 Will Deacon 2019-10-30 23 #define __READ_ONCE(x) \ d6462858851549 Will Deacon 2019-10-30 24 ({ \ d6462858851549 Will Deacon 2019-10-30 @25 __unqual_scalar_typeof(x) __x = \ d6462858851549 Will Deacon 2019-10-30 26 (*(volatile typeof(__x) *)(&(x))); \ d6462858851549 Will Deacon 2019-10-30 27 mb(); \ d6462858851549 Will Deacon 2019-10-30 28 (typeof(x))__x; \ d6462858851549 Will Deacon 2019-10-30 29 }) d6462858851549 Will Deacon 2019-10-30 30 :::::: The code at line 25 was first introduced by commit :::::: d6462858851549c62d73eaa14b31132b0f32d6b6 alpha: Override READ_ONCE() with barriered implementation :::::: TO: Will Deacon :::::: CC: Will Deacon -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki