> perf_stats_show() and flags_show() build their output with a seq_buf > and return seq_buf_used(), which may include the trailing NUL byte > when the seq_buf has overflowed. Use seq_buf_strlen() instead. As > suggested in review, use it as well for flags_show()'s check whether > any flag was printed. > > Build tested ARCH=powerpc ppc64_defconfig with GCC powerpc64-linux-gnu > 16.2.0: > arch/powerpc/platforms/pseries/papr_scm.o > > Assisted-by: LLM > Reviewed-by: Andy Shevchenko <[email protected]> > Signed-off-by: Kees Cook <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=9
