NFSD: Fix reads with a non-zero offset that don't end on a page boundary
authorChuck Lever <chuck.lever@oracle.com>
Wed, 23 Nov 2022 19:14:32 +0000 (14:14 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 23 Nov 2022 19:32:35 +0000 (14:32 -0500)
commitac8db824ead0de2e9111337c401409d010fba2f0
tree9388f982351e767b00da6d1014029883b27a154f
parent5a01c805441bdc86e7af206d8a03735cc9394ffb
NFSD: Fix reads with a non-zero offset that don't end on a page boundary

This was found when virtual machines with nfs-mounted qcow2 disks
failed to boot properly.

Reported-by: Anders Blomdell <anders.blomdell@control.lth.se>
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2142132
Fixes: bfbfb6182ad1 ("nfsd_splice_actor(): handle compound pages")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c