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: <20160913093257.GA31186@node>
Date:   Tue, 13 Sep 2016 12:32:58 +0300
From:   "Kirill A. Shutemov" <kirill@...temov.name>
To:     Rui Teng <rui.teng@...ux.vnet.ibm.com>
Cc:     linux-kernel@...r.kernel.org, linux-mm@...ck.org,
        Andrew Morton <akpm@...ux-foundation.org>,
        Michal Hocko <mhocko@...e.com>,
        Naoya Horiguchi <n-horiguchi@...jp.nec.com>,
        Chen Gang <chengang@...ndsoft.com.cn>,
        "Kirill A . Shutemov" <kirill.shutemov@...ux.intel.com>,
        Vlastimil Babka <vbabka@...e.cz>,
        "Aneesh Kumar K . V" <aneesh.kumar@...ux.vnet.ibm.com>,
        hejianet@...ux.vnet.ibm.com
Subject: Re: [RFC] mm: Change the data type of huge page size from unsigned
 long to u64

On Tue, Sep 13, 2016 at 05:26:05PM +0800, Rui Teng wrote:
> The huge page size could be 16G(0x400000000) on ppc64 architecture, and it will
> cause an overflow on unsigned long data type(0xFFFFFFFF).

Huh? ppc64 is 64-bit system and sizeof(void *) is equal to
sizeof(unsigned long) on Linux (LP64 model).

So where your 0xFFFFFFFF comes from?

-- 
 Kirill A. Shutemov

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ