[Devel] [PATCH RHEL10 COMMIT] fixup! ve/sunrpc: Prohibit mounting rpc_pipefs in CT without nfsd feature
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jun 5 21:32:03 MSK 2026
The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit 3b4dec301a7ff8f904deeb77385d8d43cbaf5950
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
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 <vladimir.riabchun at virtuozzo.com>
Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
---
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);
More information about the Devel
mailing list