]> xenbits.xensource.com Git - xen.git/commit
libfsimage/xfs: Add compile-time check to libfsimage
authorAlejandro Vallejo <alejandro.vallejo@cloud.com>
Thu, 14 Sep 2023 12:22:53 +0000 (13:22 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 11 Oct 2023 05:36:50 +0000 (06:36 +0100)
commit7d85c70431593550e32022e3a19a37f306f49e00
tree8a319e82b02a67e662f4acc1a34989495abaf50a
parent620500dd1baf33347dfde5e7fde7cf7fe347da5c
libfsimage/xfs: Add compile-time check to libfsimage

Adds the common tools include folder to the -I compile flags
of libfsimage. This allows us to use:
  xen-tools/common-macros.h:BUILD_BUG_ON()

With it, statically assert a sanitized "blocklog - SECTOR_BITS" cannot
underflow.

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

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