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] [day] [month] [year] [list]
Message-ID: <c1d3cda2-5beb-21be-a1bd-d30c1c035ff3@landley.net>
Date:   Thu, 22 Jul 2021 03:47:42 -0500
From:   Rob Landley <rob@...dley.net>
To:     Miquel Raynal <miquel.raynal@...tlin.com>,
        Miaohe Lin <linmiaohe@...wei.com>
Cc:     richard@....at, vigneshr@...com, David.Woodhouse@...el.com,
        Artem.Bityutskiy@...ia.com, ext-adrian.hunter@...ia.com,
        linux-kernel@...r.kernel.org, linux-mtd@...ts.infradead.org,
        linfeilong@...wei.com
Subject: Re: [PATCH] mtd: fix size in mtd_info_user to support 64-bit

On 7/16/21 8:34 AM, Rob Landley wrote:
>> The only way is to create a second UAPI.
> 
> Twelve years ago a patch was submitted to add a 64 bit MTD api:
> 
>   https://lwn.net/Articles/326418/
> 
> But for some reason they only merged 64 bit erase:
> 
>   https://github.com/torvalds/linux/commit/0dc54e9f33e2
> 
> But NOT the rest of the 64 bit mtd API in the same patch. I've never understood why.

That said, the workaround is to use the info api for erase size and use
lseek(SEEK_END) on the device to get the length.

Rob

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ