From patchwork Wed Sep 2 02:53:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 254243 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AD75C433E2 for ; Wed, 2 Sep 2020 02:54:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE69820707 for ; Wed, 2 Sep 2020 02:54:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RHjhmExy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbgIBCyV (ORCPT ); Tue, 1 Sep 2020 22:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbgIBCxz (ORCPT ); Tue, 1 Sep 2020 22:53:55 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB4F9C06125C for ; Tue, 1 Sep 2020 19:53:53 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id j11so1573248plk.9 for ; Tue, 01 Sep 2020 19:53:53 -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:mime-version :content-transfer-encoding; bh=mqktUKjWMSHZ7i2u+s16x0sbSP9VPDjkmXRnw4GPeg4=; b=RHjhmExyg+rpKyv5Nc9ZaYdn2DDJqjk8uDuYweNqZFU1j+qj3H0V4lh98xtDwrZCOQ v535m4lYwgRAkju+Q23kPxEFj0WUXNg/5bty5jvMQrEg8y9c7PPEG+wW8D0rM+8L60/H hDYiteu/ngFeVisaqnjEhGrnjlZIlr1hy/6d8= 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:mime-version :content-transfer-encoding; bh=mqktUKjWMSHZ7i2u+s16x0sbSP9VPDjkmXRnw4GPeg4=; b=INTOm8sEfSl3/k7ll6LMlPjKAdYrI/1oz4gQBlts3RRRYilrOel9so9srkH9WddxVS hjQR34pEBYlySYLusHXmkdQc3La8jEioURM3KAKAu8blb+Hx30JqYtSKFFcXLVSxnrYZ 2D9HbmuJJKSUP8pjiE8Pzi1K3TdEHwKaplJMgq8l5luKAlpD9Clfdb9nq04OSQsJDWsM jDoS2rPl9aGuJCOycPhT6HKD4nQH0VDRfqN6pc30ZPiTJcSNNHpIiAZg2FKzn8B0SMyV AwqEOuTXGPghRs/eaWqGILJpS4yYWHKv0BUiEbtPpLrGpGMA0Y5XSnTYsk8sDf7Yltd6 zhZA== X-Gm-Message-State: AOAM530SegGEIGgrsabeuHVO1737uboASRT3be32h+VgpZITnV7skHgm 0zc+oRHRG1z63FN9QH9SQzDF8Q== X-Google-Smtp-Source: ABdhPJwag7uthri0Mn2pyA9vD0vrAX4zwO2oNYtPUmO8FPFRZu7rxMxErll80vPwkn1YAidGcFN4NA== X-Received: by 2002:a17:90a:17e8:: with SMTP id q95mr220525pja.161.1599015233232; Tue, 01 Sep 2020 19:53:53 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k88sm2949999pjk.19.2020.09.01.19.53.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 19:53:50 -0700 (PDT) From: Kees Cook To: Ingo Molnar Cc: Kees Cook , Borislav Petkov , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Peter Collingbourne , James Morse , Ingo Molnar , Russell King , Masahiro Yamada , Arvind Sankar , Nick Desaulniers , 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 v7 0/5] Warn on orphan section placement Date: Tue, 1 Sep 2020 19:53:42 -0700 Message-Id: <20200902025347.2504702-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org Hi Ingo, The ever-shortening series. ;) Here is "v7", which is just the remaining Makefile changes to enable orphan section warnings, now updated to include ld-option calls. Thanks for getting this all into -tip! -Kees v6: https://lore.kernel.org/lkml/20200821194310.3089815-1-keescook@chromium.org/ v5: https://lore.kernel.org/lkml/20200731230820.1742553-1-keescook@chromium.org/ v4: https://lore.kernel.org/lkml/20200629061840.4065483-1-keescook@chromium.org/ v3: https://lore.kernel.org/lkml/20200624014940.1204448-1-keescook@chromium.org/ v2: https://lore.kernel.org/lkml/20200622205815.2988115-1-keescook@chromium.org/ v1: https://lore.kernel.org/lkml/20200228002244.15240-1-keescook@chromium.org/ Kees Cook (5): arm64/build: Warn on orphan section placement arm/build: Warn on orphan section placement arm/boot: Warn on orphan section placement x86/build: Warn on orphan section placement x86/boot/compressed: Warn on orphan section placement arch/arm/Makefile | 4 ++++ arch/arm/boot/compressed/Makefile | 2 ++ arch/arm64/Makefile | 4 ++++ arch/x86/Makefile | 4 ++++ arch/x86/boot/compressed/Makefile | 1 + 5 files changed, 15 insertions(+) Reviewed-by: Nick Desaulniers