diff options
author | Mat Martineau <martineau@kernel.org> | 2025-04-21 20:07:13 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-04-24 02:27:58 +0300 |
commit | 13b4ece33cf9def67966bb8716783c42cec20617 (patch) | |
tree | 4e6418f69658d4f5f5ea44ae775f7450970059c4 /scripts/gdb/linux/tasks.py | |
parent | 491ef1117c56476f199b481f8c68820fe4c3a7c2 (diff) | |
download | linux-13b4ece33cf9def67966bb8716783c42cec20617.tar.xz |
mptcp: pm: Defer freeing of MPTCP userspace path manager entries
When path manager entries are deleted from the local address list, they
are first unlinked from the address list using list_del_rcu(). The
entries must not be freed until after the RCU grace period, but the
existing code immediately frees the entry.
Use kfree_rcu_mightsleep() and adjust sk_omem_alloc in open code instead
of using the sock_kfree_s() helper. This code path is only called in a
netlink handler, so the "might sleep" function is preferable to adding
a rarely-used rcu_head member to struct mptcp_pm_addr_entry.
Fixes: 88d097316371 ("mptcp: drop free_list for deleting entries")
Cc: stable@vger.kernel.org
Signed-off-by: Mat Martineau <martineau@kernel.org>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250421-net-mptcp-pm-defer-freeing-v1-1-e731dc6e86b9@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions