[Bug 1193] examples/vdpa closes port in non signal safe manner
bugzilla at dpdk.org
bugzilla at dpdk.org
Mon Mar 20 18:02:57 CET 2023
https://bugs.dpdk.org/show_bug.cgi?id=1193
Bug ID: 1193
Summary: examples/vdpa closes port in non signal safe manner
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: examples
Assignee: dev at dpdk.org
Reporter: stephen at networkplumber.org
Target Milestone: ---
The vdpa sample application does:
signal(SIGINT, signal_handler);
Then signal_handler() doess
vdpa_signal_quit() which calls close_vdpa()
close_vdpa() calls rte_vhost_driver_detach_vdpa_device and unregister
These close and detach routines are not signal safe. It could cause a race
condition in vdpa driver if signal was received and processed by one thread
while another thread was in middle of interacting with host.
The correct way to handle this is to set a flag in the signal handler,
and exit the main processing loop; then cleanup.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20230320/2d765de7/attachment.htm>
More information about the dev
mailing list