From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57E9AC433E2 for ; Thu, 3 Sep 2020 23:43:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0D41E2084D for ; Thu, 3 Sep 2020 23:43:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DtnUa4Uw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LPBJX9YY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D41E2084D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alum.mit.edu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Dll7G0Wy2NM/0t+9S5x2b7shbgcN0Ih84hQReBwBc7k=; b=DtnUa4Uw89BRPN6siKYtT2ew4 CMdHzjECFUJEFT9ixnQCcKpaCXMvlL46ColGFEhIN+RZHhC9npI8iiMufZLzXCEHvc+mfVnFPCOWJ r8ItULApxEbXWULRgoZM6+5xQmhW/A9MlaWm3gwzCggEmLu7onvaYuBB2+UiB/cctmQpa1s+HQPjB ZNnQMa2ZwM5lzujWEtpSC9327ycn7RUDYhcEojMLCkGemS6UjPsvi67sGlnRcpix3Xg1kA7p+4mjR D3jZ1bgHkWr2DK3EiZrrKJsnST5PU5fm5cvE/iBRJEuA+9yVtJnJT8axfk12s8tYz6rAA6KuNoojf EpmcRdCHw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDys4-0001A6-VW; Thu, 03 Sep 2020 23:42:25 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDys2-00018x-HL for linux-arm-kernel@lists.infradead.org; Thu, 03 Sep 2020 23:42:23 +0000 Received: by mail-qk1-x744.google.com with SMTP id g72so4793190qke.8 for ; Thu, 03 Sep 2020 16:42:20 -0700 (PDT) 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; bh=Buf4pyI8QjmO6EzkejoF7rJNgrRLPFkG+pFmWeqNXSU=; b=LPBJX9YYiLdzfuvHhhApORKkjEcCokH8S7S+ixf/lb6PKyLameB2R/hO1MnJZ8lfjk RccIntdXKYJgeoTeIUtHPwlFVqlLK41Ye4qgM7C8a0Dl1XuqkWA/EbQaEDzvjYVM9Hem hXNDGnNCBxAUmwKqqrZTo5Z/pkPOaE+IU8GFh1uCzHl1RfLknP0FL1YAO1qizXvgdhoV jmGJqRqmzLQ/4JKXNZnVHBJKIv2uY/AATQNPFgyOPe5n3lAtj8q8KQIY8t8e6ZIeqzLb hUxL86tW8/dBzbuxUwIdIX/bzmz1jVTQI4jTiffCrlo0tyEZPNJWWfn9FXi7SgOBoEwA YQjA== 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; bh=Buf4pyI8QjmO6EzkejoF7rJNgrRLPFkG+pFmWeqNXSU=; b=GtWFNTt2NWUNHwxPff3qpbkHYUU6rg2hrI4HrI8gCMG9DfNHd2IjynKXsLVrZGLnim aXW62CwIkuwH14e+QLGNRkx7wyBpbijIuMxcefJf9BfzE2k6CZSYGTaagitVbZ1wu7Gm p4KcB/B8nfPG+UBUFybgntTwEUMiP1neCPbMr4TuZUCkxEfziNqJwxrV+lkrTfCcwuF5 pqpyQMzkd4gaT9ryasAnpPNIlvv0RsJuORu/TeZKuYwl/aak0lPUY5KBQi8wkvEV52J5 13Ymw7saXpdoJ2umvF6vCB9gLyxc9ZBfnqria2C2+FU7XOmsKVeI9qYG1lrkfjiHHLUu qlMw== X-Gm-Message-State: AOAM531Xj6q2nmbdDMgS4eA7x7EMaZruaIqGymdHfwvmV+yGVlgVwXlS bojvym09hi0rH+vEwSqBesA= X-Google-Smtp-Source: ABdhPJwk7xSMHZgBS2KIiKPpibl4+puFeN+IUbUk1MnxASjO8ffXMYr1LuHhmFwUKcYtabk7P9z+Ww== X-Received: by 2002:a37:4c4:: with SMTP id 187mr5768921qke.40.1599176538868; Thu, 03 Sep 2020 16:42:18 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id 205sm3305039qki.118.2020.09.03.16.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 16:42:18 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Thu, 3 Sep 2020 19:42:15 -0400 To: Kees Cook Subject: Re: [PATCH v2 01/28] x86/boot/compressed: Disable relocation relaxation Message-ID: <20200903234215.GA106172@rani.riverdale.lan> References: <20200624203200.78870-1-samitolvanen@google.com> <20200903203053.3411268-1-samitolvanen@google.com> <20200903203053.3411268-2-samitolvanen@google.com> <202009031444.F2ECA89E@keescook> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202009031444.F2ECA89E@keescook> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200903_194222_587504_47F5B051 X-CRM114-Status: GOOD ( 17.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, x86@kernel.org, "Paul E. McKenney" , kernel-hardening@lists.openwall.com, Peter Zijlstra , Greg Kroah-Hartman , Masahiro Yamada , linux-kbuild@vger.kernel.org, Nick Desaulniers , linux-kernel@vger.kernel.org, Steven Rostedt , clang-built-linux@googlegroups.com, Arvind Sankar , Sami Tolvanen , linux-pci@vger.kernel.org, Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 03, 2020 at 02:44:41PM -0700, Kees Cook wrote: > On Thu, Sep 03, 2020 at 01:30:26PM -0700, Sami Tolvanen wrote: > > From: Arvind Sankar > > > > Patch series [4] is a solution to allow the compressed kernel to be > > linked with -pie unconditionally, but even if merged is unlikely to be > > backported. As a simple solution that can be applied to stable as well, > > prevent the assembler from generating the relaxed relocation types using > > the -mrelax-relocations=no option. For ease of backporting, do this > > unconditionally. > > > > [0] https://gitlab.com/x86-psABIs/x86-64-ABI/-/blob/master/x86-64-ABI/linker-optimization.tex#L65 > > [1] https://lore.kernel.org/lkml/20200807194100.3570838-1-ndesaulniers@google.com/ > > [2] https://github.com/ClangBuiltLinux/linux/issues/1121 > > [3] https://reviews.llvm.org/rGc41a18cf61790fc898dcda1055c3efbf442c14c0 > > [4] https://lore.kernel.org/lkml/20200731202738.2577854-1-nivedita@alum.mit.edu/ > > > > Reported-by: Nick Desaulniers > > Signed-off-by: Arvind Sankar > > Reviewed-by: Kees Cook > > -- > Kees Cook Note that since [4] is now in tip, assuming it doesn't get dropped for some reason, this patch isn't necessary unless you need to backport this LTO series to 5.9 or below. Thanks. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel