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=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 EEB22C2BA83 for ; Wed, 12 Feb 2020 11:45:33 +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 A75EA20675 for ; Wed, 12 Feb 2020 11:45:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RZosb2di" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A75EA20675 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=/IJvvxIgKGPvhw35Ncgyf9GEiFlGdjZJzeMYq+vHCFw=; b=RZosb2didJNKv8 DLygB7bjacmdB8ya8srVgTmqvRnHjKIZEabFIgzICQYjHfXsgIEW0H6Mn52fpPy4JkNuCvB4bB85h fqXw2gcu33tBSgQoAc5o7kN5hTi4oz4pUMs/ADsu4WsVupMVIo4oJ0FfPrALvZv3Cd9D16bjbEFEQ QTSWhVpRxryL65gVsqgHaMsIWYEDxoKXylNH8QzeNGfkUj2d8TGW3qrU8hSR3810oyMlGFs45JroL doH6ElCZaXYB/tOBPcqwLs4FMmX4Kh8n7pWWQuVC8kctrLOufv4rvimJPSdwF0843XeyU5hVvBb+t inNyUsKUPsoCdAGrrxOg==; 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 1j1qSM-000248-Rd; Wed, 12 Feb 2020 11:45:26 +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 1j1qSI-00022Q-8Y for linux-arm-kernel@lists.infradead.org; Wed, 12 Feb 2020 11:45:24 +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 59E9A30E; Wed, 12 Feb 2020 03:45:21 -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 09B723F68F; Wed, 12 Feb 2020 03:45:19 -0800 (PST) Date: Wed, 12 Feb 2020 11:45:17 +0000 From: Catalin Marinas To: Kevin Brodsky Subject: Re: [PATCH 19/22] arm64: mte: Allow user control of the tag check mode via prctl() Message-ID: <20200212114517.GF488264@arrakis.emea.arm.com> References: <20191211184027.20130-1-catalin.marinas@arm.com> <20191211184027.20130-20-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200212_034522_340652_EC3885ED X-CRM114-Status: GOOD ( 10.20 ) 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 , Szabolcs Nagy , Marc Zyngier , linux-mm@kvack.org, Andrey Konovalov , 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 Fri, Dec 27, 2019 at 02:34:32PM +0000, Kevin Brodsky wrote: > Not just related to this patch, but here goes. While trying to debug an > MTE-enabled process, I realised that there's no way to tell the tagged addr > / MTE thread configuration from outside of the thread. At this point I > thought it'd be really nice if this were to be exposed in /proc/pid, maybe > in /proc/pid/status. Unfortunately there seems to be no precedent for an > arch-specific feature to be exposed there. I guess a ptrace call would work > as well, although it wouldn't be as practical without using a debugger. There is proc_pid_arch_status(), currently only used by x86 to report the avx512 status. We could do the same on arm64 and provide information information on the MTE status, SVE configuration, ptrauth. I think this can be a separate patch covering all these. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel