Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp564965ybe; Wed, 11 Sep 2019 00:58:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYzoOPSMALsZEgx/MfY4zWi13VLLmQpVP6z+aTPiJAiDWsmn6YhOeYHox0ua/fTGBLIRUx X-Received: by 2002:a05:6402:17ba:: with SMTP id j26mr34715798edy.272.1568188711877; Wed, 11 Sep 2019 00:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568188711; cv=none; d=google.com; s=arc-20160816; b=1HGBJ4U5rj6rRGqiQm1PTsU5+OUx+dGWk1gYdRcWNqDNrhh9UUbnDXWOOrX+kyuENW OlPGF39aCySZGbhyMi/ANxxUgQNfHyqy6Q8lwTZJ8Amd+W9rGHFsgpoBR29SdzSBtNq5 p4IPYMxijigpBO4pljNDQJ/pLkIu4DUGKLuWh6uMuoY7q3iQpo8DcU9zDUdO6Q1QVdcQ l8ZruyVDFqzqAY3oKuKmquCJzzzSHd7MA8LwMMLv01KXUmTwwf+Dtmd7yAHl2X1SIfF2 sKrPI2NFiUn5zJTzwatgKzw1MXZ/mF1P3RFGNw253KD9mFShNiIA7Scw4fdJgHau25oK y27g== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=mZiiPr1TcrK6LFMq2tY6Zf257lWryg0AHPW24TIDWVo=; b=LPoLTItWOGYOk3+gjlcAxkZrcyd9iNgmd0OMP51GXtolwiV4qH+gXl1x80+qFAvKGY d8dHmBmEQKGe3D0DelKDnlRCmfpym428o7vXZ7zoL0PYjTesX9ZgqCTshDgX+umzG9n2 fPVk0B01Yz0uV3siHcZ3XuTufsit8gJs86mIGZKsv6u0KMrucINUvDAxtFvLijn8g/mk 8xmI1GvZ+BVMJqNOQaeM2o73IkSQjzfOhIkkBjvTbBZ8YJOQqe+PluBig5ojy10fDh/s Et4ks9m4cyNAJk+/30Mtz0TxtQ1wtNgkUHJ1oFOXlmNYi+wRh+cVjIB7BEK7UnW41l3a fCOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lql4CiyQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si10652298ejm.334.2019.09.11.00.58.07; Wed, 11 Sep 2019 00:58:31 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=lql4CiyQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726857AbfIKH4H (ORCPT + 99 others); Wed, 11 Sep 2019 03:56:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:39638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbfIKH4H (ORCPT ); Wed, 11 Sep 2019 03:56:07 -0400 Received: from localhost (unknown [62.28.240.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A300820872; Wed, 11 Sep 2019 07:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568188566; bh=vwdg9KLjse6e40fTr8aUorTZdfy5Ppck3ADiYBkf1T4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lql4CiyQX+heooybFPSHweBYg47+93NbswFcMHmw9S7BaznL4jbaVGRLpH9+YLRxx Y+fc/AIWCX3tOALBJNCE7HGMevBuYz4x0i7pGGvx67iZnKaXXFh8pqi75QvyL9whzx blWuoauoUenq8nBmQuFaolKDEU/ODjPok59jw7eI= Date: Wed, 11 Sep 2019 03:56:03 -0400 From: Sasha Levin To: Jarkko Sakkinen Cc: Doug Anderson , LKML , "# 4.0+" , Vadim Sukhomlinov , linux-integrity@vger.kernel.org, Jason Gunthorpe Subject: Re: [PATCH AUTOSEL 4.19 126/167] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations Message-ID: <20190911075603.GH2012@sasha-vm> References: <20190903162519.7136-1-sashal@kernel.org> <20190903162519.7136-126-sashal@kernel.org> <20190903165346.hwqlrin77cmzjiti@cantor> <20190903194335.GG5281@sasha-vm> <20190907220448.GB2012@sasha-vm> <20190909162808.ggcnrtvbvor7deqy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190909162808.ggcnrtvbvor7deqy@linux.intel.com> 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, Sep 09, 2019 at 05:28:08PM +0100, Jarkko Sakkinen wrote: >On Sat, Sep 07, 2019 at 06:04:48PM -0400, Sasha Levin wrote: >> On Sat, Sep 07, 2019 at 09:55:18PM +0300, Jarkko Sakkinen wrote: >> > On Tue, 2019-09-03 at 15:43 -0400, Sasha Levin wrote: >> > > Right. I gave a go at backporting a few patches and this happens to be >> > > one of them. It will be a while before it goes in a stable tree >> > > (probably way after after LPC). >> > >> > It *semantically* depends on >> > >> > db4d8cb9c9f2 ("tpm: use tpm_try_get_ops() in tpm-sysfs.c.") >> > >> > I.e. can cause crashes without the above patch. As a code change your >> > patch is fine but it needs the above patch backported to work in stable >> > manner. >> > >> > So... either I can backport that one (because ultimately I have >> > responsibility to do that as the maintainer) but if you want to finish >> > this one that is what you need to backport in addition and then it >> > should be fine. >> >> If you're ok with the backport of this commit, I can just add >> db4d8cb9c9f2 on top. > >Sure, I've already gave my promise to do that :-) I think that the dependency in question is actually: 2677ca98ae377 ("tpm: use tpm_try_get_ops() in tpm-sysfs.c.") Which is tricky to backport. I think I'll drop this patch for now and wait for your backport instead. -- Thanks, Sasha