diff options
author | Paolo Abeni <pabeni@redhat.com> | 2022-07-08 16:36:09 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-11 11:31:38 +0100 |
commit | 5c835bb142d4013c2ab24bff5ae9f6709a39cbcf (patch) | |
tree | 7213de53b91b9a42654da4d4988ed6d1676c3be2 /net/ethtool | |
parent | 72a0b329114b1caa8e69dfa7cdad1dd3c69b8602 (diff) | |
download | linux-5c835bb142d4013c2ab24bff5ae9f6709a39cbcf.tar.gz linux-5c835bb142d4013c2ab24bff5ae9f6709a39cbcf.tar.bz2 linux-5c835bb142d4013c2ab24bff5ae9f6709a39cbcf.zip |
mptcp: fix subflow traversal at disconnect time
At disconnect time the MPTCP protocol traverse the subflows
list closing each of them. In some circumstances - MPJ subflow,
passive MPTCP socket, the latter operation can remove the
subflow from the list, invalidating the current iterator.
Address the issue using the safe list traversing helper
variant.
Reported-by: van fantasy <g1042620637@gmail.com>
Fixes: b29fcfb54cd7 ("mptcp: full disconnect implementation")
Tested-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool')
0 files changed, 0 insertions, 0 deletions