diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-09 19:51:13 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-09 19:51:13 -0500 |
| commit | 72932611b4b05bbd89fafa369d564ac8e449809b (patch) | |
| tree | 10c55c8fef383cf72059f796b82a36efae058384 | |
| parent | 8343bce195da8bb4d5a652ee085474a5cc62983f (diff) | |
| parent | db04dc679bcc780ad6907943afe24a30de974a1b (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull namespace bugfixes from Eric Biederman:
"This is three simple fixes against 3.9-rc1. I have tested each of
these fixes and verified they work correctly.
The userns oops in key_change_session_keyring and the BUG_ON triggered
by proc_ns_follow_link were found by Dave Jones.
I am including the enhancement for mount to only trigger requests of
filesystem modules here instead of delaying this for the 3.10 merge
window because it is both trivial and the kind of change that tends to
bit-rot if left untouched for two months."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
proc: Use nd_jump_link in proc_ns_follow_link
fs: Limit sys_mount to only request filesystem modules (Part 2).
fs: Limit sys_mount to only request filesystem modules.
userns: Stop oopsing in key_change_session_keyring
71 files changed, 84 insertions, 19 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index 433f5e8a2cd1..2eda28414abb 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
| @@ -619,6 +619,7 @@ static struct file_system_type pfm_fs_type = { | |||
| 619 | .mount = pfmfs_mount, | 619 | .mount = pfmfs_mount, |
| 620 | .kill_sb = kill_anon_super, | 620 | .kill_sb = kill_anon_super, |
| 621 | }; | 621 | }; |
| 622 | MODULE_ALIAS_FS("pfmfs"); | ||
| 622 | 623 | ||
| 623 | DEFINE_PER_CPU(unsigned long, pfm_syst_info); | 624 | DEFINE_PER_CPU(unsigned long, pfm_syst_info); |
| 624 | DEFINE_PER_CPU(struct task_struct *, pmu_owner); | 625 | DEFINE_PER_CPU(struct task_struct *, pmu_owner); |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 863184b182f4..3f3bb4cdbbec 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
| @@ -749,6 +749,7 @@ static struct file_system_type spufs_type = { | |||
| 749 | .mount = spufs_mount, | 749 | .mount = spufs_mount, |
| 750 | .kill_sb = kill_litter_super, | 750 | .kill_sb = kill_litter_super, |
| 751 | }; | 751 | }; |
| 752 | MODULE_ALIAS_FS("spufs"); | ||
| 752 | 753 | ||
| 753 | static int __init spufs_init(void) | 754 | static int __init spufs_init(void) |
| 754 | { | 755 | { |
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 8538015ed4a0..5f7d7ba2874c 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
| @@ -456,6 +456,7 @@ static struct file_system_type hypfs_type = { | |||
| 456 | .mount = hypfs_mount, | 456 | .mount = hypfs_mount, |
| 457 | .kill_sb = hypfs_kill_super | 457 | .kill_sb = hypfs_kill_super |
| 458 | }; | 458 | }; |
| 459 | MODULE_ALIAS_FS("s390_hypfs"); | ||
| 459 | 460 | ||
| 460 | static const struct super_operations hypfs_s_ops = { | 461 | static const struct super_operations hypfs_s_ops = { |
| 461 | .statfs = simple_statfs, | 462 | .statfs = simple_statfs, |
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index bea32d1ef7d5..fe62aa392239 100644 --- a/drivers/firmware/efivars.c +++ b/drivers/firmware/efivars.c | |||
| @@ -1289,6 +1289,7 @@ static struct file_system_type efivarfs_type = { | |||
| 1289 | .mount = efivarfs_mount, | 1289 | .mount = efivarfs_mount, |
| 1290 | .kill_sb = efivarfs_kill_sb, | 1290 | .kill_sb = efivarfs_kill_sb, |
| 1291 | }; | 1291 | }; |
| 1292 | MODULE_ALIAS_FS("efivarfs"); | ||
| 1292 | 1293 | ||
| 1293 | /* | 1294 | /* |
| 1294 | * Handle negative dentry. | 1295 | * Handle negative dentry. |
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index a479375a8fd8..e0c404bdc4a8 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
| @@ -410,6 +410,7 @@ static struct file_system_type ipathfs_fs_type = { | |||
| 410 | .mount = ipathfs_mount, | 410 | .mount = ipathfs_mount, |
| 411 | .kill_sb = ipathfs_kill_super, | 411 | .kill_sb = ipathfs_kill_super, |
| 412 | }; | 412 | }; |
| 413 | MODULE_ALIAS_FS("ipathfs"); | ||
| 413 | 414 | ||
| 414 | int __init ipath_init_ipathfs(void) | 415 | int __init ipath_init_ipathfs(void) |
| 415 | { | 416 | { |
diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index 644bd6f6467c..f247fc6e6182 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c | |||
| @@ -604,6 +604,7 @@ static struct file_system_type qibfs_fs_type = { | |||
| 604 | .mount = qibfs_mount, | 604 | .mount = qibfs_mount, |
| 605 | .kill_sb = qibfs_kill_super, | 605 | .kill_sb = qibfs_kill_super, |
| 606 | }; | 606 | }; |
| 607 | MODULE_ALIAS_FS("ipathfs"); | ||
| 607 | 608 | ||
| 608 | int __init qib_init_qibfs(void) | 609 | int __init qib_init_qibfs(void) |
| 609 | { | 610 | { |
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index 6673e578b3e9..ce5b75616b45 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
| @@ -110,6 +110,7 @@ static struct file_system_type ibmasmfs_type = { | |||
| 110 | .mount = ibmasmfs_mount, | 110 | .mount = ibmasmfs_mount, |
| 111 | .kill_sb = kill_litter_super, | 111 | .kill_sb = kill_litter_super, |
| 112 | }; | 112 | }; |
| 113 | MODULE_ALIAS_FS( | ||
