Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp723427pxu; Mon, 23 Nov 2020 02:24:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZqNwl/5IoBSmURs8rzsdiT/DlucZ/QfByprt8kQnJv9bpFz99v3g5fwTs7gJQyTSIwB8q X-Received: by 2002:a50:d742:: with SMTP id i2mr20529750edj.154.1606127092183; Mon, 23 Nov 2020 02:24:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606127092; cv=none; d=google.com; s=arc-20160816; b=l+MpaWNhoNyGi02VHqFyopiqwWFedF2XIydQwNpoEGAhfxUdKFreewn5G9xBpsu8eb XoHMlpa+j02VOVreymtSm0rDChyhWPgHIjY3Q/WIXs+Eb7jsYrn6X34Q2MRaKg1wUNAg Kn9CTlUBISsCl//plL18GeG2FVEBQ7vvXk4Ozg59aGZf4LGjsnfkLizwU38PuMbsJ1t0 ZmYcTrLZUZOCtmL6z3OyWJ+yQ9tr43CkNu2DjpktyuPsDUCER8MImN3xnzIF/6dYCZB9 WvVwEcXndpijojhAn7xkbgcoCef0eRvlyvuSIghn55YwSjQgUbm3cqKj3cbhMKQ12Rdr mUVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KicNkypOIaNLZNofAMT0/dbRVfdiQb0EG7yDuWE5ulA=; b=Ol+S3JDilb7z8MGZujORm3OvC+27PybwOIiNirDFyBLawX55JE8X5kak1nTg/JCn6k 6TZFV8xB+glTSIcuqDLylZJ8Zl9cX6d6xXzjUjVvreXY0mTtWbTtESeV/bZ+vKuwb68P fb5yymNUh4ksUxpmLzqz225o6NNLYMI6Io5DkomFdI616TGqqtOtXKIbUv9zntQvr9wK 8n7ruKc6DoXSlyDpUE4uLjtBcxzLhYnacCo56nIr9tqOZmvkXOolLx5t355ziWDPuOpJ 9UKkRcPypzSGy4vFLYIbH9tvqueQnc6XSsouD9aVF3eny2e5UKVuaIEdESSyL69Q++UH cA9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="TDVt/xqw"; 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 y6si6338176edv.396.2020.11.23.02.24.29; Mon, 23 Nov 2020 02:24:52 -0800 (PST) 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="TDVt/xqw"; 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 S1728196AbgKWKVy (ORCPT + 99 others); Mon, 23 Nov 2020 05:21:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728177AbgKWKVx (ORCPT ); Mon, 23 Nov 2020 05:21:53 -0500 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80F7BC061A4E for ; Mon, 23 Nov 2020 02:21:53 -0800 (PST) Received: by mail-ej1-x641.google.com with SMTP id z5so2408691ejp.4 for ; Mon, 23 Nov 2020 02:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=KicNkypOIaNLZNofAMT0/dbRVfdiQb0EG7yDuWE5ulA=; b=TDVt/xqwo7FGjOiB50CURiRd4zX8Glpc/xzed4IR3D50NS0EqlijbKWHNsEmT9A92f opeYzaDlby6Pgpezpy0Z6eYOPQW6ipaIAyEAtip0SZR01YDtd+SICLsxoZ+9krn8s+et lULt1gHvEOthv2285g8UdKxZGn8PuitA3T+FAGLQ/qKxFihLT0OrTedRRYXRz8VblfZD a1sXohEAJiNhEPF+raDuSX6Ta4nQGnI6siEeVnxshXZXFTiwE+mIarl4EbBFaSYp4ZqT zvmMqJJexFfo+5+oFHJeofxyxcmA2hqWZAvCeahk9touSv1o0xYBPyhqFNpgNP0LgZcR CU2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=KicNkypOIaNLZNofAMT0/dbRVfdiQb0EG7yDuWE5ulA=; b=QozWg9lCTzpRcKLD2jO8hJNKT5vb5N8r8tRf1ah1pjwAPdheHUaVvrPlMg6dNNa3Jx K0jlHL2NhqEOdIRNPHvwPqQZULt44z80m9TvHhWi4FAkCvInTKCYwGjAs30XiJLke7CE aLjjGtAMOah5zT5LpYxrx/TK2kAGW7hE+iIXOMG5aoy8ua9oDRtQ9PR6mfF0AdMDWkF6 lxrcl5RROsJz29fKpsocz0GiBqergwedzhcyD4PiUBzmhjaMrSVYbwsfxKU/i3e2nxxd kKTRxxj6pXsOmFgGw22cFQzwfQQxw+dxLFusDJd4mywUWIpezR/OoW8cEjJwRvU/uKYz QR6g== X-Gm-Message-State: AOAM531SRsaT5cL2oRk+DNveEv68tMtUcTaEb6k+KGTtpUpJZwUzRqt8 KRplzb90P3B39VfaLvT6RPYTiQ== X-Received: by 2002:a17:906:8058:: with SMTP id x24mr44772875ejw.272.1606126911958; Mon, 23 Nov 2020 02:21:51 -0800 (PST) Received: from google.com ([2a01:4b00:8523:2d03:acac:b2ef:c7d:fd8a]) by smtp.gmail.com with ESMTPSA id k3sm4725861ejd.36.2020.11.23.02.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 02:21:51 -0800 (PST) Date: Mon, 23 Nov 2020 10:21:49 +0000 From: David Brazdil To: Sami Tolvanen Cc: Masahiro Yamada , Steven Rostedt , Will Deacon , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v7 15/17] KVM: arm64: disable LTO for the nVHE directory Message-ID: <20201123102149.ogl642tw234qod62@google.com> References: <20201118220731.925424-1-samitolvanen@google.com> <20201118220731.925424-16-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201118220731.925424-16-samitolvanen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Sami, On Wed, Nov 18, 2020 at 02:07:29PM -0800, Sami Tolvanen wrote: > We use objcopy to manipulate ELF binaries for the nVHE code, > which fails with LTO as the compiler produces LLVM bitcode > instead. Disable LTO for this code to allow objcopy to be used. We now partially link the nVHE code (generating machine code) before objcopy, so I think you should be able to drop this patch now. Tried building your branch without it, ran a couple of unit tests and all seems fine. David