]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Ubuntu 22.04 integration: ZTS
authorszubersk <szuberskidamian@gmail.com>
Sat, 12 Nov 2022 12:30:57 +0000 (22:30 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 18 Nov 2022 19:26:55 +0000 (11:26 -0800)
Add `detect_odr_violation=1` to ASAN_OPTIONS to allow both libzfs
and libzpool expose

```
zfeature_info_t spa_feature_table[SPA_FEATURES]
```

from module/zcommon/zfeature_common.c in public ABI.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #14148

tests/zfs-tests/include/default.cfg.in

index 56111a1473c4f2aede5961abf4d42d70e24b0648..3aed8ebea03a5f6336e216d9593f9a6f38086838 100644 (file)
@@ -156,7 +156,7 @@ done
 export MAX_PARTITIONS=8
 
 if [ "@ASAN_ENABLED@" = "yes" ]; then
-       export ASAN_OPTIONS=abort_on_error=true:halt_on_error=true:allocator_may_return_null=true:disable_coredump=false:detect_stack_use_after_return=true
+       export ASAN_OPTIONS=abort_on_error=true:halt_on_error=true:allocator_may_return_null=true:disable_coredump=false:detect_stack_use_after_return=true:detect_odr_violation=1
 
        # TODO
        # disable memory leaks detection