]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag 'xfs-5.16-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 12 Dec 2021 00:21:06 +0000 (16:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 12 Dec 2021 00:21:06 +0000 (16:21 -0800)
commit7966561f05a949758a363e8778f6564f5f83a524
tree479d22a987b25b15e01315f4aae2e627d50f6be0
parent1b2220f45b9cf2bf9abef1e9e12616a062a948c4
parentb1c172818c2a85bfa22bc08c795b75fa33e42cf8
Merge tag 'xfs-5.16-fixes-3' of git://git.kernel.org/pub/scm/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