]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: ip6_finish_output2: set sk into newly allocated nskb
authorVasily Averin <vvs@virtuozzo.com>
Mon, 19 Jul 2021 07:55:14 +0000 (10:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Jul 2021 06:13:47 +0000 (08:13 +0200)
commitf2cd12e7fd48d2ba95e5b7646d37c9f0ad57e3d3
tree349cb99b99c3183e877bc8fc391764205db669b0
parent0f448675132aaca2a063cee1988063967f84c215
ipv6: ip6_finish_output2: set sk into newly allocated nskb

[ Upstream commit 2d85a1b31dde84038ea07ad825c3d8d3e71f4344 ]

skb_set_owner_w() should set sk not to old skb but to new nskb.

Fixes: 5796015fa968 ("ipv6: allocate enough headroom in ip6_finish_output2()")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Link: https://lore.kernel.org/r/70c0744f-89ae-1869-7e3e-4fa292158f4b@virtuozzo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/ip6_output.c