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 9A340EB64D8 for ; Wed, 21 Jun 2023 05:55:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0F79F8D0003; Wed, 21 Jun 2023 01:55:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0A77C8D0001; Wed, 21 Jun 2023 01:55:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED8AE8D0003; Wed, 21 Jun 2023 01:55:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E03688D0001 for ; Wed, 21 Jun 2023 01:55:06 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A7883403E3 for ; Wed, 21 Jun 2023 05:55:06 +0000 (UTC) X-FDA: 80925691812.24.C5676D1 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf27.hostedemail.com (Postfix) with ESMTP id 8021840004 for ; Wed, 21 Jun 2023 05:55:04 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Q19F5rHt; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1687326904; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=i5fBv05r0CqfN8d+WmT3DcUswLCvf55+DxPKIQfDDtQ=; b=POUu8elNSBYvfWsRX7VucOneKok4uEYhZe9EN8eArtNAe5PicCiWjmbO7Og/CiqdIZAxbN z5bilPpO6ZYQhFsID+uEuppMzYehDFxjPNLLtGiZTVfeotlUKpzHLCdWecPs/nXC1Sh+PH 5fBTffJ8DTSU6oxq9INCXJ7vRr953E8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1687326904; a=rsa-sha256; cv=none; b=x4ACTP/iQT1PvpSY4BMMOe1d6ePkwfkzg8PvndQNIaNHQBc1zSTt6Wbfv25N9TL+hi82z+ zUWK+eLboGeGDlGUbS2ch9RO1Qwf9I5Ba88l4kQkFYWiIykCbF28swcgM461ewjSLXsKUy vL7Bv2gi4A7huZ6N8LMd2Ta9paYy4A8= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Q19F5rHt; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687326904; x=1718862904; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sy/1UFEzQ9uZ8qfK1iWbO3ykD6MhkF5vXQpYygIXJm0=; b=Q19F5rHt748x5j5vIw1vqAIObnWyjg3TzSsC8dOv2rUWrjksDWXfBhcF uaEkDpoFNGrOPQ4a2XBIcrnccgAbDnAz9zIkGAI+zwvGC4Iw9y0psjSNZ TkATL8cIi1HW1klq4yy3+r3M48oT3G9K17PSCggmMt3Lp1RnuyCMD5ThM o6ESSsXQVGiWLVVO4h/Tw8+9UprJT2cIZDF+tmHMItsJiQ16CglODcQAW WtZdrPC5Uq3U+Za2SbNKrYHZBlOvZAq5qQMHvcu2+GesdeMK2QyJPRFiJ F9ZJzfL4gqeSPuyyXwfNND0ikVW8/0s7aCMeuHLizO4wsT68B+jPeA7Oa A==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="357572548" X-IronPort-AV: E=Sophos;i="6.00,259,1681196400"; d="scan'208";a="357572548" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 22:55:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="744035641" X-IronPort-AV: E=Sophos;i="6.00,259,1681196400"; d="scan'208";a="744035641" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 20 Jun 2023 22:54:58 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qBqnx-0006bJ-2E; Wed, 21 Jun 2023 05:54:57 +0000 Date: Wed, 21 Jun 2023 13:53:48 +0800 From: kernel test robot To: Suren Baghdasaryan , akpm@linux-foundation.org Cc: oe-kbuild-all@lists.linux.dev, willy@infradead.org, torvalds@linuxfoundation.org, vegard.nossum@oracle.com, mpe@ellerman.id.au, Liam.Howlett@oracle.com, lrh2000@pku.edu.cn, mgorman@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com, surenb@google.com Subject: Re: [PATCH 3/3] mm: check for VMA being detached before destroying it Message-ID: <202306211345.Xt94CVTt-lkp@intel.com> References: <20230620235726.3873043-3-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230620235726.3873043-3-surenb@google.com> X-Stat-Signature: exm1x6wszut1cfhpzqscgkj7wg3qo8i7 X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 8021840004 X-Rspam-User: X-HE-Tag: 1687326904-715273 X-HE-Meta: U2FsdGVkX18sLXjU/LfqvawTTawXFWTfKRWKSggztIP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vkSUkQ1Sj9+HMMv7fGWyaFrhtupy3orUuUN1NeUcSyDw4jj1AQ3gHDb5LKkB0dDljhoHD2HPGNkI5J0XnbIMUkMk5fcuImPQHjVlWga08rkTpRvS+/pYl/DbcE5S4VPBDJlrK+foSn3wkAsmeEBh+jpp1XaoDhsP0+wJC0p04kHa7WiIpI2kVLbMrEyuLDgdOHrjPEKFxS05OpQQj1ABxZDg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000122, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Suren, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Suren-Baghdasaryan/mm-change-vma_start_read-to-fail-to-lock-a-detached-VMA/20230621-075833 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230620235726.3873043-3-surenb%40google.com patch subject: [PATCH 3/3] mm: check for VMA being detached before destroying it config: sparc-randconfig-r022-20230620 (https://download.01.org/0day-ci/archive/20230621/202306211345.Xt94CVTt-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230621/202306211345.Xt94CVTt-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/202306211345.Xt94CVTt-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/sound/pcm.h:15, from sound/drivers/aloop.c:27: include/linux/mm.h: In function 'vma_init': include/linux/mm.h:753:12: error: 'struct vm_area_struct' has no member named 'detached' 753 | vma->detached = true; | ^~ In file included from include/linux/init.h:5, from sound/drivers/aloop.c:18: sound/drivers/aloop.c: At top level: >> include/linux/build_bug.h:16:51: error: bit-field '' width not an integer constant 16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) | ^ include/linux/compiler.h:231:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO' 231 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) | ^~~~~~~~~~~~~~~~~ include/linux/kernel.h:56:59: note: in expansion of macro '__must_be_array' 56 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ include/linux/moduleparam.h:517:20: note: in expansion of macro 'ARRAY_SIZE' 517 | = { .max = ARRAY_SIZE(array), .num = nump, \ | ^~~~~~~~~~ include/linux/moduleparam.h:501:9: note: in expansion of macro 'module_param_array_named' 501 | module_param_array_named(name, name, type, nump, perm) | ^~~~~~~~~~~~~~~~~~~~~~~~ sound/drivers/aloop.c:46:1: note: in expansion of macro 'module_param_array' 46 | module_param_array(index, int, NULL, 0444); | ^~~~~~~~~~~~~~~~~~ sound/drivers/aloop.c:39:12: warning: 'index' defined but not used [-Wunused-variable] 39 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | ^~~~~ -- In file included from include/sound/pcm.h:15, from sound/drivers/dummy.c:20: include/linux/mm.h: In function 'vma_init': include/linux/mm.h:753:12: error: 'struct vm_area_struct' has no member named 'detached' 753 | vma->detached = true; | ^~ In file included from include/linux/init.h:5, from sound/drivers/dummy.c:7: sound/drivers/dummy.c: At top level: >> include/linux/build_bug.h:16:51: error: bit-field '' width not an integer constant 16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) | ^ include/linux/compiler.h:231:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO' 231 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) | ^~~~~~~~~~~~~~~~~ include/linux/kernel.h:56:59: note: in expansion of macro '__must_be_array' 56 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ include/linux/moduleparam.h:517:20: note: in expansion of macro 'ARRAY_SIZE' 517 | = { .max = ARRAY_SIZE(array), .num = nump, \ | ^~~~~~~~~~ include/linux/moduleparam.h:501:9: note: in expansion of macro 'module_param_array_named' 501 | module_param_array_named(name, name, type, nump, perm) | ^~~~~~~~~~~~~~~~~~~~~~~~ sound/drivers/dummy.c:62:1: note: in expansion of macro 'module_param_array' 62 | module_param_array(index, int, NULL, 0444); | ^~~~~~~~~~~~~~~~~~ sound/drivers/dummy.c:48:12: warning: 'index' defined but not used [-Wunused-variable] 48 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | ^~~~~ vim +16 include/linux/build_bug.h bc6245e5efd70c Ian Abbott 2017-07-10 6 bc6245e5efd70c Ian Abbott 2017-07-10 7 #ifdef __CHECKER__ bc6245e5efd70c Ian Abbott 2017-07-10 8 #define BUILD_BUG_ON_ZERO(e) (0) bc6245e5efd70c Ian Abbott 2017-07-10 9 #else /* __CHECKER__ */ bc6245e5efd70c Ian Abbott 2017-07-10 10 /* bc6245e5efd70c Ian Abbott 2017-07-10 11 * Force a compilation error if condition is true, but also produce a 8788994376d84d Rikard Falkeborn 2019-12-04 12 * result (of value 0 and type int), so the expression can be used bc6245e5efd70c Ian Abbott 2017-07-10 13 * e.g. in a structure initializer (or where-ever else comma expressions bc6245e5efd70c Ian Abbott 2017-07-10 14 * aren't permitted). bc6245e5efd70c Ian Abbott 2017-07-10 15 */ 8788994376d84d Rikard Falkeborn 2019-12-04 @16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) 527edbc18a70e7 Masahiro Yamada 2019-01-03 17 #endif /* __CHECKER__ */ 527edbc18a70e7 Masahiro Yamada 2019-01-03 18 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki