linux/fs/exfat
Daniel Yang c290fe508e exfat: resolve memory leak from exfat_create_upcase_table()
If exfat_load_upcase_table reaches end and returns -EINVAL,
allocated memory doesn't get freed and while
exfat_load_default_upcase_table allocates more memory, leading to a
memory leak.

Here's link to syzkaller crash report illustrating this issue:
https://syzkaller.appspot.com/text?tag=CrashReport&x=1406c201980000

Reported-by: syzbot+e1c69cadec0f1a078e3d@syzkaller.appspotmail.com
Fixes: a13d1a4de3 ("exfat: move freeing sbi, upcase table and dropping nls into rcu-delayed helper")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Yang <danielyangkang@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
2024-09-23 21:38:13 +09:00
..
balloc.c exfat: fix memory leak in exfat_load_bitmap() 2024-09-18 07:40:58 +09:00
cache.c mm, slab: remove last vestiges of SLAB_MEM_SPREAD 2024-03-12 20:32:19 -07:00
dir.c exfat: fix potential deadlock on __exfat_get_dentry_set 2024-07-15 21:44:28 +09:00
exfat_fs.h exfat: Implement sops->shutdown and ioctl 2024-09-18 07:40:56 +09:00
exfat_raw.h exfat: add ioctls for accessing attributes 2023-10-31 10:00:51 +09:00
fatent.c exfat: fix the newly allocated clusters are not freed in error handling 2023-02-28 20:01:40 +09:00
file.c exfat: move extend valid_size into ->page_mkwrite() 2024-09-23 21:38:11 +09:00
inode.c exfat: Implement sops->shutdown and ioctl 2024-09-18 07:40:56 +09:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile
misc.c exfat: convert to new timestamp accessors 2023-10-18 13:26:21 +02:00
namei.c exfat: Implement sops->shutdown and ioctl 2024-09-18 07:40:56 +09:00
nls.c exfat: resolve memory leak from exfat_create_upcase_table() 2024-09-23 21:38:13 +09:00
super.c exfat: Implement sops->shutdown and ioctl 2024-09-18 07:40:56 +09:00