From patchwork Fri Feb 2 12:30:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 13542887 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 7325BC4828E for ; Fri, 2 Feb 2024 12:30:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E2FA26B0074; Fri, 2 Feb 2024 07:30:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DDDA36B0075; Fri, 2 Feb 2024 07:30:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C7EA36B007B; Fri, 2 Feb 2024 07:30:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id B64586B0075 for ; Fri, 2 Feb 2024 07:30:40 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8B272A0F85 for ; Fri, 2 Feb 2024 12:30:40 +0000 (UTC) X-FDA: 81746797440.16.C11054E Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by imf28.hostedemail.com (Postfix) with ESMTP id 38060C0012 for ; Fri, 2 Feb 2024 12:30:36 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm1 header.b=MZV4wMb8; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=PFwE9yHU; spf=pass (imf28.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 66.111.4.28 as permitted sender) smtp.mailfrom=jiaxun.yang@flygoat.com; dmarc=pass (policy=none) header.from=flygoat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706877037; a=rsa-sha256; cv=none; b=AuWMPlpGXbTYW6SWQSOla+99DNO4u99IF26p6dIc0TbB6zwgeTkoWm9vZxyN0sTWL0jZxJ be6yc+8DTZbq1OrOTSi7cz685kQQwYQDdG9yJ+CnuMT7K05a+0ndaVCv3IzFyLgUlGvgTY VizRrap752RpUTMYTLVc7HUBJ7wweVI= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=flygoat.com header.s=fm1 header.b=MZV4wMb8; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=PFwE9yHU; spf=pass (imf28.hostedemail.com: domain of jiaxun.yang@flygoat.com designates 66.111.4.28 as permitted sender) smtp.mailfrom=jiaxun.yang@flygoat.com; dmarc=pass (policy=none) header.from=flygoat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706877037; 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=yRuTU6WwnK4ASnLLJJkZtTcbcg4dpQfErooMSebUGYI=; b=LemQKksmm/d0FtxlJ1j3Bilki3+BI0MmBL8zvfytmDHtqgxT+Wlhxjg4N/3X7ipNw1RS+m 3B/Hk1PkEcMBt1pLTIJoJmM66TjiQxr6h+4FiNH3PTMq6SrG5CU2vjlOv4s6vo6Z/75vU2 ybxGb0pe3FAabnNnGBM+Tu5CdAkiBc0= Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B35FB5C0172; Fri, 2 Feb 2024 07:30:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 02 Feb 2024 07:30:34 -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=1706877034; x=1706963434; bh=yR uTU6WwnK4ASnLLJJkZtTcbcg4dpQfErooMSebUGYI=; b=MZV4wMb8fDxCIy14Hg XrOXP9hayqNVHIn6LVzBCsDTLZQ4/6P5YWFrjNLcrcDioLZHFItwYbDwS4zY3bKN md4GJ0OYkgqQfiVpL7cnqKCnJY2dj4P4zyg5gje3R3hljYr/+rtFR0eh40ixiDqQ gbQdRVgcANZTa5BLzu0zFvRjLyH9oTl/pi3LtWKmtVyV5laYtETmc1VzQe6JWFFB uCtXjswYTCCS1A+uUOvia0ukE9Oh9lZzW0WlTSpK1IyG5g/8UlyNaSfTBttY3mn1 l8CgIf0XxuPmtUNGCnY7dlpNJYnuRnpHlFFPooWX9CdyrsLVdiml81HUqasLJjNr jx9Q== 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=1706877034; x=1706963434; bh=yRuTU6WwnK4AS nLLJJkZtTcbcg4dpQfErooMSebUGYI=; b=PFwE9yHUFdVOGhRcB+PN/twkCb8qa CT2vTPaqjAqbwxzFY1BRJYUKqk1rQq71oAmHvZzcjRnfoBzbx4jyPrBOkr8c2eSK JEpO5uYcM7w5zI5h7Yg1LpdRIN2F2vKo6dcpKE+jUl2TbvONuRPQlr5Y1axA/oKv /t2m8v7TA4dALlwpja3C8oXyMDImJcFuuyystXr5qEUuk9uXIUN6cYri28GYE9wd fp+k15mOWcqBH11MCgALjCsmC+fnd5CVKwm4V/UiFTovT0mPK4L2OENRp2GEMI0T ZWahw1f+PlH0AQKvlrw0QjGgqBqFQijjynVYEo+K8YX2r/mNKMI3X2iHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedugedggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepgfevffejteegjeeflefgkeetleekhfeugfegvdeuueejkeejteek kedvfffffedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Feb 2024 07:30:31 -0500 (EST) From: Jiaxun Yang Subject: [PATCH v2 0/3] Handle delay slot for extable lookup Date: Fri, 02 Feb 2024 12:30:25 +0000 Message-Id: <20240202-exception_ip-v2-0-e6894d5ce705@flygoat.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGHgvGUC/13MQQqDMBCF4avIrJuSxFRoV71HkTLGUQdaE5Igi uTuTe2uy3+Y9+0QKTBFuFU7BFo4sptL6FMFdsJ5JMF9adBSG6lqJWi15FP5erIX6mrIYC+psQh l4gMNvB7coy09cUwubIe+qO/1B2n5By1KSIGoG+xqItld7sNrGx2ms3VvaHPOH0aPv4mqAAAA 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=1507; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=pGqKeHOWkrrdSTGrMykY9rjwN9Hvy+fpNB0uLbEruW0=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhtQ9D9JY1ZN+2RmLFb5hZLfOsy+9bCvKkvriW2thfXnT7 /uJfxw7SlkYxLgYZMUUWUIElPo2NF5ccP1B1h+YOaxMIEMYuDgFYCJfqhn+cC75k3JAd+3LKVvn usV8ZJSyFj+8/pj27Yc2Zsps75JyUxkZmu2L7j6x/vtZ/aOn9yvl/du1WNX/Fa54pckROm/mR7b rnAA= X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 38060C0012 X-Stat-Signature: t7ozqd8m6fznxocjctyybu8buyeod9gb X-Rspam-User: X-HE-Tag: 1706877036-816825 X-HE-Meta: U2FsdGVkX18PMiQMVptLmFOx/suXmL3zirGe1iv0KZf3xJMjpOsz93DunyWRx0bQI5Qn2Vdc7tlscOHYHk8QOAqFBT9i+VZWqF7SlBHu2h126NirbernepZsJU9OjtZsUDIXRfj5LzQhKChhz6QaErNaXUtv1EdGrcO3vqU/66MuCY64SCEcMc3nwZTMJvhOlFjksCUQnB+BJe9oMsVmaxqFfdYQu8PgbvLPR1HmDoH7MX3oFP4oZiuB6YCU/rtd581N98Np2JHjiWT8lRawI46csN/cZ3+CcV7WSKxKwRbn+F8bnYoPSQzFtAkqkWuHO86xtj1yja3udOzhm4QnZerv7h5kYADqF+MYe2nFB1kZQ2PyluPPs3+Uvs2Eb0wpe/6IWjO+TST9sjwDAfd2XZPVwl8UnGC1HVsYigt316KdU7sicIAqkvKbe9CD9d80t9y1UqvsywoKfPGK7qwheHNsq41B1q5XEbE0AvJZt4ReIWUq6LSXlK1HTfvYtWsh/BH2bkF6p8hlwfgMapGO2jeegnoFZaRzuSkzzhSlR14m3OC4MD4PG+UG6u2KwVqQHKaNLV94sYr9MvWOpQWSM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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 --- Changes in v2: - Reduce diffstat by implemente fallback macro in linux/ptrace.h (linus) - Link to v1: https://lore.kernel.org/r/20240201-exception_ip-v1-0-aa26ab3ee0b5@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/mips/include/asm/ptrace.h | 3 +++ arch/mips/kernel/ptrace.c | 7 +++++++ include/linux/ptrace.h | 4 ++++ mm/memory.c | 4 ++-- 4 files changed, 16 insertions(+), 2 deletions(-) --- base-commit: 06f658aadff0e483ee4f807b0b46c9e5cba62bfa change-id: 20240131-exception_ip-194e4ad0e6ca Best regards,