From: Zhihao Cheng chengzhihao1@huawei.com
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAGHK5 CVE: NA
Reference: https://lore.kernel.org/linux-unionfs/20240705011510.794025-1-chengzhihao1@h...
--------------------------------
Add '\n' for pr_err in function ovl_parse_param_lowerdir(), which ensures that error message is displayed at once.
Fixes: b36a5780cb44 ("ovl: modify layer parameter parsing") Signed-off-by: Zhihao Cheng chengzhihao1@huawei.com Signed-off-by: Zhihao Cheng chengzhihao@huaweicloud.com --- fs/overlayfs/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/overlayfs/params.c b/fs/overlayfs/params.c index 39919a10ce1c..3c613dfed689 100644 --- a/fs/overlayfs/params.c +++ b/fs/overlayfs/params.c @@ -497,7 +497,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc) * there are no data layers. */ if (ctx->nr_data > 0) { - pr_err("regular lower layers cannot follow data lower layers"); + pr_err("regular lower layers cannot follow data lower layers\n"); goto out_err; }