diff options
| author | Sabrina Dubroca <sd@queasysnail.net> | 2015-10-15 12:25:00 -0500 |
|---|---|---|
| committer | desaishivam26 <kane.desai@gmail.com> | 2015-11-23 12:28:21 +0100 |
| commit | 842d9c8740e19d4e3fded87fecaf9bad075e10e7 (patch) | |
| tree | 63255acec5b4cb36093c0b5f6ee36c5838fb0ca7 /net/lapb/lapb_timer.c | |
| parent | 0913ac2abb173b1a3f7cfdcd51c4907bb9601b74 (diff) | |
net: add length argument to skb_copy_and_csum_datagram_iovec
Without this length argument, we can read past the end of the iovec in
memcpy_toiovec because we have no way of knowing the total length of the
iovec's buffers.
This is needed for stable kernels where 89c22d8c3b27 ("net: Fix skb
csum races when peeking") has been backported but that don't have the
ioviter conversion, which is almost all the stable trees <= 3.18.
This also fixes a kernel crash for NFS servers when the client uses
-onfsvers=3,proto=udp to mount the export.
Change-Id: I2d422b12a3083332ecd250e18336cffd0c7a48a3
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
