Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 40d305fa authored by Sabrina Dubroca's avatar Sabrina Dubroca Committed by Zvikomborero Vincent Zvikaramba
Browse files

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: I35da024e9a7deb5dbbf1525ebabf7ba8cb8112f5
Signed-off-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Reviewed-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
(cherry picked from commit e0881ed2f77805ab7b4a2ab9ac58c44d39ba7265)
parent 047f2fd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment