[PATCH v2] app/test-pmd: terminate process on second signal
Stephen Hemminger
stephen at networkplumber.org
Thu Apr 30 19:25:33 CEST 2026
On Tue, 28 Apr 2026 06:52:48 -0700
Stephen Hemminger <stephen at networkplumber.org> 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: stable at dpdk.org
> Reported-by: Sunyang Wu <sunyang.wu at jaguarmicro.com>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
Applied to next-net
More information about the stable
mailing list