lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 20 Jan 2011 16:44:01 -0200
From:	Rajiv Andrade <srajiv@...ux.vnet.ibm.com>
To:	Olof Johansson <olof@...om.net>
CC:	linux-kernel@...r.kernel.org,
	Debora Velarde <debora@...ux.vnet.ibm.com>,
	Marcel Selhorst <m.selhorst@...rix.com>,
	tpmdd-devel@...ts.sourceforge.net,
	James Morris <jmorris@...ei.org>,
	Matthew Garrett <mjg@...hat.com>
Subject: Re: [PATCH] tpm: fix panic caused by "tpm: Autodetect itpm devices"

On 01/20/2011 03:37 PM, Olof Johansson wrote:
> Are all TPM maintainers MIA? This is a trivial patch that fixes a
> panic, and it was a late-added regression in 2.6.37.
>
Not myself. I missed this one unfortunately in my work queue, sorry, 
will keep alert to avoid this happening again.

Acked-by: Rajiv Andrade <srajiv@...ux.vnet.ibm.com>
> -Olof
>
> On Thu, Jan 6, 2011 at 7:24 PM, Olof Johansson<olof@...om.net>  wrote:
>> commit 3f0d3d016d89a5efb8b926d4707eb21fa13f3d27 adds a check for
>> PNP device id to the common tpm_tis_init() function, which in some
>> cases (force=1) will be called without the device being a member of
>> a pnp_dev. Oopsing and panics ensue.
>>
>> Move the test up to before the call to tpm_tis_init(), since it
>> just modifies a global variable anyway.
>>
>> Signed-off-by: Olof Johansson<olof@...om.net>
>> Cc: Matthew Garrett<mjg@...hat.com>
>> Cc: stable@...nel.org [2.6.37+]
>> ---
>>   drivers/char/tpm/tpm_tis.c |    6 +++---
>>   1 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
>> index c17a305..dd21df5 100644
>> --- a/drivers/char/tpm/tpm_tis.c
>> +++ b/drivers/char/tpm/tpm_tis.c
>> @@ -493,9 +493,6 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
>>                  "1.2 TPM (device-id 0x%X, rev-id %d)\n",
>>                  vendor>>  16, ioread8(chip->vendor.iobase + TPM_RID(0)));
>>
>> -       if (is_itpm(to_pnp_dev(dev)))
>> -               itpm = 1;
>> -
>>         if (itpm)
>>                 dev_info(dev, "Intel iTPM workaround enabled\n");
>>
>> @@ -637,6 +634,9 @@ static int __devinit tpm_tis_pnp_init(struct pnp_dev *pnp_dev,
>>         else
>>                 interrupts = 0;
>>
>> +       if (is_itpm(pnp_dev))
>> +               itpm = 1;
>> +
>>         return tpm_tis_init(&pnp_dev->dev, start, len, irq);
>>   }
>>
>> --
>> 1.7.3.GIT
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@...r.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ