Patch "net: dsa: tag_ocelot_8021q: fix broken reception" has been added to the 6.12-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

    net: dsa: tag_ocelot_8021q: fix broken reception

to the 6.12-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:
     net-dsa-tag_ocelot_8021q-fix-broken-reception.patch
and it can be found in the queue-6.12 subdirectory.

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



commit 39b5875d28493f0b59b73588675c8f9a398d68d8
Author: Robert Hodaszi <robert.hodaszi@xxxxxxxx>
Date:   Wed Dec 11 15:47:41 2024 +0100

    net: dsa: tag_ocelot_8021q: fix broken reception
    
    [ Upstream commit 36ff681d2283410742489ce77e7b01419eccf58c ]
    
    The blamed commit changed the dsa_8021q_rcv() calling convention to
    accept pre-populated source_port and switch_id arguments. If those are
    not available, as in the case of tag_ocelot_8021q, the arguments must be
    pre-initialized with -1.
    
    Due to the bug of passing uninitialized arguments in tag_ocelot_8021q,
    dsa_8021q_rcv() does not detect that it needs to populate the
    source_port and switch_id, and this makes dsa_conduit_find_user() fail,
    which leads to packet loss on reception.
    
    Fixes: dcfe7673787b ("net: dsa: tag_sja1105: absorb logic for not overwriting precise info into dsa_8021q_rcv()")
    Signed-off-by: Robert Hodaszi <robert.hodaszi@xxxxxxxx>
    Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
    Link: https://patch.msgid.link/20241211144741.1415758-1-robert.hodaszi@xxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/dsa/tag_ocelot_8021q.c b/net/dsa/tag_ocelot_8021q.c
index 8e8b1bef6af6..11ea8cfd6266 100644
--- a/net/dsa/tag_ocelot_8021q.c
+++ b/net/dsa/tag_ocelot_8021q.c
@@ -79,7 +79,7 @@ static struct sk_buff *ocelot_xmit(struct sk_buff *skb,
 static struct sk_buff *ocelot_rcv(struct sk_buff *skb,
 				  struct net_device *netdev)
 {
-	int src_port, switch_id;
+	int src_port = -1, switch_id = -1;
 
 	dsa_8021q_rcv(skb, &src_port, &switch_id, NULL, NULL);
 




[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