]> git.proxmox.com Git - mirror_zfs.git/commit
Workaround UBSAN errors for variable arrays
authorTony Hutter <hutter2@llnl.gov>
Mon, 13 Nov 2023 00:26:07 +0000 (16:26 -0800)
committerGitHub <noreply@github.com>
Mon, 13 Nov 2023 00:26:07 +0000 (16:26 -0800)
commit786641dcf9a7e35f26a1b4778fc710c7ec0321bf
tree0651d04781f9e0650918d38b968dc5bd2b1ec40d
parent3a8d9b848723764777ec9d772f79335726b1f6c6
Workaround UBSAN errors for variable arrays

This gets around UBSAN errors when using arrays at the end of
structs.  It converts some zero-length arrays to variable length
arrays and disables UBSAN checking on certain modules.

It is based off of the patch from #15460.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Issue #15145
Closes #15510
include/os/linux/spl/sys/kmem_cache.h
include/sys/vdev_raidz_impl.h
module/Kbuild.in