The patch titled Subject: proc: fix mount -t proc -o AAA has been removed from the -mm tree. Its filename was proc-fix-mount-t-proc-o-aaa.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ From: Vasiliy Kulikov <segoon@xxxxxxxxxxxx> Subject: proc: fix mount -t proc -o AAA The proc_parse_options() call from proc_mount() runs only once at boot time. So on any later mount attempt, any mount options are ignored because ->s_root is already initialized. As a consequence, "mount -o <options>" will ignore the options. The only way to change mount options is "mount -o remount,<options>". To fix this, parse the mount options unconditionally. Signed-off-by: Vasiliy Kulikov <segoon@xxxxxxxxxxxx> Reported-by: Arkadiusz Miskiewicz <a.miskiewicz@xxxxxxxxx> Tested-by: Arkadiusz Miskiewicz <a.miskiewicz@xxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Valdis Kletnieks <Valdis.Kletnieks@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/root.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff -puN fs/proc/root.c~proc-fix-mount-t-proc-o-aaa fs/proc/root.c --- a/fs/proc/root.c~proc-fix-mount-t-proc-o-aaa +++ a/fs/proc/root.c @@ -115,12 +115,13 @@ static struct dentry *proc_mount(struct if (IS_ERR(sb)) return ERR_CAST(sb); + if (!proc_parse_options(options, ns)) { + deactivate_locked_super(sb); + return ERR_PTR(-EINVAL); + } + if (!sb->s_root) { sb->s_flags = flags; - if (!proc_parse_options(options, ns)) { - deactivate_locked_super(sb); - return ERR_PTR(-EINVAL); - } err = proc_fill_super(sb); if (err) { deactivate_locked_super(sb); _ Patches currently in -mm which might be from segoon@xxxxxxxxxxxx are origin.patch arch-arm-mach-ux500-mbox-db5500c-world-writable-sysfs-fifo-file.patch syscalls-x86-add-__nr_kcmp-syscall-v8.patch c-r-procfs-add-arg_start-end-env_start-end-and-exit_code-members-to-proc-pid-stat.patch c-r-prctl-extend-pr_set_mm-to-set-up-more-mm_struct-entries-v2.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html