Skip to content

Commit eecba7c

Browse files
committed
Merge tag 'nfsd-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fix from Chuck Lever: - Fix an occasional memory overwrite caused by a fix added in 6.10 * tag 'nfsd-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: SUNRPC: Fix loop termination condition in gss_free_in_token_pages()
2 parents 0a02756 + 4a77c3d commit eecba7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/auth_gss/svcauth_gss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ static int gss_read_proxy_verf(struct svc_rqst *rqstp,
10691069
goto out_denied_free;
10701070

10711071
pages = DIV_ROUND_UP(inlen, PAGE_SIZE);
1072-
in_token->pages = kcalloc(pages, sizeof(struct page *), GFP_KERNEL);
1072+
in_token->pages = kcalloc(pages + 1, sizeof(struct page *), GFP_KERNEL);
10731073
if (!in_token->pages)
10741074
goto out_denied_free;
10751075
in_token->page_base = 0;

0 commit comments

Comments
 (0)