Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp256878pxx; Thu, 29 Oct 2020 01:40:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGrmvvZvKQhR2PfCTbfy/Y18WAMn8JagziQZSjigkne1fof4ojRZ7XTuUJwB9zuOvUwVNh X-Received: by 2002:a17:906:c7d9:: with SMTP id dc25mr2991326ejb.482.1603960846949; Thu, 29 Oct 2020 01:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603960846; cv=none; d=google.com; s=arc-20160816; b=gdoLvS9GlD6rBB+Vij2QEev/wCsZuJtkQ0mmeSqt/Dr/0aTsl9wJlTnk4YfgfBFsiJ /EIfhoJtrTws8AqsZfFTJwyINjE6imC3JhWZEOi/tawpOUJ8fzF1RcPiglRch3AVYvgH FSx6mGs+hlxtnETBgX8157J0CEkiUhgYR8mkgraZCLABX4aKIbPDfPXh7FHBK9goMVBK XbzwiI+ERwoqc6h9r/vFgZhLvUFfbqXwZusRCAx2wKDr1idNC5ls+x/Gs7gVUCwOZT53 NMzK+R6D9cOpc4HSD7QrqbD0bJYaaaNUFXxgaSF/dP2ULZBtdqBb3SPODpfp4eYxPWxk f/4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qala+ZCv3JZ5dbV9x6Ie/hLefNdcoonCznzlylsTYpY=; b=kuUna9YGmivWdQx20K6DTA4g6E5JWnvosc5xZeOMzMrcWgwQa3xuRb7SYnoVHsvhOz MPsmTj2kLNipBSEv2K16vz9QqWWoZhlyRPIOy2ZIpbRPctEBxjRwlRBYhYj5EKmYOoP2 0BQT9bV9nq6gpKsA0YnYUKc7Mf679bEDIQio77hQuUPJUzEm79Pg5tr/21S+Zcb9zouK de/UBSwST6J3ZCoOirAlO5/hJvgIeoz8myqNx6T8G4H3ffbFB+dK1ZCoCbOmkDeoeQtS HMIEr7OdNDa+qDeIrm3ZerAQoDREx4DRoUpha/5Fo4R3SA+DXgZ42oW+LySpfNLyUBiR wKtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uqaV11gb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si1418603ejh.243.2020.10.29.01.40.24; Thu, 29 Oct 2020 01:40:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=uqaV11gb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403908AbgJ2A6N (ORCPT + 99 others); Wed, 28 Oct 2020 20:58:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:60546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731587AbgJ1WRc (ORCPT ); Wed, 28 Oct 2020 18:17:32 -0400 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 DEE64247B4; Wed, 28 Oct 2020 15:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603897968; bh=G+a9tAqKfo1FKngndd1wk/6n9OaUyZGsZA67OwoudG4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uqaV11gbUEV4zvNXiGpLI51CWpkthZ3eLlf/UK+rqHMVIQdd7836W3aMcVJEDUn4O anOuCYwDkUXDOpbLFVxImekHbJ/q1bzMz8j7Fh/k2EiUj8xw7IfaI54bfHElMNmZxD nwldbbREuijDa/Si90aWB+aAFtbbED3tbxzlP0rw= From: Will Deacon To: Ard Biesheuvel , linux-kernel@vger.kernel.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Geert Uytterhoeven , Kees Cook , Nick Desaulniers , linux-arm-kernel@lists.infradead.org, Jessica Yu Subject: Re: [PATCH] module: use hidden visibility for weak symbol references Date: Wed, 28 Oct 2020 15:12:34 +0000 Message-Id: <160389413619.1112960.12611093041695506337.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201027151132.14066-1-ardb@kernel.org> References: <20201027151132.14066-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Oct 2020 16:11:32 +0100, Ard Biesheuvel wrote: > Geert reports that commit be2881824ae9eb92 ("arm64/build: Assert for > unwanted sections") results in build errors on arm64 for configurations > that have CONFIG_MODULES disabled. > > The commit in question added ASSERT()s to the arm64 linker script to > ensure that linker generated sections such as .got, .plt etc are empty, > but as it turns out, there are corner cases where the linker does emit > content into those sections. More specifically, weak references to > function symbols (which can remain unsatisfied, and can therefore not > be emitted as relative references) will be emitted as GOT and PLT > entries when linking the kernel in PIE mode (which is the case when > CONFIG_RELOCATABLE is enabled, which is on by default). > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] module: use hidden visibility for weak symbol references https://git.kernel.org/arm64/c/13150bc5416f Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev