diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-09-18 16:34:32 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-09-24 10:54:01 +0200 |
commit | 898cc19d8af2d6a80a9f2804b0db2e83c5dd8863 (patch) | |
tree | 771188a58c4632b7615c4bffdffa942b4ed82b22 /fs/fs_struct.c | |
parent | 63e132528032ce937126aba591a7b37ec593a6bb (diff) | |
download | linux-898cc19d8af2d6a80a9f2804b0db2e83c5dd8863.tar.gz |
ovl: fix freeze protection bypass in ovl_write_iter()
Tested by re-writing to an open overlayfs file while upper ext4 is frozen: xfs_io -f /ovl/x xfs_io> pwrite 0 4096 fsfreeze -f /ext4 xfs_io> pwrite 0 4096 WARNING: CPU: 0 PID: 1492 at fs/ext4/ext4_jbd2.c:53 \ ext4_journal_check_start+0x48/0x82 After the fix, the second write blocks in ovl_write_iter() and avoids hitting WARN_ON(sb->s_writers.frozen == SB_FREEZE_COMPLETE) in ext4_journal_check_start(). Fixes: 2a92e07edc5e ("ovl: add ovl_write_iter()") Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions