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]> --- fs/nfs/fs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c index 25c3162565d8..23ee2be3dc6c 100644 --- a/fs/nfs/fs_context.c +++ b/fs/nfs/fs_context.c @@ -1592,7 +1592,7 @@ static int nfs_init_fs_context(struct fs_context *fc) { struct nfs_fs_context *ctx; - if (!(get_exec_env()->features & VE_FEATURE_NFS)) + if (!(get_exec_env() && get_exec_env()->features & VE_FEATURE_NFS)) return -ENODEV; ctx = kzalloc(sizeof(struct nfs_fs_context), GFP_KERNEL); -- 2.47.1 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
