# Re: \[PATCH net\] Revert "udp: do rmem bulk free even if the rx sk queue is empty"

- From: David Miller \<davem@davemloft.net\>
- Date: 2020-01-22 20:10:57 
- List: netdev
- Page: https://ratatoskr.run/netdev/2020/01/11158693
- Thread: https://ratatoskr.run/netdev/2020/01/11158534/t.md

```text
From: Paolo Abeni <pabeni@redhat.com>
Date: Tue, 21 Jan 2020 16:50:49 +0100

> This reverts commit 0d4a6608f68c7532dcbfec2ea1150c9761767d03.
> 
> Williem reported that after commit 0d4a6608f68c ("udp: do rmem bulk
> free even if the rx sk queue is empty") the memory allocated by
> an almost idle system with many UDP sockets can grow a lot.
> 
> For stable kernel keep the solution as simple as possible and revert
> the offending commit.
> 
> Reported-by: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
> Diagnosed-by: Eric Dumazet [ref]
> Fixes: 0d4a6608f68c ("udp: do rmem bulk free even if the rx sk queue is empty")
> Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Applied and queued up for -stable.
```
