The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit 3b4dec301a7ff8f904deeb77385d8d43cbaf5950
Author: Vladimir Riabchun <[email protected]>
Date: Tue Jun 2 21:10:28 2026 +0000
fixup! ve/sunrpc: Prohibit mounting rpc_pipefs in CT without nfsd feature
get_exec_env() is dereferenced without check.
https://virtuozzo.atlassian.net/browse/VSTOR-130116
Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <[email protected]>
Reviewed-by: Vasileios Almpanis <[email protected]>
---
net/sunrpc/rpc_pipe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 2fcf10fc4bcdc..208de401ea9bb 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -1437,7 +1437,7 @@ static const struct fs_context_operations
rpc_fs_context_ops = {
static int rpc_init_fs_context(struct fs_context *fc)
{
- if (!(get_exec_env()->features & VE_FEATURE_NFSD))
+ if (!(get_exec_env() && get_exec_env()->features & VE_FEATURE_NFSD))
return -ENODEV;
put_user_ns(fc->user_ns);
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel