aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorPaolo Abeni <[email protected]>2020-05-29 15:43:31 +0000
committerDavid S. Miller <[email protected]>2020-05-31 04:39:13 +0000
commitc5c79763fac115fe827ed6a18ed94fff2432f678 (patch)
tree3f1e30f2e51e151045ad9ca2e90f9af1c6c1bd7c /scripts/mod/file2alias.c
parentmptcp: fix race between MP_JOIN and close (diff)
downloadkernel-c5c79763fac115fe827ed6a18ed94fff2432f678.tar.gz
kernel-c5c79763fac115fe827ed6a18ed94fff2432f678.zip
mptcp: remove msk from the token container at destruction time.
Currently we remote the msk from the token container only via mptcp_close(). The MPTCP master socket can be destroyed also via other paths (e.g. if not yet accepted, when shutting down the listener socket). When we hit the latter scenario, dangling msk references are left into the token container, leading to memory corruption and/or UaF. This change addresses the issue by moving the token removal into the msk destructor. Fixes: 79c0949e9a09 ("mptcp: Add key generation and token tree") Signed-off-by: Paolo Abeni <[email protected]> Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions