From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 1A032C433E2 for ; Wed, 2 Sep 2020 19:04:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB6CC207EA for ; Wed, 2 Sep 2020 19:04:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iRP4fz5N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728190AbgIBTEr (ORCPT ); Wed, 2 Sep 2020 15:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727949AbgIBTEp (ORCPT ); Wed, 2 Sep 2020 15:04:45 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4D7C061244 for ; Wed, 2 Sep 2020 12:04:45 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id g29so153565pgl.2 for ; Wed, 02 Sep 2020 12:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mbvYxT8uYxty8dNjUEj6f2xpfkVHdqq7oce2X4nNcd0=; b=iRP4fz5N8zXBPyKNAgNfPmXCcxrmonkm0Os8not5I3SkTH+uCEvtntcSzwpjmUH5Ew fJ53jdwnD1OmSm2/LLlE9h3yEA3384P9xBIx1fM5B8WvPo8eT5i8XW74TzOZSJCiVhIQ t8yPjErzTguaK5SK/lPFV6JrgE+zApxHY7n4T9h0IFgeVDfPSLH9i4Igh1E1y1VUrZdk Qg7e+ShQRcDa4r6b5/n24liH+AW0DosuNG55yaEmh6cl88S64ZokJ0z50525m3rjaIIP mYAZj935dcrmRet9hObLhGeVLVc7w/6Lgr7OBukbh6zJ3YwQfJx6ajWrb4RHKGYufli4 4/3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mbvYxT8uYxty8dNjUEj6f2xpfkVHdqq7oce2X4nNcd0=; b=ZVdnMCJfHxLi/7LzU/cF4B3nGXZ3CbAKfhoTplpu3WtGpb7pCeGWwPnzHIhiiyGGbv kqQ9mfOlRttiL/PuH5M/GFf+etithDfk7L04p4FKNF0IT2IeTXLUAwqdS0TMXELN4lho 7GQ3O85+50FmBnpgZLDgPAZa/QmrBQgMXcoPz55V51wlfBCqac28wwscEXuo20+v5G04 2mVmnzJ6mNdvq0f1I+7IucMS3qQRtuxn1U2lE7rNvsVM0esnes1BbIuvDLm7EHXGLDks 6vrx6+DjQGC3Nv7e+VOTLfT1jeJndh0scnrXKuuwDf3mLWiSwAyy/5M+poRTt+kL9w7F W2BQ== X-Gm-Message-State: AOAM5317j8f9UHJDK4ViSBU/dDSHruvZldOvnrqiI0XWGbsv93uqa+5S Sd4V6DbBuYgWN5AXXgR2grht7DBDxPH/K1PIKvmbyQ== X-Google-Smtp-Source: ABdhPJwtTfyrpkBmwDaLJ+GfXiTisNqMpq2rz/OkurrFhQR8CPZaebvC/gVhdDeDVHmXMpt9IxQQan8xa319O8Ek0ZQ= X-Received: by 2002:a62:1896:: with SMTP id 144mr3540419pfy.143.1599073484594; Wed, 02 Sep 2020 12:04:44 -0700 (PDT) MIME-Version: 1.0 References: <20200902025347.2504702-1-keescook@chromium.org> In-Reply-To: <20200902025347.2504702-1-keescook@chromium.org> From: Nick Desaulniers Date: Wed, 2 Sep 2020 12:04:33 -0700 Message-ID: Subject: Re: [PATCH v7 0/5] Warn on orphan section placement To: Kees Cook Cc: Ingo Molnar , Borislav Petkov , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Peter Collingbourne , James Morse , Ingo Molnar , Russell King , Masahiro Yamada , Arvind Sankar , Nathan Chancellor , Arnd Bergmann , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , clang-built-linux , linux-arch , linux-efi , Linux ARM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 1, 2020 at 7:53 PM Kees Cook wrote: > > 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! For the series, Reviewed-by: Nick Desaulniers As the recent ppc vdso boogaloo exposed, what about the vdsos? * arch/x86/entry/vdso/Makefile * arch/arm/vdso/Makefile * arch/arm64/kernel/vdso/Makefile * arch/arm64/kernel/vdso32/Makefile > > -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(+) > > -- > 2.25.1 > -- Thanks, ~Nick Desaulniers From mboxrd@z Thu Jan 1 00:00:00 1970 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=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 9F3A6C433E7 for ; Wed, 2 Sep 2020 19:06:09 +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 675BB20758 for ; Wed, 2 Sep 2020 19:06:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="C+LXHr80"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="iRP4fz5N" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 675BB20758 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6CqwN4QEMOg5JFttICNwqx0nd1z8LglSNad2MmYTQ8I=; b=C+LXHr80LmTn97mjULb+KzRr/ N/gkuDSBn5hytohNivzhN9sig5Q6FnaTkPga/VITnNf4Pd9BjLDhcD6PhsIMGBExPtdBoUGbedOlU bJPHe0YXENEAwpEidNGC4IoeMDZoHOMB1Yhr5qxZsg+PT2TYLAuAia5kVN3Cs8ygXszmVDoIEeCuK 9m4sJEBBjp003xug9S9SepQGZgulLg0aHnwtJrQArWCoSa3KK2XwsrBeKh9J+3Foa6aNdpj70Xv3n VBraMLDmJGdcbUzPW+Vo5GPfSs+Y89b6LjJMa1q9Fa9W1D620c70l1bCJfxx+U5ppsnlEHdcPmmOi GncEqNx1A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDY3t-0004s6-P0; Wed, 02 Sep 2020 19:04:49 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDY3r-0004r5-26 for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2020 19:04:48 +0000 Received: by mail-pf1-x442.google.com with SMTP id f18so150249pfa.10 for ; Wed, 02 Sep 2020 12:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mbvYxT8uYxty8dNjUEj6f2xpfkVHdqq7oce2X4nNcd0=; b=iRP4fz5N8zXBPyKNAgNfPmXCcxrmonkm0Os8not5I3SkTH+uCEvtntcSzwpjmUH5Ew fJ53jdwnD1OmSm2/LLlE9h3yEA3384P9xBIx1fM5B8WvPo8eT5i8XW74TzOZSJCiVhIQ t8yPjErzTguaK5SK/lPFV6JrgE+zApxHY7n4T9h0IFgeVDfPSLH9i4Igh1E1y1VUrZdk Qg7e+ShQRcDa4r6b5/n24liH+AW0DosuNG55yaEmh6cl88S64ZokJ0z50525m3rjaIIP mYAZj935dcrmRet9hObLhGeVLVc7w/6Lgr7OBukbh6zJ3YwQfJx6ajWrb4RHKGYufli4 4/3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mbvYxT8uYxty8dNjUEj6f2xpfkVHdqq7oce2X4nNcd0=; b=mq0svRxQYKg+cAQa8iglEgKZxrkgMCJgaG6Z7Jgw+4PU67J8CQtRpDrWfqx8NkrXw4 oR/ufvjXc5x6XBflsHunO4utNtqUQ6wEsYdobkx+y/06dyrjQi9Zloqmw6dHmlGiXEvw PB9/wgCydxbYSxS3RPGVAGU4m8RvmRIONifs/q+jICFG7ij/coPc/hAiF7kMkSjUi9VR nB/eQC8dvWG1dD4jSKes4V0LuiGXlxHRNZ5toJGq4fRX8gwwUktKdykmfQuEOYjwuGGM RphlOFdDdJFaMJek3TdAi7yWgEDkg8XOyyOJs18AGenN+QY6E1p441sU4gmean8yhvBW a78A== X-Gm-Message-State: AOAM533kNPpuSJ4N0dn0NKPtzzaPreOaGkRFlLaFTol61v56XjLmbhEA Ri6mQT4H4LKpL/AKUIoYVafOqELLIhJxm1kuJp/u9w== X-Google-Smtp-Source: ABdhPJwtTfyrpkBmwDaLJ+GfXiTisNqMpq2rz/OkurrFhQR8CPZaebvC/gVhdDeDVHmXMpt9IxQQan8xa319O8Ek0ZQ= X-Received: by 2002:a62:1896:: with SMTP id 144mr3540419pfy.143.1599073484594; Wed, 02 Sep 2020 12:04:44 -0700 (PDT) MIME-Version: 1.0 References: <20200902025347.2504702-1-keescook@chromium.org> In-Reply-To: <20200902025347.2504702-1-keescook@chromium.org> From: Nick Desaulniers Date: Wed, 2 Sep 2020 12:04:33 -0700 Message-ID: Subject: Re: [PATCH v7 0/5] Warn on orphan section placement To: Kees Cook X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200902_150447_141918_814EEDB2 X-CRM114-Status: GOOD ( 15.77 ) 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 , linux-efi , LKML , Arnd Bergmann , Catalin Marinas , Masahiro Yamada , "maintainer:X86 ARCHITECTURE \(32-BIT AND 64-BIT\)" , Russell King , Ard Biesheuvel , clang-built-linux , Arvind Sankar , Ingo Molnar , James Morse , Nathan Chancellor , Borislav Petkov , Peter Collingbourne , Ingo Molnar , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 1, 2020 at 7:53 PM Kees Cook wrote: > > 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! For the series, Reviewed-by: Nick Desaulniers As the recent ppc vdso boogaloo exposed, what about the vdsos? * arch/x86/entry/vdso/Makefile * arch/arm/vdso/Makefile * arch/arm64/kernel/vdso/Makefile * arch/arm64/kernel/vdso32/Makefile > > -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(+) > > -- > 2.25.1 > -- Thanks, ~Nick Desaulniers _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel