Patch "mptcp: more accurate NL event generation" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mptcp: more accurate NL event generation

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mptcp-more-accurate-nl-event-generation.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 21d9b73a7d5241905367098d260a3c68b811da32 Mon Sep 17 00:00:00 2001
From: Paolo Abeni <pabeni@xxxxxxxxxx>
Date: Tue, 25 Jul 2023 11:34:56 -0700
Subject: mptcp: more accurate NL event generation

From: Paolo Abeni <pabeni@xxxxxxxxxx>

commit 21d9b73a7d5241905367098d260a3c68b811da32 upstream.

Currently the mptcp code generate a "new listener" event even
if the actual listen() syscall fails. Address the issue moving
the event generation call under the successful branch.

Cc: stable@xxxxxxxxxxxxxxx
Fixes: f8c9dfbd875b ("mptcp: add pm listener events")
Reviewed-by: Mat Martineau <martineau@xxxxxxxxxx>
Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx>
Signed-off-by: Mat Martineau <martineau@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20230725-send-net-20230725-v1-2-6f60fe7137a9@xxxxxxxxxx
Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 net/mptcp/protocol.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -3717,10 +3717,9 @@ static int mptcp_listen(struct socket *s
 	if (!err) {
 		sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1);
 		mptcp_copy_inaddrs(sk, ssock->sk);
+		mptcp_event_pm_listener(ssock->sk, MPTCP_EVENT_LISTENER_CREATED);
 	}
 
-	mptcp_event_pm_listener(ssock->sk, MPTCP_EVENT_LISTENER_CREATED);
-
 unlock:
 	release_sock(sk);
 	return err;


Patches currently in stable-queue which might be from pabeni@xxxxxxxxxx are

queue-6.4/octeontx2-af-fix-hash-extraction-enable-configuratio.patch
queue-6.4/team-reset-team-s-flags-when-down-link-is-p2p-device.patch
queue-6.4/vxlan-fix-gro-with-vxlan-gpe.patch
queue-6.4/net-stmmac-apply-redundant-write-work-around-on-4.xx.patch
queue-6.4/selftests-mptcp-join-only-check-for-ip6tables-if-needed.patch
queue-6.4/tipc-stop-tipc-crypto-on-failure-in-tipc_node_create.patch
queue-6.4/mptcp-more-accurate-nl-event-generation.patch
queue-6.4/bonding-reset-bond-s-flags-when-down-link-is-p2p-dev.patch
queue-6.4/benet-fix-return-value-check-in-be_lancer_xmit_worka.patch
queue-6.4/tipc-check-return-value-of-pskb_trim.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux