mbox series

[net,v2,0/4] tcp: some bug fixes for tcp_read_skb()

Message ID 20220808033106.130263-1-xiyou.wangcong@gmail.com (mailing list archive)
Headers show
Series tcp: some bug fixes for tcp_read_skb() | expand

Message

Cong Wang Aug. 8, 2022, 3:31 a.m. UTC
From: Cong Wang <cong.wang@bytedance.com>

This patchset contains 3 bug fixes and 1 minor refactor patch for
tcp_read_skb(). V1 only had the first patch, as Eric prefers to fix all
of them together, I have to group them together. Please see each patch
description for more details.

---

Cong Wang (4):
  tcp: fix sock skb accounting in tcp_read_skb()
  tcp: fix tcp_cleanup_rbuf() for tcp_read_skb()
  tcp: refactor tcp_read_skb() a bit
  tcp: handle pure FIN case correctly

 net/core/skmsg.c |  5 +++--
 net/ipv4/tcp.c   | 46 +++++++++++++++++++++-------------------------
 2 files changed, 24 insertions(+), 27 deletions(-)