+5
−6
Loading
stable inclusion from stable-v6.6.30 commit be9857a4d280bc5d6f9fdfc134918a7f13dda9ae bugzilla: https://gitee.com/openeuler/kernel/issues/I9MPZ8 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=be9857a4d280bc5d6f9fdfc134918a7f13dda9ae -------------------------------- commit 37f32f52643869131ec01bb69bdf9f404f6109fb upstream. On failure to parse parameters in ovl_parse_param_lowerdir(), it is necessary to update ctx->nr with the correct nr before using ovl_reset_lowerdirs() to release l->name. Reported-and-tested-by:<syzbot+26eedf3631650972f17c@syzkaller.appspotmail.com> Fixes: c835110b588a ("ovl: remove unused code in lowerdir param parsing") Co-authored-by:
Edward Adam Davis <eadavis@qq.com> Signed-off-by:
Amir Goldstein <amir73il@gmail.com> Signed-off-by:
Jingbo Xu <jefflexu@linux.alibaba.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
ZhangPeng <zhangpeng362@huawei.com>