Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squash-to: "mptcp: give rcvlowat some love"
Christoph reported a couple of serious splat caused by the mentioned patch. mptcp_set_rcvlowat() can use msk->scaling_ratio, before such field is initialized, causing a divide by zero: we need to init it in the sock constructor. Additionally the same function bogusly cast an msk to a tcp_sock, causing memory corruption. The reproducer likely clears the sk refcount for the next msk allocated into the same slab. The intent was to properly propagate the rcvbuf changes to the subflows. Let's do that explicitly. Signed-off-by: Paolo Abeni <[email protected]> -- Closes: multipath-tcp/mptcp_net-next#442 Closes: multipath-tcp/mptcp_net-next#443 since the above issues are introduced by the squash-to patch, I think we can't have the tag in the final patch. v1 -> v2: - use scaling_ratio define (Mat)
- Loading branch information