Re: [PATCH net] ipv6: ip6_make_skb() needs to clear cork.base.dst

2018-01-15 Thread David Miller
From: Eric Dumazet Date: Thu, 11 Jan 2018 22:31:18 -0800 > From: Eric Dumazet > > In my last patch, I missed fact that cork.base.dst was not initialized > in ip6_make_skb() : > > If ip6_setup_cork() returns an error, we might attempt a dst_release() > on some random pointer. > > Fixes: 862c03

[PATCH net] ipv6: ip6_make_skb() needs to clear cork.base.dst

2018-01-11 Thread Eric Dumazet
From: Eric Dumazet In my last patch, I missed fact that cork.base.dst was not initialized in ip6_make_skb() : If ip6_setup_cork() returns an error, we might attempt a dst_release() on some random pointer. Fixes: 862c03ee1deb ("ipv6: fix possible mem leaks in ipv6_make_skb()") Signed-off-by: Eri