From: Linus Torvalds Date: Sun, 12 Dec 2021 00:21:06 +0000 (-0800) Subject: Merge tag 'xfs-5.16-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e034d9cbf9f17613c954541f65390be5c35807fc;p=linux.git Merge tag 'xfs-5.16-fixes-3' of git://git./fs/xfs/xfs-linux Pull xfs fix from Darrick Wong: "This fixes a race between a readonly remount process and other processes that hold a file IOLOCK on files that previously experienced copy on write, that could result in severe filesystem corruption if the filesystem is then remounted rw. I think this is fairly rare (since the only reliable reproducer I have that fits the second criteria is the experimental xfs_scrub program), but the race is clear, so we still need to fix this. Summary: - Fix a data corruption vector that can result from the ro remount process failing to clear all speculative preallocations from files and the rw remount process not noticing the incomplete cleanup" * tag 'xfs-5.16-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: xfs: remove all COW fork extents when remounting readonly --- e034d9cbf9f17613c954541f65390be5c35807fc