History

configs/hardening: Disable CONFIG_UBSAN_SIGNED_WRAP

kernel/configs/hardening.config turns on UBSAN for the bounds sanitizer, as that in combination with trapping can stop the exploitation of buffer overflows within the kernel. At the same time, hardening.config turns off every other UBSAN sanitizer because trapping means all UBSAN reports will be fatal and the problems brought up by other sanitizers generally do not have security implications. The signed integer overflow sanitizer was recently added back to the kernel and it is default on with just CONFIG_UBSAN=y, meaning that it gets enabled when merging hardening.config into another configuration. While this sanitizer does have security implications like the array bounds sanitizer, work to clean up enough instances to allow this to run in production environments is still ramping up, which means regular users and testers may be broken by these instances with CONFIG_UBSAN_TRAP=y. Disable CONFIG_UBSAN_SIGNED_WRAP in hardening.config to avoid this situation.

Nathan Chancellor committed 2 years ago

Commit 7fcb91d1 parent e048d661 file · +1 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/configs/hardening.config+1−0
@@ -41,6 +41,7 @@ CONFIG_UBSAN_BOUNDS=y · 40 unmodified lines
41# CONFIG_UBSAN_SHIFT is not set41# CONFIG_UBSAN_SHIFT is not set
42# CONFIG_UBSAN_DIV_ZERO is not set42# CONFIG_UBSAN_DIV_ZERO is not set
43# CONFIG_UBSAN_UNREACHABLE is not set43# CONFIG_UBSAN_UNREACHABLE is not set
44# CONFIG_UBSAN_SIGNED_WRAP is not set
44# CONFIG_UBSAN_BOOL is not set45# CONFIG_UBSAN_BOOL is not set
45# CONFIG_UBSAN_ENUM is not set46# CONFIG_UBSAN_ENUM is not set
46# CONFIG_UBSAN_ALIGNMENT is not set47# CONFIG_UBSAN_ALIGNMENT is not set

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