From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v2 09/19] arm64: mte: Add specific SIGSEGV codes Date: Thu, 27 Feb 2020 11:05:58 +0000 Message-ID: <20200227110558.GB3281767@arrakis.emea.arm.com> References: <20200226180526.3272848-10-catalin.marinas@arm.com> <202002270627.YYGOStB9%lkp@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from foss.arm.com ([217.140.110.172]:48644 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728844AbgB0LGC (ORCPT ); Thu, 27 Feb 2020 06:06:02 -0500 Content-Disposition: inline In-Reply-To: <202002270627.YYGOStB9%lkp@intel.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: kbuild test robot Cc: 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 , "Eric W. Biederman" 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): 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); -- Catalin 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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51FC0C4BA3B for ; Thu, 27 Feb 2020 11:06:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 20BA524688 for ; Thu, 27 Feb 2020 11:06:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qyclZ9tb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 20BA524688 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ceOiUauDDP7FO/fTU7qX5iPC+gXTQuCZwA87i1DnSgs=; b=qyclZ9tbhfBwT0 Mw6M7pFX9rGG8g0LgtOahBMvgxLiw7qmuXT7vCbsDT6t9CMmQWErGZIZfBWMY84eT4S+1ZldAg19P v92c3lBjJ/KH3CftOy5sYP4DlpuGXmIlfLaTNf8JGRFaX9p8ZCnPuvx6GLJIpKQ5jD0jAzwMhNMHC fbwfn7wrDgGs8kMVQinghYaxp4SJaQz8v9h2btk2BhEkUaSWQeQHmqn2IcEV1MASvqeMeCf/ewvGu XWIpGPPZR8THLqD+uH2SO3TYD3nwPk/WJFzfVV3WtAyZq39KkNf3sp45jl+ngmpDCL6747Pkuukrm erFII2Y8OSyy/IlkrAUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j7GzW-0003f9-93; Thu, 27 Feb 2020 11:06:06 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j7GzT-0003el-5J for linux-arm-kernel@lists.infradead.org; Thu, 27 Feb 2020 11:06:04 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0C6ED1FB; Thu, 27 Feb 2020 03:06:02 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3F11E3F73B; Thu, 27 Feb 2020 03:06:00 -0800 (PST) Date: Thu, 27 Feb 2020 11:05:58 +0000 From: Catalin Marinas To: kbuild test robot Subject: Re: [PATCH v2 09/19] arm64: mte: Add specific SIGSEGV codes Message-ID: <20200227110558.GB3281767@arrakis.emea.arm.com> References: <20200226180526.3272848-10-catalin.marinas@arm.com> <202002270627.YYGOStB9%lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202002270627.YYGOStB9%lkp@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200227_030603_245447_770E631F X-CRM114-Status: GOOD ( 14.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Richard Earnshaw , kbuild-all@lists.01.org, Arnd Bergmann , Szabolcs Nagy , Andrey Konovalov , Kevin Brodsky , Peter Collingbourne , linux-mm@kvack.org, "Eric W. Biederman" , Vincenzo Frascino , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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): 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); -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8532587139222289731==" MIME-Version: 1.0 From: Catalin Marinas To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 09/19] arm64: mte: Add specific SIGSEGV codes Date: Thu, 27 Feb 2020 11:05:58 +0000 Message-ID: <20200227110558.GB3281767@arrakis.emea.arm.com> In-Reply-To: <202002270627.YYGOStB9%lkp@intel.com> List-Id: --===============8532587139222289731== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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-Me= mory-Tagging-Extension-user-space-support/20200227-041230 > base: https://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git f= or-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=3Dx86_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_comp= at.c:166:2: > >> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_= 30' declared with attribute error: BUILD_BUG_ON failed: NSIGSEGV !=3D 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): diff --git a/arch/x86/kernel/signal_compat.c b/arch/x86/kernel/signal_compa= t.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 !=3D 11); BUILD_BUG_ON(NSIGFPE !=3D 15); - BUILD_BUG_ON(NSIGSEGV !=3D 7); + BUILD_BUG_ON(NSIGSEGV !=3D 9); BUILD_BUG_ON(NSIGBUS !=3D 5); BUILD_BUG_ON(NSIGTRAP !=3D 5); BUILD_BUG_ON(NSIGCHLD !=3D 6); -- = Catalin --===============8532587139222289731==--