ANDROID: Revert "kbuild: Enable -fstrict-flex-arrays=3"
This reverts commit df8fc4e934.
The P21 drivers currently get UBSAN array out of bounds traps
at runtime.
To unblock android-mainline whilst we investigate and fixup
the P21 drivers temporarily revert this commit/
Bug: 292051371
Change-Id: Iaa68ff6aada72fc39f725906e4604d5025e05daf
Signed-off-by: Peter Griffin <gpeter@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
1ffaaad78b
commit
e98e78b52a
@@ -1052,12 +1052,6 @@ KBUILD_CFLAGS += -Wno-pointer-sign
|
||||
# globally built with -Wcast-function-type.
|
||||
KBUILD_CFLAGS += $(call cc-option, -Wcast-function-type)
|
||||
|
||||
# To gain proper coverage for CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE,
|
||||
# the kernel uses only C99 flexible arrays for dynamically sized trailing
|
||||
# arrays. Enforce this for everything that may examine structure sizes and
|
||||
# perform bounds checking.
|
||||
KBUILD_CFLAGS += $(call cc-option, -fstrict-flex-arrays=3)
|
||||
|
||||
# disable stringop warnings in gcc 8+
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user