Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4539398ybl; Mon, 9 Dec 2019 12:32:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxeDVMPFxQfNI+/uPYIMKOKPpOuzoeQ7xRZ2Sku3fmjBJTnGMrYv3BRDypjJ4sulhfVRiUo X-Received: by 2002:a05:6830:574:: with SMTP id f20mr617876otc.71.1575923557143; Mon, 09 Dec 2019 12:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575923557; cv=none; d=google.com; s=arc-20160816; b=gu9ZZWlMj37kR643vr4ZZdrUprLbCeRVuaCMHA4sK0XZHx8qM6Fi29/F64mp+brQNd ++0R00kM+o4KJ2njpOJfTnkbKQu2OiNx2hEX7XHrQsU3KyXp0LoIHHXe94P6SIx5XjMx rmZrw5YFyVmWg/wlw6dnsPnZJcnIqP3Wlm1jWNm9qVczWqDWg2qNPP2Fg4QtIqjZjHzu 99RY5/d+UyABMNvOLMDd8qcCFoE0uTFs+I9/BXDzs7vb78ZFtquqCFR2crrk1XGrLk8z 8v9phczVeIzrzeGV3lF3cm26RE757ed/gml4nCG5FQnn2D3ZJCZmCWP/p4kpOj6gMrHK vmxQ== 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=PGCBgOhIHeQO0CVnXt7XeHcljxJRK5ESbc/5+i/SDvE=; b=BHxLx+sWaDebun7myZf9CQG93ooNlQXnPiI8X/RS3g3WOZ9HX61eNi3Vu3JG7+q/KP 5xyNoQuiEIyA+uOyHKuTCfVeGe1OU1Ww5EhoBmQ9GnZaXXh4ZB2mUegkVkqkbaeTugXH Axs2iGFNFFqsyM34Ek/uPQvYimvQWkwAaYpPapvPiBgNJp4uEMBMjxtYuKFj4LeRR5vb 192mnuBXSbJT+dqW6X7Wbq+QOhOW+kzjSmRuVz86uCdx+3KWUlOgRplJJUBWxlqoU4IR gKMY0W50RvKGspEIeLJ2hK/uPr0EBFhdMP7vhCYAsRnMlhBghbDjwmQpsa+rdaZBmF8M 1TKA== 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 b10si588251oic.153.2019.12.09.12.32.24; Mon, 09 Dec 2019 12:32:37 -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 S1726682AbfLIUby (ORCPT + 99 others); Mon, 9 Dec 2019 15:31:54 -0500 Received: from mga14.intel.com ([192.55.52.115]:54463 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbfLIUby (ORCPT ); Mon, 9 Dec 2019 15:31:54 -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 fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2019 12:25:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,296,1571727600"; d="scan'208";a="215208124" Received: from nshalmon-mobl.ger.corp.intel.com (HELO localhost) ([10.252.8.146]) by orsmga006.jf.intel.com with ESMTP; 09 Dec 2019 12:25:54 -0800 Date: Mon, 9 Dec 2019 22:25:52 +0200 From: Jarkko Sakkinen To: Will Deacon Cc: Jeffrin Jose , peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, peterhuewe@gmx.de, jgg@ziepe.ca Subject: Re: [PROBLEM]: WARNING: lock held when returning to user space! (5.4.1 #16 Tainted: G ) Message-ID: <20191209202552.GK19243@linux.intel.com> References: <20191207173420.GA5280@debian> <20191209103432.GC3306@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191209103432.GC3306@willie-the-truck> 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 Mon, Dec 09, 2019 at 10:34:32AM +0000, Will Deacon wrote: > Hi, > > [expanding cc list] > > On Sat, Dec 07, 2019 at 11:04:20PM +0530, Jeffrin Jose wrote: > > i got the following output related from typical dmesg output from 5.4.1 kernel > > Was this during boot or during some other operation? > > > ================================================ > > WARNING: lock held when returning to user space! > > 5.4.1 #16 Tainted: G E > > ------------------------------------------------ > > tpm2-abrmd/691 is leaving the kernel with locks still held! > > 2 locks held by tpm2-abrmd/691: > > #0: ffff8881ee784ba8 (&chip->ops_sem){.+.+}, at: tpm_try_get_ops+0x2b/0xc0 [tpm] > > #1: ffff8881ee784d88 (&chip->tpm_mutex){+.+.}, at: tpm_try_get_ops+0x57/0xc0 [tpm] > > Can you reproduce this failure on v5.5-rc1? Does this appear after variable amount of time or detemitically always at certain point of time (e.g. when the daemon starts or perhaps always when doing a certain operations with TSS)? Do we have possibility to get the user code path that gets executed when this happens? /Jarkko