[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220823015627.4161141-1-bobo.shaobowang@huawei.com>
Date: Tue, 23 Aug 2022 09:56:27 +0800
From: Wang ShaoBo <bobo.shaobowang@...wei.com>
To: <catalin.marinas@....com>
CC: <weiyongjun1@...wei.com>, <guohanjun@...wei.com>,
<broonie@...nel.org>, <oleg@...hat.com>, <will@...nel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] arm64/sme: Clearing TIF_SVE but not TIF_SME in za_set()
Clearing target's TIF_SVE but not current's TIF_SME in za_set(), as it indicates
target's SVE storage unavailable.
Fixes: 776b4a1cf364 ("arm64/sme: Add ptrace support for ZA")
Signed-off-by: Wang ShaoBo <bobo.shaobowang@...wei.com>
---
arch/arm64/kernel/ptrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c
index 21da83187a60..66d5c7efb745 100644
--- a/arch/arm64/kernel/ptrace.c
+++ b/arch/arm64/kernel/ptrace.c
@@ -1084,7 +1084,7 @@ static int za_set(struct task_struct *target,
if (!target->thread.sve_state) {
sve_alloc(target);
if (!target->thread.sve_state) {
- clear_thread_flag(TIF_SME);
+ clear_tsk_thread_flag(target, TIF_SVE);
ret = -ENOMEM;
goto out;
}
--
2.25.1
Powered by blists - more mailing lists