Message ID | 20240201-exception_ip-v1-0-aa26ab3ee0b5@flygoat.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-48432-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp248831dyb; Thu, 1 Feb 2024 07:53:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxsUiPLNh27l/USBWfqoP/m9XZBo7/FXwacBC6N1Qf1FSdik0cQMMGrIFoIEgVDyI7aFS2 X-Received: by 2002:a17:90a:fe01:b0:295:20e:950 with SMTP id ck1-20020a17090afe0100b00295020e0950mr2312223pjb.10.1706802837288; Thu, 01 Feb 2024 07:53:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706802837; cv=pass; d=google.com; s=arc-20160816; b=0yknBpPeGcUyULW1UirXhNlpRk9NT/f0hLtdeIWSt8O/XEKO2VWR/eMtMIvBzPUkgM F1zJyWm9AMiGJhgwLS/CcP/yM78lmbiaWTZVqLvW/EQIgGsQXK8AtqamtyA//F3A04Az lRYn8RhPJgLY7wTzgdPPP2Rwu5GzF2sSJN8kiwE2p1Xbswsvs6OpHj2f1SELM0LhjM1C zHOhkjJoOhWRNRR+KKJlcPxb3eNdhO8xIXjEVrxlMFzUixVqOCRyrwAMM4pxGBUuDySG 2ze7bO+I5FC4ofuO/ypnS0Qyv9Pp7DRwvx/jmSi1+feF82PXYyTc/RWBvhYVBzkQjeS0 hGTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :feedback-id:dkim-signature:dkim-signature; bh=hJrBUU7pkBW3DKm9qlUbvAWbauW3jW5E3faoXg0oEwU=; fh=lZA+tac+U2m+u5ZmUo+qAwyjZZ1sG5Z2LBvkSgD9unw=; b=xSWOi4IW8L8/mOEpMWYgCXwgjdrWXL+m2NJmF9xvRYvH3gXAFk27rXS9s0xuN8TVhA 7deyYYYWNYYcP+veHnPQ4dCzDm5QsU/ibTQUyT5YMqwuxGJdAfqe7n99q55P9YDEULSc 2m/Q0QNLVuX5+8bqRclYQwNRIBGVKLaAwSZyWuxNAFj/l9LdyqLC8Wcd3z8+5pk7hzjP 9I/lhH0bjy8CSCYwRRM2nyc9a+BCwnsMgQC0a5fO+rKxuWwhfDPCBpDfTrqV+LXNjjdD gh6gU9xzzz3NUHfuZJzUhcS2ZXvpIqsQkZ9wLrZ99rqsoagrPqMTnqKrk419q9hXgeKZ Xnfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=QJcbaxYI; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=vRaxLOy6; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-48432-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48432-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com X-Forwarded-Encrypted: i=1; AJvYcCXpkxGgi4YlwH9i9y2vE8eUcZg71BHAo0OgS7k+ss0VPLhF2BjcKO20Pn6iKkqSomFI+kUePYSL7f6ip64jZeRv/RJ9LQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lw3-20020a17090b180300b002962fe3cd22si279733pjb.142.2024.02.01.07.53.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 07:53:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48432-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=QJcbaxYI; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=vRaxLOy6; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-48432-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48432-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E2896299252 for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 15:47:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B76C677A07; Thu, 1 Feb 2024 15:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="QJcbaxYI"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="vRaxLOy6" Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1A85626DF; Thu, 1 Feb 2024 15:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706802394; cv=none; b=qBUxSVVoaieF+7YAYgPJFIFptRRITMQFjWhHJLa2uWtXore6ULBZTO+0trZTYXPH3DOPYe2pW1MDvcd6N0DJYUL1jqIb3fP947cyFisHbX5QI/v/4U7EcQaUcuoha41FycK9CLPRCCvtiuPQcJc5h1Ca8Wt6uIGxlsI3FdA9wSk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706802394; c=relaxed/simple; bh=8B90B4rDuiui0E6UinfX3ZgtenzPM9teCiqi4K4psi4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=omH9SD3CRslPir4Wifprc8cPA1WXOqAiqN18BYJoYHhfudYaGvGoWAVUlXDxRi0EmLFB3wrKFLkTV+WqKMAS6qPenuF80eYhzXMguooQrOWDBm6kvRc8QhR1KpXjTiaTjueBJpK9gv7KzGryUPicfmnbhmGGxiihrpc2gcDPsC0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=QJcbaxYI; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=vRaxLOy6; arc=none smtp.client-ip=66.111.4.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BA7165C0195; Thu, 1 Feb 2024 10:46:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 01 Feb 2024 10:46:31 -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:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1706802391; x=1706888791; bh=hJ rBUU7pkBW3DKm9qlUbvAWbauW3jW5E3faoXg0oEwU=; b=QJcbaxYI3QPsZ2CVnt cbB0rhi5RyG8LrtaN1th9lJ3zUkk34jrHZXWEl7PBa2RSSeswnJ+darRjq5+W0xZ kzsEuHIZsInDWaxWZAPLtiUP4dT6EnvMJp68qzJc5hVRpMnhOG3gp/oe0Vc5QwEK gsqZmrdmqvmRVXWL7wK0mdZnEr5XbFvNyuHRcumVAZoS+FoYwhtH092YJsZQXt2c hfejBHa7CT2l5ozL391ztsR0C3Vp6aAxMxY9denmh4lX56M2YdQAm6BgtOBRNbY3 DccLcuFi4vJ33rQp8jDf/kam+9Nhvmnw27X4VnekvYZohyyPNcx6taxZdgni658h WbgQ== 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:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1706802391; x=1706888791; bh=hJrBUU7pkBW3D Km9qlUbvAWbauW3jW5E3faoXg0oEwU=; b=vRaxLOy6RLcHIj5Wn080Pi8nMo5Av y6iFYu7UmppjBd+K9yrYWZsC3g/sq5e2CntgvP/FWmnRV/W3zosZ628ZUCUFJju4 Fpam2jzbzvuWr4qDJeHoSImvzA4FLq4xDKK/pRkpWSn99xzWmBOTVDSDO+dit8Wh N2afrHCEunwUtUMdzgWmaBfpzF8aulfcDv8SrmvF49WT1Hf4GSGdpTLTRhCvV/Tv hSFtjlKNO2k1x0yn7EiV5WAyXxdPDH8XynH2HcR6pBxBW9RY6SyGInku9ml6gxAg VovmnUu4iflNtrbUTV6ORqohZbyM7PnOdhYTTTYJJADjaRzFH1Lvrn2IA== X-ME-Sender: <xms:17y7ZcHZfCX1KAiKGB-ctsMVRfuzSdqwstRs68x-Pfh81f3QoNvGCg> <xme:17y7ZVU5roU_X-4wMZuaMQ5HcTokgnr5ilyb9oIO0h6y6RHeQuUIVEvONYS833_UJ 3yi2mBqhd2Cqa_in70> X-ME-Received: <xmr:17y7ZWIfbfoEgBtvDw2KEGpzqM_c9WpsDSoQM2PTbOt_tWN9bnggDYlQWvu2DnTxMUFSqRFBQUYFHKyof6kTifqQew> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduuddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepgfevffejteegjeeflefgkeetleekhfeugfegvdeuueejkeejteek kedvfffffedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhm X-ME-Proxy: <xmx:17y7ZeHU49ll_6kkFQUAk9_h62oTDCxPt5AqqijfkNXSFjz4ZupCYQ> <xmx:17y7ZSWO8xAWfy0tEtGINB-co002jLBR4s2BoLWmeW4-mRz_nbZ3rg> <xmx:17y7ZRNga6qerSc4WElUyKjSfXWyMsvXOPPPFfJCwjC83HFyw44jiA> <xmx:17y7ZeTviw0gA5wkUZCCYnv34A2ZwmT_fb-UwirlQEJfP2ZBY-eCqg> Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Feb 2024 10:46:29 -0500 (EST) From: Jiaxun Yang <jiaxun.yang@flygoat.com> Subject: [PATCH 0/3] Handle delay slot for extable lookup Date: Thu, 01 Feb 2024 15:46:26 +0000 Message-Id: <20240201-exception_ip-v1-0-aa26ab3ee0b5@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANK8u2UC/x2MUQqAIBAFrxL7naAlQV0lIkRftT8lGhGId2/pc 2BmCmUkRqapKZTwcObrFDBtQ/5w5w7FQZg63VlteqPwesRbrJWjMqOFdUFj8I4kiQkbv/9uXmr 9AHlP29teAAAA 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>, Xi Ruoyao <xry111@xry111.site>, Linus Torvalds <torvalds@linux-foundation.org> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1962; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=8B90B4rDuiui0E6UinfX3ZgtenzPM9teCiqi4K4psi4=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhtTde66eLuV5d7XK5sbbAinu/1bGLReadl7iOl618vwGk W2Fc5bqdZSyMIhxMciKKbKECCj1bWi8uOD6g6w/MHNYmUCGMHBxCsBEgjcy/FPN5rJkzftgsers 0eo1VjJHLjsu/lRkuiX0gML8inM8jjKMDFtEZ97qiz4n1bXolZXwmUtsVguOqK33VjhZvyEmvOP PLGYA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789712491703601419 X-GMAIL-MSGID: 1789712491703601419 |
Series |
Handle delay slot for extable lookup
|
|
Message
Jiaxun Yang
Feb. 1, 2024, 3:46 p.m. UTC
Hi all,
This series fixed extable handling for architecture delay slot (MIPS).
Please see previous discussions at [1].
There are some other places in kernel not handling delay slots properly,
such as uprobe and kgdb, I'll sort them later.
Thanks!
[1]: https://lore.kernel.org/lkml/75e9fd7b08562ad9b456a5bdaacb7cc220311cc9.camel@xry111.site
To: Oleg Nesterov <oleg@redhat.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Andrew Morton <akpm@linux-foundation.org>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: <linux-arch@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Cc: <linux-mips@vger.kernel.org>
Cc: <linux-mm@kvack.org>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
Jiaxun Yang (3):
ptrace: Introduce exception_ip arch hook
MIPS: Clear Cause.BD in instruction_pointer_set
mm/memory: Use exception ip to search exception tables
arch/alpha/include/asm/ptrace.h | 1 +
arch/arc/include/asm/ptrace.h | 1 +
arch/arm/include/asm/ptrace.h | 1 +
arch/csky/include/asm/ptrace.h | 1 +
arch/hexagon/include/uapi/asm/ptrace.h | 1 +
arch/loongarch/include/asm/ptrace.h | 1 +
arch/m68k/include/asm/ptrace.h | 1 +
arch/microblaze/include/asm/ptrace.h | 3 ++-
arch/mips/include/asm/ptrace.h | 2 ++
arch/mips/kernel/ptrace.c | 7 +++++++
arch/nios2/include/asm/ptrace.h | 3 ++-
arch/openrisc/include/asm/ptrace.h | 1 +
arch/parisc/include/asm/ptrace.h | 1 +
arch/s390/include/asm/ptrace.h | 1 +
arch/sparc/include/asm/ptrace.h | 2 ++
arch/um/include/asm/ptrace-generic.h | 1 +
mm/memory.c | 4 ++--
17 files changed, 28 insertions(+), 4 deletions(-)
---
base-commit: 06f658aadff0e483ee4f807b0b46c9e5cba62bfa
change-id: 20240131-exception_ip-194e4ad0e6ca
Best regards,
Comments
On Thu, 1 Feb 2024 at 07:46, Jiaxun Yang <jiaxun.yang@flygoat.com> wrote: > > arch/alpha/include/asm/ptrace.h | 1 + > arch/arc/include/asm/ptrace.h | 1 + > arch/arm/include/asm/ptrace.h | 1 + > arch/csky/include/asm/ptrace.h | 1 + > arch/hexagon/include/uapi/asm/ptrace.h | 1 + > arch/loongarch/include/asm/ptrace.h | 1 + > arch/m68k/include/asm/ptrace.h | 1 + > arch/microblaze/include/asm/ptrace.h | 3 ++- > arch/mips/include/asm/ptrace.h | 2 ++ > arch/mips/kernel/ptrace.c | 7 +++++++ > arch/nios2/include/asm/ptrace.h | 3 ++- > arch/openrisc/include/asm/ptrace.h | 1 + > arch/parisc/include/asm/ptrace.h | 1 + > arch/s390/include/asm/ptrace.h | 1 + > arch/sparc/include/asm/ptrace.h | 2 ++ > arch/um/include/asm/ptrace-generic.h | 1 + > mm/memory.c | 4 ++-- > 17 files changed, 28 insertions(+), 4 deletions(-) The only user right now is mm/memory.c, and it doesn't even include <asm/ptrace.h>, but instead does the proper thing and includes <linux/ptrace.h> So please make <linux/ptrace.h> just do #ifndef exception_ip #define exception_ip(x) instruction_pointer(x) #endif and all those non-MIPS architecture updates should just go away, and the diffstat should look something like arch/mips/kernel/ptrace.c | 7 +++++++ include/linux/ptrace.h | 4 ++++ mm/memory.c | 4 ++-- instead. Linus