Message ID | 20170530183647.28557-5-ard.biesheuvel@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp352701qge; Tue, 30 May 2017 11:37:23 -0700 (PDT) X-Received: by 10.84.173.195 with SMTP id p61mr84485057plb.83.1496169443835; Tue, 30 May 2017 11:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496169443; cv=none; d=google.com; s=arc-20160816; b=LkjmmjvVGZbNthMVi7U/71xVT419kgQQ0UYW/Bmo9Ax+exh7r80+WgUD7xwbjSvY39 VQKuwvGWkSFp8QgVCsQoBBkUOOAnpVsqUWWTGICSHT9CHnG+d9TD2bYq0qgEVsdRb70l 2Lw7m/sLkcB6AWitdsSMU6uxDcMnn8aDJYPKkFCsaUAB1X4anIbWJZHZf9PdLf+DZ3VP u0E7IDNvECgmjl7np6qAlhGAx/r8ZVVhWHBpysk0pjXW5RNK+0ltWQ6dQTYZAj9bETbH SFeRuRVAoDmwgSs03IHeRtDCBmPTeD07DpiaVbZ/auCLCWtbBwyq6+Amt2PdRZyy8zHd 94bg== 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=PLS/rjLbsTGnrOlXYBE6wmSLw6Ww1OT1UMHNC66Yhek=; b=O6LeCR1iFq6A3VJOvJfTRpc8ZLRiXLCZviOMtmstSUOTenUNjjDMNvhoeLtZQjDk4L BiComxYaqDk3cKsx9V4x1NAfjK9Mg1p1Wt+/wcKRDtaDRYW+lBimxNEceZjhh+64SIa3 CmBXvHTvJjnhSopTspzF6vF2lKjs66aHSZ1Nr+dZYQ5koRIhHdATFcU1lC35SrrP+VKG KRFyoAKhfcHXb8oEdRHqhXBsqmmzBb2BoK2itEvjRURuh0uf3hw+T3mttUNuLeTlXAl2 t76xVUChjua3YilaCm+/7U73Jc3UcR3HeTzVdP8mS0H8sde12u+nYmMXILyYHNOeV+BS Y2bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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 33si44904691plf.190.2017.05.30.11.37.23; Tue, 30 May 2017 11:37:23 -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; 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 S1751063AbdE3ShS (ORCPT <rfc822;patch@linaro.org> + 2 others); Tue, 30 May 2017 14:37:18 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:34598 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751234AbdE3ShP (ORCPT <rfc822; linux-efi@vger.kernel.org>); Tue, 30 May 2017 14:37:15 -0400 Received: by mail-wr0-f171.google.com with SMTP id g76so5641249wrd.1 for <linux-efi@vger.kernel.org>; Tue, 30 May 2017 11:37: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=cHlZi4W2GBCQ5cy2lIHp1CNSKU+Yan7awOrq+N42SKg=; b=kKy3CuRnoUh63ZRduaHunDQ3/9Gd3a+L3Mb9JYqg3HACQhk+N/8ko3qGWPKpbidnOo mmQdO1tWzXLQjdVJ5MvZDOx+ERpgd16XrBrl7vL+QGWHSu6TMhzyluuNJV9gGeFrSzDl hFEZBa4PxSS/8hbjZGbcTmLhUlCHVInB71zys= 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=cHlZi4W2GBCQ5cy2lIHp1CNSKU+Yan7awOrq+N42SKg=; b=E0g9Yfc4PgH+2Pk7xBZO+HwTigYudwYgzI/MDRA+JvaTmc9/3z+0GEQN4QIj1QueZv NzudYHye5WXdof59Z8y2YTOkD0j7eJ8QbShhd3cBDMFWwFNaJLcUPL7v/B2+9UhBZySV 7ydgaGZ3nbpe3CU3bEoP4NQIinDET/oEq6PsnkZ5vd72fKFoipQK4l+27bwBqmBfkwvj Se+kM5WkooBWJDeBav9hNvXgSBKbeQFGPInIfBTcHuOXhyjkrNS5z3FC2r/EByoatEB8 t5gl75INSzW65Ihzvuyu7C9abKS8/fXSgQCqiAuLga7w+lSq2qwhktcQdABt6cjKx5/j 5YUA== X-Gm-Message-State: AODbwcCRRuaMKWHWQVJ0kM0PuUj3LgYXnhsq1K7fWmf6n4adse/DMW0x uGFA1XnYWfZpa5XmmNfIHg== X-Received: by 10.223.177.219 with SMTP id r27mr15122684wra.148.1496169424125; Tue, 30 May 2017 11:37:04 -0700 (PDT) Received: from localhost.localdomain ([154.144.49.177]) by smtp.gmail.com with ESMTPSA id b8sm15935997wrb.7.2017.05.30.11.37.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 11:37:03 -0700 (PDT) From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: linux-efi@vger.kernel.org, linux@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org, matt@codeblueprint.co.uk, leif.lindholm@linaro.org, Ard Biesheuvel <ard.biesheuvel@linaro.org> Subject: [PATCH 4/7] arm: compressed: discard ksymtab/kcrctab sections Date: Tue, 30 May 2017 18:36:44 +0000 Message-Id: <20170530183647.28557-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170530183647.28557-1-ard.biesheuvel@linaro.org> References: <20170530183647.28557-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. 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