diff options
| author | Jan Kara <jack@suse.cz> | 2016-02-19 00:33:21 -0500 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-31 02:02:50 +0100 |
| commit | 78ad2b404fb8a4d79df8f7a17f3e21e299b5155a (patch) | |
| tree | 305dcda0a43a720cbe746077fd71399ea344c8be /include/linux/shrinker.h | |
| parent | 2e609774a41a65da8069f4dac66b82c1ba904e74 (diff) | |
ext4: fix crashes in dioread_nolock mode
Competing overwrite DIO in dioread_nolock mode will just overwrite
pointer to io_end in the inode. This may result in data corruption or
extent conversion happening from IO completion interrupt because we
don't properly set buffer_defer_completion() when unlocked DIO races
with locked DIO to unwritten extent.
Since unlocked DIO doesn't need io_end for anything, just avoid
allocating it and corrupting pointer from inode for locked DIO.
A cleaner fix would be to avoid these games with io_end pointer from the
inode but that requires more intrusive changes so we leave that for
later.
Cc: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Joe Maples <joe@frap129.org>
Diffstat (limited to 'include/linux/shrinker.h')
0 files changed, 0 insertions, 0 deletions
