aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorPaolo Abeni <[email protected]>2022-02-18 13:35:41 -0800
committerDavid S. Miller <[email protected]>2022-02-19 12:28:00 +0000
commit837cf45df163a3780bc04b555700231e95b31dc9 (patch)
treef059a95f02bfad5cb1929eda0a3e26f0aca1bb94 /lib/test_overflow.c
parent98247bc16a27cf8ead4c47ce9f15888be85841fc (diff)
mptcp: fix race in incoming ADD_ADDR option processing
If an MPTCP endpoint received multiple consecutive incoming ADD_ADDR options, mptcp_pm_add_addr_received() can overwrite the current remote address value after the PM lock is released in mptcp_pm_nl_add_addr_received() and before such address is echoed. Fix the issue caching the remote address value a little earlier and always using the cached value after releasing the PM lock. Fixes: f7efc7771eac ("mptcp: drop argument port from mptcp_pm_announce_addr") Reviewed-by: Matthieu Baerts <[email protected]> Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions