History

ubsan: remove CONFIG_UBSAN_OBJECT_SIZE

The object-size sanitizer is redundant to -Warray-bounds, and inappropriately performs its checks at run-time when all information needed for the evaluation is available at compile-time, making it quite difficult to use: https://bugzilla.kernel.org/show_bug.cgi?id=214861 With -Warray-bounds almost enabled globally, it doesn't make sense to keep this around.

Kees Cook committed 4 years ago

Commit 69d0db01 parent bece04b3 files · +0 −36Browse files

Showing the changes to scripts (1 of 3 files). Show all

Unified · Split

scripts/Makefile.ubsan+0−1
@@ -8,7 +8,6 @@ ubsan-cflags-$(CONFIG_UBSAN_LOCAL_BOUNDS) += -fsanitize=local-bounds · 7 unmodified lines
8ubsan-cflags-$(CONFIG_UBSAN_SHIFT) += -fsanitize=shift8ubsan-cflags-$(CONFIG_UBSAN_SHIFT) += -fsanitize=shift
9ubsan-cflags-$(CONFIG_UBSAN_DIV_ZERO) += -fsanitize=integer-divide-by-zero9ubsan-cflags-$(CONFIG_UBSAN_DIV_ZERO) += -fsanitize=integer-divide-by-zero
10ubsan-cflags-$(CONFIG_UBSAN_UNREACHABLE) += -fsanitize=unreachable10ubsan-cflags-$(CONFIG_UBSAN_UNREACHABLE) += -fsanitize=unreachable
11ubsan-cflags-$(CONFIG_UBSAN_OBJECT_SIZE) += -fsanitize=object-size
12ubsan-cflags-$(CONFIG_UBSAN_BOOL) += -fsanitize=bool11ubsan-cflags-$(CONFIG_UBSAN_BOOL) += -fsanitize=bool
13ubsan-cflags-$(CONFIG_UBSAN_ENUM) += -fsanitize=enum12ubsan-cflags-$(CONFIG_UBSAN_ENUM) += -fsanitize=enum
14ubsan-cflags-$(CONFIG_UBSAN_TRAP) += -fsanitize-undefined-trap-on-error13ubsan-cflags-$(CONFIG_UBSAN_TRAP) += -fsanitize-undefined-trap-on-error

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t