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-next>] [day] [month] [year] [list]
Date:	Tue, 22 Jun 2010 00:08:44 -0300
From:	Rajiv Andrade <srajiv@...ux.vnet.ibm.com>
To:	Helmut Schaa <helmut.schaa@...glemail.com>
Cc:	tpmdd-devel@...ts.sourceforge.net,
	Debora Velarde <debora@...ux.vnet.ibm.com>,
	David Safford <safford@...son.ibm.com>,
	akpm@...ux-foundation.org, jmorris@...ei.org,
	linux-kernel@...r.kernel.org
Subject: Re: [RFC] tpm_tis: Fix subsequent suspend failures

Sorry the ones on CC, previous message got messed up by the mail client.

This patch fixes https://bugzilla.kernel.org/show_bug.cgi?id=16256

Link to original post given it wasn't submitted to LKML originally:
http://marc.info/?l=tpmdd-devel&m=127609160616162&w=2

Acked-by: Rajiv Andrade <srajiv@...ux.vnet.ibm.com>


On Wed, 2010-06-09 at 15:11 +0200, Helmut Schaa wrote:
> Fix subsequent suspends by issuing tpm_continue_selftest during resume.
> Otherwise, the tpm chip seems to be not fully initialized and will reject
> the save state command during suspend, thus preventing the whole system
> to suspend.
> 
> Signed-off-by: Helmut Schaa <helmut.schaa@...glemail.com>
> ---
> 
> Not sure if the platform resume method should be fixed in the same way.
> Plase review.
> 
> Thanks,
> Helmut
> 
>  drivers/char/tpm/tpm_tis.c |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index 24314a9..1030f84 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -623,7 +623,14 @@ static int tpm_tis_pnp_suspend(struct pnp_dev *dev, pm_message_t msg)
> 
>  static int tpm_tis_pnp_resume(struct pnp_dev *dev)
>  {
> -	return tpm_pm_resume(&dev->dev);
> +	struct tpm_chip *chip = pnp_get_drvdata(dev);
> +	int ret;
> +
> +	ret = tpm_pm_resume(&dev->dev);
> +	if (!ret)
> +		tpm_continue_selftest(chip);
> +
> +	return ret;
>  }
> 
>  static struct pnp_device_id tpm_pnp_tbl[] __devinitdata = {


--
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