Commit 7ea635fc authored by Chuck Lever's avatar Chuck Lever Committed by Greg Kroah-Hartman
Browse files

NFSD: Fix reads with a non-zero offset that don't end on a page boundary



[ Upstream commit ac8db824 ]

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

Reported-by: default avatarAnders Blomdell <anders.blomdell@control.lth.se>
Suggested-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2142132


Fixes: bfbfb618 ("nfsd_splice_actor(): handle compound pages")
[ cel: "‘for’ loop initial declarations are only allowed in C99 or C11 mode" ]
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7d867c6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment