From: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
To: "Ted Ts'o" <tytso@mit.edu>,
Linus Torvalds <torvalds@linux-foundation.org>,
James Morris <jmorris@namei.org>,
linux-kernel@vger.kernel.org
Subject: Re: [REGRESSION] tpm_tis on Lenovo T410 broken in 2.6.38-rc6
Date: Mon, 07 Mar 2011 23:55:52 -0300 [thread overview]
Message-ID: <4D759AB8.4020300@linux.vnet.ibm.com> (raw)
In-Reply-To: <20110305164837.GB11120@thunk.org>
On 03/05/2011 01:48 PM, Ted Ts'o wrote:
> On Fri, Mar 04, 2011 at 11:44:18AM -0300, Rajiv Andrade wrote:
>> The bug was that when running the kernel with IMA, at boot time, it
>> issues 3 TPM commands IIRC, given the 2 min timeout,
>> when the TPM didn't respond due to it not working with interrupts
>> for example, the boot hang for 6 minutes.
> At boot time, why don't you just poll? Maybe I'm missing something.
Polling is the alternative option there already, in case the TPM doesn't
get an
IRQ assigned. However, for a reason we've now found out (testing on more
platforms before posting), when such happens, the TPM doesn't issue
the interrupt signals when the device driver expects, to make
wait_event_interruptible_timeout() return before timeout.
> Or you could just simply use a different default timeout during the
> boot sequence, or simply tell your IMA users to disable it, since if
> you are just hacking the TPM to do a fast fail, the IMA is going to be
> broken anyway, right?
>
That's true, but it would be disabled at the bootloader command line,
same place
the interrupts could be disabled, that causes both to work.
However disabling the interrupts at command line was considered to be a
workaround in the bugzilla it was reported, so I understood it should work
as is for the users.
>> Thanks, it is. HZ isn't enough time for this TPM/setup to have short
>> timeout commands to succeed, including
>> the tpm_get_timeouts(). I was skeptic at first that this would be
>> the reason since I have the same machine,
>> and was working for me, the reason I asked for these parameters
>> setup attempts.
> Yes, but you're probably doing different TPM operations than I am....
> I'm not trying to do IMA, I'm trying to login to a WPA2 protected
> network where the private key needed to authenticate to the enterprise
> wireless network is locked in the TPM.
>
Ah.. completely different story then, I thought you were seeing the
timeouts for
_any_ command, sorry. Just to confirm, can you issue a tpm_version? I
believe you
might have them already, but this requires the tpm-tools and trousers
packages
installed.
Thanks,
Rajiv
next prev parent reply other threads:[~2011-03-08 2:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1PuKHL-0000lw-RM@tytso-glaptop>
[not found] ` <4D6CFA80.3020505@linux.vnet.ibm.com>
2011-03-01 15:38 ` [REGRESSION] tpm_tis on Lenovo T410 broken in 2.6.38-rc6 Theodore Tso
[not found] ` <4D6D65C4.5000602@linux.vnet.ibm.com>
2011-03-01 21:47 ` Ted Ts'o
[not found] ` <AANLkTi=BtfXYV+1_JZh0SRZhJz=Ys3wCF-t5rBR2iz8O@mail.gmail.com>
[not found] ` <4D6D61B1.7000302@linux.vnet.ibm.com>
2011-03-01 21:37 ` Ted Ts'o
2011-03-04 14:44 ` Rajiv Andrade
2011-03-05 16:48 ` Ted Ts'o
2011-03-08 2:55 ` Rajiv Andrade [this message]
2011-03-09 19:02 ` Ted Ts'o
2011-03-01 15:25 Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D759AB8.4020300@linux.vnet.ibm.com \
--to=srajiv@linux.vnet.ibm.com \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox