xfs: convert flex-array declarations in xfs attr shortform objects
authorDarrick J. Wong <djwong@kernel.org>
Mon, 10 Jul 2023 16:32:11 +0000 (09:32 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 17 Jul 2023 15:48:56 +0000 (08:48 -0700)
commitf6250e205691a58c81be041b1809a2e706852641
treefcc708c155555d54055343274b0c9ef8b16b6162
parenta49bbce58ea90b14d4cb1d00681023a8606955f2
xfs: convert flex-array declarations in xfs attr shortform objects

As of 6.5-rc1, UBSAN trips over the ondisk extended attribute shortform
definitions using an array length of 1 to pretend to be a flex array.
Kernel compilers have to support unbounded array declarations, so let's
correct this.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
fs/xfs/libxfs/xfs_da_format.h
fs/xfs/xfs_ondisk.h