]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix potential uninitialized access to retval in kmmpd
authorYe Bin <yebin10@huawei.com>
Tue, 13 Jul 2021 02:27:28 +0000 (10:27 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 Jul 2021 11:31:29 +0000 (07:31 -0400)
commite631fedcae89d952234b45da7b4ce792fb5a5ace
treea77165579a22e732bfbf9e28a55a5ffdba51a142
parent1f1666416de944b8eb5f4b7888ec514f1a2fe178
ext4: fix potential uninitialized access to retval in kmmpd

if (!ext4_has_feature_mmp(sb)) then retval can be unitialized before
we jump to the wait_to_exit label.

Fixes: 7f7f86c4b6d7 ("ext4: fix possible UAF when remounting r/o a mmp-protected file system")
Signed-off-by: Ye Bin <yebin10@huawei.com>
Link: https://lore.kernel.org/r/20210713022728.2533770-1-yebin10@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mmp.c