Files
android_kernel_xiaomi_sm8450/fs
Amir Goldstein 898cc19d8a 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: 2a92e07edc ("ovl: add ovl_write_iter()")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2018-09-24 10:54:01 +02:00
..
2018-08-21 23:54:17 -04:00
2018-08-17 16:20:28 -07:00
2018-05-22 14:27:52 -04:00
2018-08-17 16:20:27 -07:00
2018-09-20 22:01:12 +02:00
2018-05-22 14:27:52 -04:00
2018-07-03 16:44:45 -04:00
2018-06-05 19:23:26 +02:00
2018-05-03 16:11:37 -06:00
2018-07-18 15:44:40 +02:00
2018-06-11 08:22:34 -07:00
2018-02-15 15:34:42 -05:00