Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp325087pxx; Mon, 26 Oct 2020 09:23:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCpEH4kSZaZi0OcCeG88zWRr0qhaRiLEBQn7kcEyPs369uHRyNcVoYLkjcz+pGTM33LQRQ X-Received: by 2002:aa7:c717:: with SMTP id i23mr337237edq.250.1603729383314; Mon, 26 Oct 2020 09:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603729383; cv=none; d=google.com; s=arc-20160816; b=rVzsWWfpl5hJJ7e6Y8EX/NaWRtCOP7pH1PrpAAVf2CPXp+qvZcSFlmMO5QpfCKiitq pszY87dQamsnkYE/g/CNoGJCUWBnronV4rfqshERMdd+FQnHMfRtzFeKWwDI0zA5OnWJ g9/R9JIVT54MkpJtd3bAeyw9L/V4Ka3ZzoD8cTAUzKaBPkZbKtWfmeGazM00ypfKqP6n a1Zs7aw7kYE0S3VeFBsJNsNA2u9XmRk/cDXfArrPoW2eKeyiN2urTGeopt7R7cu8F6yl /MYJqirhUS4wKCnc/q+0esbDIURhXxq9RXVd/L+dMGlb7UnppS3vnZO4AC6gO0sKiBbe l3Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ILQPtPU4iWvoqSRttb106bkOKp5DhQS8MKf6uxdvhCU=; b=gY3sdoMmFHLDJfIa2Mpko+klGPD1nnKR6sVzFYpwn0ZY+ZKhOJ2sbYEeh1zMtqAwAU R3IEO3NaR9Sq5rqrYqFckzBtFqapKFhh+UWR38CQJUQyTWVpMxebuWwQ7KqVMYZp4bpa +1zBc/zpGOy/9utvK3kBAYwwtciXBXFfqXVWAThMNYZFEFHX9M0DWX7Z7KsUHM0ZQ6po 6xF2PTI+AveO36fJgRWl9LQF+9DNeGeFvlJmMbHjNXTqBEtP5XF5aT5wIwpvEBDr6Qko 8QDtELkY0d0PoRkjbD4t/hZSYfB+UkM5ISZUWvRW8KFAl1GtiUu+vSzPGJvsDLIoVJ6M oNhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kAt5RoXB; dkim=neutral (no key) header.i=@linutronix.de header.b=4YKgeADV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si4147770edt.424.2020.10.26.09.22.39; Mon, 26 Oct 2020 09:23:03 -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=@linutronix.de header.s=2020 header.b=kAt5RoXB; dkim=neutral (no key) header.i=@linutronix.de header.b=4YKgeADV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1775687AbgJZMwn (ORCPT + 99 others); Mon, 26 Oct 2020 08:52:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:39838 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1775643AbgJZMwj (ORCPT ); Mon, 26 Oct 2020 08:52:39 -0400 Date: Mon, 26 Oct 2020 12:52:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1603716757; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ILQPtPU4iWvoqSRttb106bkOKp5DhQS8MKf6uxdvhCU=; b=kAt5RoXB2HLA7w3Qp4SgMfYfurK+IYZbkIXWQhz1/KjujpOg8b84xvpSIlUaUO/KiV12TG +0X9uNZnmdUvWLboS5DP5+dh99iP/OfRzGNh6oOZqdBoNFIccXM6qGdAVS1IpMor/eTLK6 DKM92Y/sNCz56yAf6TAsvPl/93F7sdtRfYjmxgn2o4p1SvDXBl0Ja4UasmyHf/eFP6XTcu u57vSZNWZ3CuNcpiwrvFps82whtXPvt7jv0204Bq1hda5pVFkh76fDOjxzL9ByffId9t5U v4Q0j2Y5RVGMRyqWREBctUoJbMw9CxOF8LWaY2/xD+sQl8guPznk77QiJ6dB5Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1603716757; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ILQPtPU4iWvoqSRttb106bkOKp5DhQS8MKf6uxdvhCU=; b=4YKgeADVOvOjaFBp1ed5dyYYx+Fxm9X6l1xS8QbbigvS4Djcm8POf6KWXWuA5eWHO9eAce uJSdqs/Kx2ndG5Cw== From: "tip-bot2 for Gabriel Krisman Bertazi" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/oprofile: Avoid TIF_IA32 when checking 64bit mode Cc: Gabriel Krisman Bertazi , Thomas Gleixner , x86 , LKML In-Reply-To: <20201004032536.1229030-4-krisman@collabora.com> References: <20201004032536.1229030-4-krisman@collabora.com> MIME-Version: 1.0 Message-ID: <160371675663.397.11073210370521166662.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 47cd4dac1fb21759ffcfe0600827c87fa6acdfa7 Gitweb: https://git.kernel.org/tip/47cd4dac1fb21759ffcfe0600827c87fa6acdfa7 Author: Gabriel Krisman Bertazi AuthorDate: Sat, 03 Oct 2020 23:25:29 -04:00 Committer: Thomas Gleixner CommitterDate: Mon, 26 Oct 2020 13:46:46 +01:00 x86/oprofile: Avoid TIF_IA32 when checking 64bit mode In preparation to remove TIF_IA32, stop using it in oprofile code. Use user_64bit_mode() instead. Signed-off-by: Gabriel Krisman Bertazi Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20201004032536.1229030-4-krisman@collabora.com --- arch/x86/oprofile/backtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/oprofile/backtrace.c b/arch/x86/oprofile/backtrace.c index a2488b6..1d8391f 100644 --- a/arch/x86/oprofile/backtrace.c +++ b/arch/x86/oprofile/backtrace.c @@ -49,7 +49,7 @@ x86_backtrace_32(struct pt_regs * const regs, unsigned int depth) struct stack_frame_ia32 *head; /* User process is IA32 */ - if (!current || !test_thread_flag(TIF_IA32)) + if (!current || user_64bit_mode(regs)) return 0; head = (struct stack_frame_ia32 *) regs->bp;