Skip to content

Backporting CVE-2025-38073 fix patch

Mahmoud Adam ceph-devel linux-block linux-ext4 linux-f2fs-devel linux-fsdevel linux-mm linux-nfs linux-nilfs linux-xfs lkml stable 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8filemap: add a kiocb_invalidate_pages helperinclude/linux/pagemap.h mm/filemap.c+29 -201 reply
2/8filemap: add a kiocb_invalidate_post_direct_write helperfs/direct-io.c fs/iomap/direct-io.c include/linux/fs.h +2 more+25 -401 reply
3/8filemap: update ki_pos in generic_perform_writefs/ceph/file.c fs/ext4/file.c fs/f2fs/file.c +2 more+7 -141 reply
4/8fs: factor out a direct_write_fallback helperfs/libfs.c include/linux/fs.h mm/filemap.c+57 -471 reply
5/8direct_write_fallback(): on error revert the ->ki_pos update from buffered writefs/libfs.c+1 -01 reply
6/8block: open code __generic_file_write_iter for blkdev writesblock/fops.c+43 -21 reply
7/8block: fix race between set_blocksize and read pathsblock/bdev.c block/blk-zoned.c block/fops.c +1 more+43 -11 reply
8/8nilfs2: fix deadlock warnings caused by lock dependency in init_nilfs()fs/nilfs2/the_nilfs.c+0 -31 reply

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchDamien Le MoalHannes ReineckeDarrick J. WongXiubo LiTheodore Ts'oMiklos SzerediJohannes ThumshirnChristian BraunerLuis ChamberlainChristoph HellwigShin'ichiro Kawasaki[email protected][email protected]
1/8R-b R-b R-b R-b A-b A-b
2/8R-b R-b R-b R-b A-b A-b
3/8R-b R-b R-b R-b A-b A-b R-b R-b A-b A-b
4/8R-b R-b R-b R-b R-b R-b
5/8
6/8R-b R-b R-b R-b R-b R-b R-b R-b
7/8R-b R-b R-b R-b T-b T-b
8/8T-b T-b T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 13 reviewers.

Read the v1 thread

Cover letter [PATCH 6.1 0/8] Backporting CVE-2025-38073 fix patch

This series aims to fix the CVE-2025-38073 for 6.1 LTS. Which is fixed by c0e473a0d226 ("block: fix race between set_blocksize and read paths"). This patch is built on top multiple refactors that where merged on 6.6. The needed dependecies are:

- e003f74afbd2 ("filemap: add a kiocb_invalidate_pages helper")
- c402a9a9430b ("filemap: add a kiocb_invalidate_post_direct_write helper")
- 182c25e9c157 ("filemap: update ki_pos in generic_perform_write")
- 44fff0fa08ec ("fs: factor out a direct_write_fallback helper")
- 727cfe976758 ("block: open code __generic_file_write_iter for blkdev writes")

Also backport follow up fixes:
- fb881cd76045 ("nilfs2: fix deadlock warnings caused by lock dependency in init_nilfs()").
- 8287474aa5ff ("direct_write_fallback(): on error revert the ->ki_pos update from buffered write")

Thanks,
MNAdam

Al Viro (1):
direct_write_fallback(): on error revert the ->ki_pos update from
buffered write

Christoph Hellwig (5):
filemap: add a kiocb_invalidate_pages helper
filemap: add a kiocb_invalidate_post_direct_write helper
filemap: update ki_pos in generic_perform_write
fs: factor out a direct_write_fallback helper
block: open code __generic_file_write_iter for blkdev writes

Darrick J. Wong (1):
block: fix race between set_blocksize and read paths

Ryusuke Konishi (1):
nilfs2: fix deadlock warnings caused by lock dependency in
init_nilfs()

 block/bdev.c            |  17 +++++
 block/blk-zoned.c       |   5 +-
 block/fops.c            |  61 +++++++++++++++-
 block/ioctl.c           |   6 ++
 fs/ceph/file.c          |   2 -
 fs/direct-io.c          |  10 +--
 fs/ext4/file.c          |   9 +--
 fs/f2fs/file.c          |   1 -
 fs/iomap/direct-io.c    |  12 +---
 fs/libfs.c              |  42 +++++++++++
 fs/nfs/file.c           |   1 -
 fs/nilfs2/the_nilfs.c   |   3 -
 include/linux/fs.h      |   7 +-
 include/linux/pagemap.h |   2 +
 mm/filemap.c            | 154 +++++++++++++++++-----------------------
 15 files changed, 205 insertions(+), 127 deletions(-)
Signature · 12 lines
2.47.3




Amazon Web Services Development Center Germany GmbH
Tamara-Danz-Str. 13
10243 Berlin
Geschaeftsfuehrung: Christian Schlaeger
Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597