Re: [BUG] net: tcp: SO_LINGER with l_linger=0 leaks memory when closing sockets with pending send data

"Ahmed, Aaron" <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.stable
Message-ID <[email protected]>
Hi,

Following up since it's been a while. I've tested on 6.18.39 (latest
6.18.y LTS) and the issue is still present.

Baseline (55,542 connections, one client SIGSTOP'd):
  TCP: inuse 55542 orphan 0 tw 1 alloc 55543 mem 8236
  Mem: 94504 total, 693 used

After ~1 minute:
  TCP: inuse 47394 orphan 1 tw 2 alloc 47395 mem 1404546
  Mem: 94504 total, 9023 used

Updated repo with new results and .config:
  https://github.com/aahmed71/tcp-linger-memleak-reproducer

Let me know if there's anything else I can provide.

Thanks,
Aaron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.