linux/fs/overlayfs
Amir Goldstein 37f32f5264 ovl: fix memory leak in ovl_parse_param()
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>
2023-11-14 08:09:36 +02:00
..
2023-10-31 00:12:59 +02:00
2023-10-31 00:12:55 +02:00
2023-11-07 11:46:31 -08:00
2023-11-14 08:09:36 +02:00
2023-10-31 00:12:59 +02:00