HomeFreeBSD

Workaround UBSAN errors for variable arrays

Description

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

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Nov 13 2023, 12:26 AM
Parents
rGf1659cc782e9: ZTS: Test for all known zpool feature sets
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGe92a680c7084: Workaround UBSAN errors for variable arrays (authored by Tony Hutter <hutter2@llnl.gov>).Nov 16 2023, 10:23 PM