[Patch net v3 0/4] tcp: some bug fixes for tcp_read_skb()

Cong Wang
2022-08-17T19:55:14Z

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.

---
v2: add more patches
v3: simplify empty receive queue case

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 | 49 +++++++++++++++++++++++-------------------------
2 files changed, 26 insertions(+), 28 deletions(-)

--
2.34.1