]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mptcp: deliver ssk errors to msk
authorPaolo Abeni <pabeni@redhat.com>
Thu, 11 Feb 2021 23:30:37 +0000 (15:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 02:30:54 +0000 (18:30 -0800)
commit15cc10453398c22f78f6c2b897119ecce5e5dd89
treeeb5925d681a0008aac09fd22c79e7939299b553a
parent4c0d2e96ba055bd8911bb8287def4f8ebbad15b6
mptcp: deliver ssk errors to msk

Currently all errors received on msk subflows are ignored.
We need to catch at least the errors on connect() and
on fallback sockets.

Use a custom sk_error_report callback at subflow level,
and do the real action under the msk socket lock - via
the usual sock_owned_by_user()/release_callback() schema.

Fixes: 6e628cd3a8f7 ("mptcp: use mptcp release_cb for delayed tasks")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c