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.5 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 5B4CEC433B4 for ; Fri, 9 Apr 2021 11:59:11 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 E007961003 for ; Fri, 9 Apr 2021 11:59:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E007961003 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=desiato.20200630; 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=SHZ7Ejq9cslGH3eLRvrLhx4ZcgzrfXhqm7S9KgLQLiQ=; b=Tloohz4QmiRZNgiMskov+Z50j HOaVmmsV91fzNlSGprFP5V45kv6cqX0KTMy6/qx3VUQE7bvsEJQM/bOhpzFLiygFZT9rmnu5Smx6q sjhJ1Uk+QYsmUtzGYj7xMl3oay5tD5d44WOOkreCO7S2uxSBgJG1/tjIliIrUZ7ZPl8N0DfgLN7mG mvbvXY1au5FAxDwImZrEOZlqo/rAC5LzqTSDWwLgAl7wvf+6WnDfnW11vBJ9WtuL/iiF7E0kJK8je yX/J/O8cAnF9qDbREVH+PB26xW4B0J4pxfSTn5pOvM4IV266/ZsObAAkzazMPUKdbJCOOfJ7KM6D1 ObROn5sAA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUplV-000gGJ-1d; Fri, 09 Apr 2021 11:57:33 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUplS-000gG9-0z for linux-arm-kernel@desiato.infradead.org; Fri, 09 Apr 2021 11:57:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=luUdQKUIvmkw8NMDnk1rSturBYi0QBLevqlCdY2W0+w=; b=GmnBBybFmyNI9osX6rtz5vFS0C b/vtSOheiyDlpNB7JFBhacrk//KwH0t7wj6YI380Wlrsdb1Dt/zIzA/J+qOcddn9aewfGT4eR68t7 Y7F2reO8Y80jcQIwaswypKcbbsWCeIW152cJ5INFwLFoAaEQ6k5X1ZXGs9wrRbO5oNruEsFb9jnmD mIB/Z6Ti61fIeF+VDWrl0t6SGnoHqYDdZmZ+7XH1tSUu00BuzYYXWI6ENffk1NkGLo+lYgWAfFhgS 8xS2x5tmRxDwaMO3ElJzuWaRYgqh9h5tyyqlCQi+QGiIhhvvmcLaQhLUs4oYa+I6IY9pKdy9Zl5YT 2BWaqFOA==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUplP-004UGR-Jd for linux-arm-kernel@lists.infradead.org; Fri, 09 Apr 2021 11:57:28 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id ABD266115B; Fri, 9 Apr 2021 11:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617969447; bh=xWpZMs8SF1KeRP75gFOHcEWwPPGqR29BI1NfJEUZSpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p5nvaFt2mOhhxiQsclwdeybVrho712FuWXR+NV8KhOzB2O7xRD4wLfZHp4HgW3ypz h6y1CTRkgOerE2hXcrD9b6oXIUxy4NRLcPnhmzkxyfix2DIFv2d9z/20+3QwcB7uTF j6QHEE7lXRZkW8rU7pVWXcyRBwFxUduEJ1uyGcwfevQISRDSN++5xjTdu7G6a0a7Zm JiSaOVX+TTq5oUkdkA/QsRSxqfP6E5paBUgkm0J6wGGead2CHJkVWACA2ValNdbUVW 875sa8vPjaBibm7/DvjjFV5ZVwbB7RXDXWSTa1yv2xgI1BnkXF8DgpsRDIgHnSulfH jaNIv44yfKZsw== Date: Fri, 9 Apr 2021 12:57:08 +0100 From: Mark Brown To: "Madhavan T. Venkataraman" Cc: mark.rutland@arm.com, jpoimboe@redhat.com, jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 1/4] arm64: Implement infrastructure for stack trace reliability checks Message-ID: <20210409115708.GB4499@sirena.org.uk> References: <705993ccb34a611c75cdae0a8cb1b40f9b218ebd> <20210405204313.21346-1-madvenka@linux.microsoft.com> <20210405204313.21346-2-madvenka@linux.microsoft.com> <20210408171715.GQ4516@sirena.org.uk> <69b6924b-88f6-6c40-7b18-8cdf15d92bd1@linux.microsoft.com> MIME-Version: 1.0 In-Reply-To: X-Cookie: Ring around the collar. 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-20210409_045727_686895_6ACB81CD X-CRM114-Status: GOOD ( 16.37 ) 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="===============4443088709162123513==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4443088709162123513== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GID0FwUMdk1T2AWN" Content-Disposition: inline --GID0FwUMdk1T2AWN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 08, 2021 at 06:30:22PM -0500, Madhavan T. Venkataraman wrote: > On 4/8/21 2:30 PM, Madhavan T. Venkataraman wrote: > > 1. Create a common section (I will have to come up with an appropriate name) and put > > all such functions in that one section. > > 2. Create one section for each logical type (exception section, ftrace section and > > kprobe section) or some such. > For now, I will start with idea 2. I will create a special section for each class of > functions (EL1 exception handlers, FTRACE trampolines, KPROBE trampolines). Instead of a > special functions array, I will implement a special_sections array. The rest of the code > should just fall into place. > Let me know if you prefer something different. It might be safer to start off by just putting all SYM_CODE into a section then pulling bits we know to be safe out of the section as needed - we know that anything that's SYM_CODE is doing something non-standard and needs checking to verify that the unwinder will be happy with it and I that should cover most if not all of the cases above as well as anything else we didn't explicitly think of. --GID0FwUMdk1T2AWN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBwQRMACgkQJNaLcl1U h9CDkAf+M7uGGOV6l9nKclvAJwd8o31oulE0GngUxx7kQvOsTZvVfWVJOR921/x/ 42gh2W7vxL7LOfQ37vMafyz3BtoO+aX29aRSfSfqskqufOk4KmbqZ2YmMTs5iiwy r8Dr0POZ9NYuie7+f+aYLbYaLBStriNn6VamKJlomBaXmiZdvsEmmif8IrjrLLnR Sz6+G0qFRd6VK30NB0dbpjLQzzHFDN8gc0IpPjmgSMysz+/Oe8XqGgdhq6Xti6Bl T/A/VeO/+E3xDTwIooXm0pk95tRg8ef+gmYpFi01C63F6zEUk7/frUC/g0VZGzPL 7lxu5UFkpo8Bi9bvHxhk6LaTXjMAxw== =y0XZ -----END PGP SIGNATURE----- --GID0FwUMdk1T2AWN-- --===============4443088709162123513== 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 --===============4443088709162123513==--