aboutsummaryrefslogtreecommitdiff
path: root/net/Kconfig.debug
diff options
context:
space:
mode:
authorGravatar Cong Wang <cong.wang@bytedance.com> 2022-08-17 12:54:43 -0700
committerGravatar Jakub Kicinski <kuba@kernel.org> 2022-08-18 11:04:55 -0700
commitc457985aaa92e1fda2ce837cabf90bf687b92dcb (patch)
tree4cd5da4db9550745fa0e2e19bab91495919753a6 /net/Kconfig.debug
parenttcp: fix sock skb accounting in tcp_read_skb() (diff)
downloadlinux-c457985aaa92e1fda2ce837cabf90bf687b92dcb.tar.gz
linux-c457985aaa92e1fda2ce837cabf90bf687b92dcb.tar.bz2
linux-c457985aaa92e1fda2ce837cabf90bf687b92dcb.zip
tcp: fix tcp_cleanup_rbuf() for tcp_read_skb()
tcp_cleanup_rbuf() retrieves the skb from sk_receive_queue, it assumes the skb is not yet dequeued. This is no longer true for tcp_read_skb() case where we dequeue the skb first. Fix this by introducing a helper __tcp_cleanup_rbuf() which does not require any skb and calling it in tcp_read_skb(). Fixes: 04919bed948d ("tcp: Introduce tcp_read_skb()") Cc: Eric Dumazet <edumazet@google.com> Cc: John Fastabend <john.fastabend@gmail.com> Cc: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: Cong Wang <cong.wang@bytedance.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions