Files
Trond Myklebust 94413a8406 NFS: Fix size read races in truncate, fallocate and copy offload
[ Upstream commit d5811e6297 ]

If the pre-operation file size is read before locking the inode and
quiescing O_DIRECT writes, then nfs_truncate_last_folio() might end up
overwriting valid file data.

Fixes: b1817b18ff ("NFS: Protect against 'eof page pollution'")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-01-23 11:21:20 +01:00
..
2024-09-23 15:03:13 -04:00
2024-09-23 15:03:30 -04:00
2024-11-08 14:17:37 -05:00
2025-05-15 12:14:29 +02:00