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:	Wed, 28 May 2008 19:57:11 -0400
From:	"Lee Revell" <rlrevell@...-job.com>
To:	Raz <raziebe@...il.com>
Cc:	"Linux Kernel" <linux-kernel@...r.kernel.org>
Subject: Re: mmap over HPET - 32 bit wrap arround

On Wed, May 28, 2008 at 6:19 PM, Raz <raziebe@...il.com> wrote:
> I am wondering wether someone can explain how hpet behaves. The bellow
> is a short program that reads from a mmaped /dev/hpet the time. I am
> running it and it looks that afer ~296 seconds the counter resets . I
> AM RUNNING  64bi KERNEL(2.6.18-8.el5)  and reading a 64BIT VARIABLE.
> my hpet is 14MHZ, so I  am guessing a 32bit wraparound ( ~296 * 14Mhz
> ) =  MAX_INT . but why ?
>

HPET counter can be either 32 or 64 bit.  Check COUNT_SIZE_CAP.

http://www.intel.com/hardwaredesign/hpetspec_1.pdf

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