]> git.ipfire.org Git - thirdparty/linux.git/commit
fortify: Cleanup temp file also on non-successful exit
authorNicolas Schier <nsc@kernel.org>
Wed, 14 Jan 2026 13:57:15 +0000 (14:57 +0100)
committerKees Cook <kees@kernel.org>
Thu, 15 Jan 2026 03:49:55 +0000 (19:49 -0800)
commit9f54ab83cb2a17071be70a80b94db6c36e597696
treea96bfd8fff375f30d1fedf8b496cf5179097eefe
parentccfe7d6251f4e140e6ebdc87a9ecb33d86e2019e
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 <wangyuli@aosc.io>
Closes: https://lore.kernel.org/linux-kbuild/20251112114725.287349-1-wangyuli@aosc.io/
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: WangYuli <wangyuli@aosc.io>
Signed-off-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20260114-fortify-improve-handling-of-tempfile-v2-2-63b86c4dbd0e@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
lib/test_fortify/test_fortify.sh