Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2901379ybv; Mon, 24 Feb 2020 14:02:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyIrzR5ETOwJalyi6C+SJJfCjftBg20MyXUu4B1g1tdl1g/BpcZvmHXD5xgIc7pc+xj/wKU X-Received: by 2002:a9d:7498:: with SMTP id t24mr42941612otk.290.1582581747296; Mon, 24 Feb 2020 14:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582581747; cv=none; d=google.com; s=arc-20160816; b=Sjc6QQo9bbMyg3BbSIA1HLLFC7pLo2OtrkoP9ijaZufLshAJwd9D8vk997WtYJBOOW 4Jp0o3GAr/YM43fYB5uFZc1NY/9QPjBcvPnK5O4yVktLvS3qc+At5Dn13T84dBcotJjQ 9OARz/2sJWFFV5oJvCEU8hCZClnCvA2n/l+GGg6FGiQ9HMz5/2sZ/jvappRrupyNM0h3 tAHVivmFGFlldEftaFOgjCHJZe4C5e00Efl1YHhqlMwVOJYu9iGn3jgmW7N84wa4yyJj rviofxaXMydUcy9oUPY0xdmnntBSiV0nOa/eQbXHP9izFh4fSIbRsx6GU1iI7MMEydJA LKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IWLJOFGxvVMno0/8se2X6awifOIRIcp17izGUYTA88c=; b=l2AY6sRYWEmr3PJKF8OVINZcAJY243ME/JMxUvgrt9pbBCGrgN6wmiR5c7xKzzSZFB YTvHQpfSI8AMWUlUZKz3bKA2JnMCPWqYJVtZinYZ3TTnxkHwZyhc/kWfyoA2sheaJ3m3 0gK+rQOu1yU1sc2IHUGwAwYWLrSirlP+dTEBHFhZar7kmyBuqUew4pHWRsefI+4S2tkc DFXvH+/wIl7Blkxerwqm/iaVpzFX9ir+nv10XzhytvUK2zOQ4BH1Pud9iQ5kuCGySDzE RikVIdhzlLoz9X7Iym992JtdHamWzdyVGtW9K7zmbjep1N+dykqgfWmTihH1gC7zzpvb X6mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=R6ZspJE6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si6049039otp.258.2020.02.24.14.02.10; Mon, 24 Feb 2020 14:02:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=R6ZspJE6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728020AbgBXWBv (ORCPT + 99 others); Mon, 24 Feb 2020 17:01:51 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33393 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbgBXWBu (ORCPT ); Mon, 24 Feb 2020 17:01:50 -0500 Received: by mail-pl1-f196.google.com with SMTP id ay11so4608246plb.0 for ; Mon, 24 Feb 2020 14:01:50 -0800 (PST) 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=IWLJOFGxvVMno0/8se2X6awifOIRIcp17izGUYTA88c=; b=R6ZspJE6BKeyLBYb3uDCGB6uHR5kSBAGhpFj+YA6ggUG2ZOClQsLxq2H5hDhWdv1++ zxhxpdFAAlnEW7lBsiHuxygxgE/tAJxDARzipH13NUvi18Qgtl1uliBn6eO72WI7eu32 2BW6jv64X8G+aHxSlFoUZY3/QYui6aQ1eo6HyU7UkveWV2VFSF5xEGjAqrEoqISa7MVl tZozoWXHvvVIoiz5YkdSHqDxhS99/qqMbqeG7rq3jDocLmHr/cMl5k1TgSxhgKzol/XV pfZXXq7U8/9NZp7ctavoZ95mCuAmoTFZ2s9t0lQ18rUr4beSKmILAAnxxlGt4W1fA3Wl cHgg== 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=IWLJOFGxvVMno0/8se2X6awifOIRIcp17izGUYTA88c=; b=CGiviftn2hw4qhqVs9F6P/EyPtI42Ikc23aII5/WNSvf5MXfohttZyZPBRA8fI4kAS 6zd82LRZ8LeERnTvmKBZ2azUqb0pymE+vbELcHhY03plvq23IsNqjNdVgC1kuafbbiQE 82yfyGA2p6ldTn4EHFRegRmpSq40+PqYmRgNLfpPMVXwz0wLw3/GvT6wkHLV3HhmiFvB fqGogbFeATpZK4qi4Ccqt7lqxplTtLGWn8nEDwXCHvB9+iYux9lj1qf9n5UYUNEHrNDg rSFuMfSfRda1lEgBolBb26/+1rlit7yDGGNwiSQ2WqTPrP8B+mwotveme8EE/ekHgw5S YzqA== X-Gm-Message-State: APjAAAU1ufkUEUbXF+DR3DHK6IeUi6g2aYlDk0gjxKG1WEoV7P0iajRd 8G3w+9fnBMRoFyzBfPsFesI1Oo8ye/aIKlldb/Lrnw== X-Received: by 2002:a17:90a:7784:: with SMTP id v4mr1372238pjk.134.1582581709602; Mon, 24 Feb 2020 14:01:49 -0800 (PST) MIME-Version: 1.0 References: <20200222235709.GA3786197@rani.riverdale.lan> <20200223193715.83729-1-nivedita@alum.mit.edu> <20200224215330.GA560533@rani.riverdale.lan> In-Reply-To: <20200224215330.GA560533@rani.riverdale.lan> From: Nick Desaulniers Date: Mon, 24 Feb 2020 14:01:38 -0800 Message-ID: Subject: Re: [PATCH 0/2] Stop generating .eh_frame sections To: Arvind Sankar , Borislav Petkov Cc: Nathan Chancellor , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , clang-built-linux , Michael Matz , Fangrui Song , Kees Cook 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 Mon, Feb 24, 2020 at 1:53 PM Arvind Sankar wrote: > > On Mon, Feb 24, 2020 at 12:49:03PM -0800, Nick Desaulniers wrote: > > On Sun, Feb 23, 2020 at 11:37 AM Arvind Sankar wrote: > > > > > > In three places in the x86 kernel we are currently generating .eh_frame > > > sections only to discard them later via linker script. This is in the > > > boot code (setup.elf), the realmode trampoline (realmode.elf) and the > > > compressed kernel. > > > > > > Implement Fangrui and Nick's suggestion [1] to fix KBUILD_CFLAGS by > > > adding -fno-asynchronous-unwind-tables to avoid generating .eh_frame > > > sections in the first place, rather than discarding it in the linker > > > script. > > > > > > Arvind Sankar (2): > > > arch/x86: Use -fno-asynchronous-unwind-tables to suppress .eh_frame sections > > > arch/x86: Drop unneeded linker script discard of .eh_frame > > > > Thanks for the series! I've left some feedback for a v2. Would you > > mind please including a revert of ("x86/boot/compressed: Remove > > unnecessary sections from bzImage") in a v2 series? Our CI being red > > through the weekend is no bueno. > > Sorry about that. Boris already updated tip:x86/boot to only discard > eh_frame, so your CI should be ok at least now. Yep: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/boot&id=0eea39a234dc52063d14541fabcb2c64516a2328 Looks like our daily CI ran 6 hours ago just missed it: https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/290435629 Thanks for the fix! -- Thanks, ~Nick Desaulniers