]> git.hungrycats.org Git - linux/commit
ipv6: sr: fix possible use-after-free and null-ptr-deref
authorVasiliy Kovalev <kovalev@altlinux.org>
Thu, 15 Feb 2024 20:27:17 +0000 (23:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:21:59 +0000 (13:21 +0100)
commit91b020aaa1e59bfb669d34c968e3db3d5416bcee
treee50f8bc038054f2a4b1da7a4e4f8d913f7303647
parente56662160fc24d28cb75ac095cc6415ae1bda43e
ipv6: sr: fix possible use-after-free and null-ptr-deref

[ Upstream commit 5559cea2d5aa3018a5f00dd2aca3427ba09b386b ]

The pernet operations structure for the subsystem must be registered
before registering the generic netlink family.

Fixes: 915d7e5e5930 ("ipv6: sr: add code base for control plane support of SR-IPv6")
Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
Link: https://lore.kernel.org/r/20240215202717.29815-1-kovalev@altlinux.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/seg6.c