summaryrefslogtreecommitdiff
path: root/include/linux/cred.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-05-15 19:10:15 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-15 19:22:41 +0300
commit858f5017446764e8bca0b29589a3b164186ae471 (patch)
tree373f0ffe2041cc465d0c0582b27da70f6179d7ee /include/linux/cred.h
parent22fb43f36006a3d42b7ab34df0f14ded3d513eda (diff)
downloadlinux-858f5017446764e8bca0b29589a3b164186ae471.tar.xz
tcp: do not recycle cloned skbs
It is illegal to change arbitrary fields in skb_shared_info if the skb is cloned. Before calling skb_zcopy_clear() we need to ensure this rule, therefore we need to move the test from sk_stream_alloc_skb() to sk_wmem_free_skb() Fixes: 4f661542a402 ("tcp: fix zerocopy and notsent_lowat issues") Signed-off-by: Eric Dumazet <edumazet@google.com> Diagnosed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/cred.h')
0 files changed, 0 insertions, 0 deletions