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.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, 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 EB459C433B4 for ; Thu, 6 May 2021 14:14:52 +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 48EDC610FC for ; Thu, 6 May 2021 14:14:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 48EDC610FC 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=jdTfI0DbGRpU6YtO33vw40a+WZeaqJ7wL7MUeAAvSrs=; b=Rt8/SpFqRwv/NKAu+uKZ/BB6H Cv1ygQgmbXYatNBi2AvDIHc/mkOri+QAUlgQNhYXqmnQ2i1JlcV2BRUxNB/aObo8AjVvciyxx94gF EjTlcKP1rw/Mj2DAJKq4hvpWsO7mEONKU8TAiwIavTffAy4NAE70zNvYOWnWhcqSxc+nngojv1N6z Hf05bZ1owz0h4F5CRx5p+HeBoloG9Xc+1TuvR2gzy/1NavH1uP1fd4XcurzSzA43BXdytIbMHJVFc kOrPF3KYg5Q8U3sipVo4/BEWNQ3ZXMCShHVM+4fV/33VrdrnYCDgzUk3n/WgYwaJZU7WewJZ37kL6 eGktpj+qg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leekH-004PL1-KL; Thu, 06 May 2021 14:12:53 +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 1leekE-004PKp-U6 for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 14:12:51 +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=XM2RSjDurUabXmNOgxMKW3Qam1o/G+PPKPf8jd7Edu0=; b=FMv8+JuUflzSNQ9sbnd7FPn/09 G/ne2kgVBTNj/vJljWz+5iysLsc9eUWoZY7Ff/HaxmlmSpg2FpQbW7VzGXc6mvwXaFNdWvf3ms53o 5Z6a8ytJFyexGyMF48OVeJyIfpbN7Vtd4Zjin4E9WyOTWxFDyL3WQfxRNOQlmtN1pHlKQnRN0YG7f wQqmyzVSuyNkeo2EG50u5ZPwcBk5ZSMwBxhRgsRArY7PzQREjNWtVmwx3I10/VZ2DvWXaMK3KS/3o OeANe+S9zoAr6NU3f5yJ8k11q8ve8eegpHAuQeVHcBvG9LJcnyqaIPy6i0WJ4tYxKDKDegXwATRCa 3D4Cuq7Q==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leekC-0065HP-CB for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 14:12:49 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E0C0610A6; Thu, 6 May 2021 14:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620310367; bh=Gtp++8OISnKlL7igW1jsmr8lSaw32BvY9v1KfWv5ncU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dvbWjFFU2pzS4gM2+/va2sQm/uvGhbrXjdWBmOorH903z16u8tbwh24qRUnzY0Ivf ZgBqPscl7PccHeK3TJh+2tYecsXbytQl+SXDXgjbdHXIcy26HuVPS/s8fi3C6XoPcS NZ+dzxu5VgZRaBBdtBrdF9JML0mUZZGuWD8uJt1qk3u76/qSX2KbP1qG6lCERAmwxN Z2/3ruLnSpWpvTFX91Dsm5bRQCMJwXrRUvr0BsxRtlwVZgW6ZX0tceSONXJ/yOrzYB 0KRc70WlZMt9TzYjuHa/Jm4WwTTpVchtvqJ40zqtUqYiH1+rNL6FJw19oeeibyekZr M4EV3QrH9efRw== Date: Thu, 6 May 2021 15:12:11 +0100 From: Mark Brown To: madvenka@linux.microsoft.com Cc: jpoimboe@redhat.com, mark.rutland@arm.com, jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, pasha.tatashin@soleen.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v3 3/4] arm64: Handle miscellaneous functions in .text and .init.text Message-ID: <20210506141211.GE4642@sirena.org.uk> References: <65cf4dfbc439b010b50a0c46ec500432acde86d6> <20210503173615.21576-1-madvenka@linux.microsoft.com> <20210503173615.21576-4-madvenka@linux.microsoft.com> MIME-Version: 1.0 In-Reply-To: <20210503173615.21576-4-madvenka@linux.microsoft.com> X-Cookie: If it ain't baroque, don't phiques it. 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-20210506_071248_467346_105FBFA5 X-CRM114-Status: GOOD ( 17.58 ) 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="===============7814143519731346369==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7814143519731346369== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9l24NVCWtSuIVIod" Content-Disposition: inline --9l24NVCWtSuIVIod Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 03, 2021 at 12:36:14PM -0500, madvenka@linux.microsoft.com wrote: > There are some SYM_CODE functions that are currently in ".text" or > ".init.text" sections. Some of these are functions that the unwinder > does not care about as they are not "interesting" to livepatch. These > will remain in their current sections. The rest I have moved into a > new section called ".code.text". I was thinking it'd be good to do this by modifying SYM_CODE_START() to emit the section, that way nobody can forget to put any SYM_CODE into a special section. That does mean we'd have to first introduce a new variant for specifying a section that lets us override things that need to be in some specific section and convert everything that's in a special section over to that first which is a bit annoying but feels like it's worth it for the robustness. It'd also put some of the don't cares into .code.text but so long as they are actually don't cares that should be fine! > Don't care functions > ==================== We also have a bunch of things like __cpu_soft_restart which don't seem to be called out here but need to be in .idmap.text. --9l24NVCWtSuIVIod Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCT+ToACgkQJNaLcl1U h9ABFgf/Z5OheyVXijHxIjnaaC+SDZlNsGtc6XqdehcMncCJVr16obC0q5aBjRLy i4VZOPM2GQ0pxk0Dx/xujpeeRhb6owdcraXotZDQNJNUy0IhFGXZ0hCKTei2ow/U f8OTvJVvrGzSuC7YwvkkEOgwnj4ZwVK1hMn/fvcifC5qGbIeuUFDQmxiRAke2Hcf zd0NzogA1c3RAyNx2HJTQVDF7O0LHeTwq31TPpS6sx94A9Jaadk/G/MtuZvWMiri jQTp8nTuDuLBlN5ToSeV0Y1u5F5KVnddt+g0GqXsxelvhCcujmIesVPCePX3jXAE 3FIUnUQGQBv/iJYyjJ9v6h8oEp0obg== =COOq -----END PGP SIGNATURE----- --9l24NVCWtSuIVIod-- --===============7814143519731346369== 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 --===============7814143519731346369==--