Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2895869ybv; Mon, 24 Feb 2020 13:55:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzIjGr2aKqYQSioLREHhmxum/MWT6yCXYQDtvuowokwNHxvociRMEM/gsP1o1auQ2FB47EP X-Received: by 2002:aca:cf07:: with SMTP id f7mr958997oig.5.1582581322748; Mon, 24 Feb 2020 13:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582581322; cv=none; d=google.com; s=arc-20160816; b=X19AiADeZ321/ABFAklf9WWCnmJkquFh/qzo/U38uhH/mlXHuzCd8X8Uz2zZyh3cg3 TEk3BnfBZwxjOSG95at4W2EIZ1AHzjULs16O2bQlzOYN4zB/aAya5lGnO/5cFusej/jO EWqwCK8Zm5R14yCM2ivaJPHSRMGw9hvTdfEIf3luZeJxEiIKop9eQoiAG+n2tuEcJoFD JsETl/VNMpT+efWM5U2nQFDRr+cvUiFJ2tBqeq5GtNO9DE+2DVbOZyOFHIdorRVIjJPS o+8fJTAbc5S89ZyJIEnfDuzz6PuXT4tk5pChFXrkB9OqiJWt/e7JLIrRF0os5Bds8D5l 2HZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=oh8DgJY+ghrUGFSaCOcqO7JdsvvWMKpOwz7kUfngxiA=; b=mCzdBnAvMAydpnGluw0Lv3fv1fqXt7huaxr+5ABDjoLu7HFZrOK+3jDBehFnvVJzO3 EUG/V/KAuog31YSrirFyacGvQM88xWf5DzkCKEAYnOM8Og68YfEvrZsNzsenDSmeZ73z vdIEeLVGdZM6zDc4RRZvhwvLC6boD8rQPgBTtidDHJuybt2C6UUgAvesqBRt9Tq/cSKp GbqEuisFMonUbWdMXjLn26xtjjFRCgYhKY+6gnSmDDY++FZtETiAFZNiW2y5WhhUPH7w wTOdqE4BNazXhrMA8+uh8zev3bA+06rgJCmKlvANA3wyrjFBm3ZWgY0R2tCsqL/AlU3O GM/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=s+riR0kj; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d83si5843898oib.166.2020.02.24.13.55.10; Mon, 24 Feb 2020 13:55:22 -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=fail header.i=@gmail.com header.s=20161025 header.b=s+riR0kj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728132AbgBXVxf (ORCPT + 99 others); Mon, 24 Feb 2020 16:53:35 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:32917 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727742AbgBXVxe (ORCPT ); Mon, 24 Feb 2020 16:53:34 -0500 Received: by mail-qk1-f195.google.com with SMTP id h4so10159279qkm.0 for ; Mon, 24 Feb 2020 13:53:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oh8DgJY+ghrUGFSaCOcqO7JdsvvWMKpOwz7kUfngxiA=; b=s+riR0kjynNOcpmJzcpRRAC82J0KHzMa3m4Dx/MKE+/lYxGbWiw95DcP2oYkunDzq7 /35hf4KjVrh/sGqoXIXpkot4E1S0vAWiXNS7WHhGBrg8fXcN0SS0VmSGgjujyCVjHCxy vuxzeQDGHqO+8KYZbjb9rZG358d8T/ldz/k1ZAMVUJClwoVm/uwKGH0LkcPObHyqwTJ/ pdT5SmImZolkaS3HPNu9CARp5sUujn6lFv6YD0FZUiH0VCr7mxII/sSuXIOxa+HWne0i JHWwEwHk0WBbm8e37/56d+d/qw32IePK1K3QjUVKsVmFhzaTpRo0Z+/J9xJX8BBlN2Im CRKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=oh8DgJY+ghrUGFSaCOcqO7JdsvvWMKpOwz7kUfngxiA=; b=IFe+xkQ3E2y3HERnlqpcGBacEsDZj8bSZYyzk6Iw1e2CMt8n74ewxQFnqwODiLg2vd ggIUskp2NjaiICbW7cDmD3iX9jePKxH7Y/Sk3rdr6NoY7b0vr1YAVvTUAGJHMSrDpfX1 CBLVZThU2L6t9hmWqhjyLSF2Kl9cSd4ObFNXqWClZzLYKFKhZ2C4UxMSCK2gbJ5GBcuT aHp2Ncg9o+nJLDpa25CoUxixoZ62RepiWuTChV/5nqb200c5mm78i6EXKj+NtbBGXsgg j3ZfvcWgqdocdXt8LB32ZQKMT6Np+M0RwSDqpU52CTEcawm3f7F2UnZ4AEHsqGO9u1NN 6H4A== X-Gm-Message-State: APjAAAWGKHHkBEwLfUyAgk4yJdyBnR3GkQaPvy8KoxOQfCcXPoEVNot7 kCfsHd4hSkjC1/0NurGiXas5I38yWwk= X-Received: by 2002:a05:620a:1235:: with SMTP id v21mr18803375qkj.44.1582581213287; Mon, 24 Feb 2020 13:53:33 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id g26sm6425975qkk.68.2020.02.24.13.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 13:53:32 -0800 (PST) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Mon, 24 Feb 2020 16:53:31 -0500 To: Nick Desaulniers Cc: Arvind Sankar , Borislav Petkov , 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 Subject: Re: [PATCH 0/2] Stop generating .eh_frame sections Message-ID: <20200224215330.GA560533@rani.riverdale.lan> References: <20200222235709.GA3786197@rani.riverdale.lan> <20200223193715.83729-1-nivedita@alum.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 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. > > > > > arch/x86/boot/Makefile | 1 + > > arch/x86/boot/compressed/Makefile | 1 + > > arch/x86/boot/setup.ld | 1 - > > arch/x86/kernel/vmlinux.lds.S | 3 --- > > arch/x86/realmode/rm/Makefile | 1 + > > arch/x86/realmode/rm/realmode.lds.S | 1 - > > drivers/firmware/efi/libstub/Makefile | 3 ++- > > 7 files changed, 5 insertions(+), 6 deletions(-) > > > > -- > > 2.24.1 > > > > > -- > Thanks, > ~Nick Desaulniers