Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp267472ybs; Tue, 26 May 2020 08:43:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdx2P1T2KsKbyhNxmgmZmyievBEz49ot5Hf6CHmZ0+C9CC/dQO+PKN6aQzqIgdzZrdOWoz X-Received: by 2002:a17:906:4317:: with SMTP id j23mr1604235ejm.377.1590507819909; Tue, 26 May 2020 08:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590507819; cv=none; d=google.com; s=arc-20160816; b=HduHU9DR1q1JI8b7zCU98PK0VNc9BYbbrXU4ecVdwKOQ7xhLEjkJnvc87cHa+6NuAP OB6IFayZ1Pa5ufHSae5z7fIck7oRtLvSoNanurTMmO5fks6wXYOsLNt5dSaw50xKJ0uG CA6/XPiIH2+hLFsZQO5EbEmHWnDCUoWLKdXsppimC2zBIz7j5x2QT06uq5Tilh2sGWg1 toZC7t0swIgS7X1YQaPGHZ9HaQq1EQVEyiZmENz7JoRaOeM67BEraygqf4rcQURxIzSS U40Su+xzn3OtQGCb+CbwpYjfiPiBZeBbfZK71Y4TNNunrI/LrIP9Vy5ZP+2CWZJAZPXx qH1g== 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=4ZIKnaG5waGw7rdcggFZ4Qkg+MYDijQCP6NqwMYy6bU=; b=qcVThjbTHznfc/p9VZbGUpw7IBN4L5WOtHkz+ffRtyjK3Zf9ECHeeg31HMOOEwFRE8 XxK8w3dR4cAL/ecFHTYHzK8LlIp794u/nyax/ZLds9jouzjw64MgGoD7OpFrRiZAjTmG P9p3SHc3lxssbQe0slUlgQ2ZT4O5s2YIp1OVG+XlKj4N7UeBtG9ICAOGgBWmvaf3yhrR y5Jcjn9RD4bi8l0pGULFpTwjdwrR/MRjnP6+sj74pmmbkjom09EKhHrrZDsAkieF+Xxw kS5rPsPzoXmFiW9uJsltj+P5VvzU3mKffk/2JRpCEVWWS59tUOdkzpXfkvuI1QiL24aA W4yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HtxbLmei; 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 eb11si125601edb.302.2020.05.26.08.43.17; Tue, 26 May 2020 08:43:39 -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=HtxbLmei; 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 S1729869AbgEZPjE (ORCPT + 99 others); Tue, 26 May 2020 11:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728166AbgEZPjC (ORCPT ); Tue, 26 May 2020 11:39:02 -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 D3AABC03E96D for ; Tue, 26 May 2020 08:39:01 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id s18so8526787ioe.2 for ; Tue, 26 May 2020 08:39:01 -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=4ZIKnaG5waGw7rdcggFZ4Qkg+MYDijQCP6NqwMYy6bU=; b=HtxbLmeirDZPitp0aO6eatzB4nFgaIGEhMNohJaH2zQrxv6q7z4VLcgUmv4/3zx/EP oz2svdj3WA4JU1Slki0vVh1LotC8ZuHheZ3Cdw69g9rKLMeNGerxnxbwJDaawTe/VtsY 7C48BYfhOkur2cN9WHfIWciR1J+/v+5gZyivKfr9N7n83ey++bzr0ZW8I9hoH7aGO1ZC 3cidnz9Lb9niHoIkpr2V+CciXirwkTQiWLdwjrznn4DLcGMp3k6V9h/T/hFZwQI2+WwC cpbnf+LelZbsDPkFBJeIXSXlWRUmh9hs7C2jHXx6aB+zdHM/YoiH3bZQT+hQrQGdkdVm 97EA== 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=4ZIKnaG5waGw7rdcggFZ4Qkg+MYDijQCP6NqwMYy6bU=; b=JDx0S0ySV92PYz4Me2qpd2TYwKFgq7yy4rp4KCQi4mpaKodqNTROJIxf4SAMdxBGgo 6gw5IK+fA3T4V1BIKRBVZhhwVvzAlZsvskoLdOlS1cA7Nu0rvOqW62y+qhR8z8skFNLJ ccJiE3X8PR1SYrvXXbJFQZ0PrOiF46bc7DKJRJzm9u6k5HQCGD0RHaUEatIN9RSqMpRB 8bIEVvVYU9mJrfmDr/ainVCwCleK7OANSL98lCCN8Zfk9mSeJ4Ny/0EENDS1i6JzOEt7 iRm9MVL18fb5evVFEGeLo1ESSbdCC+loXSin15pqSmMZbzHw/WIdnzFH660iuizDgopa elIw== X-Gm-Message-State: AOAM5330GXGShFoZnz2XwRsoC/d4kfb3oVlTXcQtAC+KwRnpibmaCCWH dc1EzTMjhVSXAyIhCsrdf1MQz9V8zA3S0wUdlwg= X-Received: by 2002:a05:6602:2f06:: with SMTP id q6mr17415978iow.135.1590507541222; Tue, 26 May 2020 08:39:01 -0700 (PDT) MIME-Version: 1.0 References: <20200524212816.243139-1-nivedita@alum.mit.edu> <20200525225918.1624470-1-nivedita@alum.mit.edu> <20200526144748.GA2190602@rani.riverdale.lan> <20200526153636.GD2190602@rani.riverdale.lan> In-Reply-To: <20200526153636.GD2190602@rani.riverdale.lan> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Tue, 26 May 2020 17:38:50 +0200 Message-ID: Subject: Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel To: Arvind Sankar Cc: Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , X86 ML , Nick Desaulniers , Fangrui Song , Dmitry Golovin , Clang-Built-Linux ML , Masahiro Yamada , Daniel Kiper , Linux Kernel Mailing List 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 Tue, May 26, 2020 at 5:36 PM Arvind Sankar wrote: > > On Tue, May 26, 2020 at 04:50:38PM +0200, Sedat Dilek wrote: > > On Tue, May 26, 2020 at 4:47 PM Arvind Sankar wrote: > > > > > > On Tue, May 26, 2020 at 02:44:29PM +0200, Sedat Dilek wrote: > > > > > > > > Are those diffs correct when using "x86/boot: Correct relocation > > > > destination on old linkers"? > > > > > > > > > > It looks ok, but that patch (and even marking the other symbols .hidden) > > > should be unnecessary after this series. > > > > You mean _bss, _ebss and _end? > > > > - Sedat - > > Yes. Those .hidden markings are there to ensure that when relocations > are generated (as they are currently), they're generated as > R_386_RELATIVE (which uses B+A calculation, with A being the link-time > virtual address of the symbol, and stored in the relocation field) > rather than R_386_32 (which uses S+A calculation, and so doesn't work > without runtime processing). After this patchset there aren't any > relocations, so while the .hidden markings won't hurt, they won't be > necessary either. > So, I am here on Debian/testing AMD64. How can I test the patchset worked correctly? - Sedat -