summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ping.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2021-06-10 00:41:57 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-10 22:39:57 +0200
commit3bdd5ee0ec8c14131d560da492e6df452c6fdd75 (patch)
tree7570089040ba20cd29843991e4bdd5c35a0812b9 /net/ipv4/ping.c
parentMerge tag 'mlx5-fixes-2021-06-09' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadlinux-3bdd5ee0ec8c14131d560da492e6df452c6fdd75.tar.xz
linux-3bdd5ee0ec8c14131d560da492e6df452c6fdd75.zip
skbuff: fix incorrect msg_zerocopy copy notifications
msg_zerocopy signals if a send operation required copying with a flag in serr->ee.ee_code. This field can be incorrect as of the below commit, as a result of both structs uarg and serr pointing into the same skb->cb[]. uarg->zerocopy must be read before skb->cb[] is reinitialized to hold serr. Similar to other fields len, hi and lo, use a local variable to temporarily hold the value. This was not a problem before, when the value was passed as a function argument. Fixes: 75518851a2a0 ("skbuff: Push status and refcounts into sock_zerocopy_callback") Reported-by: Talal Ahmad <talalahmad@google.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ping.c')
0 files changed, 0 insertions, 0 deletions