diff options
author | Geliang Tang <tanggeliang@kylinos.cn> | 2024-11-12 20:18:34 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-13 18:51:02 -0800 |
commit | f642c5c4d528d11bd78b6c6f84f541cd3c0bea86 (patch) | |
tree | 7564b03c3aa1791683765847ad0e34378ad5fe97 /net/mptcp/pm_netlink.c | |
parent | e0266319413d5d687ba7b6df7ca99e4b9724a4f2 (diff) |
mptcp: hold pm lock when deleting entry
When traversing userspace_pm_local_addr_list and deleting an entry from
it in mptcp_pm_nl_remove_doit(), msk->pm.lock should be held.
This patch holds this lock before mptcp_userspace_pm_lookup_addr_by_id()
and releases it after list_move() in mptcp_pm_nl_remove_doit().
Fixes: d9a4594edabf ("mptcp: netlink: Add MPTCP_PM_CMD_REMOVE")
Cc: stable@vger.kernel.org
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20241112-net-mptcp-misc-6-12-pm-v1-2-b835580cefa8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mptcp/pm_netlink.c')
0 files changed, 0 insertions, 0 deletions