netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] Couple of skb memory leak fixes
@ 2022-01-17  9:27 Gal Pressman
  2022-01-17  9:27 ` [PATCH net 1/2] net/tls: Fix another skb memory leak when running kTLS traffic Gal Pressman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gal Pressman @ 2022-01-17  9:27 UTC (permalink / raw)
  To: Eric Dumazet, Jakub Kicinski, David S. Miller
  Cc: netdev, Tariq Toukan, Saeed Mahameed, Gal Pressman

As discussed in:
https://lore.kernel.org/netdev/20220102081253.9123-1-gal@nvidia.com/

These are the two followup suggestions from Eric and Jakub.
Patch #1 adds a sk_defer_free_flush() call to the kTLS splice_read
handler.
Patch #2 verifies the defer list is empty on socket destroy, and calls a
defer free flush as well.

Thanks!

Gal Pressman (2):
  net/tls: Fix another skb memory leak when running kTLS traffic
  net: Flush deferred skb free on socket destroy

 net/core/sock.c  | 3 +++
 net/tls/tls_sw.c | 1 +
 2 files changed, 4 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-23  9:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17  9:27 [PATCH net 0/2] Couple of skb memory leak fixes Gal Pressman
2022-01-17  9:27 ` [PATCH net 1/2] net/tls: Fix another skb memory leak when running kTLS traffic Gal Pressman
2022-01-17  9:27 ` [PATCH net 2/2] net: Flush deferred skb free on socket destroy Gal Pressman
2022-01-23  9:50   ` Heiko Carstens
2022-01-23  9:53     ` Gal Pressman
2022-01-17 13:10 ` [PATCH net 0/2] Couple of skb memory leak fixes patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).