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=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 C23BFC433E0 for ; Thu, 2 Jul 2020 13:56:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 8DAC220772 for ; Thu, 2 Jul 2020 13:56:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kwCtHCj0"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="YQ/+iV4T" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8DAC220772 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=72cuEUdRQJOaOAet3Xov2897CMSIFEsnWRooK4obWvs=; b=kwCtHCj0SIZ2wR/BbcDuKW+3j Ztmg8qBzqYLWrIGJFkRZcNdNVjc8EitZYZSSity2Ze9MntrfgPpaL1uUYlYVjrhG9PW3mK2lDj+nt vdgI4q8bizlzOkqqHCjdZgn/zxe9uIi7EgcqgYEt9lnvD5kBvDsuGA6syxaZs7iOZeMiH7iIq12Wo O9EuwdJrmz8uqMkbYydrLTQQtiyuWXs/9uc9nV2NXzZMLakjDEyyJNKnRg34sehQMA0jNp/iF3D7r iDhPngjwbD/yOBAsVkpSCCyaoVEXhDFJXGxMJtaMRsvodcFF12O16jECByDYCaqwevY+rSSQRBMRd HlJKi0qOw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqzfr-0001ae-8O; Thu, 02 Jul 2020 13:54:47 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqzfo-0001Zk-Ef for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2020 13:54:45 +0000 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7F5FD20772; Thu, 2 Jul 2020 13:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593698083; bh=bRugPVuYpvfFLDfdvyGwJ20ihCO3HjM3tGWzx5GVSBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YQ/+iV4TLTn35LgBCxLYp2zfujyHw9sGF9vzpWF9KI86pvk3MiMA37Xet2PVwTdum 371N1J4osiwalvHuxCFfNEaZ+i9G0JUrvKY9W9ipU1ghs2ezNSHah6UyfavncM8O3H J7UgyhMaK51dE7XTcKAKA3wteQs19TKDg1gdyy1c= From: Will Deacon To: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel Subject: Re: [PATCH] arm64/alternatives: use subsections for replacement sequences Date: Thu, 2 Jul 2020 14:54:35 +0100 Message-Id: <159369107379.3020197.4937110667602244064.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200630081921.13443-1-ardb@kernel.org> References: <20200630081921.13443-1-ardb@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_095444_558445_A74C45FD X-CRM114-Status: GOOD ( 11.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, anders.roxell@linaro.org, arnd@arndb.de, Suzuki K Poulose , catalin.marinas@arm.com, Will Deacon , James Morse , Andre Przywara , kernel-team@android.com, Dave P Martin 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 Tue, 30 Jun 2020 10:19:21 +0200, Ard Biesheuvel wrote: > When building very large kernels, the logic that emits replacement > sequences for alternatives fails when relative branches are present > in the code that is emitted into the .altinstr_replacement section > and patched in at the original site and fixed up. The reason is that > the linker will insert veneers if relative branches go out of range, > and due to the relative distance of the .altinstr_replacement from > the .text section where its branch targets usually live, veneers > may be emitted at the end of the .altinstr_replacement section, with > the relative branches in the sequence pointed at the veneers instead > of the actual target. > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/alternatives: use subsections for replacement sequences https://git.kernel.org/arm64/c/f7b93d42945c Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel