Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp10009ybh; Fri, 17 Jul 2020 16:48:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxXuIQDwElVSHVQzwUhNx277hfBN/RE+qsUceAapmYPkA5irAn4C0VGQmmTv4YPYMKCFAo X-Received: by 2002:a50:d55b:: with SMTP id f27mr11732794edj.312.1595029704614; Fri, 17 Jul 2020 16:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595029704; cv=none; d=google.com; s=arc-20160816; b=BhQxWXtxhS6UNQ74P7a7sgaDo8RWN46LV0Y20M5lMyhB6cml/OE/yba3JAXjqJYdOY Kv8sdMLJoZ1wOaJhdgTkwAtxwRF52j1l0A9ZTHLx16qHGSU09okYrQxBVn/C3RnzB0Bw 7lkxZwnQtO1f+ZuuEwCi5sFGTD834dd+xgTsO/61qeutTKMly29/PNkdheTHxqu2+NzP sUKQreJoUwNl3AZ5P0AGcRRJpdbxFmU0UtKAYPSG9p/n0tQf13gsI4Ayyu8tQciyLKhj Gd4WaY0y1quv2FMPQAJu0XKc3e8j9jRdIQyKxQN0yn8MZQ7/C3wCzdhAWinCmZ9LOK9/ q1gg== 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=ZC3p+2XjLAm8XpuH3SiLqSVIr+Sho20/kQ8Al8jY7UU=; b=N3zLfZiHdFAtzbBQXdX5X1Bew8mzVWrSbKJ0HRfr0FlccbUuIOw6HrKoYNfNXnvUM6 W8g6wxc3AWwpcC4FoR7oD93imtRkiXIrSJrdSWvLVVz/TtAZsw01ErdIQXKdD1LfA8mH J11DL2lOLG2w2MtXmHLwWSLrGZfxXmpzTHknsq8E0X8EPlrnhGntUIRdhrxJzm07jRIg p1j3QN2uBJAwcbaadjuGAUU4Cl0oGwwcTlhuM8dqEq97NgfAm1UN0NXJwqvXqycqKeZT sLRcWNycZXSAL/ECbsaST0TNhPFb4vXMJo3p+5AzIe5ZI65xC1Txqc272fwfa3zmPDEg kdYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cAzTA5En; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u6si6439798ejf.218.2020.07.17.16.48.01; Fri, 17 Jul 2020 16:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cAzTA5En; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728001AbgGQXql (ORCPT + 99 others); Fri, 17 Jul 2020 19:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgGQXql (ORCPT ); Fri, 17 Jul 2020 19:46:41 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A03C0619D2 for ; Fri, 17 Jul 2020 16:46:41 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id cv18so4491581pjb.1 for ; Fri, 17 Jul 2020 16:46:40 -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=ZC3p+2XjLAm8XpuH3SiLqSVIr+Sho20/kQ8Al8jY7UU=; b=cAzTA5EniTJgKpW+A1LSJr2owM5C+0l2N7R1z8lRMH1v7hw+mz9DovO+nSefBpBa7U d6aUN0y4utYS8+7XcVP3eCejz4ubMff47Mid/REGHFh20L1rT8AqNQ5jELj32v2wMy0x 6snKeJGMznnO4OTl2sOvhADK5Con69+A0bFXjl3g0W+/deGBRm9d4zhxgVJid7MG9aSj fPeOEf8AqbV8fqfthPt97O6xIgosjsu2cvOSOWNMFWmYnro9MdVAfQhEnenLtaQon0/B 1bKWyIFJpGwCJuloffuyM6KZfDIo0OI7ZeZG5YNkYMq1Uzpis0PPgpTeOzlTg5y0DIVc lyUg== 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=ZC3p+2XjLAm8XpuH3SiLqSVIr+Sho20/kQ8Al8jY7UU=; b=hLng582zqfZD6JmjDVbvVSVF6hyBnnqg8G/mWUANLttHWX4B/E8avOKP9R0hj7lIOa v0cfEUA0W9SgMqNJwX+g+YgmCKGNcBDw9MP9lovhIAuzUTxb1o5MQ75uPyBM2ez8qulZ STXueSVKZBG/Oi149sremjuyTG4+iBNZZPBnRIRTt1mTkEaYcQGXH2lmEBRkEIBFRRlf wA21QObTBcYlthzke93D8vTWbQaDTAw7CBwq1zJGWaEMW+HB1heVnzVG0WuQe94lxVM+ 0Bk+zc5Dt1BCMLJseOLq/n+5EX6FyEv24lTwVeORxC1cvtOiBmnUHdoCcQdVaPPqbPce h28g== X-Gm-Message-State: AOAM532j6qOpctoXH0B5ewkeVq8GUuDKi3x0eqrwIxEXqe1N/tAiZpv6 tcZjlapqLxym9c46X+jAIBiWrhJBfPfotvc1t9HzTQ== X-Received: by 2002:a17:902:a50c:: with SMTP id s12mr9066703plq.119.1595029600035; Fri, 17 Jul 2020 16:46:40 -0700 (PDT) MIME-Version: 1.0 References: <20200717201801.3661843-1-nivedita@alum.mit.edu> In-Reply-To: <20200717201801.3661843-1-nivedita@alum.mit.edu> From: Nick Desaulniers Date: Fri, 17 Jul 2020 16:46:27 -0700 Message-ID: Subject: Re: [PATCH-next v5 0/7] x86/boot: Remove run-time relocations from compressed kernel To: Arvind Sankar Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Fangrui Song , Dmitry Golovin , clang-built-linux , Ard Biesheuvel , Masahiro Yamada , Sedat Dilek , Kees Cook , Nathan Chancellor , Arnd Bergmann , "H . J . Lu" , 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 Fri, Jul 17, 2020 at 1:18 PM Arvind Sankar wrote: > > Same as v5 previously posted, but rebased onto next-20200717. > > v5: https://lore.kernel.org/lkml/20200715004133.1430068-1-nivedita@alum.mit.edu/ > > Ard Biesheuvel (3): > x86/boot/compressed: Move .got.plt entries out of the .got section > x86/boot/compressed: Force hidden visibility for all symbol references > x86/boot/compressed: Get rid of GOT fixup code > > Arvind Sankar (4): > x86/boot: Add .text.* to setup.ld > x86/boot: Remove run-time relocations from .head.text code > x86/boot: Remove run-time relocations from head_{32,64}.S > x86/boot: Check that there are no run-time relocations Thank you Arvind for the series. I did quick build+boot tests of x86 defconfigs with `make LLVM=1` which look good. Further, I was able to build+boot i386 defconfigs with `make LLVM=1` with your series, Mr. Rothwell's proposed fixed for today's linux-next breakage: https://lore.kernel.org/linux-next/20200717213127.3bd426e1@canb.auug.org.au/, and Mr. Gerst's series for i386+clang support. So that looks like with this series, we can now link i386 defconfig with LLD! Nice! Tested-by: Nick Desaulniers > > arch/x86/boot/compressed/Makefile | 39 +----- > arch/x86/boot/compressed/head_32.S | 99 +++++---------- > arch/x86/boot/compressed/head_64.S | 165 ++++++++++--------------- > arch/x86/boot/compressed/mkpiggy.c | 6 + > arch/x86/boot/compressed/vmlinux.lds.S | 24 +++- > arch/x86/boot/setup.ld | 2 +- > drivers/firmware/efi/libstub/Makefile | 2 +- > drivers/firmware/efi/libstub/hidden.h | 6 - > include/linux/hidden.h | 19 +++ > 9 files changed, 153 insertions(+), 209 deletions(-) > delete mode 100644 drivers/firmware/efi/libstub/hidden.h > create mode 100644 include/linux/hidden.h > > > base-commit: aab7ee9f8ff0110bfcd594b33dc33748dc1baf46 > -- > 2.26.2 > -- Thanks, ~Nick Desaulniers