From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEBC4C4743C for ; Fri, 4 Jun 2021 17:01:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF39161287 for ; Fri, 4 Jun 2021 17:01:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF39161287 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=P8jNNFbxEjAj+KQBw8uzV+xHRlY7E3Jli3fPY/m+KyI=; b=tXHKnhvVHAl4XusUB7oq2wpIiZ 8NayWNQCl6pFnfP05iWQNUlkaWHqgEmhV1vEArceVl64ObRS6M8kTJCaPJW5Ys51EJoBJsK5vmCmu e2rEPfVzcLDhHQZzato+6Q1IhvSo8SgyND7ZpVY7cO0ybqINfM0Qtzl5zBdLGHaBkxWdBnY8tE4HM FJfuShgj/bf02n2yFFy5deU/lgQxpbSEaMkpQ4hQiB7vFheR0XVcMnjyYwblFAgNfydVNLngD5wtV zdocqxJJHTkd3BFPCL69EOgPxG8fpV0C30JtkaF3WHNjv6sQx95YX3zr3XJimFdmi8WaChtuzOzc+ K8aJN1jQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpDAv-00EUhj-Lp; Fri, 04 Jun 2021 17:00:01 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lpDAs-00EUgN-7G for linux-arm-kernel@lists.infradead.org; Fri, 04 Jun 2021 16:59:59 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id F3A78613E3; Fri, 4 Jun 2021 16:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622825997; bh=oy91zHyeWFBR/8w6AyBF+OCwrD1WZiRJ8FRdiKTuQqI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ADXZmoNwtLICjuUk8BKk7G7Sn/xPd+xGBvgfPNa1buqZ5s7ymG8fFFBm4XDmHleCp UG2ah5vUf+/9ofJnfONMsZGXqekSRlbXmU7Et+gZ937iTcymPem9/GdYi8u91VZRjS vpJeLmB57RqlpLYUdthc7gZ5ddE0n4vyOe+olNExDzAlRoXc6/Jqlu4WHyAXBegups 2uHPcZBqrqv8ffxEd+eCKmXDbtSxS5KKwq8dixYs3SxK9oM7GYGMYPjK5ucTJJWBYv aW9z2c9t8eMl5cPRfSH+AWGb9B+FtuFy04iRwovHyS7UGAvXLu6CXiJFkYbhzDt8aU sDpITrpvWAY+Q== Date: Fri, 4 Jun 2021 17:59:45 +0100 From: Mark Brown To: madvenka@linux.microsoft.com Cc: mark.rutland@arm.com, jpoimboe@redhat.com, ardb@kernel.org, nobuta.keiya@fujitsu.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, pasha.tatashin@soleen.com, jthierry@redhat.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v5 2/2] arm64: Create a list of SYM_CODE functions, check return PC against list Message-ID: <20210604165945.GA39381@sirena.org.uk> References: <20210526214917.20099-3-madvenka@linux.microsoft.com> MIME-Version: 1.0 In-Reply-To: <20210526214917.20099-3-madvenka@linux.microsoft.com> X-Cookie: Auction: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210604_095958_305564_0C5DF7A4 X-CRM114-Status: GOOD ( 13.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1676421197973472713==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1676421197973472713== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 26, 2021 at 04:49:17PM -0500, madvenka@linux.microsoft.com wrote: > + * - return_to_handler() is handled by the unwinder by attempting to > + * retrieve the original return address from the per-task return > + * address stack. > + * > + * - kretprobe_trampoline() can be handled in a similar fashion by > + * attempting to retrieve the original return address from the per-task > + * kretprobe instance list. > + * > + * - I reckon optprobes can be handled in a similar fashion in the future? Note that there's a patch for optprobes on the list now: https://lore.kernel.org/r/1622803839-27354-1-git-send-email-liuqi115@huawei.com --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmC6XAAACgkQJNaLcl1U h9AmswgAhOf2VOY3fAiB5KkSryDhSWd3yIPNpRsIYiepRmDE0pyVzzYnyl4DxK/G PGvN/Wi7Uzu36mHgAA5qCka1F4gm6RN8yLbtGbvtV6fqvTE+N0LvHYt3zNhyZjix KhK2sFjE9bNNg7S/ZM8whyXqhPoDOtfmxgGSiuHNwh5Lbcfsl5HO1AJD02r/nbnz RqOCV1VcSnWit9AoMZLSfhkFCf4/G5PlijB6x1PkvWNAtsyM1NE61/a/HFfhwGkt ZbeuD0xBZMone+oCqNqFyslfhdj3iHBMUntYtuADIugheBEhf+L6H7yLU/CrLx5w CoDOftD29KUJUDdFdBuQ6QndSk4HhA== =cks7 -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- --===============1676421197973472713== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============1676421197973472713==--