Re: [syzbot] [efi?] [fs?] BUG: unable to handle kernel paging request in efivarfs_pm_notify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#syz test:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci

--- a/fs/efivarfs/super.c
+++ b/fs/efivarfs/super.c
@@ -367,6 +367,8 @@ static int efivarfs_fill_super(struct super_block
*sb, struct fs_context *fc)
        if (err)
                return err;

+       register_pm_notifier(&sfi->pm_nb);
+
        return efivar_init(efivarfs_callback, sb, true);
 }

@@ -552,7 +554,6 @@ static int efivarfs_init_fs_context(struct fs_context *fc)

        sfi->pm_nb.notifier_call = efivarfs_pm_notify;
        sfi->pm_nb.priority = 0;
-       register_pm_notifier(&sfi->pm_nb);

        return 0;
 }




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux