Skip to content

udf: Fix race between file type conversion and writeback

Jan Kara linux-fsdevel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest0 of 2 patches 0 repliesNew
  2. v2 posting 2/21 patch 2 repliesSuperseded
  3. v2 posting 1/22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches1 replySuperseded

Changes in v4 from the cover letter

* Create mpage_writepages() variant with a callback instead of opencoding.

Patches in v4 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchChristoph Hellwig
SeriesR-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] udf: Fix race between file type conversion and writeback

Hello,

here is the third version of patches to fix a race between conversion of UDF file from inline format to the standard format and writeback resulting in possible memory corruption. As Christoph didn't like opencoding folio_prepare_writeback() in UDF either, this version provides mpage_writepages() variant with a per-folio callback instead. Review/Acks are welcome in particular for the first patch. I'd like to push the fix to Linus soon as it's kind of nasty issue.

Changes since v3:
* Create mpage_writepages() variant with a callback instead of opencoding.

Changes since v2:
* Opencoded folio_prepare_writeback() in udf instead of exporting it

Changes since v1:
* Fix crash in udf_writepages() when file had no folio in the mapping

Honza
Previous versions: