RE: Unsafe memory access in testpmd

2022-10-17 Thread Ruifeng Wang
> -Original Message- > From: Stephen Hemminger > Sent: Friday, October 14, 2022 7:39 AM > To: Ruifeng Wang ; Honnappa Nagarahalli > > Cc: dev@dpdk.org > Subject: Unsafe memory access in testpmd > > Noticed that test-pmd is using a signal handler to exit. >

Unsafe memory access in testpmd

2022-10-13 Thread Stephen Hemminger
Noticed that test-pmd is using a signal handler to exit. And that signal handle clears a flag "f_quit". But that variable is updated without atomic and is not volatile. Simple fix to use atomic, would fix that part. But the signal_handler is calling a bunch of functions that are not safe in a sign