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=-1.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FSL_HELO_FAKE,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 1FF0CC433E6 for ; Tue, 1 Sep 2020 08:18:43 +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 DB6BD206CD for ; Tue, 1 Sep 2020 08:18:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u9HqU0sV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pABpQ7tZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB6BD206CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Mo6xwBx4MjvrvW3Pu6bB4dC0QTWH4m7ncbNSU0NC5Oo=; b=u9HqU0sVTD8f3iVpTkWsL6bEq TTEQSxjtAU9lHOVrSaepzO5FqFLei+Cgj0eRll/9IBo/3Uxu3InAiXq1b1Thov3jrgs6Kx3vEAvWK VZdefWmrpQ6xLKY4n42XTIh9XAcls8rBGoGQvja40UjkuDBY7Lf3fCb07IPhFjR4HqNvZU6s9c22t haYvaUQc0aMlM9unbWfYclhVfCfuIv0cLa+1baIpKBnOP2oWeb01iF8C1WPonvq24m7dXOu1zzqKe +ox9O2mBn1Gfjx2y6li/9jRsp0aQGLa9VnwFEBxtmeOofO17BscYGj8jUIkK7hA6XlXyhlkCbQKZK +tJAPuFLg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kD1TK-0004Ba-Fs; Tue, 01 Sep 2020 08:16:54 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kD1TH-0004AH-Uc for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2020 08:16:52 +0000 Received: by mail-ed1-x543.google.com with SMTP id w14so584472eds.0 for ; Tue, 01 Sep 2020 01:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=swNovB3+fcrt09IBXHVDolTV6/eIXMyoTVYnepRz3fU=; b=pABpQ7tZu55e1f7KIWPfqDj7rsSVuHqj7SJd/BNyJtUBlGl3fCXeatZv2VT0Jd7GMy CRWI47ko52llmTPN8DSc/qdPwBoeMA0kOw7DyMGgCxAkIFd6Da80nZoAGw17JUz/x6MT gEp/23jWYkPvQGV8ouufw/AZF9MYGxg1UBsX0uZImngKkWcDopJtQJ31oT+y2oO6bhsM EPbyUx3Go/apQcYolTzEse8P/AnQM2q8YWBROfWcWpGuuRT0kncwn2ORUu1OGGaK4IfZ 0Ky33sQw/xRKFZjyGNb4ePn/yWz/Digj/WlMevz33aRyx4Q+lqjX4Qx8xt6C+V+qE7Jw 0azg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=swNovB3+fcrt09IBXHVDolTV6/eIXMyoTVYnepRz3fU=; b=b3qS9KZ7UuRt67gkeUhvL5W1eG0rb1R5fGEW7zd31Q4/sCOYf0rKT0Gg5x+80gyy6/ cJt9XWn3H1d6gEds0i0RMSmsE6jns3P/3jBxmIs7yHJggWSE25gmqmKJ7ho6AOeSS4UQ y3ZMlW8VZQs6yMfkwEtKAEDqW2ovUetCZpQ7z0WYogLgiInOjlml+lbrieYaGNYM0Vo3 EMhi+F9xtWtzo8ZrETtUnOp603w9E7xgkOAonLKWDBX9G0TTodR8tM455P9nIbTK0XxJ BjSmtUJkGDbi/DeS9ALDwcpkq+2saOUXtIGOT3fU6SApZNYZPok+J4JQGGMqjoKhEbE1 W//g== X-Gm-Message-State: AOAM530yfZan0RuL7jniixR/16SjtsxxdXy1A6LDp/H7ABPqIMz3f2ss HPRYWblxlYFWybxCpU+U0Ng= X-Google-Smtp-Source: ABdhPJx2ptuL7kkygWDLtZF4JRxA4A4z1gr2neF5/3bsbYzIVwapfuJUGyH19AxYNzkhui1xtmfaiw== X-Received: by 2002:a50:d942:: with SMTP id u2mr802309edj.0.1598948210504; Tue, 01 Sep 2020 01:16:50 -0700 (PDT) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id k10sm507731ejj.108.2020.09.01.01.16.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 01:16:49 -0700 (PDT) Date: Tue, 1 Sep 2020 10:16:47 +0200 From: Ingo Molnar To: Kees Cook Subject: Re: [PATCH v6 00/29] Warn on orphan section placement Message-ID: <20200901081647.GB3602433@gmail.com> References: <20200821194310.3089815-1-keescook@chromium.org> <202008311240.9F94A39@keescook> <20200901071133.GA3577996@gmail.com> <20200901075937.GA3602433@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200901075937.GA3602433@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_041652_041826_C2588EBA X-CRM114-Status: GOOD ( 20.97 ) 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, 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 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 * Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > > > * Kees Cook wrote: > > > > > On Fri, Aug 21, 2020 at 12:42:41PM -0700, Kees Cook wrote: > > > > Hi Ingo, > > > > > > > > Based on my testing, this is ready to go. I've reviewed the feedback on > > > > v5 and made a few small changes, noted below. > > > > > > If no one objects, I'll pop this into my tree for -next. I'd prefer it > > > go via -tip though! :) > > > > > > Thanks! > > > > I'll pick it up today, it all looks very good now! > > One thing I found in testing is that it doesn't handler older LD > versions well enough: > > ld: unrecognized option '--orphan-handling=warn' > > Could we just detect the availability of this flag, and emit a warning > if it doesn't exist but otherwise not abort the build? > > This is with: > > GNU ld version 2.25-17.fc23 I've resolved this for now by not applying the 5 patches that add the actual orphan section warnings: 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 The new asserts plus the actual fixes/enhancements are enough changes to test for now in any case. :-) Thanks, Ingo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel