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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cf8a0c3e-af64-addf-9065-72e75cc75eb2@deltatee.com>
Date:   Wed, 25 Oct 2017 12:11:07 -0600
From:   Logan Gunthorpe <logang@...tatee.com>
To:     Daniel Mentz <danielmentz@...gle.com>, sbates@...thlin.com
Cc:     corbet@....net, Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Will Deacon <will.deacon@....com>,
        lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] genalloc: Make the avail variable an atomic64_t



On 25/10/17 11:55 AM, Daniel Mentz wrote:
> avail is defined as size_t (32 bit). Aren't you going to overflow that variable?

I think the point is to get support for 64-bit systems (ie. ARM64 and 
x64. We're working with large PCI BARs and need some way to allocate 
memory from them. You aren't likely to ever get >4GB chunks on 32-bit 
systems but you certainly can on 64-bit systems.

Logan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ