]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix memory leak in ext4_mb_init_backend on error path.
authorPhillip Potter <phil@philpotter.co.uk>
Mon, 12 Apr 2021 07:38:37 +0000 (08:38 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 May 2021 03:29:32 +0000 (23:29 -0400)
commit387916fb206718f489894dba4098768f0a594ca8
treeb6c370b11951a46ab261864093a5458f487aa402
parentb5d95d79296e21d0a9dfe638485990f83c952e23
ext4: fix memory leak in ext4_mb_init_backend on error path.

Fix a memory leak discovered by syzbot when a file system is corrupted
with an illegally large s_log_groups_per_flex.

Reported-by: syzbot+aa12d6106ea4ca1b6aae@syzkaller.appspotmail.com
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20210412073837.1686-1-phil@philpotter.co.uk
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c