mbox series

[v1,net,0/2] rds: Fix use-after-free of net by tcp reqsk timer.

Message ID 20240223172448.94084-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series rds: Fix use-after-free of net by tcp reqsk timer. | expand

Message

Kuniyuki Iwashima Feb. 23, 2024, 5:24 p.m. UTC
syzkaller reported an warning of netns ref tracker for RDS TCP listener,
which commit 740ea3c4a0b2 ("tcp: Clean up kernel listener's reqsk in
inet_twsk_purge()") partially fixed.

This series reverts the partial fix on the TCP side and fixes the root
cause on the RDS side.


Kuniyuki Iwashima (2):
  Revert "tcp: Clean up kernel listener's reqsk in inet_twsk_purge()"
  rds: tcp: Fix use-after-free of net in reqsk_timer_handler().

 net/ipv4/inet_timewait_sock.c | 15 +--------------
 net/ipv4/tcp_minisocks.c      |  9 ++++-----
 net/rds/tcp_listen.c          |  5 +++++
 3 files changed, 10 insertions(+), 19 deletions(-)