Re: [PATCH] zonefs: Fix race between modprobe and mount

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

 



On 11/20/22 02:57, Zhang Xiaoxu wrote:
> There is a race between modprobe and mount as below:
> 
>   modprobe zonefs                | mount -t zonefs
> --------------------------------|-------------------------
>   zonefs_init                    |
>    register_filesystem       [1] |
>                                  | zonefs_fill_super    [2]
>    zonefs_sysfs_init         [3] |
> 
> 1. register zonefs suceess, then
> 2. user can mount the zonefs
> 3. if sysfs initialize failed, the module initialize failed.
> 
> Then the mount process maybe some error happened since the module
> initialize failed.
> 
> Let's register zonefs after all dependency resource ready. And
> reorder the dependency resource release in module exit.
> 
> Fixes: 9277a6d4fbd4 ("zonefs: Export open zone resource information through sysfs")
> Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@xxxxxxxxxx>
> ---

Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>

-ck






[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