diff --git a/fs/namespace.c b/fs/namespace.c index 43b16af8af30910fbc9463f5f57fdf697b0e4e7f..15d0328bd03575c13e26fcab505b15c7b1e8ebfd 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -3011,6 +3011,7 @@ static void __init init_mount_tree(void) root.mnt = mnt; root.dentry = mnt->mnt_root; + mnt->mnt_flags |= MNT_LOCKED; set_fs_pwd(current->fs, &root); set_fs_root(current->fs, &root);