Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4878364pjb; Mon, 27 Jul 2020 07:26:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlvVwKb8KH7MCBKQ5Gqw3ztB8yWAkM76c0bGbbij8M4xZm6MHalLSy0gcT3cGLQ3Y33Lan X-Received: by 2002:a05:6402:16d0:: with SMTP id r16mr6636857edx.124.1595859959839; Mon, 27 Jul 2020 07:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859959; cv=none; d=google.com; s=arc-20160816; b=ihqsnQxdQWvfFJnnC2yG984zF6XrtObQanhozegdCbLj+UQSCG+LnjY07L3YQZ5ElW wtugYGCPvoj7JoloFIJ7qARsk0Pvzd8+3WEcTSg8ZXtYbsMFweqftHQ800n9pH4h0V+M EjnGmpOaw13uaIeUdjjcr5Et4dJSShATfyuNU3IkctrKd9kEWqeau/jx5Foy6q7k4u8Y tFhF48p6FmXKUer5WJ4M3Ur90SbgHwYN7EWmzb1A4kdlCyz5sxSSEk0syDVigKDAzW2j uR+REhZXo2O8+tl6jgAujSjGAjdFnoNwootkU4Ua/kYl10rB3EcrdjTRUHI7+qEx1/1y pEBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l3zzbl6yJtolKBNi43wbdUiiBGJul9vCeCg2n9jYGeA=; b=XpdWG2CkkPcmlwsZUq92ml6JG0sGtuj/omWb365lWCFWxFiQVgharL/KOjehqsDVFC 5g08EkKnxVomMbsqGfvPx8P0iEdQ/3QdsH1Gmwd2W2WsWmPaLwcmKKjA99cbn/q8Stn8 wBpLt/WwycquEUxSD/PDprT6rWfp9d7nSEX/CMn/GuDOmPfpRU7CK/mgkrWBrwlYlMWR 4rbbwLzA6XM90TgUJ9e1TGfUVmreNVkQOKYk+CkxPbGxrjs3vb4o/9av0RmtkavA2vKk DbZvK0DbA9wfcDEZ6rSWrJ0MCEJkELX7XZHlKl4rcDLsgxwl4Hn9Eae+FyCCjUsspNej F5gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h5D5ccgn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si1275356edj.268.2020.07.27.07.25.37; Mon, 27 Jul 2020 07:25:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h5D5ccgn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732259AbgG0OYV (ORCPT + 99 others); Mon, 27 Jul 2020 10:24:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:53770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732202AbgG0OYS (ORCPT ); Mon, 27 Jul 2020 10:24:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 641472075A; Mon, 27 Jul 2020 14:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859858; bh=8gj+gLcINm454lhIuhKjsm+FVsjMo2Q6mwn60Q42hKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h5D5ccgn0tXCJwWv4fnAjr60RR8jkfkzGojq4ADjUZuEQc0WZxkhP7YBiBoN0Et8H vv/7JMcMj6ytY4waBxfPQFimUxOBUWI82uU5wqNTvPocgDjhg7Ojn2vRTUPwOPMn9O S282rzqjNzAj1vCvQBBTGOyRTnlqOSZ4NTCj4d3s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Will Deacon , Sasha Levin Subject: [PATCH 5.7 133/179] arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP Date: Mon, 27 Jul 2020 16:05:08 +0200 Message-Id: <20200727134939.127148266@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Will Deacon [ Upstream commit 5afc78551bf5d53279036e0bf63314e35631d79f ] Rather than open-code test_tsk_thread_flag() at each callsite, simply replace the couple of offenders with calls to test_tsk_thread_flag() directly. Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/kernel/debug-monitors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c index 7569deb1eac17..d64a3c1e1b6ba 100644 --- a/arch/arm64/kernel/debug-monitors.c +++ b/arch/arm64/kernel/debug-monitors.c @@ -396,14 +396,14 @@ void user_rewind_single_step(struct task_struct *task) * If single step is active for this thread, then set SPSR.SS * to 1 to avoid returning to the active-pending state. */ - if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) + if (test_tsk_thread_flag(task, TIF_SINGLESTEP)) set_regs_spsr_ss(task_pt_regs(task)); } NOKPROBE_SYMBOL(user_rewind_single_step); void user_fastforward_single_step(struct task_struct *task) { - if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) + if (test_tsk_thread_flag(task, TIF_SINGLESTEP)) clear_regs_spsr_ss(task_pt_regs(task)); } -- 2.25.1