Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp501349pxa; Fri, 21 Aug 2020 12:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgDs+p8uY/+IAPpSPINVKU0dDrRSixYIurC4oN70Ep0BhWWG0TAHueTlxFcFr/8Zs/JPkQ X-Received: by 2002:a05:6402:1f6:: with SMTP id i22mr4308223edy.374.1598039349591; Fri, 21 Aug 2020 12:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598039349; cv=none; d=google.com; s=arc-20160816; b=v5zTToaVQKJmDseB3FMbReW7JHglGqnLu2DoAJMRn4gKGb23N01svriLmXFl/yioom EzUbT5JFkMG3DGC3134uP0K+WZhMVVCD1KS7yfq/mDoQ6G/hn7D0Z5MXdnoU2varB77J 7U5Epqn+s7BlGV1cUQfc32EMze3Q5x9S6Pj7/5o85ZOppJVaPJNfsbLSU/LcaqV1eWs+ ooq8A5IgLQnscQNT8xsVHt0UqlVcsJUhAqwdH9+8WCTYy0lPuavCthEgs0Yjf78+evLt E0ocd4+sb6EHnd7UMbA6lrVcurTNgZGEEP8dTXQfzn/WT3CRdTGFNy3zFkDW+gZWUfnJ xjVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j7Lys61YjFpfMX3OTBjlFH6rsXYj3ZGDYGY4DwTK5Rs=; b=gNg0IMrUXzulw0dDT4eoncbWERp6+zJAZmzWmjcVfVBcMB3HbPEmE5GqqWs152vD3P dMS/fC9sGKOXisjTSGTmOb2o4Z2gR+KHI+IxdLxZPObtovKrfiuCrsOYUC7EkI7sZgjk 7usomycOIRRO772LmoU/gzbWc7E/9xPSB6pu1ucdhP0NZuVs6s+IVa2d/Bf0sZ6xMrmC npImpJcPev3T5ZrNG+HWEnrBTxvNP7MIbCeaENOxaWvsW03N8MioJO+uOivunaOqdSa2 0NRCuoHk8F7ksQxkt/C07o8Gy8vEMyyHMqoFI5QQemDr8KjS/StjAfkmihdDNRs8wDOp i9dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hSwetOEX; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si1898314ejo.605.2020.08.21.12.48.46; Fri, 21 Aug 2020 12:49:09 -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=@chromium.org header.s=google header.b=hSwetOEX; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726935AbgHUTpj (ORCPT + 99 others); Fri, 21 Aug 2020 15:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbgHUTpD (ORCPT ); Fri, 21 Aug 2020 15:45:03 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 176A7C061796 for ; Fri, 21 Aug 2020 12:44:33 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id j13so1248277pjd.4 for ; Fri, 21 Aug 2020 12:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j7Lys61YjFpfMX3OTBjlFH6rsXYj3ZGDYGY4DwTK5Rs=; b=hSwetOEXXxyxeqO2If++xh0K5ka/8LVM4nGggu0hSfsYxPm6EElfkKCKJXvMPutNd2 +nEASJBRgtVPVNXEsdkY2ic7EKx+blKB8AzP2lSSIUTBVYnSjMvenCFrH6X5tNxRdcSy u0VnAuKKc+tad0YmxEFMvwCtQ4NCnqkFN296g= 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:mime-version:content-transfer-encoding; bh=j7Lys61YjFpfMX3OTBjlFH6rsXYj3ZGDYGY4DwTK5Rs=; b=KacOL4Uv9zPu0gqSjJNr3shlAGyJs+4tRsIw9sv7YODzV6r/SPbOk+Qm+44RGwYK5n jZUotuDIgbRU2EnY8c/R5MKDgQtsyP8Bn+Pjcm/RgxVTH244KA/zXPBHdbK6J6SJEAn+ q/moF8dcNCtpSiwycSCAQcVMLNn7CVe193RhKKukb51gtMTjrwGMb6cP5BjefRCedsmV R1gCmdT/ABeJtQpxt0wTlRS5ZxthW3Qj68Dw6x6cRVS9BVI1s/rBVaeQs7U2L2iSZ755 OyyVFHq9LmhpqzHch4v36GvMarynodK92x1i2zFTqUGEc1Dff628fDdEEk3Bm5MM53OK x0sg== X-Gm-Message-State: AOAM5319C9dSCoWM8Mdu+346H8tvgFXfqOqf6rYbRcS8NXGbw4eXQVqy mL3kx/n4FnX103KpmijvVaO98w== X-Received: by 2002:a17:902:8d89:: with SMTP id v9mr3489157plo.289.1598039072600; Fri, 21 Aug 2020 12:44:32 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 207sm3467672pfz.203.2020.08.21.12.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 12:44:30 -0700 (PDT) From: Kees Cook To: Ingo Molnar Cc: Kees Cook , Nick Desaulniers , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Peter Collingbourne , James Morse , Borislav Petkov , Ingo Molnar , Russell King , Masahiro Yamada , Arvind Sankar , Nathan Chancellor , Arnd Bergmann , x86@kernel.org, clang-built-linux@googlegroups.com, linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 17/29] arm/build: Add missing sections Date: Fri, 21 Aug 2020 12:42:58 -0700 Message-Id: <20200821194310.3089815-18-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200821194310.3089815-1-keescook@chromium.org> References: <20200821194310.3089815-1-keescook@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing text stub sections .vfp11_veneer and .v4_bx, as well as missing DWARF sections, when present in the build. Reviewed-by: Nick Desaulniers Signed-off-by: Kees Cook --- arch/arm/include/asm/vmlinux.lds.h | 4 +++- arch/arm/kernel/vmlinux-xip.lds.S | 1 + arch/arm/kernel/vmlinux.lds.S | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/vmlinux.lds.h b/arch/arm/include/asm/vmlinux.lds.h index c4af5182ab48..6624dd97475c 100644 --- a/arch/arm/include/asm/vmlinux.lds.h +++ b/arch/arm/include/asm/vmlinux.lds.h @@ -59,7 +59,9 @@ #define ARM_STUBS_TEXT \ *(.gnu.warning) \ *(.glue_7) \ - *(.glue_7t) + *(.glue_7t) \ + *(.vfp11_veneer) \ + *(.v4_bx) #define ARM_TEXT \ IDMAP_TEXT \ diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index 57fcbf55f913..11ffa79751da 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -150,6 +150,7 @@ SECTIONS _end = .; STABS_DEBUG + DWARF_DEBUG ARM_DETAILS } diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 1d3d3b599635..dc672fe35de3 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -149,6 +149,7 @@ SECTIONS _end = .; STABS_DEBUG + DWARF_DEBUG ARM_DETAILS } -- 2.25.1