]> xenbits.xensource.com Git - xen.git/commit
libfsimage/xfs: Amend mask32lo() to allow the value 32
authorAlejandro Vallejo <alejandro.vallejo@cloud.com>
Thu, 14 Sep 2023 12:22:51 +0000 (13:22 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 11 Oct 2023 05:36:49 +0000 (06:36 +0100)
commitddc45e4eea946bb373a4b4a60c84bf9339cf413b
tree3cf576e066b2baa0d7513671c11c7a025ae46c8e
parent37fc1e6c1c5c63aafd9cfd76a37728d5baea7d71
libfsimage/xfs: Amend mask32lo() to allow the value 32

agblklog could plausibly be 32, but that would overflow this shift.
Perform the shift as ULL and cast to u32 at the end instead.

This is part of XSA-443 / CVE-2023-34325

Signed-off-by: Alejandro Vallejo <alejandro.vallejo@cloud.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
tools/libfsimage/xfs/fsys_xfs.c