Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace

Pull namespace bugfixes from Eric Biederman:
"This tree includes a partial revert for "fs: Limit sys_mount to only
request filesystem modules." When I added the new style module aliases
to the filesystems I deleted the old ones. A bad move. It turns out
that distributions like Arch linux use module aliases when
constructing ramdisks. Which meant ultimately that an ext3 filesystem
mounted with ext4 would not result in the ext4 module being put into
the ramdisk.

The other change in this tree adds a handful of filesystem module
alias I simply failed to add the first time. Which inconvinienced a
few folks using cifs.

I don't want to inconvinience folks any longer than I have to so here
are these trivial fixes."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
fs: Readd the fs module aliases.
fs: Limit sys_mount to only request filesystem modules. (Part 3)

+12
+1
fs/cifs/cifsfs.c
··· 777 777 .kill_sb = cifs_kill_sb, 778 778 /* .fs_flags */ 779 779 }; 780 + MODULE_ALIAS_FS("cifs"); 780 781 const struct inode_operations cifs_dir_inode_ops = { 781 782 .create = cifs_create, 782 783 .atomic_open = cifs_atomic_open,
+2
fs/ext4/super.c
··· 91 91 .fs_flags = FS_REQUIRES_DEV, 92 92 }; 93 93 MODULE_ALIAS_FS("ext2"); 94 + MODULE_ALIAS("ext2"); 94 95 #define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type) 95 96 #else 96 97 #define IS_EXT2_SB(sb) (0) ··· 107 106 .fs_flags = FS_REQUIRES_DEV, 108 107 }; 109 108 MODULE_ALIAS_FS("ext3"); 109 + MODULE_ALIAS("ext3"); 110 110 #define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type) 111 111 #else 112 112 #define IS_EXT3_SB(sb) (0)
+1
fs/freevxfs/vxfs_super.c
··· 258 258 .fs_flags = FS_REQUIRES_DEV, 259 259 }; 260 260 MODULE_ALIAS_FS("vxfs"); /* makes mount -t vxfs autoload the module */ 261 + MODULE_ALIAS("vxfs"); 261 262 262 263 static int __init 263 264 vxfs_init(void)
+1
fs/hostfs/hostfs_kern.c
··· 986 986 .kill_sb = hostfs_kill_sb, 987 987 .fs_flags = 0, 988 988 }; 989 + MODULE_ALIAS_FS("hostfs"); 989 990 990 991 static int __init init_hostfs(void) 991 992 {
+1
fs/hpfs/super.c
··· 688 688 .kill_sb = kill_block_super, 689 689 .fs_flags = FS_REQUIRES_DEV, 690 690 }; 691 + MODULE_ALIAS_FS("hpfs"); 691 692 692 693 static int __init init_hpfs_fs(void) 693 694 {
+1
fs/isofs/inode.c
··· 1557 1557 .fs_flags = FS_REQUIRES_DEV, 1558 1558 }; 1559 1559 MODULE_ALIAS_FS("iso9660"); 1560 + MODULE_ALIAS("iso9660"); 1560 1561 1561 1562 static int __init init_iso9660_fs(void) 1562 1563 {
+1
fs/nfs/super.c
··· 335 335 .fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA, 336 336 }; 337 337 MODULE_ALIAS_FS("nfs4"); 338 + MODULE_ALIAS("nfs4"); 338 339 EXPORT_SYMBOL_GPL(nfs4_fs_type); 339 340 340 341 static int __init register_nfs4_fs(void)
+1
fs/squashfs/super.c
··· 489 489 .kill_sb = kill_block_super, 490 490 .fs_flags = FS_REQUIRES_DEV 491 491 }; 492 + MODULE_ALIAS_FS("squashfs"); 492 493 493 494 static const struct super_operations squashfs_super_ops = { 494 495 .alloc_inode = squashfs_alloc_inode,
+1
fs/sysv/super.c
··· 555 555 .fs_flags = FS_REQUIRES_DEV, 556 556 }; 557 557 MODULE_ALIAS_FS("v7"); 558 + MODULE_ALIAS("v7"); 558 559 559 560 static int __init init_sysv_fs(void) 560 561 {
+1
fs/udf/super.c
··· 118 118 .kill_sb = kill_block_super, 119 119 .fs_flags = FS_REQUIRES_DEV, 120 120 }; 121 + MODULE_ALIAS_FS("udf"); 121 122 122 123 static struct kmem_cache *udf_inode_cachep; 123 124
+1
net/sunrpc/rpc_pipe.c
··· 1175 1175 .kill_sb = rpc_kill_sb, 1176 1176 }; 1177 1177 MODULE_ALIAS_FS("rpc_pipefs"); 1178 + MODULE_ALIAS("rpc_pipefs"); 1178 1179 1179 1180 static void 1180 1181 init_once(void *foo)