[PATCH 09/27] selftests/landlock: Assert tracefs_extract_field() results that are used
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Oct 8 14:33:28 UTC 2026
> Several trace tests check tracefs_extract_field() with EXPECT_EQ() and
> then compare the extracted field. If the extraction fails, the field
> buffer is left uninitialized and the following comparison reads it.
>
> Use ASSERT_EQ() for these calls, as the other trace tests already do.
>
> Assisted-by: LLM
> Signed-off-by: Günther Noack <gnoack3000 at gmail.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261008142604.39107-2-gnoack3000@gmail.com?part=9
More information about the Linux-security-module-archive
mailing list