Skip to content
Commit cb6ae457 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efivarfs: Defer PM notifier registration until .fill_super



syzbot reports an issue that turns out to be caused by the fact that the
efivarfs PM notifier may be invoked before the efivarfs_fs_info::sb
field is populated, resulting in a NULL deference.

So defer the registration until efivarfs_fill_super() is invoked.

Reported-by: default avatar <syzbot+00d13e505ef530a45100@syzkaller.appspotmail.com>
Tested-by: default avatar <syzbot+00d13e505ef530a45100@syzkaller.appspotmail.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent d6a2d02a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment