Skip to content
Commit d5e72c4e authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: fix lost error code reporting in __ext4_fill_super()



When code was factored out of __ext4_fill_super() into
ext4_percpu_param_init() the error return was discarded.  This meant
that it was possible for __ext4_fill_super() to return zero,
indicating success, without the struct super getting completely filled
in, leading to a potential NULL pointer dereference.

Reported-by: default avatar <syzbot+bbf0f9a213c94f283a5c@syzkaller.appspotmail.com>
Fixes: 1f79467c ("ext4: factor out ext4_percpu_param_init() ...")
Link: https://syzkaller.appspot.com/bug?id=6dac47d5e58af770c0055f680369586ec32e144c


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarJason Yan <yanaijie@huawei.com>
parent 856dd6c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment