mbox series

[v1,net,0/2] tcp: Fix bugs of OOB handling in TCP.

Message ID 20240820034920.77419-1-takamitz@amazon.co.jp (mailing list archive)
Headers show
Series tcp: Fix bugs of OOB handling in TCP. | expand

Message

Takamitsu Iwai Aug. 20, 2024, 3:49 a.m. UTC
These patches fix bugs of OOB handling in TCP.

Patch 1 fixes an issue where a head OOB is dropped when queuing new
OOB, and Patch 2 fixes an issue where OOB is recv()ed twice.

Takamitsu Iwai (2):
  tcp: Don't drop head OOB when queuing new OOB.
  tcp: Don't recv() OOB twice.

 include/linux/tcp.h                           |  1 +
 include/net/tcp.h                             |  3 +-
 net/ipv4/tcp.c                                | 15 +++--
 net/ipv4/tcp_input.c                          | 30 ++-------
 tools/testing/selftests/net/af_unix/msg_oob.c | 65 +++++++------------
 5 files changed, 42 insertions(+), 72 deletions(-)