Skip to content

Commit a2eaf24

Browse files
committed
Merge tag 'nfsd-6.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fixes from Chuck Lever: - Fix a crash during NFS READs from certain client implementations - Address a minor kbuild regression in v6.3 * tag 'nfsd-6.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: nfsd: don't replace page in rq_pages if it's a continuation of last page NFS & NFSD: Update GSS dependencies
2 parents 2faac9a + 27c934d commit a2eaf24

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

fs/nfs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ config NFS_V3_ACL
7575
config NFS_V4
7676
tristate "NFS client support for NFS version 4"
7777
depends on NFS_FS
78-
select SUNRPC_GSS
78+
select RPCSEC_GSS_KRB5
7979
select KEYS
8080
help
8181
This option enables support for version 4 of the NFS protocol

fs/nfsd/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ config NFSD_V4
7373
bool "NFS server support for NFS version 4"
7474
depends on NFSD && PROC_FS
7575
select FS_POSIX_ACL
76-
select SUNRPC_GSS
76+
select RPCSEC_GSS_KRB5
7777
select CRYPTO
7878
select CRYPTO_MD5
7979
select CRYPTO_SHA256

fs/nfsd/vfs.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,15 @@ nfsd_splice_actor(struct pipe_inode_info *pipe, struct pipe_buffer *buf,
941941
struct page *last_page;
942942

943943
last_page = page + (offset + sd->len - 1) / PAGE_SIZE;
944-
for (page += offset / PAGE_SIZE; page <= last_page; page++)
944+
for (page += offset / PAGE_SIZE; page <= last_page; page++) {
945+
/*
946+
* Skip page replacement when extending the contents
947+
* of the current page.
948+
*/
949+
if (page == *(rqstp->rq_next_page - 1))
950+
continue;
945951
svc_rqst_replace_page(rqstp, page);
952+
}
946953
if (rqstp->rq_res.page_len == 0) // first call
947954
rqstp->rq_res.page_base = offset % PAGE_SIZE;
948955
rqstp->rq_res.page_len += sd->len;

0 commit comments

Comments
 (0)