Patch "netfilter: Use flowlabel flow key when re-routing mangled packets" has been added to the 5.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

    netfilter: Use flowlabel flow key when re-routing mangled packets

to the 5.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:
     netfilter-use-flowlabel-flow-key-when-re-routing-man.patch
and it can be found in the queue-5.4 subdirectory.

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



commit 5f1d40bcae0284f18f12ef76a33ef216281bb3a0
Author: Florian Westphal <fw@xxxxxxxxx>
Date:   Thu Jun 6 12:23:31 2024 +0200

    netfilter: Use flowlabel flow key when re-routing mangled packets
    
    [ Upstream commit 6f8f132cc7bac2ac76911e47d5baa378aafda4cb ]
    
    'ip6 dscp set $v' in an nftables outpute route chain has no effect.
    While nftables does detect the dscp change and calls the reroute hook.
    But ip6_route_me_harder never sets the dscp/flowlabel:
    flowlabel/dsfield routing rules are ignored and no reroute takes place.
    
    Thanks to Yi Chen for an excellent reproducer script that I used
    to validate this change.
    
    Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
    Reported-by: Yi Chen <yiche@xxxxxxxxxx>
    Signed-off-by: Florian Westphal <fw@xxxxxxxxx>
    Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c
index ab9a279dd6d47..ef06d248c3c3d 100644
--- a/net/ipv6/netfilter.c
+++ b/net/ipv6/netfilter.c
@@ -35,6 +35,7 @@ int ip6_route_me_harder(struct net *net, struct sock *sk_partial, struct sk_buff
 		.flowi6_uid = sock_net_uid(net, sk),
 		.daddr = iph->daddr,
 		.saddr = iph->saddr,
+		.flowlabel = ip6_flowinfo(iph),
 	};
 	int err;
 




[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