]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: ipset: Hold module reference while requesting a module
authorPhil Sutter <phil@nwl.cc>
Fri, 29 Nov 2024 15:30:38 +0000 (16:30 +0100)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Sun, 15 Dec 2024 16:58:02 +0000 (17:58 +0100)
commite0f7cd8480b7e92ab8521b3348db1d212699d2b7
tree5ff239fe5177595547e8ffc4986edaab726c5b2c
parent23d63a5237f7cef36bdf8aede670979a451cf7fc
netfilter: ipset: Hold module reference while requesting a module

User space may unload ip_set.ko while it is itself requesting a set type
backend module, leading to a kernel crash. The race condition may be
provoked by inserting an mdelay() right after the nfnl_unlock() call.

Fixes: a7b4f989a629 ("netfilter: ipset: IP set core support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
kernel/net/netfilter/ipset/ip_set_core.c