adding missing rcu_read_unlock in ipxip6_rcv
Subsystems (3)
PATCH v2 1/1 adding missing rcu_read_unlock in ipxip6_rcv
commit 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels") introduced new exit point in ipxip6_rcv. however rcu_read_unlock is missing there. this diff is fixing this
v1->v2:
instead of doing rcu_read_unlock in place, we are going to "drop" section (to prevent skb leakage)
--- net/ipv6/ip6_tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/ip6_tunnel.c +1 -1
@@ -904,7 +904,7 @@ static int ipxip6_rcv(struct sk_buff *skb, u8 ipproto,if (t->parms.collect_md) { tun_dst =ipv6_tun_rx_dst (skb,0 ,0 ,0 );if (!tun_dst) -return 0 ; + goto drop; } ret =__ip6_tnl_rcv (t, skb, tpi, tun_dst, dscp_ecn_decapsulate, log_ecn_error);
Signature · 1 line
2.9.5
Quoted 9 lines · Nikita V. Shirokov
commit
8d79266bc48c("ip6_tunnel: addcollect_mdmode to IPv6 tunnels") introduced new exit point inipxip6_rcv. howeverrcu_read_unlockis missing there. this diff is fixing this
v1->v2:
instead of doingrcu_read_unlockin place, we are going to "drop" section (to prevent skb leakage)Signed-off-by Nikita V. Shirokov <[email protected]>
thanks for fixing my mess.
David Miller
maintainerFrom: "Nikita V. Shirokov" <[email protected]>
Date: Wed, 6 Dec 2017 17:15:43 -0800
Quoted 9 lines
commit
8d79266bc48c("ip6_tunnel: addcollect_mdmode to IPv6 tunnels") introduced new exit point inipxip6_rcv. howeverrcu_read_unlockis missing there. this diff is fixing this
v1->v2:
instead of doingrcu_read_unlockin place, we are going to "drop" section (to prevent skb leakage)Signed-off-by Nikita V. Shirokov <[email protected]>
Applied and queued up for -stable, thanks.