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=-15.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 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 F1587C2D0E4 for ; Mon, 23 Nov 2020 11:50:11 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 6C12620756 for ; Mon, 23 Nov 2020 11:50:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SSFR4sHH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C12620756 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=merlin.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=EUKVj/cDUEn4SxQdiR1WDdx3NuZ1mCmr4Yn3v/p8waA=; b=SSFR4sHHBKk5ni5m054yPv7Xn RjO4IONI8w11Zn8iNwNwNoFGreyaYVlzt56uTo2WhqNz3yxvoqpdO/8ClEdI3MZUpXWP2BB7LQTnJ uoPmh85S9hyLFVydu9FwwDSeFVZG1Rm04S6p49xvVV1JLTIt/baUvFRym0O7qmfJ+NENdL37iq7Ge 8UEEgSeJfr2lk+eo+C0+kusAPgNVhsnxZE1qI3Dpd7tkgL7lhnIoii6XYBpQrDJ6jaPu++Ny2tA7t fZgjoMhxc6DnHPCi1bBRXNKS4C9/zwRILuKSPiDhRnYEeo+ytSpmeYjnDrm0EnrFGVTSNjLvGAGFl gwqbYMBdg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khALp-0004P5-B2; Mon, 23 Nov 2020 11:49:45 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khALm-0004OR-Nl for linux-arm-kernel@lists.infradead.org; Mon, 23 Nov 2020 11:49:43 +0000 Received: from gaia (unknown [95.146.230.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D018D20756; Mon, 23 Nov 2020 11:49:38 +0000 (UTC) Date: Mon, 23 Nov 2020 11:49:36 +0000 From: Catalin Marinas To: "Eric W. Biederman" Subject: Re: [PATCH v21 1/2] signal: define the SA_EXPOSE_TAGBITS bit in sa_flags Message-ID: <20201123114935.GD17833@gaia> References: <13cf24d00ebdd8e1f55caf1821c7c29d54100191.1605904350.git.pcc@google.com> <87h7pj1ulp.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87h7pj1ulp.fsf@x220.int.ebiederm.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201123_064942_857598_0035B7F0 X-CRM114-Status: GOOD ( 17.54 ) 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: Peter Collingbourne , Helge Deller , Kevin Brodsky , Oleg Nesterov , linux-api@vger.kernel.org, "James E.J. Bottomley" , Kostya Serebryany , Linux ARM , Andrey Konovalov , David Spickett , Vincenzo Frascino , Will Deacon , Dave Martin , Evgenii Stepanov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 20, 2020 at 05:22:58PM -0600, Eric W. Biederman wrote: > Peter Collingbourne writes: > > > Architectures that support address tagging, such as arm64, may want to > > expose fault address tag bits to the signal handler to help diagnose > > memory errors. However, these bits have not been previously set, > > and their presence may confuse unaware user applications. Therefore, > > introduce a SA_EXPOSE_TAGBITS flag bit in sa_flags that a signal > > handler may use to explicitly request that the bits are set. > > > > The generic signal handler APIs expect to receive tagged addresses. > > Architectures may specify how to untag addresses in the case where > > SA_EXPOSE_TAGBITS is clear by defining the arch_untagged_si_addr > > function. > > > > Signed-off-by: Peter Collingbourne > > Acked-by: "Eric W. Biederman" > > Link: https://linux-review.googlesource.com/id/I16dd0ed2081f091fce97be0190cb8caa874c26cb > > --- > > To be applied on top of: > > https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git signal-for-v5.11 > > I have merged this first patch into signal-for-v5.11 and pushed > everything out to linux-next. Thank you Eric. Assuming this branch won't be rebased, I'll apply the arm64 changes on top (well, if you rebase it, just let me know so that we don't end up with duplicate commits in mainline). -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel