]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netlabel: If PF_INET6, check sk_buff ip header version
authorRichard Haines <richard_c_haines@btinternet.com>
Mon, 13 Nov 2017 20:54:22 +0000 (20:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:50:51 +0000 (07:50 +0200)
commitf806ed5cfac6bbd23bd223b4b6e3d8dd1f71838a
tree9b9eaca8ab5892ee644e9369af20b502d197671e
parent66380cb5b98fd7ec5a4e774f755156d8d88fc33b
netlabel: If PF_INET6, check sk_buff ip header version

[ Upstream commit 213d7f94775322ba44e0bbb55ec6946e9de88cea ]

When resolving a fallback label, check the sk_buff version as it
is possible (e.g. SCTP) to have family = PF_INET6 while
receiving ip_hdr(skb)->version = 4.

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netlabel/netlabel_unlabeled.c