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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2B78CC433F5 for ; Tue, 4 Jan 2022 12:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=SH1rqvv8gljVLXx6SuB5babJlIv3e3na4JxBd8l54Nw=; b=wP1h9Eb+7iNJSL sfU+m/WHCkk8cDmCVteZ1Xc/CLjCw/leatiZgyvTHQsML8SCgfMXNYLIHrA9V4fv5T7bZDFQIIk1J TSm06gBAQekxnXNRe47Z3of1+oQK8sU5BPyDJeK5rYnMQ45LyvMsWQqNoK89Oa5tX1P0wtgAuLuKS SoXaYiQkEtX6p2FIiF2YGVWnefXxd6iWjf+0S5JdnBGbUuBm5hqaSq+OL/h67tp8Zfbo25CEVL+DH R9lnkX95GFnZj7PigUyZc8R7oPxe0zZ0ikkRBEYI+cbRPG3oYYMNkCi4itgWl4ggvVMxl+hh8cXYe NuHKRmeDJ41Ov1OaFjjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4j0N-00BRuN-Q4; Tue, 04 Jan 2022 12:33:31 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4j0J-00BRtk-Tt for linux-arm-kernel@lists.infradead.org; Tue, 04 Jan 2022 12:33:29 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0400761368; Tue, 4 Jan 2022 12:33:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0C06C36AE7; Tue, 4 Jan 2022 12:33:20 +0000 (UTC) Date: Tue, 4 Jan 2022 12:33:17 +0000 From: Catalin Marinas To: Luis Machado Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , John Baldwin , Arnd Bergmann , "Eric W. Biederman" , Kees Cook , Szabolcs Nagy , Andrew Morton Subject: Re: [PATCH 5/5] arm64: mte: Document the core dump file format Message-ID: References: <20211208121941.494956-1-catalin.marinas@arm.com> <20211208121941.494956-6-catalin.marinas@arm.com> <03135b87-31f2-510c-44ec-1fe3ad0ca4b1@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <03135b87-31f2-510c-44ec-1fe3ad0ca4b1@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220104_043328_051227_624BFD45 X-CRM114-Status: GOOD ( 18.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Hi Luis, On Mon, Jan 03, 2022 at 02:27:54PM -0300, Luis Machado wrote: > On 12/8/21 9:19 AM, Catalin Marinas wrote: > > diff --git a/Documentation/arm64/memory-tagging-extension.rst b/Documentation/arm64/memory-tagging-extension.rst > > index 7b99c8f428eb..34c7eb47f61e 100644 > > --- a/Documentation/arm64/memory-tagging-extension.rst > > +++ b/Documentation/arm64/memory-tagging-extension.rst > > @@ -213,6 +213,28 @@ address ABI control and MTE configuration of a process as per the > > Documentation/arm64/tagged-address-abi.rst and above. The corresponding > > ``regset`` is 1 element of 8 bytes (``sizeof(long))``). > > +Core dump support > > +----------------- > > + > > +The allocation tags for user memory mapped with ``PROT_MTE`` are dumped > > +in the core file as additional ``PT_ARM_MEMTAG_MTE`` segments. The > > +program header for such segment is defined as: > > + > > +:``p_type``: ``PT_ARM_MEMTAG_MTE`` > > +:``p_flags``: 0 > > +:``p_offset``: segment file offset > > +:``p_vaddr``: segment virtual address, same as the corresponding > > + ``PT_LOAD`` segment > > +:``p_paddr``: 0 > > +:``p_filesz``: segment size in file, calculated as ``p_mem_sz / 16 / 2`` > > For the sake of making things extra clear, I'd describe what the constants > (16 and 2) mean. I'll rewrite this as: "``p_mem_sz / 32`` (two 4-bit tags cover 32 bytes of memory)". I find the "16 / 2" more confusing. > Acked-by: Luis Machado Thanks for the acks. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel