aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPaolo Abeni <[email protected]>2023-03-09 15:49:57 +0100
committerJakub Kicinski <[email protected]>2023-03-10 21:42:56 -0800
commitb7a679ba7c652587b85294f4953f33ac0b756d40 (patch)
tree726eb073c3ce555b940826bf4e9c28dd177fdd6d /tools/perf/scripts/python/net_dropmonitor.py
parent12508b3eb69e2c13e82bbc746ec74b6fcaf33fd4 (diff)
mptcp: fix possible deadlock in subflow_error_report
Christoph reported a possible deadlock while the TCP stack destroys an unaccepted subflow due to an incoming reset: the MPTCP socket error path tries to acquire the msk-level socket lock while TCP still owns the listener socket accept queue spinlock, and the reverse dependency already exists in the TCP stack. Note that the above is actually a lockdep false positive, as the chain involves two separate sockets. A different per-socket lockdep key will address the issue, but such a change will be quite invasive. Instead, we can simply stop earlier the socket error handling for orphaned or unaccepted subflows, breaking the critical lockdep chain. Error handling in such a scenario is a no-op. Reported-and-tested-by: Christoph Paasch <[email protected]> Fixes: 15cc10453398 ("mptcp: deliver ssk errors to msk") Cc: [email protected] Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/355 Signed-off-by: Paolo Abeni <[email protected]> Reviewed-by: Matthieu Baerts <[email protected]> Signed-off-by: Matthieu Baerts <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions