Message ID | 20170629081849.15081-5-ard.biesheuvel@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp818418qge; Thu, 29 Jun 2017 01:19:12 -0700 (PDT) X-Received: by 10.84.218.197 with SMTP id g5mr16159170plm.67.1498724352232; Thu, 29 Jun 2017 01:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498724352; cv=none; d=google.com; s=arc-20160816; b=hAaere0eemMupR2JcN7xrceBTCExifqL8T7JFK68y83/VwgdOZgdzw6kuv6M+Nx7MF AUiOq5OrigD7QzyTJGinKRwXeoq3fi6zwE82H4JK6l/bww5V6wqDB2Vphb1f/l6VEXCv 4plUABC4D86E9i7jC7/+951k1znbvCT4QfzjCCuJk5r54BEzmHH40c/enq1LXkQ6UbnA WWrmJPQO4ILYm5V8mjqM60LgC4PYODvCXXfrAAgI5wfj3+k0GjBWRbjquD/oEtLEDgGB goz7zKQm+vQ+dEyxdGI50R7I7XD1t+im82rhPvaudyod0kiPe2nTLeGtd9T1XkTCskI1 dtww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=KRHI623eSB/vYq/pENq28SnzeKpWtuLKR32mPdhvXEc=; b=kmAjDabXpZLMAABraWwIEI3XP6f497/VqMkG3isXwR1pcoV+wPO50EyrzR3IZ9DQw1 3BFS8yUjpIt//Y9XduSWwzSelBNHq+84BW5gi30uiWWZvmKQqA0fGCKVRzqsf3ZOm69r A4ZMYiB+6ZPKmWtUtgAwQCnOwNzVUsu+jdtIFltCGEy74JS2i18eF+ykRViaLv9OQ3IB bcdrYgKWLy6ou/Sowwfmsr3tlKAlweaD1UAf2CKhoM3/BXE2n9LwyxNXIiPBd+7wkujr E9WAEhKYNNwsGCwURxtjJwmHTp7ntMcWOlj8nH7kgUzcabsWB0IcsxKW2XqyMTjcmKI+ uvbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=iB89xh8i; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-efi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h68si3195921pfc.73.2017.06.29.01.19.12; Thu, 29 Jun 2017 01:19:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=iB89xh8i; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbdF2ITL (ORCPT <rfc822;patch@linaro.org> + 2 others); Thu, 29 Jun 2017 04:19:11 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:35445 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751894AbdF2ITK (ORCPT <rfc822; linux-efi@vger.kernel.org>); Thu, 29 Jun 2017 04:19:10 -0400 Received: by mail-wr0-f177.google.com with SMTP id k67so184864173wrc.2 for <linux-efi@vger.kernel.org>; Thu, 29 Jun 2017 01:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rBOHK/2kmfkrLftRAiAm6/S6MMa8WvDJnUABhBL7unQ=; b=iB89xh8iZX8SNcErXbwsaVAc9otqFSXWPA0pnwBRHOlaUC68KZI9eGuHrZbPoX9OyZ xzHqTv7nSCFUKoLJ2Bptc2MmgtuT97AzOEQMtlhbD1+ed8mmQBf9h8tpRhT85EcjEAhI S4XxGlW3Rfu697v7b23WqV1OP2QjTKiNZbrAs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rBOHK/2kmfkrLftRAiAm6/S6MMa8WvDJnUABhBL7unQ=; b=MRui5oSeeA14tDK3ojcH5m6xdiqUxejNMVwMhr01DwH/SPqrhqa4BL/ksIsc4QS9JV YCHNHNCmIr70khzdJLDoyaNeBIWCQcgO9FqXnIz3IT/TMAyFWhl4dHUzd7FUbzFpQ6Ok R6wRV0C2lzhwNZSBaXlakMgk/4zHVZlCMHSAei3+dOxwoiHSvINnpypZHwNyOm6whzaC Mgcu+5OUe32yz2iMwMnppeIM7Y2d048HQ0HeDHlmc2Ew+olLS1Y5ji62rygkazVtDOfB q10wIo6L+eYvs7Fp4xMPHazfXyzn4PD44D1IMouhHVeM3xamS9/Hpeew+Jy3ITgdh3C7 OYQA== X-Gm-Message-State: AKS2vOyvtVMmx0Z9EpF4eiI2KJ3b9k3TsP7kmSAjNmPLj9eMOJ2bheG7 KVtTeO//ab3b9ZZABjcbfw== X-Received: by 10.223.148.226 with SMTP id 89mr23178002wrr.169.1498724348996; Thu, 29 Jun 2017 01:19:08 -0700 (PDT) Received: from localhost.localdomain ([196.90.227.203]) by smtp.gmail.com with ESMTPSA id p34sm5268190wrc.66.2017.06.29.01.19.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jun 2017 01:19:08 -0700 (PDT) From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk Cc: matt@codeblueprint.co.uk, leif.lindholm@linaro.org, Ard Biesheuvel <ard.biesheuvel@linaro.org> Subject: [PATCH v2 4/7] arm: compressed: discard ksymtab/kcrctab sections Date: Thu, 29 Jun 2017 08:18:46 +0000 Message-Id: <20170629081849.15081-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170629081849.15081-1-ard.biesheuvel@linaro.org> References: <20170629081849.15081-1-ard.biesheuvel@linaro.org> Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-efi.vger.kernel.org> X-Mailing-List: linux-efi@vger.kernel.org |
Series |
ARM: efi: PE/COFF cleanup/hardening
|
expand
|
diff --git a/arch/arm/boot/compressed/vmlinux.lds.S b/arch/arm/boot/compressed/vmlinux.lds.S index 81c493156ce8..1fa62432e283 100644 --- a/arch/arm/boot/compressed/vmlinux.lds.S +++ b/arch/arm/boot/compressed/vmlinux.lds.S @@ -29,6 +29,11 @@ SECTIONS * of the text/got segments. */ *(.data) + /* + * C code that is shared with the kernel proper (but rebuilt for the + * decompressor) may contain exports that we have no use for here. + */ + *(*ksymtab* *kcrctab*) } . = TEXT_START;
With UEFI support added to the decompressor, we may end up including C code that is part of the kernel proper, but is rebuilt for the decompressor. This may result in ksymtab/kcrctab metadata being duplicated into the decompressor, so discard such regions explicitly. Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> --- arch/arm/boot/compressed/vmlinux.lds.S | 5 +++++ 1 file changed, 5 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html