diff options
Diffstat (limited to 'lib/Kconfig.ubsan')
| -rw-r--r-- | lib/Kconfig.ubsan | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 98fa559ebd80..a2ae4a8e4fa6 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan | |||
| @@ -27,15 +27,19 @@ config UBSAN_SANITIZE_ALL | |||
| 27 | Enabling this option will get kernel image size increased | 27 | Enabling this option will get kernel image size increased |
| 28 | significantly. | 28 | significantly. |
| 29 | 29 | ||
| 30 | config UBSAN_ALIGNMENT | 30 | config UBSAN_NO_ALIGNMENT |
| 31 | bool "Enable checking of pointers alignment" | 31 | bool "Disable checking of pointers alignment" |
| 32 | depends on UBSAN | 32 | depends on UBSAN |
| 33 | default y if !HAVE_EFFICIENT_UNALIGNED_ACCESS | 33 | default y if HAVE_EFFICIENT_UNALIGNED_ACCESS |
| 34 | help | 34 | help |
| 35 | This option enables detection of unaligned memory accesses. | 35 | This option disables the check of unaligned memory accesses. |
| 36 | Enabling this option on architectures that support unaligned | 36 | This option should be used when building allmodconfig. |
| 37 | Disabling this option on architectures that support unaligned | ||
| 37 | accesses may produce a lot of false positives. | 38 | accesses may produce a lot of false positives. |
| 38 | 39 | ||
| 40 | config UBSAN_ALIGNMENT | ||
| 41 | def_bool !UBSAN_NO_ALIGNMENT | ||
| 42 | |||
| 39 | config TEST_UBSAN | 43 | config TEST_UBSAN |
| 40 | tristate "Module for testing for undefined behavior detection" | 44 | tristate "Module for testing for undefined behavior detection" |
| 41 | depends on m && UBSAN | 45 | depends on m && UBSAN |
