summaryrefslogtreecommitdiffstats
path: root/net/mptcp/subflow.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2024-02-15 19:25:30 +0100
committerDavid S. Miller <davem@davemloft.net>2024-02-18 10:25:00 +0000
commitb8adb69a7d29c2d33eb327bca66476fb6066516b (patch)
treea98360de04a6847ef8b2504b1c42f2fca321827d /net/mptcp/subflow.c
parent584f3894262634596532cf43a5e782e34a0ce374 (diff)
downloadlinux-stable-b8adb69a7d29c2d33eb327bca66476fb6066516b.tar.gz
linux-stable-b8adb69a7d29c2d33eb327bca66476fb6066516b.tar.bz2
linux-stable-b8adb69a7d29c2d33eb327bca66476fb6066516b.zip
mptcp: fix lockless access in subflow ULP diag
Since the introduction of the subflow ULP diag interface, the dump callback accessed all the subflow data with lockless. We need either to annotate all the read and write operation accordingly, or acquire the subflow socket lock. Let's do latter, even if slower, to avoid a diffstat havoc. Fixes: 5147dfb50832 ("mptcp: allow dumping subflow context to userspace") Cc: stable@vger.kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/subflow.c')
0 files changed, 0 insertions, 0 deletions