Message ID | 20240202-exception_ip-v2-2-e6894d5ce705@flygoat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF3F5C4828E for <linux-mm@archiver.kernel.org>; Fri, 2 Feb 2024 12:30:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 48FE36B0078; Fri, 2 Feb 2024 07:30:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 422046B007D; Fri, 2 Feb 2024 07:30:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2789A6B007B; Fri, 2 Feb 2024 07:30:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 017B66B007D for <linux-mm@kvack.org>; Fri, 2 Feb 2024 07:30:40 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id CB0051C0E08 for <linux-mm@kvack.org>; Fri, 2 Feb 2024 12:30:40 +0000 (UTC) X-FDA: 81746797440.09.7A351E1 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by imf13.hostedemail.com (Postfix) with ESMTP id B87862001F for <linux-mm@kvack.org>; Fri, 2 Feb 2024 12:30:38 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm1 header.b=KPCaY3+u; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="y PVF2ep"; dmarc=pass (policy=none) header.from=flygoat.com; spf=pass (imf13.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 66.111.4.28 as permitted sender) smtp.mailfrom=jiaxun.yang@flygoat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706877038; a=rsa-sha256; cv=none; b=WNGo4vpaY+ceT4KWb+0Hk3dsI/0tSV/5SOJFnPYeAnN6wxiqDVxN+dRjwxjnOJKz/3mKkn gdhK5o4r8iNXmWLe2hNTJDSXBTn9a4qBfuhqU4fFbTXq+X1u78lebSAgRl8flL+8rAVLIu AtJpeXfkg1riGQhIN4mZy+u5gZM9cjU= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm1 header.b=KPCaY3+u; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="y PVF2ep"; dmarc=pass (policy=none) header.from=flygoat.com; spf=pass (imf13.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 66.111.4.28 as permitted sender) smtp.mailfrom=jiaxun.yang@flygoat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706877038; h=from:from:sender: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:dkim-signature; bh=w2r17fGseyKoUkYg1Q+CG1Kwf5xRgoFxjWp3QiPCMOY=; b=tcxzLBYb4pZm1AIbb99SKpWe5NTvLvrAlQDz/xtPOMpSRlcH+XlNnvY6DOcjvyL1hFoxOL IE36hz9Pv8PK9r6WCt18FqX/3S6PGluVZfJKvkgM7uW+gnhSBw0PWrC9TrGcqqXQor993g fuC+DjHFWR1CCc3Gxj6/Vvu7vt4Rmuk= Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 00D0A5C00C0; Fri, 2 Feb 2024 07:30:38 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 02 Feb 2024 07:30:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1706877037; x=1706963437; bh=w2r17fGseyKoUkYg1Q+CG1Kwf5xRgoFxjWp3QiPCMOY=; b= KPCaY3+uIJ73xN9kmYWwqgB93DBfywxqEdTVF6jc120MMGM0qem41ii6ITXekWMz VBrSyQbOQFobNNMOYtJbqvUhxmtWSVWUogeU9JxxLmq05JvxZetbuaVM8hFwtZc7 B+dlZAVTfVuWDfXAy6QGqW6YSij16X4jDd73BiueETOXlSy2csX5Su4y+mBe6Zue FDZIj8Mk8xs4vvI5W7S86b8zCJauqXvPqpGTya19/yJvq6dKYZb1UvcYAbflthp9 2Su/6ZEeuTXPGiTorKVckNAGL24Jk3/kE/y84EUkHooM9TkQQjIHzagTBvRaad5M m2bsiZJgHM3sTlhiUx3AYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706877037; x= 1706963437; bh=w2r17fGseyKoUkYg1Q+CG1Kwf5xRgoFxjWp3QiPCMOY=; b=y PVF2ep61M5MoWsoGtC6vryilWqWoSPCuYHTkRIUxkp2m+XgU2WglQGeTgqMRkWen z3n/xeXDSYWxohz/3+6PfCnngrXxukbjVlgRq/M3TbTRhIytfk3C52Q8reQIwY8Y LhlxM1J1GBRMp/5yY34id+Y/jJyXHDFlIlQBTxxvsK3b/y3sZ1oWp3d4a0ZCGQBd mhawXZ3huHsn/FEiDGAcrMNf/6j2mYVmMK5GbdhWDvMmIja2QU72CFCs32FpS54m c4y9+s/rCgzw3TAy1OwJ8QsuYM1UPwOcZ8zjmbL3cQNTtwI77TfFYR1dyB59Btly nIU18gB2KMbJuwqTFfCsg== X-ME-Sender: <xms:beC8ZSS9vgNrVs-Hvq82_CG87KfVGjMgjClvvg-9JnosgFFm_cn8zg> <xme:beC8ZXz8StOt_t-l7V58i0P4ZiCOSH6iMH-iLoTNJNuhb_fLuPzK8LZR0DyK-sWad qOY8VRFfoxoaoLzilI> X-ME-Received: <xmr:beC8Zf1AdZciTpZB7LvtHMPQI6YTzogHyxj0T-mff9W2B776ZmnBA5SINvzxo325x8UfKsq3cHUJdXFiBowYJ-n0Zw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedugedggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepvdekiefhfeevkeeuveetfeelffekgedugefhtdduudeghfeu veegffegudekjeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: <xmx:beC8ZeBlb2n27dINsto1uwELIsIlvuV_sUhwwj9pqak7va1ogJIdIQ> <xmx:beC8ZbhkuWBdmrfyG_WPT4eWPuNjqTVOd3uP6cW9ewFPiEuBZXdcBg> <xmx:beC8ZarO86mYBvc-swgrf3yZyy5wysSV31Kzb3dP_IMZ1tDBhZzYtQ> <xmx:beC8ZbidnBaNgShomJ5CCVAgU2mnr9vmDVx5ibPZlThb2a9ReQoM2Q> Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Feb 2024 07:30:36 -0500 (EST) From: Jiaxun Yang <jiaxun.yang@flygoat.com> Date: Fri, 02 Feb 2024 12:30:27 +0000 Subject: [PATCH v2 2/3] MIPS: Clear Cause.BD in instruction_pointer_set MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240202-exception_ip-v2-2-e6894d5ce705@flygoat.com> References: <20240202-exception_ip-v2-0-e6894d5ce705@flygoat.com> In-Reply-To: <20240202-exception_ip-v2-0-e6894d5ce705@flygoat.com> To: Oleg Nesterov <oleg@redhat.com>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Andrew Morton <akpm@linux-foundation.org>, Ben Hutchings <ben@decadent.org.uk> Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, Jiaxun Yang <jiaxun.yang@flygoat.com> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=860; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=eEckd5oJQ3BVb3TI50bExWCbMqs/5XPSjzMz9OXoNmg=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhtQ9D9KbxBb5s2avMMxZk/Fa1OTF/ICgHV78MjaFTJtvf f35OXBNRykLgxgXg6yYIkuIgFLfhsaLC64/yPoDM4eVCWQIAxenAEzE9Dsjwz6v/vdH3Fze1/99 FOW6+OMuxxvHUq8msNTf6zrBPE9PsIThr3h4jgr7uXVaRkt3sXl2P3nPWfRUcFd+muzkppu3Vhz /zQAA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: B87862001F X-Stat-Signature: rx4kurkpx36h9rkejjyrt3q9yhfomyin X-HE-Tag: 1706877038-441564 X-HE-Meta: U2FsdGVkX1/kwyhRFmOafTXzukk1Rm/osso+GJproPwPRpfYANoUbqU/ZkbEtI3v9/FoU6RcDJZLL30PiGMCKgDkxF9O6NvtSkIu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glg8zVrmfLe/j0FSnovYVfXm2MbXCjvnFDmko9scSERmNpSe9rlX3Cd2jI9DmoHkBzqyeBzHw+CYa53sM2j2RuFQI5jGII/yJNmZp/uDarCgPh0AsZ3Am9ohLJe/AWTiCgqjJdD/bShNAXHW2oMHAjnEdcPhyfaViwBNJ8jwH1UQ4KDigAh3pE8p+lA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Handle delay slot for extable lookup
|
expand
|
diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h index 701a233583c2..d14d0e37ad02 100644 --- a/arch/mips/include/asm/ptrace.h +++ b/arch/mips/include/asm/ptrace.h @@ -60,6 +60,7 @@ static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { regs->cp0_epc = val; + regs->cp0_cause &= ~CAUSEF_BD; } /* Query offset/name of register from its name/offset */
Clear Cause.BD after we use instruction_pointer_set to override EPC. This can prevent exception_epc check against instruction code at new return address. It won't be considered as "in delay slot" after epc being overridden anyway. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> --- arch/mips/include/asm/ptrace.h | 1 + 1 file changed, 1 insertion(+)