From patchwork Thu Feb 1 15:46:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 13541300 Return-Path: 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 C1000C4828F for ; Thu, 1 Feb 2024 15:46:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 508316B0072; Thu, 1 Feb 2024 10:46:36 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4DEAD6B0087; Thu, 1 Feb 2024 10:46:36 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 37FAC6B0088; Thu, 1 Feb 2024 10:46:36 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 247216B0072 for ; Thu, 1 Feb 2024 10:46:36 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id B8FD2A248A for ; Thu, 1 Feb 2024 15:46:35 +0000 (UTC) X-FDA: 81743662350.21.167186B Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by imf19.hostedemail.com (Postfix) with ESMTP id 7E6411A001B for ; Thu, 1 Feb 2024 15:46:32 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm1 header.b=QJcbaxYI; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=vRaxLOy6; dmarc=pass (policy=none) header.from=flygoat.com; spf=pass (imf19.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 66.111.4.25 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=1706802392; 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: references:dkim-signature; bh=hJrBUU7pkBW3DKm9qlUbvAWbauW3jW5E3faoXg0oEwU=; b=etppTIJ19QWx2zBYo9/goh0Dir9pJZFoMj7cpWgTa4ZAP0Z2SFyeURPfVMrF8I6GSVN5xp V8OQMYDEhIxL7KMGVurX5aTyV7XG3EiSSJmAufurspwEiCVDt8pWbfL335MGvSY33vI/3l La2Gaztwlthxcox1bMVFd4o8ZTa6DvA= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm1 header.b=QJcbaxYI; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=vRaxLOy6; dmarc=pass (policy=none) header.from=flygoat.com; spf=pass (imf19.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 66.111.4.25 as permitted sender) smtp.mailfrom=jiaxun.yang@flygoat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706802392; a=rsa-sha256; cv=none; b=xqtaaGUvVTWTzKixDWolUDnmwKMTLuDKbXZiIvSVPOu/TIl2bCql2qjftPRw1wid/6abU6 69tvIMxAYsA8yTXt7O7xg/xaQxYUAE8bL8eXyszMY1hSEOruk8rDytOMxVx7YT8d0YMfHV iFlXK11rfzwJ6SFg0cpHu2w3UhrJBao= 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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduuddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepgfevffejteegjeeflefgkeetleekhfeugfegvdeuueejkeejteek kedvfffffedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Feb 2024 10:46:29 -0500 (EST) From: Jiaxun Yang 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> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANK8u2UC/x2MUQqAIBAFrxL7naAlQV0lIkRftT8lGhGId2/pc 2BmCmUkRqapKZTwcObrFDBtQ/5w5w7FQZg63VlteqPwesRbrJWjMqOFdUFj8I4kiQkbv/9uXmr 9AHlP29teAAAA To: Oleg Nesterov , Thomas Bogendoerfer , Andrew Morton , Ben Hutchings Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, Jiaxun Yang , Xi Ruoyao , Linus Torvalds 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-Rspamd-Queue-Id: 7E6411A001B X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: t1ikmnw18itoerk61icur8oc4eohbhrz X-HE-Tag: 1706802392-434283 X-HE-Meta: U2FsdGVkX1/3BtrcYADgsJtq/KkWKOWcYp8SoEyIGeZURwlaH/S7CwSXSyGLhUN62NwCsTma2ws0A9OzPx/dwhRh/r9B20No8SlueeNh1i0kOuFNw1O38nZCY6XhS7alowP/toQmTzDZgSMZ2U42Ya3QzrplC6smJmUy9i0VPwcSQvRHpoDwSvuL02lSUOzvca248X/adUIMS3JxBsM5Qr57VEPR5n5EqXX4Lhohnz2lO0zS3Qmgs7VHpm/vY6cHOh7DhtHbZIrbUAh9SZL+NvSOzI9tX3YmfnruDzZ5c5SJp24Icsb+uKd+uocGbaXNsS41AnwhSTpJpsGTbfiKHLt9Ty0uEFZQ3UiKf5pPwjSnvHYehTW+i+LlkVbrdoxw+TysIjI/OvJOSViQ+VqO/UYb7g+SaU8Ha+wXtqM5PeL30S3gTAwNLNhaBc9zkSszch1Eu92ypT/gJ1YzX2OPtWNXM0/0kUkZVjqykhEcoUUWLUm/+E6zlGRq1xPi80qXErmSGteHXRjYmP0Yz4rfOnCtxSqGRp2fschzrxasLyPUUiHA/lbfD8FkyBNBgvB0eXK1Wz8b5N1R+mWK+r4Q3ud5V6zRagFghQCXj92Xws/HT5l42H2WKt2sb1RjWnb3dEk0aN/3zNiqUbeNtQq7KRRoR1lEDHsZRpj5u4Y9KXX4soPk7HVnT9l9P5h94aKs4eau5CPzw6dgSiOt0UkFz+6k6Pj5LQDIDjyTDFG9Dizt6YWmhufxrJl7/4rLLDgHtEK3GWd19COtSXi6f2hMiNZakjA9LXAxLHJnIozezyZg/hYcl+WwOd9v0x5/3tRtzIuPXfBFqVSeRDVT0Nya//baK8NZC1aYE2M759G/q5Dp3mDClq+/ljgaRt65mUWUoZVfQWCP20h4vt2vE2jkt5fZxvEgBmyOsTAQezUcX4mDZp5FtO/sEqVhgqBG1aX1CeKIa4/bpUTQR8LMPLS fQBZzVA4 Kvqh5KqAA2RINCKMBQxy1nU2/o0Q6P0WWKihJedPkYNOgNXJ/K2EuAjR2vkj5buPIH0oGMCazKYSsiedqepp2muqe+XcAw4V39nLGSfWldDTnIV85CDzLuK47vCOgjR/mHO5EcXgmhufsETc1MqnD78sq50C9Nlpi76I/x3bGQVQ5CjP1qWdMNDmB2BjC7GvNYzX5KCj5jKy7mRZ8AUChouwSv8SOB/BRIGPvHgiLbkC4dYDgJ/RLKfDoSVwXscsDZYxOCrt8c2UXWg5Pb6GC+im3C/keq/45gz15yMcxK+8hQ3aR/ukk4PvjNnIl/oOmYGKbBuQkwNbld2VE7Am6KR2ljl5nYumfDd1T3lkLarh1bXgiTWAdtq2Es1N9+cuUqnJi5TW2P+hHUgQczb028l0phKzeSeJrCnNdJtg7Zq3dwcHPlsEe1dqaHXfic9HcrsK42lUCJfn2M1Hp9rlviW1fSH8vbzvdzqKEVbwAROuabFcLAVu3fxeemZ2reXNB+kg2iutjEaNX3Dvy1k3AdZQlwaBPk0XgFoksrYfFXHlG++xdbiuL/eCW8Q+RHCPlKZpOLGAFYxLYsoQV0n3DVzMODw== 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: List-Subscribe: List-Unsubscribe: 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 To: Thomas Bogendoerfer To: Andrew Morton To: Ben Hutchings Cc: Cc: Cc: Cc: Signed-off-by: Jiaxun Yang --- 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,