Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2231281rdb; Thu, 17 Aug 2023 15:01:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiJdBq3Xe+BxE3RS8jFXCTvQcxw7b7tqOGth5tCwl1Ku8rhDba0uRthcxvv0mcjOHoRBC8 X-Received: by 2002:a05:6a20:3d22:b0:13e:7d3:61d1 with SMTP id y34-20020a056a203d2200b0013e07d361d1mr1255117pzi.12.1692309714238; Thu, 17 Aug 2023 15:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692309714; cv=none; d=google.com; s=arc-20160816; b=XCUYmrcnF9x5XjJYhCPG+qrjq3SpZ9CVmZfrFoz0Jb0XddcGYPpJsmRA7qIhXcIV9A cvzFIS9OLE/e5lzqNSCKdhiQhsxwrGe+1FnW5AILJJ4eY1gZOaD2SlPUebYDc1ZP7e+D tNCqmiIolmYUjJ9qL5ShNlQ/FGiZEuSmP7xiRJ9LVzb6/WxVMG+chYLtwlYGxZNmS8om lQuPcHrVZ1N1I+1oF1+l5Vh+JZ+/sTFUycqDHcUWN7PjRwsABvyNyM32X6SbCi39FO7w Pg3jxryoB6J1Vm67TdoUX/0UkfoSS+PjnDt4XMvyyELvjGYbUCByVrdUtEcWugS33JJh FeiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ue5sJK+BgLnoK0nYefS3DcnLiBu1FQVT06GibEu97s8=; fh=kw78srG2qtx4uozrnX4uAM7quWO6yW3csj5+1wQnLkk=; b=0GHLys3wgUDiscFv/YXiG/8fc5/OxD32t1cnJYkC1lOJKHn9EciuvluoZTWPZAMU6/ Gr83AnQPX9g41mnfusyJAvyNIE1ZoRqzRgwfWqRTS5Tm4+cjXrXj+lSYmQMinCLaj/A5 s5YvohB9rm5xdpCF6r8jdThxc3qwKrGnNfeMzWHug6oM6gXow/XZ43vC+93DIIc20fQT Bn82Q6A7pYuG0kFnSmaIJxQEtc6AV4k9Pvj2GlWJ7fObkKiXnEENJDvdUCYq+LC/jkHC ChptdFlJ+IT71UQ3o53eAxGCnilSWsgEW/6kDipQeA6CAhGRClqqvj9JKefSZhGqrpPz pybg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a656a01000000b00563d9ff5158si252233pgu.350.2023.08.17.15.01.40; Thu, 17 Aug 2023 15:01:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354623AbjHQSyw (ORCPT + 99 others); Thu, 17 Aug 2023 14:54:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239507AbjHQSyn (ORCPT ); Thu, 17 Aug 2023 14:54:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C3E9E48 for ; Thu, 17 Aug 2023 11:54:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CE4F767764 for ; Thu, 17 Aug 2023 18:54:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03F98C433C7; Thu, 17 Aug 2023 18:54:39 +0000 (UTC) From: Catalin Marinas To: Will Deacon , Mark Brown Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, David Spickett Subject: Re: [PATCH v2] arm64/ptrace: Ensure that the task sees ZT writes on first use Date: Thu, 17 Aug 2023 19:54:37 +0100 Message-Id: <169229846428.1184154.5773484111290413905.b4-ty@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230816-arm64-zt-ptrace-first-use-v2-1-00aa82847e28@kernel.org> References: <20230816-arm64-zt-ptrace-first-use-v2-1-00aa82847e28@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Aug 2023 19:40:07 +0100, Mark Brown wrote: > When the value of ZT is set via ptrace we don't disable traps for SME. > This means that when a the task has never used SME before then the value > set via ptrace will never be seen by the target task since it will > trigger a SME access trap which will flush the register state. > > Disable SME traps when setting ZT, this means we also need to allocate > storage for SVE if it is not already allocated, for the benefit of > streaming SVE. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/ptrace: Ensure that the task sees ZT writes on first use https://git.kernel.org/arm64/c/2f43f549cd0b -- Catalin