From: Miklos Szeredi Date: Tue, 5 Oct 2010 10:31:09 +0000 (+0200) Subject: vfs: fix infinite loop caused by clone_mnt race X-Git-Tag: v2.6.37-rc1~94^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be1a16a0ae29a7c90081a657b64aa51cb1a65a27;p=pandora-kernel.git vfs: fix infinite loop caused by clone_mnt race If clone_mnt() happens while mnt_make_readonly() is running, the cloned mount might have MNT_WRITE_HOLD flag set, which results in mnt_want_write() spinning forever on this mount. Needs CAP_SYS_ADMIN to trigger deliberately and unlikely to happen accidentally. But if it does happen it can hang the machine. Signed-off-by: Miklos Szeredi Signed-off-by: Al Viro --- Reading git-diff-tree failed