Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6823101imu; Mon, 21 Jan 2019 17:03:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN4A4yWMkYZXOQoCCaQNlN3slEp6xKgv0M46c7JxHvpzXxmo5LnliH33rX/HttmLb9X2tVAG X-Received: by 2002:a63:5b1f:: with SMTP id p31mr29868483pgb.56.1548119027625; Mon, 21 Jan 2019 17:03:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548119027; cv=none; d=google.com; s=arc-20160816; b=R9IXH6K/Vz3KFW+lCzBzSgm43aCmwJ6CTCT1gFe2/ES68upLVYnfwmVHrXsD2uBMIO lZBGtqO2kHvYXsP9dcDdCfLnz/jfiZh1Ti9z1WGLh4fxYajXsLepThYSpfKpWoOgngHl JCsaxg0znJQsmVfvi1fnuto45od5je9mvo1d9nsn4yh80Ydi2Q4O4a2pkeS0bZbLtBmi qjNSbzfp6rYdFUWBbtUH4gnwPpBqCDdSZcBEGj8O579od8QOrqta1/u98YkAovRRWkyA Yoh+EUiljZIQxdixlJVEpKa4ry7/H3u2VwG3xlOsdeOmL4B2TqcynCna65tUsVf+pXVO p1SA== 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=VxKoMnoHPnTDU8krPtT7tuQyi5SZh7/+jTHut7+ujpQ=; b=kp0jZUwiuc9iW01qPZScPlf2HflRda/ibGxEFigYI7NXWfoH1YH5A/1/KIM/YTFHHb XR0swaIYOQlcpMATJPbRHkTcZSWcpc1plzY1/yqBQaGgif0HrUN4l+cW9litlluv7/GO 3mmqgjZIIKX1Leg9MdIdpO5jCfWe6k6zaGPbcs28gUnx6eYBYIOI0yvsIBKUrlTQvF0S AFfZrAV44xIf91EyTEkmuRpMwprOpCP2G2IyJIBxvLN2j9p9SO5VW+sk6IjQ8dHhtXNp uQ5GaL+5UhrZ2GTMvhdRT1q/W2I8dg7xKzKW4zaGFWfWShoUSsFixn9QynT10WtQlNNB Xx3A== 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 b26si953215pgl.539.2019.01.21.17.03.31; Mon, 21 Jan 2019 17:03:47 -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 S1726749AbfAVBCY (ORCPT + 99 others); Mon, 21 Jan 2019 20:02:24 -0500 Received: from mga09.intel.com ([134.134.136.24]:44735 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbfAVBCX (ORCPT ); Mon, 21 Jan 2019 20:02:23 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2019 17:02:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,504,1539673200"; d="scan'208";a="268842299" Received: from vkunnari-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.163]) by orsmga004.jf.intel.com with ESMTP; 21 Jan 2019 17:02:19 -0800 Date: Tue, 22 Jan 2019 03:02:18 +0200 From: Jarkko Sakkinen To: James Bottomley Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Getting weird TPM error after rebasing my tree to security/next-general Message-ID: <20190122010218.GA26713@linux.intel.com> References: <20190118142559.GA4080@linux.intel.com> <1547849358.2794.90.camel@HansenPartnership.com> <20190120160413.GB30478@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190120160413.GB30478@linux.intel.com> 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 Sun, Jan 20, 2019 at 06:04:13PM +0200, Jarkko Sakkinen wrote: > On Fri, Jan 18, 2019 at 02:09:18PM -0800, James Bottomley wrote: > > On Fri, 2019-01-18 at 16:25 +0200, Jarkko Sakkinen wrote: > > > I get this on a Geminilake NUC after rebasing my maintainer trees: > > > > > > tpm tpm0: A TPM error (-1) occurred attempting the self test > > > > > > I checked the latest commit ID from drivers/char/tpm to make sure > > > that I did not put anything broken to my last PR [1]. It works > > > without issues. > > > > > > In addition [2] gives me an empty diff. > > > > > > Something outside of the TPM driver must have happened that breaks > > > the driver. Any ideas? > > > > > > [1] commit 9488585b21bef0df1217e510c7134905d1d376a7 > > > [2] git diff 9488585b21bef0df1217e510c7134905d1d376a7 master > > > drivers/char/tpm/ > > > > I'm afraid you're going to have to bisect to find the offending in- > > kernel commit, which is going to be painful since it seems to depend on > > physical hardware. My first instinct is that we're getting a zero > > length read somewhere, but I still can't see anything in the merge > > window that would cause that behaviour. > > Yeah, I've started to bisect it (still 9 rounds to go). Fails on commit 170d13ca3a2fdaaa0283399247631b76b441cca2. Still works on preceding commit a959dc88f9c8900296ccf13e2f3e1cbc555a8917. Double-checked this after bisecting by compiling the kernel with these commits as tip. /Jarkko