From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B1C546AF36 for ; Tue, 20 Jan 2026 19:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768938295; cv=none; b=SWoJUplir9OXKMUGKh86UlA1A+NXpnf0izJw1+Z4lqpQdCp3BHseV8YO6srmX3a28ih+x2D2qpxQ8j4Tk8ouhNk3bPb+8V7eqbewFzN6RJNyIYOV8SchngFKxt+qUfQtTZJMjG1NaEadqcZLFIH8d2rlHeknyKrgBQ9Vmr/B0TA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768938295; c=relaxed/simple; bh=XeUViYfY2uTSAY/Y5mKsJA4QEp1pKU/MT51bOa0VcX4=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=p0CmiH+7dAys4V7YcrAZRTARYJUtHIK5Z7mnUy6GkDVq1EYeWXMGdqduhjptOipjMAKsySfAcOiXu/Ri4/9u4KYP1rtxcUHt3p/2rgYxDnoELfGZghSVxFT3scnfK01S+cMfO3f7PvXu6e0TG7NzeYOCj/HbXGkLfZvlobPkRx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utexas.edu; spf=pass smtp.mailfrom=utexas.edu; dkim=pass (2048-bit key) header.d=utexas.edu header.i=@utexas.edu header.b=T8OlXgP8; arc=none smtp.client-ip=209.85.210.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utexas.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=utexas.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=utexas.edu header.i=@utexas.edu header.b="T8OlXgP8" Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-7d148ddbb91so85267a34.1 for ; Tue, 20 Jan 2026 11:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=utexas.edu; s=google; t=1768938292; x=1769543092; darn=vger.kernel.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XeUViYfY2uTSAY/Y5mKsJA4QEp1pKU/MT51bOa0VcX4=; b=T8OlXgP8maSzAUpt1/E/E1RjXNKxT6L1uuZzu1iqjGd4R2TXU/M4UbNsLWUFTjkDUb 6ZqOKgCRktmzjDRNy+qrZTgLgHoIoMffXugHNk/0kWOBWpzxB59aHibhUNTU+Mymd8xq 1rXuH/13Hfaj8L0Z//5L9Z2sqNMH3kHn5trO82ti3VC9fXn1+C/SpGy91eAdWcOQo7qs rgTSKbHYXtxXEYOwCIlwynn+Jys3j+qdAWMyDxkZz24v0eA66YA32MYatdj1/D8Cr4cA Fn+DkAo0sn6ICAjpMEaIwMeezmCNKETnZmbDKYtfNGxvKtCxCZ/tIIrYPr/1ByUlHHnv NMTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768938292; x=1769543092; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XeUViYfY2uTSAY/Y5mKsJA4QEp1pKU/MT51bOa0VcX4=; b=TPpXcEBzjvglt/ry8vb7Yl7/mXe5xs53zW8c1dQwJHzNT4/HPh0sdVvL4Q21s1Mvkj FBquf4ZrhTUuBIRFtX2MYdiDM/3jPmbfHKGgNGr16+X8W8Cx68CVOP2XIcpknuyervee v7YOLirNADGGPglfShguk7pOUhvRuOGF45OaN3IJWv0Av69etQIvDNaz1AiCFaSSlele gOXlpt82AujSLYS/Qi1P/4dYhl8lD40HDRq6WW6DejSq5CfP2KcGIa4hQCU2zkbVA1GL wSuSrvr30dUw8OY0xOIsHt0h4aqotYZHZZE6FiHe3qqkspwDyinjdLhgKU6SpTr8+ZpV I/4w== X-Forwarded-Encrypted: i=1; AJvYcCV8lEXA78GB53ukizza6sA5cWs92pYexpQP/Gtmv+rC7eZCTu+601+0kd+Zj/PG+68N7JFZwZxsbiEkQ50=@vger.kernel.org X-Gm-Message-State: AOJu0Yzt9wq86IfGlaA4o7Z+XYaU95Y57ui76005fMyP7AB92dP962wR mUX587SrA7bLMHRQsRuLexVR2QciF5ErZRpFnXKc4igp33jEcXXwoU5kPdfBpzsfu9k= X-Gm-Gg: AY/fxX6ftmLBIXJkNOlfp+CVRgw85lLy+Yn1xac/UpdBPKsoUJgAd/P3gqsiCzcnr+C ny8ueF4s2WxDu03mxIQ3hRg1cirekjAPHVCRvPlFhabjd6gW5LFVMAgzUylJ9F+Tx31osGbqEZz 4Mpd2BAAcruYdDrzLMIWD962NDXog2Hl6ZJPILaRybYKjrb350cH3WlrMqgqme3BNAYALUwIOD0 dz6BnOYdLrj3/y0r++RHAqCp+PWbD8Rhbqip9GQlDX0+LQWdbRztFBEHFxOxoqgSPAMuxmdi17x jjyNaiJErVda1XSscIVu/LVJZivUekqMcpAuUXmqtN/NYG2G7C3mi2nE5+e5N/96BckW9qJS/pv uJEIF5EexnLn/+IY7jn6jRn1LRULcObN++oUmz+EVK5E9euiWaJYUwi47FRk/DFIerEC3kvKyM5 9Uc4tGncoIzIrK3Y+85v64Pu4V6anPWhRf7z/D62Sx6iUj++3z7JY= X-Received: by 2002:a05:6830:4407:b0:7ca:c897:fc5c with SMTP id 46e09a7af769-7d140ab7359mr1703875a34.20.1768938292199; Tue, 20 Jan 2026 11:44:52 -0800 (PST) Received: from localhost (nat-128-62-18-57.public.utexas.edu. [128.62.18.57]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7cfdf28efbasm9258158a34.17.2026.01.20.11.44.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jan 2026 11:44:51 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 20 Jan 2026 13:44:50 -0600 Message-Id: To: "Catalin Marinas" , "Carl Worth" Cc: "Will Deacon" , , , "Peter Collingbourne" Subject: Re: [PATCH v2 1/2] arm64: mte: Clarify kernel MTE policy and manipulation of TCO From: "Taehyun Noh" X-Mailer: aerc 0.20.1 References: <20251030-mte-tighten-tco-v2-0-e259dda9d5b3@os.amperecomputing.com> <20251030-mte-tighten-tco-v2-1-e259dda9d5b3@os.amperecomputing.com> In-Reply-To: On Mon Jan 19, 2026 at 12:17 PM CST, Catalin Marinas wrote: > TBH, I'm fine with leaving the logic in this function without > introducing a new user_uses_tagcheck() but not strongly opposed to it > with better naming. > > That said, the set_kernel_mte_policy() naming looks too broad. The > policy somehow implies tag check mode, fault behaviour. All it does is > dealing with PSTATE.TCO. I agree with your point. having TCO on the function name is more concise than what I've suggested. We can drop this patch.