From 1d1fd188691242fe4a66f7aca91f39a42425d3e8 Mon Sep 17 00:00:00 2001 From: Stefan Wiehler Date: Wed, 7 Jan 2026 12:48:33 +0100 Subject: Kconfig.ubsan: Remove CONFIG_UBSAN_REPORT_FULL from documentation There is no indication in the history that such an option was merged to mainline. Fixes: c637693b20da ("ubsan: remove UBSAN_MISC in favor of individual options") Signed-off-by: Stefan Wiehler Link: https://patch.msgid.link/20260107114833.2030995-1-stefan.wiehler@nokia.com Signed-off-by: Kees Cook --- lib/Kconfig.ubsan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 744121178815..1ecaae7064d2 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -104,7 +104,7 @@ config UBSAN_DIV_ZERO This option enables -fsanitize=integer-divide-by-zero which checks for integer division by zero. This is effectively redundant with the kernel's existing exception handling, though it can provide greater - debugging information under CONFIG_UBSAN_REPORT_FULL. + debugging information. config UBSAN_UNREACHABLE bool "Perform checking for unreachable code" -- cgit v1.2.3 From ccfe7d6251f4e140e6ebdc87a9ecb33d86e2019e Mon Sep 17 00:00:00 2001 From: Nicolas Schier Date: Wed, 14 Jan 2026 14:57:14 +0100 Subject: fortify: Rename temporary file to match ignore pattern test_fortify.sh uses a temporary file that might appear as untracked file in some rare sitations. Rename it to match one of top-level's gitignore patterns. Reported-by: WangYuli Closes: https://lore.kernel.org/linux-kbuild/20251112114725.287349-1-wangyuli@aosc.io/ Reviewed-by: Nathan Chancellor Reviewed-by: WangYuli Signed-off-by: Nicolas Schier Link: https://patch.msgid.link/20260114-fortify-improve-handling-of-tempfile-v2-1-63b86c4dbd0e@kernel.org Signed-off-by: Kees Cook --- lib/test_fortify/test_fortify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/test_fortify/test_fortify.sh b/lib/test_fortify/test_fortify.sh index c2688ab8281d..368d07d9acbf 100644 --- a/lib/test_fortify/test_fortify.sh +++ b/lib/test_fortify/test_fortify.sh @@ -17,7 +17,7 @@ WANT="__${FILE%%-*}" # Argument 2: Where to write the build log. OUT="$1" shift -TMP="${OUT}.tmp" +TMP="${OUT%/*}/.${OUT##*/}.tmp" # Argument 3: Path to "nm" tool. NM="$1" -- cgit v1.2.3 From 9f54ab83cb2a17071be70a80b94db6c36e597696 Mon Sep 17 00:00:00 2001 From: Nicolas Schier Date: Wed, 14 Jan 2026 14:57:15 +0100 Subject: fortify: Cleanup temp file also on non-successful exit Ensure cleanup of test_fortify.sh's temporary file also on script interruption, or some common signals. Reported-by: WangYuli Closes: https://lore.kernel.org/linux-kbuild/20251112114725.287349-1-wangyuli@aosc.io/ Reviewed-by: Nathan Chancellor Reviewed-by: WangYuli Signed-off-by: Nicolas Schier Link: https://patch.msgid.link/20260114-fortify-improve-handling-of-tempfile-v2-2-63b86c4dbd0e@kernel.org Signed-off-by: Kees Cook --- lib/test_fortify/test_fortify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/test_fortify/test_fortify.sh b/lib/test_fortify/test_fortify.sh index 368d07d9acbf..ad6dd44fa31c 100644 --- a/lib/test_fortify/test_fortify.sh +++ b/lib/test_fortify/test_fortify.sh @@ -29,7 +29,7 @@ shift __cleanup() { rm -f "$TMP" } -trap __cleanup EXIT +trap __cleanup EXIT HUP INT QUIT TERM # Function names in warnings are wrapped in backticks under UTF-8 locales. # Run the commands with LANG=C so that grep output will not change. -- cgit v1.2.3