Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2261315ybh; Fri, 17 Jul 2020 13:20:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPlF4gnYbZuCFzDZUGROl/HCXAM3fTHIUlbjvTxz7oP68Q/g8dYDwVUQbc/46zMHQ3s9mp X-Received: by 2002:a17:906:d92a:: with SMTP id rn10mr7636860ejb.169.1595017241752; Fri, 17 Jul 2020 13:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595017241; cv=none; d=google.com; s=arc-20160816; b=MMSvjrfMTMeyZR+s59aaXy96/H4G/IyIC76b4Js+Vq/0peonenwI8Gmj2ZFh74PHPv ZaZNdkTrXfYWOyhFJ/+I2eHlOnAWv1aoXynHKoXSFwNZ7Av37P76i3sFiOMAy2Tpnd88 B414RA+luuGN3ncDMBxq9d144c5udRUaqhD05uOUOX4sjXzVGq63P58Uh67cgp/PXMAx 9O72bfasowzrNIqWaNBkNK4+aBwrKMZCJKs50iy1BJgC7K8CawoxTEESC1DZ3anY4JC9 3p0mjWKENTTyCqp/VtL1ldcpn/2cit9sN8knu9IFxgdE8FO0m3AiunkgPWXX++3sf2lS DOsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=U+b+56aZeJ+dA/DwFU4piC2yXOfEGm7UE3mUYxXe5/o=; b=u3kL4S47WXt3koFI1QhD4xgyYSWVIZbvI1Wcdlg/dUrT7e+fQM2rmGVF+7TKWCJr0A LaNJL3BN14pR0qT06lGtrsGl7YaaOFszV1aM6MmXODzNMpLadKH02vTL8oj2vLYFLMH8 inIu7elGuaOezXuojiA3uAVv0N6DM6r8iFYwmdb0VcSqgfhZyjEcoZL11hWq30AAy0Ok Mx96kVT81ixgdvXpez7U0h7E+LoZ31ZqAUn7cm8tKreu8vSjhncxVzovzt+5opX456bC GDIUyZEVJDv1eLA8PoT9iQob18RPp3e/1X5nD+b4fTGzWU7zu+cJOFm7/cBk4lUqG8CG W7ZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf4si6278641ejb.310.2020.07.17.13.20.19; Fri, 17 Jul 2020 13:20:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbgGQUSF (ORCPT + 99 others); Fri, 17 Jul 2020 16:18:05 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:35818 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728183AbgGQUSE (ORCPT ); Fri, 17 Jul 2020 16:18:04 -0400 Received: by mail-qt1-f195.google.com with SMTP id b25so8640828qto.2 for ; Fri, 17 Jul 2020 13:18:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U+b+56aZeJ+dA/DwFU4piC2yXOfEGm7UE3mUYxXe5/o=; b=h/S2Bu3ujWssPVfqL/tgiv1yXqnNdxyn2g3kP+JWhRDdrdVwdlff0yduX3/1GJvXxk tABqhF2shLcG7cbVSpvr8wTiWPT9SbfhIB7rtp2+9ZvLI5EBg5PRb/6Y0QRMsdIuCoie doPJ3kwQdwG8htfiWs6EGFEvmXLSQ34U+XSzmzcd/GHMMNo6HHoqOAHSBoitThDLQiKY q8+yO/g6or7J5zj4g1ca1lm1Z74VmvPLgqTLGxatqxchoysAggp8H7hpkHyZBKHzH8Xo vQfF8d/KYb7ewlHMgv7ft01/5Bqt+h5l/zW1nSZgiUWyCdK9TVFR93sZGdGZX4K6LbTK W8dQ== X-Gm-Message-State: AOAM5339uuqfauiCS1mOhc1At40I9w5m7TEfoxYDR7RDL1nCDe+/KFHO rpb/SYQYeZcGxJR7ohjO8fI= X-Received: by 2002:ac8:7b38:: with SMTP id l24mr12617917qtu.122.1595017083332; Fri, 17 Jul 2020 13:18:03 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id a28sm9509977qko.45.2020.07.17.13.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 13:18:02 -0700 (PDT) From: Arvind Sankar To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org Cc: Nick Desaulniers , Fangrui Song , Dmitry Golovin , clang-built-linux@googlegroups.com, Ard Biesheuvel , Masahiro Yamada , Sedat Dilek , Kees Cook , Nathan Chancellor , Arnd Bergmann , "H . J . Lu" , linux-kernel@vger.kernel.org Subject: [PATCH-next v5 0/7] x86/boot: Remove run-time relocations from compressed kernel Date: Fri, 17 Jul 2020 16:17:54 -0400 Message-Id: <20200717201801.3661843-1-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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