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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 6 Oct 2021 01:23:21 +0200
From:   David Sterba <>
To:     Geert Uytterhoeven <>
Cc:     Qu Wenruo <>, Chris Mason <>,
        Josef Bacik <>,
        David Sterba <>,,,
Subject: Re: [PATCH -next] btrfs: lzo: Mask instead of divide to fix 32-bit

On Tue, Oct 05, 2021 at 11:34:06AM +0200, Geert Uytterhoeven wrote:
> On 32-bit builds (e.g. m68k):
>     ERROR: modpost: "__umoddi3" [fs/btrfs/btrfs.ko] undefined!
> "cur_in - start" is 64-bit, while sectorsize is u32.
> As sectorsize is always a power of two, the 64-by-32 modulo operation
> can be replaced by a much cheaper bitwise AND with "sectorsize - 1".
> Fixes: 0078783c7089fc83 ("btrfs: rework lzo_compress_pages() to make it subpage compatible")
> Reported-by:
> Signed-off-by: Geert Uytterhoeven <>

Thanks. Folded to the patch as it's still in the devel queue.

Powered by blists - more mailing lists