Thread (5 messages) 5 messages, 3 authors, 18d ago

Re: [PATCH net] rds: mark snapshot pages dirty in rds_info_getsockopt()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-06-10 15:20:11
Also in: linux-rdma, lkml

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Mon, 08 Jun 2026 02:32:05 -0700 you wrote:
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.

[...]
Here is the summary with links:
  - [net] rds: mark snapshot pages dirty in rds_info_getsockopt()
    https://git.kernel.org/netdev/net/c/512db8267b73

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help