Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2549008rwo; Thu, 3 Aug 2023 11:00:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlHceY525aJMedut8ncMWj+aJUZ6H1PeCRYZLFaoRL6T80Z2xTXW00UHRxjSn0t+GTLHBPwE X-Received: by 2002:a17:907:75d1:b0:993:d47f:3c84 with SMTP id jl17-20020a17090775d100b00993d47f3c84mr8510607ejc.7.1691085630740; Thu, 03 Aug 2023 11:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691085630; cv=none; d=google.com; s=arc-20160816; b=q1o8oq2UWEYxsbtp7D5/e5l66r/urTCew5+RTDItTTc04bcgavyMLpK7NIMt/PLU/T wctL/ZQuei2NgzueK4GWFz/mLytgl//11X4WTxaiC/ARi2N0hkE5Lx/CH4yYeqkzuu4Q PteS3BTjLlt6ipLaeA3yRyibv73LVlpb6faNuE04VUUok/ule73dHnZBmkFDexJeRBtA UTteYMI8K847IMRPdYEc7br7WOp0S3ZYDpySUiogVMZp/aYQRVQEXjg7FZ+2611qOQ3Y +Of7AILs9iVnzb2O7sbNwIjsB7ZWHfeM8dFVciBVl+QsB/+AMpXOsy++fDOtG0h/ILBq SE+g== 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=/XQKhbIStrZe9Cz48QLfQ4JoMbEeGKa+loPg75WmGaw=; fh=YxRMIFUEb/HkKOn7NjMY02K0eI2SHEKxV6cY5ytnpGQ=; b=gzqo7mOyWBaC9tvduvu74Qs25U+nj086RKJi7t7Qj5JtRNfbts0kc2dVXkpnjpzZ3r eV442JNETWk2igoRmYxofaV3tNK9f2QqmErfDyPxxiOOT9vjYaNxq8IhZhKeWCfOdfYL KKByFq8LZ/iA+GwDDZ31ZP6nVfmHWQxPv3A7Z/nCel8yP0H9/whUVPF9AtJO7/N4T5gB SyIQwSW9bmDZmMBejISKHbesC86goQlkcFrUuX2FxU823REUew8H9oiFs/eAaKWLB9WM mgjHS6mFBm/BykSIquUMvjUm2A0NjeTWO663EK9b5tXyf7Q2Dhcwlgh6yomtOk8xB/9I lWiw== 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 ss10-20020a170907038a00b0098947f89083si186502ejb.390.2023.08.03.11.00.05; Thu, 03 Aug 2023 11:00:30 -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 S234638AbjHCR2w (ORCPT + 99 others); Thu, 3 Aug 2023 13:28:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234028AbjHCR2u (ORCPT ); Thu, 3 Aug 2023 13:28:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55AA3468B; Thu, 3 Aug 2023 10:28:20 -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 D844661E59; Thu, 3 Aug 2023 17:28:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E70FEC433C7; Thu, 3 Aug 2023 17:28:17 +0000 (UTC) From: Catalin Marinas To: Oleg Nesterov , Will Deacon , Mark Brown Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] arm64/ptrace: Flush FP state when setting ZT0 Date: Thu, 3 Aug 2023 18:28:15 +0100 Message-Id: <169108367979.2495938.10107968359301663426.b4-ty@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230803-arm64-fix-ptrace-zt0-flush-v1-1-72e854eaf96e@kernel.org> References: <20230803-arm64-fix-ptrace-zt0-flush-v1-1-72e854eaf96e@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 03 Aug 2023 01:19:06 +0100, Mark Brown wrote: > When setting ZT0 via ptrace we do not currently force a reload of the > floating point register state from memory, do that to ensure that the newly > set value gets loaded into the registers on next task execution. > > The function was templated off the function for FPSIMD which due to our > providing the option of embedding a FPSIMD regset within the SVE regset > does not directly include the flush. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/ptrace: Flush FP state when setting ZT0 https://git.kernel.org/arm64/c/89a65c3f170e -- Catalin