Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp231227ima; Thu, 31 Jan 2019 15:35:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IahHKWCLO0IMZBXtPAov1RW89Q3Spp07rKwVUpBv1F3/vx8/YikUiPCjp9njyHreJaGD1ji X-Received: by 2002:a63:cc4e:: with SMTP id q14mr152pgi.291.1548977725103; Thu, 31 Jan 2019 15:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548977725; cv=none; d=google.com; s=arc-20160816; b=N44ino1ZTadzVOP2WPuXrZScLJQtxGak0gmKWp12j522s5C4c1MIOISA6U5TXZf+Ks HaFifVwgktmVpXgXBpGKjhDx/DeF7kLy+lgFxCqPW6Rtc+jodV9cRPbPuWKIlEKUitJ2 bxT/cY5wyFXofPgQb4At8nKXIYidiqqW5a71D8LcPG3mG2vgbvriME+0pHhViEdBqcCe TXG4YbfOlGE2MgTcRK5nDLmt9GAojJc3/IgFsKjTejPm4iVu8iZ1y/Yd5MqYvlg1xMkj 7k6dLVOmniMJTQP8m6G2hf7fuOfdwmQqHwHEoHITsfiSVEtf7Mt9kWiWCLWPE/WZDnVc bSjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=Pe3JfUlwQ9DE+qO37NBAuH3C75mbHhOAYws9WbGZWNg=; b=SlqmzRltH94feSSL+vFKTVzXeZws6lZRN96RQjA23LRg9AKHJbh+uWoftTsYHh25FN 7wJ5m/hk4nlX3JtEDSwjoFmFb/qQSYnH46hJRqsU+tD7Gg86zAIXVUyGjrxncdoP3qJX VWQxWRO/QE8HFwu4EJRy+j2yv3B75cY/I6XNVWQqpS8tdbcuX1EZd5G902Orz55RsUyc rMfAu1kFOpPPal+cZQ1sYT7xqYKlRQOGZl6Z71n0KQgjdpKtthvpZ3Sf3LRVwoBZDRAe DYZ3WHj2v/jWeU/nGFFcNYoREPlrOZ5eYFog1HhQekFBd0ZHGE8mFLt8nngRpbtDLwJG lxfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si5529050plr.341.2019.01.31.15.35.09; Thu, 31 Jan 2019 15:35:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727835AbfAaXbk (ORCPT + 99 others); Thu, 31 Jan 2019 18:31:40 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34183 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725915AbfAaXbk (ORCPT ); Thu, 31 Jan 2019 18:31:40 -0500 Received: by mail-qt1-f196.google.com with SMTP id r14so5579908qtp.1 for ; Thu, 31 Jan 2019 15:31:39 -0800 (PST) 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:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=Pe3JfUlwQ9DE+qO37NBAuH3C75mbHhOAYws9WbGZWNg=; b=MoasI7B4RYcSX2C8MMGLaM+aiuEwzuqFmOjaLIRF45nNxDYy8v0ySoe7MCmaShcz3E 4+VfNhv/g2Y/3F1moRtvyxw4YgsSz2fQZFcxxj5UT7yu8WQ04AKjO4nVKO5bf8vgwP7s fo9RtzG75KDx8eMw+U1IKi1c6mqPwxToAyuE1pKa0tVifSz76viTaJf40I0w5x2k/K03 MmNGBcVOZ8uwL1lbxciC8lQHWiMJSYK7muxQn2lIq72jbYBAh7WbAmoT+iO04GBjLkJU I7Vi1gyWNvY1mJVi5o5v4UKAGsKtTg/7OTecSRSUW4mFN8KHdPv1jjykTvK7LlvOd9lr Qbaw== X-Gm-Message-State: AJcUukcU/GUIbEGSWSP6novda1mQGtR2uX2muXc063zdTSvDXSlLge9Q 1JGEcgGMjA+T0pRlIUH+KZCNwA== X-Received: by 2002:a0c:f8cb:: with SMTP id h11mr35047361qvo.134.1548977498781; Thu, 31 Jan 2019 15:31:38 -0800 (PST) Received: from localhost (ip72-223-3-97.ph.ph.cox.net. [72.223.3.97]) by smtp.gmail.com with ESMTPSA id k81sm13053024qkk.18.2019.01.31.15.31.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 15:31:38 -0800 (PST) Date: Thu, 31 Jan 2019 16:31:36 -0700 From: Jerry Snitselaar To: Linus Torvalds Cc: Jarkko Sakkinen , tomas.winkler@intel.com, Jason Gunthorpe , James Bottomley , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, Linux List Kernel Mailing Subject: Re: Getting weird TPM error after rebasing my tree to security/next-general Message-ID: <20190131233136.3dhadb7a46lp2nu6@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Linus Torvalds , Jarkko Sakkinen , tomas.winkler@intel.com, Jason Gunthorpe , James Bottomley , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, Linux List Kernel Mailing References: <20190129132016.GA1602@linux.intel.com> <20190131122606.GA12470@linux.intel.com> <20190131160437.GA5629@linux.intel.com> <20190131170603.GA18349@linux.intel.com> <20190131183530.GA27112@linux.intel.com> <20190131204710.GB354@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu Jan 31 19, Linus Torvalds wrote: >On Thu, Jan 31, 2019 at 12:47 PM Jarkko Sakkinen > wrote: >> >> I'll try it first thing when I wake up tomorrow (11PM in Finland ATM). > >Thanks. > >> Appreciate for taking time on this. > >Hey, it was my commit that broke it for you. Even if it happened to >work before, and only did so by pure luck, it was a functional >regression. > >I get very upset when other developers don't step up when *their* >changes break something, and I don't consider "it shouldn't have >worked in the first place" to be a valid excuse. You broke it, you'd >better fix it. > >So I had better fix my own mess too, in order to not look too hypocritical. > >And I was very aware that hardcoding the memcpy_*io() access patterns >might break something. I just _hoped_ it wouldn't, because we actually >ended up going back to the very original access patterns (but it was >from a long long time ago). > >In fact, while it's slightly annoying, in many ways it's actually good >that we found breakage, and could pinpoint exactly *why* it broke. >That does validate the whole "we shouldn't just depend on the random >implementation detail of 'memcpy()'" argument. > >So I'll wait to hear back whether that patch fixes things for you, but >I _think_ it will, and we'll be better off in the long range with this >whole thing. > > Linus I just did a quick test here of booting and running a couple commands (tpm2_getcap, tpm2_pcrlist), and the patch seems to work for me. I was seeing the error during tpm_crb initialization without the patch.