]> git.karo-electronics.de Git - karo-tx-linux.git/commit
proc: fix mount -t proc -o AAA
authorVasiliy Kulikov <segoon@openwall.com>
Wed, 4 Apr 2012 00:07:54 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Apr 2012 03:07:14 +0000 (13:07 +1000)
commit6fd5d1fc9085434a36300982e4fd620808d0e66a
treedd26b9a8aa277d872d925c29abb2888df85dd769
parentc690c12b0bf66ecfcab9b3a01177c18cbaa40fdd
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@openwall.com>
Reported-by: Arkadiusz Miskiewicz <a.miskiewicz@gmail.com>
Tested-by: Arkadiusz Miskiewicz <a.miskiewicz@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/root.c