NFSv4.2: Protect copy offload and clone against 'eof page pollution'
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 14:25:35 +0000 (10:25 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 20:51:25 +0000 (16:51 -0400)
commitb2036bb65114c01caf4a1afe553026e081703c8c
tree65aee0af36bbe7826fe48e236defecf41c9e29f9
parentb1817b18ff20e69f5accdccefaf78bf5454bede2
NFSv4.2: Protect copy offload and clone against 'eof page pollution'

The NFSv4.2 copy offload and clone functions can also end up extending
the size of the destination file, so they too need to call
nfs_truncate_last_folio().

Reported-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42proc.c