[RFC PATCH v3] ipvs: Defer ip_vs_ftp unregister during netns cleanup

2025-09-20 Thread Slavin Liu
3e2 ("IPVS: netns, add basic init per netns.") Suggested-by: Julian Anastasov Signed-off-by: Slavin Liu --- net/netfilter/ipvs/ip_vs_ftp.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c index

[PATCH v4] ipvs: Defer ip_vs_ftp unregister during netns cleanup

2025-09-11 Thread Slavin Liu
uot;IPVS: netns, add basic init per netns.") Suggested-by: Julian Anastasov Signed-off-by: Slavin Liu --- net/netfilter/ipvs/ip_vs_ftp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c index d8a284999544.

[PATCH v2] ipvs: Check ipvs->enable before unregistration in __ip_vs_ftp_exit()

2025-09-09 Thread Slavin Liu
an Anastasov Signed-off-by: Slavin Liu --- net/netfilter/ipvs/ip_vs_ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c index d8a284999544..d3e2f7798bf3 100644 --- a/net/netfilter/ipvs/ip_vs_ftp.c +++ b/net

[PATCH 1/1] IPVS: Fix use-after-free issue in ip_vs_unbind_app()

2025-09-07 Thread Slavin Liu
impler fix is to delete ip_vs_ftp_ops->exit, and defer the unregistration of ip_vs_ftp to ip_vs_app_net_cleanup(), which will unregister all ip_vs_app. It's after ip_vs_conn_net_cleanup() so there is no uaf issue. This patch seems to solve the issue but has't been fully tested yet, and