[PATCH bpf] xsk: fix memory leak for failed bind

2020-12-14 Thread Magnus Karlsson
From: Magnus Karlsson Fix a possible memory leak when a bind of an AF_XDP socket fails. When the fill and completion rings are created, they are tied to the socket. But when the buffer pool is later created at bind time, the ownership of these two rings are transferred to the buffer pool as they

Re: [PATCH bpf] xsk: fix memory leak for failed bind

2020-12-14 Thread Björn Töpel
On 2020-12-14 09:51, Magnus Karlsson wrote: From: Magnus Karlsson Fix a possible memory leak when a bind of an AF_XDP socket fails. When the fill and completion rings are created, they are tied to the socket. But when the buffer pool is later created at bind time, the ownership of these two rin

Re: [PATCH bpf] xsk: fix memory leak for failed bind

2020-12-14 Thread Maciej Fijalkowski
On Mon, Dec 14, 2020 at 09:51:27AM +0100, Magnus Karlsson wrote: > From: Magnus Karlsson > > Fix a possible memory leak when a bind of an AF_XDP socket fails. When > the fill and completion rings are created, they are tied to the > socket. But when the buffer pool is later created at bind time, t

Re: [PATCH bpf] xsk: fix memory leak for failed bind

2020-12-14 Thread Magnus Karlsson
On Mon, Dec 14, 2020 at 12:19 PM Maciej Fijalkowski wrote: > > On Mon, Dec 14, 2020 at 09:51:27AM +0100, Magnus Karlsson wrote: > > From: Magnus Karlsson > > > > Fix a possible memory leak when a bind of an AF_XDP socket fails. When > > the fill and completion rings are created, they are tied to

Re: [PATCH bpf] xsk: fix memory leak for failed bind

2020-12-14 Thread magnus.karlsson
On Mon, Dec 14, 2020 at 12:33 PM Magnus Karlsson wrote: > > On Mon, Dec 14, 2020 at 12:19 PM Maciej Fijalkowski > wrote: > > > > On Mon, Dec 14, 2020 at 09:51:27AM +0100, Magnus Karlsson wrote: > > > From: Magnus Karlsson > > > > > > Fix a possible memory leak when a bind of an AF_XDP socket fai

Re: [PATCH bpf] xsk: fix memory leak for failed bind

2020-12-17 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf.git (refs/heads/master): On Mon, 14 Dec 2020 09:51:27 +0100 you wrote: > From: Magnus Karlsson > > Fix a possible memory leak when a bind of an AF_XDP socket fails. When > the fill and completion rings are created, they are tied to the > socket. But when