Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp808997rdb; Fri, 2 Feb 2024 04:57:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMmaJdJryBg9Mt161iQlY/rO3ClIys/brF6ap8SwUpw2mM22EuzyS63/jhPuDWnyymIVva X-Received: by 2002:a05:6870:449:b0:218:566c:65c3 with SMTP id i9-20020a056870044900b00218566c65c3mr8868188oak.4.1706878654356; Fri, 02 Feb 2024 04:57:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706878654; cv=pass; d=google.com; s=arc-20160816; b=nt4PY3JOPyMR7a3LY9suWleJblZSUo+AfQSD+SaJZHOjN7kQNqx2xMz7fLD7PbOXln oK3S+JN13cw1JfpRV88h4M6VxxgDrzDq1HVFXLxcUE65tI1+ACeILoqs0GWRjpMFI+X+ MVY4O1IU2ybis+Mt8fzhXj2wyoCGmaqwqKjgjardfR+IqlbiL26f5Lmr6W1t7QfXVEKq 2XusgeSL1XBlZqQpzGjbop0GgCHX2ajx44FbcsxdMraSKfNrETEoG71pt/qFAI04v9xQ x7fL4Y4xjfDPl7NNu1LuLbfMljLZfORLmuXWn2UE+ZwRuJtqLgPrIHC+zyKzc1ILZ3LV pmtQ== 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=yRuTU6WwnK4ASnLLJJkZtTcbcg4dpQfErooMSebUGYI=; fh=eINEc/u7DdmwsqiTHGQekJNmege0BEvj7zUFUgcXPC0=; b=UXItkOVI4hakLnSZeyIJP85qvT3sduKj7T1Pd0SsNNSIebaFykc9G6SWxMdkHVJUwk 2b8Ya/V0AdiTaQ5Ln+ibZTnOTK7RBWrfSU2tRjN6H1LYTCjwzrjTTKsWrGy2pPsIFNrT pWVlAQbkaAAD7VdrOeqLyg7F6uXMmgdaFYMLPTck9r6+muwBXZpA5vn25ceeHozn6f1S KLH2+E1CvLULOM5TbCyrYGkULgpiZy0Y4JTnZSDDXtJbHaZ27RvKMsONoa19MqvLcrN7 3nAxrHjFImc5ITm2wROMeOucjdAGcmmzuxn9Ghnr8ufSlGnx2kDMDTMIdxMn5+s5kMXF CXkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=MZV4wMb8; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=PFwE9yHU; 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-49844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com X-Forwarded-Encrypted: i=1; AJvYcCX3DIHbVHcSNYaPRJcicr1lo6eXcZ8eOlkIGMX2XcVvWOnkUU28WIKFUGH808XfIQbQiz3aAhBJSaUDMeRRlynR4mxbyrKWxz1f9eJ1Tw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i6-20020a654846000000b005cdf88fbc11si1591139pgs.48.2024.02.02.04.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 04:57:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=MZV4wMb8; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=PFwE9yHU; 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-49844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49844-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6093FB29498 for ; Fri, 2 Feb 2024 12:31:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE251145B28; Fri, 2 Feb 2024 12:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="MZV4wMb8"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="PFwE9yHU" Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 D44E9433B9; Fri, 2 Feb 2024 12:30:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706877044; cv=none; b=pM0zzrUiSv6DEMTaAlZrvAcnaZXVb2+QumKvhky1vTgDqDEt4ADaYounMr+CTv86MuanI6Fo4fYxzWRf90Q5wCmvpsEoPoAWLSpDldRFrYwjM2rNKk4lmYJUJRAnRPdkyzipdYGs+N4NPrASFuBEC4ZuxkkPW3kJeos0QLEjvOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706877044; c=relaxed/simple; bh=pGqKeHOWkrrdSTGrMykY9rjwN9Hvy+fpNB0uLbEruW0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=nUBMGfnh5j1n2KsKF6NYmzS17fafNxRuZ/IOQ+EnkGkZ4QesAnsoLHxngqlBs0luhmH2eFbC90ZFV50E4y7KkpQhArTrTNu5cJkqxWOGUCt4Q3WUNkmjC2+qLYT3ktOPmfwBRZSZ6gKK/Ymolm/3C+SXkx0kXdaCQKK2437VhE4= 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=MZV4wMb8; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=PFwE9yHU; arc=none smtp.client-ip=66.111.4.28 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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, -- Jiaxun Yang