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: 11749663 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 186451575 for ; Wed, 2 Sep 2020 02:55:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E5C45206CD for ; Wed, 2 Sep 2020 02:55:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="2hbx4Zxf"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RHjhmExy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5C45206CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=CbGUJELSemSfmyzux8/8Pd7UInXZxawXh7ctCzNEcns=; b=2hbx4ZxfyTa0kGRzpQpBgZ3A0e yS7fHN72oEA0Qtzqww4O1Q+hdLc7243qQ4YiPHq872gMJ9toGaHgWCTGEmV0Qj4xRs3dPSiErHxni dZEJ6ObJ6CTs9krgHhzA6MmIhWkyBoUi4kUWmWXv1oohlq12NHaUgEo/Fbtoi+nx4VKgJ61vOHq6O 7kD6tvvS1VzNoLFYgjdBLXti7ZE0ImZ0WcXejYK+HHI+bP+neACDyykGfN7aiUujPIIOtEF1Wrpn1 ZKNFZUANYySrpGEUOLk6g4zTU6EacUb4deEcmsOmPdDu0qz8VL1JJbfPic03vSa7z7kykEg4dK1fC kxe5/F6g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDIuU-0003ah-Re; Wed, 02 Sep 2020 02:54:06 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDIuJ-0003Ux-89 for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2020 02:53:57 +0000 Received: by mail-pj1-x1043.google.com with SMTP id ds1so1648327pjb.1 for ; Tue, 01 Sep 2020 19:53:54 -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=pJs0inlPJgKG/1qbm9HwL7Wzfpt5doOUjEMwFPT2UJqtpeHKZoq1B9t4REhx++lkfZ kO8dmeOTYa6NAuiG7R2js5T4MgGPbsF2yVgbAApxY9Yep3V63A4620rIp0ndtJuxTx2u qZEz2ISG/jJYCj4uvugfru7CRFA1DYiyGA7CaFV1/pmw/mGxegEzfaynkPbFb1h3ffki 8sYG3f6g+/TzKVKl7LMqOEgankzmA70UVl6qKSLuaoYAQHa2Us6rY8HZnROvCpHhipCH HcooDtH4KY/bcLpQC7CNXeQknipr38d4MY6uPLTf0XEb1Q/BM7zugJr8bCvLB1u1cOzm P8rg== X-Gm-Message-State: AOAM533namCc3MxvsELdxbEBETxU/Dd477aUq8x0w9kv9dRpjUNNtO+Y 74esR8PWEq69skBAzFhUJYYocw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_225355_309795_F140AFAA X-CRM114-Status: GOOD ( 12.59 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1043 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, Kees Cook , Arnd Bergmann , Catalin Marinas , Masahiro Yamada , x86@kernel.org, Nick Desaulniers , Russell King , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Arvind Sankar , Ingo Molnar , James Morse , Nathan Chancellor , Borislav Petkov , Peter Collingbourne , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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