Files
erofs-linux/net/rds
Breno Leitao 512db8267b rds: mark snapshot pages dirty in rds_info_getsockopt()
rds_info_getsockopt() pins the destination user pages with FOLL_WRITE and
the RDS_INFO_* producers memcpy the snapshot into them through
kmap_atomic(). Because that copy goes through the kernel direct map, the
dirty bit on the user PTE is never set, so unpin_user_pages() releases the
pages without marking them dirty. A file-backed destination page can then
be reclaimed without writeback, silently discarding the copied data.

Use unpin_user_pages_dirty_lock() with make_dirty=true so the modified
pages are marked dirty before they are unpinned.

Fixes: a8c879a7ee ("RDS: Info and stats")
Signed-off-by: Breno Leitao <[email protected]>
Reviewed-by: Allison Henderson <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2026-06-10 08:18:16 -07:00
..
…
…
…
2026-04-12 13:33:19 -07:00
…
…
2026-04-12 13:33:19 -07:00
…
…
…
…
…
2026-04-23 12:18:08 -07:00
2026-02-25 19:03:55 -08:00
…
…