Skip to contentSkip to conversation

l2fwd-event: signal unsafe usage

Bug 1051 [email protected] 1 participant 1 message Jul 11, 2022

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1051

            Bug ID: 1051
           Summary: l2fwd-event: signal unsafe usage
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: examples
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

The signal_handler in l2fwd-event uses several functions that are not async-signal-safe.

The call to rte_mempool_lookup() in signal_handler could deadlock if interrupted during another lookup.

Also updating variable in signal handler should use __atomic_store

This is not a bug found by inspection. In practice the code is safe. But examples are used by users to build applications, should be following best practices.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.