diff options
| author | Miklos Szeredi <[email protected]> | 2010-10-05 10:31:09 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2010-10-26 01:24:16 +0000 |
| commit | be1a16a0ae29a7c90081a657b64aa51cb1a65a27 (patch) | |
| tree | 18bef9178b1142d839b906ce3bf38c92eb650ee8 /fs/fs-writeback.c | |
| parent | switch hfs to hlist_add_fake() (diff) | |
| download | kernel-be1a16a0ae29a7c90081a657b64aa51cb1a65a27.tar.gz kernel-be1a16a0ae29a7c90081a657b64aa51cb1a65a27.zip | |
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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions
