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

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



commit 8d3107f103d3a4742e730c313539e21cb6370af4
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 5679fa3f696ad..abdb020dd338e 100644
--- a/net/ipv6/netfilter.c
+++ b/net/ipv6/netfilter.c
@@ -32,6 +32,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