applied:
https://github.com/crash-utility/crash/commit/c0097c84fed048e3e073f73a72e...
On Wed, May 6, 2026 at 9:42 AM Tao Liu <ltao(a)redhat.com> wrote:
Hi Kazu,
Thanks for the fix. The patch LGTM, so ack.
Thanks,
Tao Liu
On Thu, Apr 16, 2026 at 4:35 PM HAGIO KAZUHITO(萩尾 一仁)
<k-hagio-ab(a)nec.com> wrote:
>
> From: Kazuhito Hagio <k-hagio-ab(a)nec.com>
>
> The crash-utility wrongly prints "[LIVEPATCH]" occasionally on old
> kernels:
>
> KERNEL: vmlinux [LIVEPATCH]
> DUMPFILE: dump.d31 [PARTIAL DUMP]
> ...
> RELEASE: 2.6.24
>
> In is_livepatch(), show_kernel_tains() does not set any value to buf on
> kernels that have the "tainted" symbol, so it's printed when the
> uninitialized buf has "K" by chance. On very old kernels, but this
> issue affects makedumpfile tests.
>
> Signed-off-by: Kazuhito Hagio <k-hagio-ab(a)nec.com>
> ---
> kernel.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel.c b/kernel.c
> index 8781d6a22414..1e639ec6a007 100644
> --- a/kernel.c
> +++ b/kernel.c
> @@ -5678,7 +5678,7 @@ is_livepatch(void)
> {
> int i;
> struct load_module *lm;
> - char buf[BUFSIZE];
> + char buf[BUFSIZE] = {0};
>
> show_kernel_taints(buf, !VERBOSE);
> if (strstr(buf, "K")) /* TAINT_LIVEPATCH */
> --
> 2.31.1
>