]> 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)
commit30c6bbb101822cdf4e76f91c04a2e79ebb1c004f
tree479d22a987b25b15e01315f4aae2e627d50f6be0
parent176506af23dbb4261ebbc087424ff74a3a32dc2d
parent3a195d777e60026e2c3e7e5b7033517ca28a6472
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