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]> --- 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 2fcf10fc4bcd..208de401ea9b 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); -- 2.47.1 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
