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=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 86167C432BE for ; Thu, 29 Jul 2021 17:10:10 +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 5243660C40 for ; Thu, 29 Jul 2021 17:10:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5243660C40 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=7u1oDt0McdK8x+xvYP+aC81O24+JirwCkPzn3AWZAgA=; b=nE1DVNy0QUVEK/W/6cYB7j4nDw Acesrg1uM2CsWKVPROSbXIj8ypGbKtZJ6Ns2hM8EM9/UY+y/kglcdvRDq80ma9Pc5CN1ygvPv3RxY QLno1OigoqVnHrg7Fa6hwp+Ff1A53VUMJWzTnJPJTyk72JeoarA1ggOVkgpkDmtL7CwdqixqyEwsM Yfu4uCNLXMBKOFAN7/WCl6iCtY3Rz5G9M7ZRVoE38y8cUuYt6GV322YbFlhs9bAMnFwZZKFISaT05 RkGXOmSQ/G1g2TRtXU3TQHJtGJHaThjAXXYWvfhBmksAkt/SoyKsjxs4rz20hamlbdaRKFmZbaR9+ 4SDfktBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m99VH-005EC1-VE; Thu, 29 Jul 2021 17:07:28 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m99VE-005EBR-2d for linux-arm-kernel@lists.infradead.org; Thu, 29 Jul 2021 17:07:25 +0000 Received: from [192.168.254.32] (unknown [47.187.212.181]) by linux.microsoft.com (Postfix) with ESMTPSA id BE6402048040; Thu, 29 Jul 2021 10:07:21 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BE6402048040 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1627578442; bh=aJLiwkasTUV5PUh0KySgk0D5vqXSl4aYUJoTZq0Sg3E=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=bBR4WzdTLGd4Mf67ZVBd0imDMLfOd4FCrRgsR8/I47S7CX6uWzxXBA9TodM4eud/o d26aBfqZtD37cP+RcBFQZLkmAR1knNuKTFTrbXAts/HX5V2SasWO5zu41kJSoUFlzD +cJRXWzIQlbhcYYRDfuA5W+0f78PMyG2xF0rmeKE= Subject: Re: [RFC PATCH v6 3/3] arm64: Create a list of SYM_CODE functions, check return PC against list To: Mark Brown Cc: Mark Rutland , jpoimboe@redhat.com, ardb@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.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 References: <3f2aab69a35c243c5e97f47c4ad84046355f5b90> <20210630223356.58714-1-madvenka@linux.microsoft.com> <20210630223356.58714-4-madvenka@linux.microsoft.com> <20210728172523.GB47345@C02TD0UTHF1T.local> <20210729145210.GP4670@sirena.org.uk> From: "Madhavan T. Venkataraman" Message-ID: <3bca2228-0a1a-c898-bbab-bb4925fddd8d@linux.microsoft.com> Date: Thu, 29 Jul 2021 12:07:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210729145210.GP4670@sirena.org.uk> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210729_100724_204696_D8D2C5DA X-CRM114-Status: GOOD ( 18.03 ) 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 7/29/21 9:52 AM, Mark Brown wrote: > On Thu, Jul 29, 2021 at 09:06:26AM -0500, Madhavan T. Venkataraman wrote: >> On 7/28/21 12:25 PM, Mark Rutland wrote: >>> On Wed, Jun 30, 2021 at 05:33:56PM -0500, madvenka@linux.microsoft.com wrote: > >>> Since some of the above is speculative (e.g. the bit about optprobes), >>> and as code will change over time, I think we should have a much terser >>> comment, e.g. > >>> /* >>> * As SYM_CODE functions don't follow the usual calling >>> * conventions, we assume by default that any SYM_CODE function >>> * cannot be unwound reliably. >>> * >>> * Note that this includes exception entry/return sequences and >>> * trampoline for ftrace and kprobes. >>> */ > >> Just to confirm, are you suggesting that I remove the entire large comment >> detailing the various cases and replace the whole thing with the terse comment? >> I did the large comment because of Mark Brown's input that we must be verbose >> about all the cases so that it is clear in the future what the different >> cases are and how we handle them in this code. As the code evolves, the comments >> would evolve. > > I do agree with Mark that this has probably gone from one extreme to the > other and could be cut back a lot - originally it didn't reference there > being complicated cases like the trampoline at all IIRC so you needed > external knowledge to figure out that those cases were handled. > OK. Madhavan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel