Commit c1662fc5 authored by Miklos Szeredi's avatar Miklos Szeredi Committed by Laibin Qiu
Browse files

ovl: fix uninitialized pointer read in ovl_lookup_real_one()

mainline inclusion
from mainline-v5.14-rc6
commit 580c6104
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I51PNB


CVE: NA

--------------------------------

One error path can result in release_dentry_name_snapshot() being called
before "name" was initialized by take_dentry_name_snapshot().

Fix by moving the release_dentry_name_snapshot() to immediately after the
only use.

Reported-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>

conflicts:
	fs/overlayfs/export.c
Signed-off-by: default avatarZheng Liang <zhengliang6@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent b453e4a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment