From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm@xmission.com (Eric W. Biederman) Subject: Re: [PATCH v2 09/19] arm64: mte: Add specific SIGSEGV codes Date: Thu, 27 Feb 2020 09:20:23 -0600 Message-ID: <87tv3cvyyw.fsf@x220.int.ebiederm.org> References: <20200226180526.3272848-10-catalin.marinas@arm.com> <202002270627.YYGOStB9%lkp@intel.com> <20200227110558.GB3281767@arrakis.emea.arm.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from out01.mta.xmission.com ([166.70.13.231]:40872 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729471AbgB0PWb (ORCPT ); Thu, 27 Feb 2020 10:22:31 -0500 In-Reply-To: <20200227110558.GB3281767@arrakis.emea.arm.com> (Catalin Marinas's message of "Thu, 27 Feb 2020 11:05:58 +0000") Sender: linux-arch-owner@vger.kernel.org List-ID: To: Catalin Marinas Cc: kbuild test robot , kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Will Deacon , Vincenzo Frascino , Szabolcs Nagy , Richard Earnshaw , Kevin Brodsky , Andrey Konovalov , Peter Collingbourne , linux-mm@kvack.org, linux-arch@vger.kernel.org, Arnd Bergmann Catalin Marinas writes: > On Thu, Feb 27, 2020 at 06:33:14AM +0800, kbuild test robot wrote: >> url: https://github.com/0day-ci/linux/commits/Catalin-Marinas/arm64-Memory-Tagging-Extension-user-space-support/20200227-041230 >> base: https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git for-next >> config: x86_64-defconfig (attached as .config) >> compiler: gcc-7 (Debian 7.5.0-5) 7.5.0 >> reproduce: >> # save the attached .config to linux build tree >> make ARCH=x86_64 >> >> If you fix the issue, kindly add following tag >> Reported-by: kbuild test robot >> >> All error/warnings (new ones prefixed by >>): >> >> In file included from include/linux/export.h:43:0, >> from include/linux/linkage.h:7, >> from arch/x86/include/asm/cache.h:5, >> from include/linux/cache.h:6, >> from include/linux/time.h:5, >> from include/linux/compat.h:10, >> from arch/x86/kernel/signal_compat.c:2: >> In function 'signal_compat_build_tests', >> inlined from 'sigaction_compat_abi' at arch/x86/kernel/signal_compat.c:166:2: >> >> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_30' declared with attribute error: BUILD_BUG_ON failed: NSIGSEGV != 7 > > I haven't realised that x86 has a build check for NSIGSEGV. I'll fold in > the diff below (there are no new fields added to siginfo, so no other > changes necessary): Yes. That looks good. Acked-by: "Eric W. Biederman" > diff --git a/arch/x86/kernel/signal_compat.c b/arch/x86/kernel/signal_compat.c > index 9ccbf0576cd0..a7f3e12cfbdb 100644 > --- a/arch/x86/kernel/signal_compat.c > +++ b/arch/x86/kernel/signal_compat.c > @@ -27,7 +27,7 @@ static inline void signal_compat_build_tests(void) > */ > BUILD_BUG_ON(NSIGILL != 11); > BUILD_BUG_ON(NSIGFPE != 15); > - BUILD_BUG_ON(NSIGSEGV != 7); > + BUILD_BUG_ON(NSIGSEGV != 9); > BUILD_BUG_ON(NSIGBUS != 5); > BUILD_BUG_ON(NSIGTRAP != 5); > BUILD_BUG_ON(NSIGCHLD != 6);