Re: [PATCH] panic: fix va_list reuse in panic_try_force_cpu()

From: Petr Mladek

Date: Tue Jul 07 2026 - 05:29:08 EST


On Sun 2026-07-05 16:41:23, Bradley Morgan wrote:
> vsnprintf() consumes the caller's va_list. When the redirect fails,
> vpanic() reuses it for the panic message, which is undefined
> behavior. Use va_copy().
>
> Signed-off-by: Bradley Morgan <include@xxxxxxxxx>

Great catch!

The patch looks good to me:

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr