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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 A6D44C433DB for ; Fri, 12 Feb 2021 16:46:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8175464E42 for ; Fri, 12 Feb 2021 16:46:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbhBLQqq (ORCPT ); Fri, 12 Feb 2021 11:46:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:39766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbhBLQqo (ORCPT ); Fri, 12 Feb 2021 11:46:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1288464E8C; Fri, 12 Feb 2021 16:46:00 +0000 (UTC) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org, Catalin Marinas Cc: Will Deacon , Kevin Brodsky , Steven Price , stable@vger.kernel.org, Vincenzo Frascino , Luis Machado Subject: Re: [PATCH] arm64: mte: Allow PTRACE_PEEKMTETAGS access to the zero page Date: Fri, 12 Feb 2021 16:45:59 +0000 Message-Id: <161314834566.23182.2604906410285576324.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210210180316.23654-1-catalin.marinas@arm.com> References: <20210210180316.23654-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, 10 Feb 2021 18:03:16 +0000, Catalin Marinas wrote: > The ptrace(PTRACE_PEEKMTETAGS) implementation checks whether the user > page has valid tags (mapped with PROT_MTE) by testing the PG_mte_tagged > page flag. If this bit is cleared, ptrace(PTRACE_PEEKMTETAGS) returns > -EIO. > > A newly created (PROT_MTE) mapping points to the zero page which had its > tags zeroed during cpu_enable_mte(). If there were no prior writes to > this mapping, ptrace(PTRACE_PEEKMTETAGS) fails with -EIO since the zero > page does not have the PG_mte_tagged flag set. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: mte: Allow PTRACE_PEEKMTETAGS access to the zero page https://git.kernel.org/arm64/c/68d54ceeec0e -- 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=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 5D2C7C433DB for ; Fri, 12 Feb 2021 16:47:14 +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 1D18264E42 for ; Fri, 12 Feb 2021 16:47:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1D18264E42 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:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=t8WTkwvbcRyA25H9AzgE0noorlIfUakRs2GqaGUDBlI=; b=gz2f2OSd+Dt/nirBYblR72YeL fbpJoQTgvCD7xUesTyW6QewqcOChw74mLqgSRDuob1fqJefVW0bnrLOW4WdrX++wzSLdLbvmQr/eB u/MU54n4kl5mmS564r51Ax2y0LqZ+Ki2HYA1qjb1EzH3hyb6omE3+b8YqHt3ZZyxlilz23uhHtEZp QZPcYigE7Tc1Wev8zSUe9f+0CxpBSWVYqluXIXdRQdnagm2zTZBhMGF97VyOZPtG4Gwe8In0CGw3l u38+kzc6gHbtmKbIhEWDSqNDC5KXvTFjskaIDnzLW+BErDrW4pmGIK4N5sQCgVD1vwfUwXXScunle UInwGJBNg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAba2-0004dm-44; Fri, 12 Feb 2021 16:46:06 +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 1lAbZz-0004dK-4c for linux-arm-kernel@lists.infradead.org; Fri, 12 Feb 2021 16:46:04 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1288464E8C; Fri, 12 Feb 2021 16:46:00 +0000 (UTC) From: Catalin Marinas To: linux-arm-kernel@lists.infradead.org, Catalin Marinas Subject: Re: [PATCH] arm64: mte: Allow PTRACE_PEEKMTETAGS access to the zero page Date: Fri, 12 Feb 2021 16:45:59 +0000 Message-Id: <161314834566.23182.2604906410285576324.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210210180316.23654-1-catalin.marinas@arm.com> References: <20210210180316.23654-1-catalin.marinas@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210212_114603_275639_53D44452 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. 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: Luis Machado , Kevin Brodsky , stable@vger.kernel.org, Steven Price , Vincenzo Frascino , Will Deacon 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 Wed, 10 Feb 2021 18:03:16 +0000, Catalin Marinas wrote: > The ptrace(PTRACE_PEEKMTETAGS) implementation checks whether the user > page has valid tags (mapped with PROT_MTE) by testing the PG_mte_tagged > page flag. If this bit is cleared, ptrace(PTRACE_PEEKMTETAGS) returns > -EIO. > > A newly created (PROT_MTE) mapping points to the zero page which had its > tags zeroed during cpu_enable_mte(). If there were no prior writes to > this mapping, ptrace(PTRACE_PEEKMTETAGS) fails with -EIO since the zero > page does not have the PG_mte_tagged flag set. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: mte: Allow PTRACE_PEEKMTETAGS access to the zero page https://git.kernel.org/arm64/c/68d54ceeec0e -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel