commit | be1a16a0ae29a7c90081a657b64aa51cb1a65a27 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@suse.cz> | Tue Oct 05 12:31:09 2010 +0200 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Oct 25 21:24:16 2010 -0400 |
tree | 18bef9178b1142d839b906ce3bf38c92eb650ee8 | |
parent | 89b0fc38cca4e6c92a90b58960881ffc5dddd89c [diff] |
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 <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>