mirror_ubuntu-kernels/fs/ntfs3
Namjae Jeon 6880e6ca87 fs/ntfs3: Fix invalid free in log_replay
BugLink: https://bugs.launchpad.net/bugs/1981864

commit f26967b9f7 upstream.

log_read_rst() returns ENOMEM error when there is not enough memory.
In this case, if info is returned without initialization,
it attempts to kfree the uninitialized info->r_page pointer. This patch
moves the memset initialization code to before log_read_rst() is called.

Reported-by: Gerald Lee <sundaywind2004@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-08-10 09:25:32 +02:00
..
lib
attrib.c
attrlist.c
bitfunc.c
bitmap.c
debug.h
dir.c
file.c
frecord.c
fslog.c
fsntfs.c
index.c
inode.c
Kconfig
lznt.c
Makefile
namei.c
ntfs_fs.h
ntfs.h
record.c
run.c
super.c
upcase.c fs/ntfs3: Change right headers to upcase.c 2021-09-13 19:41:45 +03:00
xattr.c