Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp184810ima; Thu, 31 Jan 2019 14:40:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN63NDh/B9HTDRxlHln2RRbZs5V1O3Qgr6XzBnAAsye0u5dKid2ClT/kJwdxwMr+C4H/zMvt X-Received: by 2002:a63:d208:: with SMTP id a8mr32724769pgg.77.1548974403075; Thu, 31 Jan 2019 14:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548974403; cv=none; d=google.com; s=arc-20160816; b=XOIQhTMLarGh9PJ4bUV4GBPmiGyx9hAxNeqfh78/3lbseYZxN4aEpjOg2XbOb8yEaF IBd0dAQUECK0Zw8sA7uqAxeejSRlpcghpv7cMY9gzWKfHDY8IMvv6AfpKa5ku3W0Cm8H 6XXwntVX3hZhZqAsmZpGkTtbmxuxhIlDb9XoRMmSwktW7yC2qBMAqTRka8vjlQIMzXv2 ydpWI9Z1AVBxliNpuAoTyityHDn8ZED9rZHVcXsZCsCo/9yRDLtjmbkT1R/X+WjIyxxs TnHSOVecmAWVkmTtM7pFcZObGXLnbzC/NHYu4DbQVBiG3hPI5HkiXGTBMwbMI1r56JSq dlIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SMPaaKtAh2DDtbMdsHI9OaYefswgvFNP1bf+XntjJRk=; b=iCnDA4kZEtqbDJhh2TsXCoC5V5MZT4zhQEn2JLpoRC5nkMOePbuU+ChhBBQ+QR4YY8 GnjjjcvtBJZkpYyY7xSjq7XCkd8fKUBQy9G3hAArXMNBNb5Mx7osD6mjX5vdWL8lb5es j6oYs3R28zoiWoR4belqADIhO2OTXiP912YwzkihxR2fLdA3hQB7NY8/SdygOsScrY+a aubMthkq4H5UQtm03UZEwNj6pGseflYGHSVgUQPlD2d3MdNUQCy2xXrbrKUlN25SkPS+ ww5Lu1rMRXjkrT9hw/YBwFzxsXSMR23jNN8LVX211ytEkk4XL5iLfctbQMY8LYZ2DemT gUUA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si4575734plg.82.2019.01.31.14.39.48; Thu, 31 Jan 2019 14:40:03 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728143AbfAaUrS (ORCPT + 99 others); Thu, 31 Jan 2019 15:47:18 -0500 Received: from mga17.intel.com ([192.55.52.151]:47428 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfAaUrS (ORCPT ); Thu, 31 Jan 2019 15:47:18 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 12:47:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,545,1539673200"; d="scan'208";a="112733556" Received: from rkazants-mobl.ccr.corp.intel.com (HELO localhost) ([10.249.254.212]) by orsmga006.jf.intel.com with ESMTP; 31 Jan 2019 12:47:11 -0800 Date: Thu, 31 Jan 2019 22:47:10 +0200 From: Jarkko Sakkinen To: Linus Torvalds Cc: 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: <20190131204710.GB354@linux.intel.com> References: <20190123153638.GA8727@linux.intel.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 11:10:20AM -0800, Linus Torvalds wrote: > On Thu, Jan 31, 2019 at 10:52 AM Linus Torvalds > wrote: > > > > I think what I should do is to just make "memcpy_*io()" do the "align > > naturally" thing. > > > > Let me cook up a patch for you to test. > > Does this work for you? > > I haven't tested it at all, but I verified that the generated code > seems to make at least some amount of sense. I'll try it first thing when I wake up tomorrow (11PM in Finland ATM). Appreciate for taking time on this. Thank you. /Jarkko