]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: convert flex-array declarations in xfs attr shortform objects
authorDarrick J. Wong <djwong@kernel.org>
Thu, 7 Sep 2023 09:41:01 +0000 (11:41 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 7 Sep 2023 09:55:50 +0000 (11:55 +0200)
commite17ccef351b424b11ddccc9d228d02a025f9639a
treeca8514ec142320b31e4f0847fa3b69fa9cb9eb78
parent39e9f4c2937a881293a1c5554a96197340a31879
xfs: convert flex-array declarations in xfs attr shortform objects

Source kernel commit: f6250e205691a58c81be041b1809a2e706852641

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_da_format.h