Gentoo Archives: gentoo-commits

From: Alice Ferrazzi <alicef@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:5.10 commit in: /
Date: Wed, 10 Feb 2021 10:23:46
Message-Id: 1612952602.48021b103f4ba0eb61d3617182f0126b41f720a4.alicef@gentoo
1 commit: 48021b103f4ba0eb61d3617182f0126b41f720a4
2 Author: Alice Ferrazzi <alicef <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 10 10:20:37 2021 +0000
4 Commit: Alice Ferrazzi <alicef <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 10 10:23:22 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=48021b10
7
8 Drop SUNRPC: Fix NFS READs that start at non-page-aligned offsets
9
10 Already added upstream
11
12 Signed-off-by: Alice Ferrazzi <alicef <AT> gentoo.org>
13
14 0000_README | 4 --
15 ...RPC-NFS-fix-non-page-aligned-offsets-read.patch | 53 ----------------------
16 2 files changed, 57 deletions(-)
17
18 diff --git a/0000_README b/0000_README
19 index 7d03d9d..9214e4d 100644
20 --- a/0000_README
21 +++ b/0000_README
22 @@ -115,10 +115,6 @@ Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
23 From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-marcel@××××××××.org/raw
24 Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758
25
26 -Patch: 2400_SUNRPC-NFS-fix-non-page-aligned-offsets-read.patch
27 -From: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/sunrpc/svcsock.c?id=bad4c6eb5eaa8300e065bd4426727db5141d687d
28 -Desc: SUNRPC: Fix NFS READs that start at non-page-aligned offsets
29 -
30 Patch: 2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch
31 From: https://bugs.gentoo.org/710790
32 Desc: tmp513 requies REGMAP_I2C to build. Select it by default in Kconfig. See bug #710790. Thanks to Phil Stracchino
33
34 diff --git a/2400_SUNRPC-NFS-fix-non-page-aligned-offsets-read.patch b/2400_SUNRPC-NFS-fix-non-page-aligned-offsets-read.patch
35 deleted file mode 100644
36 index 34d6ebb..0000000
37 --- a/2400_SUNRPC-NFS-fix-non-page-aligned-offsets-read.patch
38 +++ /dev/null
39 @@ -1,53 +0,0 @@
40 -From bad4c6eb5eaa8300e065bd4426727db5141d687d Mon Sep 17 00:00:00 2001
41 -From: Chuck Lever <chuck.lever@××××××.com>
42 -Date: Sun, 31 Jan 2021 16:16:23 -0500
43 -Subject: SUNRPC: Fix NFS READs that start at non-page-aligned offsets
44 -
45 -Anj Duvnjak reports that the Kodi.tv NFS client is not able to read
46 -video files from a v5.10.11 Linux NFS server.
47 -
48 -The new sendpage-based TCP sendto logic was not attentive to non-
49 -zero page_base values. nfsd_splice_read() sets that field when a
50 -READ payload starts in the middle of a page.
51 -
52 -The Linux NFS client rarely emits an NFS READ that is not page-
53 -aligned. All of my testing so far has been with Linux clients, so I
54 -missed this one.
55 -
56 -Reported-by: A. Duvnjak <avian@××××××××××××.net>
57 -BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=211471
58 -Fixes: 4a85a6a3320b ("SUNRPC: Handle TCP socket sends with kernel_sendpage() again")
59 -Signed-off-by: Chuck Lever <chuck.lever@××××××.com>
60 -Tested-by: A. Duvnjak <avian@××××××××××××.net>
61 ----
62 - net/sunrpc/svcsock.c | 7 ++++---
63 - 1 file changed, 4 insertions(+), 3 deletions(-)
64 -
65 -(limited to 'net/sunrpc/svcsock.c')
66 -
67 -diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
68 -index c9766d07eb81a..5a809c64dc7b9 100644
69 ---- a/net/sunrpc/svcsock.c
70 -+++ b/net/sunrpc/svcsock.c
71 -@@ -1113,14 +1113,15 @@ static int svc_tcp_sendmsg(struct socket *sock, struct msghdr *msg,
72 - unsigned int offset, len, remaining;
73 - struct bio_vec *bvec;
74 -
75 -- bvec = xdr->bvec;
76 -- offset = xdr->page_base;
77 -+ bvec = xdr->bvec + (xdr->page_base >> PAGE_SHIFT);
78 -+ offset = offset_in_page(xdr->page_base);
79 - remaining = xdr->page_len;
80 - flags = MSG_MORE | MSG_SENDPAGE_NOTLAST;
81 - while (remaining > 0) {
82 - if (remaining <= PAGE_SIZE && tail->iov_len == 0)
83 - flags = 0;
84 -- len = min(remaining, bvec->bv_len);
85 -+
86 -+ len = min(remaining, bvec->bv_len - offset);
87 - ret = kernel_sendpage(sock, bvec->bv_page,
88 - bvec->bv_offset + offset,
89 - len, flags);
90 ---
91 -cgit 1.2.3-1.el7
92 -