Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7482483imu; Thu, 31 Jan 2019 10:49:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7qQJlw3tLoyKSG59KZ0h7WeHVwx7E0+EeyYXNT0N29zbqcLTAgenJiVPztneun8RXOE9ly X-Received: by 2002:a17:902:848f:: with SMTP id c15mr28748649plo.119.1548960583882; Thu, 31 Jan 2019 10:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548960583; cv=none; d=google.com; s=arc-20160816; b=NMZjFDdY6Nl1ANVZ2P3yIYz/mXqRilL6URP3XGT2syqby5+6YfhhaJTLl/zzHWtvMa AfSEwbaFQIkXKw+mSrIGmgwmGfC/zrZyoK4KXBIBJxBKmdUErN5cwOj7QF3bka68NSxh GqhpE8bA8R7hi2tt68nWPsT8fthXGGMPNI9+RIxdEaQV83mpsPt3gbK/qzbvEZNtp7/0 U32S+qyNRKRrKaRZ8/9iNW0btogjrex0WJaoTl6U1MHzN9TUdKZEGJeykzBNapy1kje7 VL+cuxtiqxb+BKrJLkC0Ix0qqScRe1a1pLOyMdKuJy4dd3QXkvli1HHKgC/LGHmcS19F tDyA== 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=xXoJVhYB+zgtV22Q/Pu9VhkAcLnt/pzy1r+vjQD42us=; b=mBgWDhYxEmfowIf9QwN4MTC99k3tlTE9LnL+HTSqUgkOMj9nqjYae43XInE0QXhwXo eZzg1OEKbx/UyCUoyHd2IIt+23AKBcD/lVBTR2oKwCh7r4ZcduMwIk3PMUhp0nEeGEJx JV+KtUXNk2hGIt4jCUtED9KKTBf6bgNT/FbjdxyWVbuoqXi9h/WLgxo3gZZfhwkU6qE/ 8toOWMcw6DOorjGBcRR7onw8CXgidk6ZoU1sOFCWd6iZD2jEX7t1mdMTYF/L0pHf9QPQ sLvMvIIhbYiWOXaTak5xgHSpfOtfSrqlXptbXTCSDF0oNTVBSIyhrOcjnjHLaiTX1Hww N4pA== 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 g26si4828035pfi.184.2019.01.31.10.49.29; Thu, 31 Jan 2019 10:49:43 -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 S1728340AbfAaSrr (ORCPT + 99 others); Thu, 31 Jan 2019 13:47:47 -0500 Received: from mga14.intel.com ([192.55.52.115]:23417 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728203AbfAaSrp (ORCPT ); Thu, 31 Jan 2019 13:47:45 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 10:47:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,545,1539673200"; d="scan'208";a="296253840" Received: from rkazants-mobl.ccr.corp.intel.com (HELO localhost) ([10.249.254.212]) by orsmga005.jf.intel.com with ESMTP; 31 Jan 2019 10:47:41 -0800 Date: Thu, 31 Jan 2019 20:47:40 +0200 From: Jarkko Sakkinen To: Linus Torvalds Cc: Jason Gunthorpe , James Bottomley , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, Linux List Kernel Mailing , tomas.winkler@intel.com Subject: Re: Getting weird TPM error after rebasing my tree to security/next-general Message-ID: <20190131184739.GA29056@linux.intel.com> References: <20190122025836.GH25163@ziepe.ca> <20190122132910.GA2720@linux.intel.com> <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> 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 09:43:42AM -0800, Linus Torvalds wrote: > On Thu, Jan 31, 2019 at 9:06 AM Jarkko Sakkinen > wrote: > > > > Found something that *does* fix the issue. If I replace memcpy_*io() > > calls with regular memcpy(), the driver works and all my tests pass. > > That's not surprising, since that's what we used to do. And it's > horribly wrong because "memcpy()" can do things that are horribly > wrong on IO accesses. Like doing them twice, but alternatively also > "copy one byte at a time" which generally works, but is horrendously > slow for IO. Yup, was just a sanity check. > Can you check *which* memcpy_*io() triggers the issue? Maybe by > "bisecting" them (first perhaps on a file-by-file basis, and then > within a file). Already did that. See my follow-up. /Jarkko