HomeFreeBSD

Linux 6.9: Fix UBSAN errors in zap_micro.c

Description

Linux 6.9: Fix UBSAN errors in zap_micro.c

You can use the UBSAN_SANITIZE_* Kbuild options to exclude certain
kernel objects from the UBSAN checks. We previously excluded
zap_micro.o with:

UBSAN_SANITIZE_zap_micro.o := n

For some reason that didn't work for the 6.9 kernel, which wants us
to use:

UBSAN_SANITIZE_zfs/zap_micro.o := n

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #16278
Closes #16330

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Jul 11 2024, 11:41 PM
Parents
rGc24a039042ef: Linux 6.9: Call add_disk() from workqueue to fix zfs_allow_010_pos (#16282)
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGd7bf0e5259f3: Linux 6.9: Fix UBSAN errors in zap_micro.c (authored by Tony Hutter <hutter2@llnl.gov>).Jul 16 2024, 10:33 PM