Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2187279ybh; Fri, 17 Jul 2020 11:22:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7BDyoRQmOygLbSy95WCWAhthHRRWcBLtkSlU/OghI+y5UzKgZGNAizTMYOO/hkAk4PkO6 X-Received: by 2002:a50:afe1:: with SMTP id h88mr10470341edd.295.1595010158501; Fri, 17 Jul 2020 11:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595010158; cv=none; d=google.com; s=arc-20160816; b=sCpy1DgD0LvFk2FHlZvQiQdN9lhUgoRmHpxTB8P7seqoAv8Dl5sxJL1DSYwpgdCumk PECPelXjmctunrIe5SYjPjgq/wfhpk6V2eFETE1UCxlKPiYwxxbQPhQOypnc8U2N1/Bo mlDjXRI3zbUgwG/nZZlJCc5bAFhUD2xI0fFVJ2Z20vqZn1p9zBx2rgN6jkQcdapkGHZz XI6sNkWxsYH8upDzLPK7rEEwzE/K/8ryYMDQaon6EPB/RBvWqRndAqMdIb+rYtDq59mQ kmXfQpBBwFoQNAh6tsCXJ+CXi5Ao+C0DPPpQhuCWLQTvCF5/uxTy+2YbMj5H2fm3ATs2 BeNQ== 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 :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=3BZIZFFWoflh+aCDXlOZJ2oTKuNvfj+cVytvkYsY/sw=; b=BZGghIjShzrs7x2mi/bplbQU/oiu57oHPU5OpxWZ0NY1LRE2aauZu6A4FyMUkeZBlF Vi6BftsAU1ewZ0Fc1SWDHwGi3insUx6EziZ4HmfB8QjQtjoah1iRQifwjRSzQ2qZBImI ydSQTAcKKNQJTSGNqocjAlM2Ix+f4tZs+Ar2cTjU1zlKgqa8EK0TZPuGabgtoPg0btQ7 DSHJwRyTOBs/EhznT1Z1bg8ob4bB7v6N1eItd5PZ9syskoV3brAAEB1DpFddB48FPg9h gBg/jF0cDqWZmKAl7FDZbgS7Xd2WPJdBuS1Ipc60AzLxeQcB55J4qsQsA7bTHUjjvbhW I5Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i+B1FN5s; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si5777687edv.570.2020.07.17.11.22.15; Fri, 17 Jul 2020 11:22:38 -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=@gmail.com header.s=20161025 header.b=i+B1FN5s; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbgGQSVZ (ORCPT + 99 others); Fri, 17 Jul 2020 14:21:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgGQSVZ (ORCPT ); Fri, 17 Jul 2020 14:21:25 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0CB1C0619D2 for ; Fri, 17 Jul 2020 11:21:24 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id l17so11376802iok.7 for ; Fri, 17 Jul 2020 11:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=3BZIZFFWoflh+aCDXlOZJ2oTKuNvfj+cVytvkYsY/sw=; b=i+B1FN5sfEO2JO9mjOHGAiDaKC/nW0OgUp/t1+69iSYVjdeyNRltLCBtFwhn4ddP2a zOJVCdAdngjvA78h9yJHASGP7gJfhkfDYdcLGIOCeCNKiluR5J9tHzkIAx8km7j/A+xO Hoo5NFdS2nXai3EJFSgi/hu9Xd1UcPkuCgco9YBa65IazvlkXrijzalxxD6dxeEIbflU IQHyZ/wR6oocqbmgOIQNepjp8DNeovmr+lFHb+G0a7fRMF8QoLWDVvUYD2K8T54YcwoR LTRw3yglABzPs7FUue1Ab4g0+i8JIh2wkKWs02114SqmHVqVi9VLXSsx7GKhEGcvD147 6xiQ== 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:reply-to :from:date:message-id:subject:to:cc; bh=3BZIZFFWoflh+aCDXlOZJ2oTKuNvfj+cVytvkYsY/sw=; b=ogZJy5tIdjqRc/q+E5EQJr1MHF5v/uos91hLJhYWeQ5sb6BVv4yNnlWYGamDG+3seh xf26C8GIQzIMjCiM4oNLut7ZxcDf+EAj655upWyqIx1i4HC1/Jx1vQqme9foQUCEYj9R B+kZy4XjwpuiXDgC3spLW5U6ftX1MpXdV7cqVHueKvwb/PZFtLzddWimSNPjej5+ywEG gNciiB6c9JBJVBGuBNq9oassg5vc5IoPyXR+mije90iVJaNmYrvkS828E6Gfc6szSvIW LwY8d15XZNV8tvHUdEx7v6/roWMG2Qqt75ZTdEeVHxxUqoQOGMoxVJnFgZqRVEzVoTMG 5CRw== X-Gm-Message-State: AOAM533gG/9FD9JyAkSq1nb4XkZZrQmD2URRBiO+bm3QqInHPet7uFi0 tAVpG/+PgCyTP79pEcfwH29Xb64W3c9L9mIkPLk= X-Received: by 2002:a5e:9309:: with SMTP id k9mr10687234iom.135.1595010084329; Fri, 17 Jul 2020 11:21:24 -0700 (PDT) MIME-Version: 1.0 References: <20200714023836.2310569-1-nivedita@alum.mit.edu> <20200715004133.1430068-1-nivedita@alum.mit.edu> <20200717134654.GA3187880@rani.riverdale.lan> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 17 Jul 2020 20:21:12 +0200 Message-ID: Subject: Re: [PATCH v5 0/7] x86/boot: Remove run-time relocations from compressed kernel To: Nick Desaulniers Cc: Arvind Sankar , 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 , 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 8:17 PM Nick Desaulniers wrote: > > On Fri, Jul 17, 2020 at 6:46 AM Arvind Sankar wrote: > > > > On Tue, Jul 14, 2020 at 08:41:26PM -0400, Arvind Sankar wrote: > > > The compressed kernel currently contains bogus run-time relocations in > > > the startup code in head_{32,64}.S, which are generated by the linker, > > > but must not actually be processed at run-time. > > > > > > This generates warnings when linking with the BFD linker, and errors > > > with LLD, which defaults to erroring on run-time relocations in read-only > > > sections. It also requires the -z noreloc-overflow hack for the 64-bit > > > kernel, which prevents us from linking it as -pie on an older BFD linker > > > (<= 2.26) or on LLD, because the locations that are to be apparently > > > relocated are only 32-bits in size and so cannot really have > > > R_X86_64_RELATIVE relocations. > > > > > > This series aims to get rid of these relocations. I've build- and > > > boot-tested with combinations of clang/gcc-10 with lld/bfd-2.34, and > > > gcc-4.9.0 with bfd-2.24, skipping clang on 32-bit because it currently > > > has other issues [0]. > > > > > > > Hi Thomas, Ingo, Borislav, would you be able to take a look over this > > series in time for 5.9? > > Hi Arvind, thanks for the series; I'm behind on testing. When I try > to apply this series on top of linux-next, I get a collision in > drivers/firmware/efi/libstub/Makefile:27 when applying "0002 > x86/boot/compressed: Force hidden visibility for all symbol > references". Would you mind refreshing the series to avoid that > collision? > I guess taking a Linux-next release as a new base is not a good idea. With the next Linux-next release... new troubles. Please, keep the base on recent Linux v5.8-rcX. - Sedat -