init/Kconfig: conditionalize GCC10_NO_ARRAY_BOUNDS
PATCH 1/1 init/Kconfig: conditionalize GCC10_NO_ARRAY_BOUNDS
GCC10_NO_ARRAY_BOUNDS is a GCC option and should only be enabled if CC is GCC.
--- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
init/Kconfig +1 -1
@@ -905,7 +905,7 @@ config CC_IMPLICIT_FALLTHROUGH # Currently, disable gcc-10+ array-bounds globally. # It's still broken in gcc-13, so no upper bound yet. config GCC10_NO_ARRAY_BOUNDS - def_bool y + def_bool y if CC_IS_GCC config CC_NO_ARRAY_BOUNDS bool
base-commit: e25c8d66f6786300b680866c0e0139981273feba
Signature · 1 line
2.34.1
PATCH 1/1 init/Kconfig: conditionalize GCC10_NO_ARRAY_BOUNDS
Hi Masahiro,
Do you have any feedback or reviews on this patch ? Please let me know.
Thanks,
Shyam
PATCH 1/1 init/Kconfig: conditionalize GCC10_NO_ARRAY_BOUNDS
Hi Masahiro, Kees
do you have any reviews for this patch?
Thanks,
Shyam
git send-email \
--in-reply-to=20250211221030.1815731-1-shyamsaini@linux.microsoft.com \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/tmp/reply-kconfig-initQuoted 1 line · Shyam Saini
do you have any reviews for this patch?
It's a redundant change since CC_IS_GCC is checked later:
config GCC10_NO_ARRAY_BOUNDS
def_bool y
config CC_NO_ARRAY_BOUNDS
bool
default y if CC_IS_GCC && GCC_VERSION >= 90000 && GCC10_NO_ARRAY_BOUNDSIf you wanted to make this change, then it would make sense to drop it from CC_NO_ARRAY_BOUNDS at the same time.
-Kees
Signature · 1 line
Kees Cook