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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 4705AC4BA24 for ; Wed, 26 Feb 2020 19:08:29 +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 1B02A222C4 for ; Wed, 26 Feb 2020 19:08:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OSO4TG/c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B02A222C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xmission.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:Subject:MIME-Version:Message-ID: In-Reply-To:Date:References:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b7gqxS5xaKaWEl6243+EitO8eBphpirpi40wqRUm7FM=; b=OSO4TG/cDK3e3C QeVEJQBxBbCw+lY9G45K7UE5XAhEXCLh929BcAXkvUM3VngtE+8trOnTuJ5s2UVlCvElbLlIAuh/B 7mUpwL77ie4vSO+oEEDNq487A5qaYzu9piUJjImyHmKeHgiehg7NWRyzT/3i/cYP38cfZmPPqa+T5 7v1dYJMDzWDtRTijiWF7P5C9Z7Mdi5UC3Xz1lr4tzF35kHCVLx0wRPxtJus+nr4fXfJz+wIrDMHwN BBEhB3dfwcRhGCUpmIlutyb3m6Su8Tdn36E7C+8a3nbgu9fyhnQVK7OKq//ALnn1z67zCgcjRcFLH gIKCRsjaGklep4hKXr+g==; 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 1j722d-0005mU-UK; Wed, 26 Feb 2020 19:08:19 +0000 Received: from out02.mta.xmission.com ([166.70.13.232]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j722b-0005Tv-9i for linux-arm-kernel@lists.infradead.org; Wed, 26 Feb 2020 19:08:18 +0000 Received: from in01.mta.xmission.com ([166.70.13.51]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1j722H-0004xQ-Mj; Wed, 26 Feb 2020 12:07:57 -0700 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1j722G-0003UI-Hj; Wed, 26 Feb 2020 12:07:57 -0700 From: ebiederm@xmission.com (Eric W. Biederman) To: Catalin Marinas References: <20200226180526.3272848-1-catalin.marinas@arm.com> <20200226180526.3272848-10-catalin.marinas@arm.com> Date: Wed, 26 Feb 2020 13:05:52 -0600 In-Reply-To: <20200226180526.3272848-10-catalin.marinas@arm.com> (Catalin Marinas's message of "Wed, 26 Feb 2020 18:05:16 +0000") Message-ID: <874kvdxj73.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 X-XM-SPF: eid=1j722G-0003UI-Hj; ; ; mid=<874kvdxj73.fsf@x220.int.ebiederm.org>; ; ; hst=in01.mta.xmission.com; ; ; ip=68.227.160.95; ; ; frm=ebiederm@xmission.com; ; ; spf=neutral X-XM-AID: U2FsdGVkX1/0F2i/+wSq/VqwOdFbGsprftz56H+SliE= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com Subject: Re: [PATCH v2 09/19] arm64: mte: Add specific SIGSEGV codes X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200226_110817_341416_3E4D75FA X-CRM114-Status: GOOD ( 13.37 ) 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 , Arnd Bergmann , Szabolcs Nagy , Andrey Konovalov , Kevin Brodsky , Peter Collingbourne , linux-mm@kvack.org, 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 Catalin Marinas writes: > From: Vincenzo Frascino > > Add MTE-specific SIGSEGV codes to siginfo.h. > > Note that the for MTE we are reusing the same SPARC ADI codes because > the two functionalities are similar and they cannot coexist on the same > system. Any chance you can move the v2 notes up into the description or otherwise fix it. The description talks about reusing the ADI codes which is no longer happening. Otherwise the patch looks good. Acked-by: "Eric W. Biederman" > > Cc: Arnd Bergmann > Cc: Eric W. Biederman > Signed-off-by: Vincenzo Frascino > [catalin.marinas@arm.com: renamed precise/imprecise to sync/async] > [catalin.marinas@arm.com: dropped #ifdef __aarch64__, renumbered] > Signed-off-by: Catalin Marinas > --- > > Notes: > v2: > - Dropped the #ifdef __aarch64__. > - Renumbered the SEGV_MTE* values to avoid clash with ADI. > > include/uapi/asm-generic/siginfo.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h > index cb3d6c267181..7aacf9389010 100644 > --- a/include/uapi/asm-generic/siginfo.h > +++ b/include/uapi/asm-generic/siginfo.h > @@ -229,7 +229,9 @@ typedef struct siginfo { > #define SEGV_ACCADI 5 /* ADI not enabled for mapped object */ > #define SEGV_ADIDERR 6 /* Disrupting MCD error */ > #define SEGV_ADIPERR 7 /* Precise MCD exception */ > -#define NSIGSEGV 7 > +#define SEGV_MTEAERR 8 /* Asynchronous ARM MTE error */ > +#define SEGV_MTESERR 9 /* Synchronous ARM MTE exception */ > +#define NSIGSEGV 9 > > /* > * SIGBUS si_codes _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel