The patch titled Subject: proc: fix mount -t proc -o AAA has been added to the -mm tree. Its filename is proc-fix-mount-t-proc-o-aaa.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ 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 remount,<options>" will ignore the options. To fix this, parse the mount options unconditionally. Signed-off-by: Vasiliy Kulikov <segoon@xxxxxxxxxxxx> Reported-by: Arkadiusz Miskiewicz <a.miskiewicz@xxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> 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); _ Subject: Subject: proc: fix mount -t proc -o AAA Patches currently in -mm which might be from segoon@xxxxxxxxxxxx are proc-fix-mount-t-proc-o-aaa.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