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]
Message-Id: <201211142337.06884.PeterHuewe@gmx.de>
Date:	Wed, 14 Nov 2012 23:37:06 +0100
From:	Peter Hüwe <PeterHuewe@....de>
To:	Kent Yoder <key@...ux.vnet.ibm.com>
Cc:	Marcel Selhorst <tpmdd@...horst.net>, Sirrix AG <tpmdd@...rix.com>,
	tpmdd-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

Am Mittwoch, 14. November 2012, 23:18:26 schrieb Kent Yoder:
> On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote:> > 
> > This patch also gets rid of the (false positive) sparse warning:
> >  drivers/char/tpm/tpm.c:360 tpm_calc_ordinal_duration() error: buffer
> >  overflow 'tpm_protected_ordinal_duration' 12 <= 243
> 
>   I'm not seeing this sparse warning, how did you get it?

Oh sorry 
s/sparse/smatch/

It was a smatch warning, not sparse - sorry about that:

/data/data-old/linux-2.6/drivers/char/tpm $ make -C /data/data-old/linux-2.6/ M=`pwd`  C=1 CHECK=smatch
make: Entering directory `/data/data-old/linux-2.6'
  LD      /data/data-old/linux-2.6/drivers/char/tpm/built-in.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm.c
/data/data-old/linux-2.6/drivers/char/tpm/tpm.c:360 tpm_calc_ordinal_duration() error: buffer overflow 'tpm_protected_ordinal_duration' 12 <= 243
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_eventlog.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_eventlog.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_acpi.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_acpi.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_ppi.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_ppi.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_bios.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_tis.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_tis.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_i2c_infineon.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_i2c_infineon.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_nsc.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_nsc.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_atmel.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_atmel.o
  CHECK   /data/data-old/linux-2.6/drivers/char/tpm/tpm_infineon.c
  CC [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_infineon.o
  Building modules, stage 2.
  MODPOST 7 modules
  CC      /data/data-old/linux-2.6/drivers/char/tpm/tpm.mod.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm.ko
  CC      /data/data-old/linux-2.6/drivers/char/tpm/tpm_atmel.mod.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_atmel.ko
  CC      /data/data-old/linux-2.6/drivers/char/tpm/tpm_bios.mod.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_bios.ko
  CC      /data/data-old/linux-2.6/drivers/char/tpm/tpm_i2c_infineon.mod.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_i2c_infineon.ko
  CC      /data/data-old/linux-2.6/drivers/char/tpm/tpm_infineon.mod.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_infineon.ko
  CC      /data/data-old/linux-2.6/drivers/char/tpm/tpm_nsc.mod.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_nsc.ko
  CC      /data/data-old/linux-2.6/drivers/char/tpm/tpm_tis.mod.o
  LD [M]  /data/data-old/linux-2.6/drivers/char/tpm/tpm_tis.ko
make: Leaving directory `/data/data-old/linux-2.6'
--
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