Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4225953pxf; Tue, 16 Mar 2021 08:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5S3Xi2FiC8ZuNrGII4wajGCmqNw0HTiyMA1LWFcWewPjs526+vS1yHi/IUzzdaCNvq7o9 X-Received: by 2002:a50:8524:: with SMTP id 33mr36950906edr.110.1615908378874; Tue, 16 Mar 2021 08:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615908378; cv=none; d=google.com; s=arc-20160816; b=ZQbiEo5b/IXtBJVvzjrzKu8idSe9EtC4swh32nHlHronfF9mb8m3C642TahyUQcf3S 36ffUdwgxiJ37VB1OyxkIENWNVLSpys/Z+FUza2pltW7GnFNat2lC9648Ofj3OTfsrSl LUIIeRSrlHu0texZhkZJIFeJe5PCGv1kLolA7fnvT0zKoZ90IQxIukAuUsZqiNaPZ0+P V+6VNVysHaMMCfzE+ckk1Ip0OE8y99GwBICfwo2HNxFuQAz6dKorsgcJwqs4pKnRJpkc 70Ea1XCkCHb1sS8h5iqmKUUjnVj0djBO0q/9X20RMFngPVgBPfZqxAjPGgDFZcSo39DL DA0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xCoI48agAeQ5CxDA67enlnm1myh2MrjYO5y5/qfovpI=; b=hHZJoUuWhmErNzqlXW3gssre7lETRSa4pBH7pBoIAqi1VaCuAFaryrpk4l1IQwEsl5 Y8FL7EE93FOsjWu97lDuKD/n/sMwnJWOxl/eXHKxVvO3Bn3Ma9zySMegGAa5MX8wjHZB JmRtj7aKY66Bo+rMRY4GCAOlzZcqgQ7nNrr2YxJB69n419bYSWmoBLwtBx9G+9ehL99f /Fv0lA7wGOjiHqVHtZG7SYSMqtaucGvT6zfy3A/7we2pMVLZIPpwoahsyE8HO9/ZjK2f Eh0LeZaj/MYmVEwSbaKRB8kVG3fxCEKcIUpP2zn00pzdUeVgJcvt5nr/+MIhF+MkZkoo 6CBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si13940282ejj.303.2021.03.16.08.25.54; Tue, 16 Mar 2021 08:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234069AbhCPKp6 (ORCPT + 99 others); Tue, 16 Mar 2021 06:45:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:43752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236907AbhCPKph (ORCPT ); Tue, 16 Mar 2021 06:45:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 498E664F4C; Tue, 16 Mar 2021 10:45:35 +0000 (UTC) Date: Tue, 16 Mar 2021 10:45:32 +0000 From: Catalin Marinas To: Fangrui Song Cc: Kees Cook , Arnd Bergmann , Will Deacon , Arnd Bergmann , Ard Biesheuvel , Mark Rutland , Marc Zyngier , David Brazdil , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: vmlinux.lds.S: keep .entry.tramp.text section Message-ID: <20210316104530.GA7309@arm.com> References: <20210226140352.3477860-1-arnd@kernel.org> <202102261256.AF256702@keescook> <20210227043257.k3aernmnzsvitp7c@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210227043257.k3aernmnzsvitp7c@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2021 at 08:32:57PM -0800, Fangrui Song wrote: > On 2021-02-26, Kees Cook wrote: > > On Fri, Feb 26, 2021 at 03:03:39PM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > When building with CONFIG_LD_DEAD_CODE_DATA_ELIMINATION, > > > I sometimes see an assertion > > > > > > ld.lld: error: Entry trampoline text too big > > > > Heh, "too big" seems a weird report for having it discarded. :) > > > > Any idea on this Fangrui? > > > > ( I see this is https://github.com/ClangBuiltLinux/linux/issues/1311 ) > > This diagnostic is from an ASSERT in arch/arm64/kernel/vmlinux.lds > > ASSERT((__entry_tramp_text_end - __entry_tramp_text_start) == (1 << 16), > "Entry trampoline text too big") Can we not change the ASSERT to be <= PAGE_SIZE instead? -- Catalin