File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
tools/testing/selftests/wireguard/qemu Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,15 @@ config UBSAN_SANITIZE_ALL
60
60
Enabling this option will get kernel image size increased
61
61
significantly.
62
62
63
- config UBSAN_NO_ALIGNMENT
64
- bool "Disable checking of pointers alignment"
65
- default y if HAVE_EFFICIENT_UNALIGNED_ACCESS
63
+ config UBSAN_ALIGNMENT
64
+ bool "Enable checks for pointers alignment"
65
+ default !HAVE_EFFICIENT_UNALIGNED_ACCESS
66
+ depends on !X86 || !COMPILE_TEST
66
67
help
67
- This option disables the check of unaligned memory accesses.
68
- This option should be used when building allmodconfig.
69
- Disabling this option on architectures that support unaligned
68
+ This option enables the check of unaligned memory accesses.
69
+ Enabling this option on architectures that support unaligned
70
70
accesses may produce a lot of false positives.
71
71
72
- config UBSAN_ALIGNMENT
73
- def_bool !UBSAN_NO_ALIGNMENT
74
-
75
72
config TEST_UBSAN
76
73
tristate "Module for testing for undefined behavior detection"
77
74
depends on m
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ CONFIG_KASAN=y
25
25
CONFIG_KASAN_INLINE=y
26
26
CONFIG_UBSAN=y
27
27
CONFIG_UBSAN_SANITIZE_ALL=y
28
- CONFIG_UBSAN_NO_ALIGNMENT=y
29
28
CONFIG_UBSAN_NULL=y
30
29
CONFIG_DEBUG_KMEMLEAK=y
31
30
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=8192
You can’t perform that action at this time.
0 commit comments