On Tue, 28 Apr 2026 06:52:48 -0700
Stephen Hemminger <[email protected]> wrote:

> The SIGINT/SIGTERM handler starts a graceful shutdown via
> prompt_exit(), after which prompt() frees the cmdline object with
> cmdline_stdin_exit(). A second signal delivered during or after
> that free re-enters prompt_exit() and dereferences testpmd_cl,
> producing a use-after-free.
> 
> Reset both signals to SIG_DFL so the process will immediately
> exit if second signal arrives.
> 
> Fixes: f1d0993e034e ("app/testpmd: fix interactive mode on Windows")
> Cc: [email protected]
> Reported-by: Sunyang Wu <[email protected]>
> Signed-off-by: Stephen Hemminger <[email protected]>
> Acked-by: Bruce Richardson <[email protected]>
> ---

Applied to next-net

Reply via email to