Re: [PATCH stable-6.18.y] io_uring/net: Avoid msghdr on op_connect/op_bind async data
Greg KH <[email protected]>
| Newsgroups | org.kernel.vger.io-uring,org.kernel.vger.stable |
|---|---|
| Message-ID | <2026061727-thirsty-sculptor-1e6f@gregkh> |
On Wed, Jun 17, 2026 at 01:51:02PM -0400, Gabriel Krisman Bertazi wrote: > [ Upstream commit 3979840cd858f30f43ea9f4e7f7f1f56de82d698 ] > This fixes a memory leak due to the lack of the cleanup hook for the > iovec. The stable backport differs from upstream by dropping the > io_connect_bpf_populate hunk, which didn't exist at the time and by > fixing the merge conflict due to the introduction of > io_bind_file_create. > > Both IORING_OP_CONNECT and IORING_OP_BIND reuse the msghdr object just > to store the sockaddr. Beyond allocating a much larger object than > needed, msghdr can also wrap an iovec, which will be recycled > unnecessarily. This uses the sockaddr directly. > > Cc: [email protected] > Signed-off-by: Gabriel Krisman Bertazi <[email protected]> > Link: https://patch.msgid.link/[email protected] > Signed-off-by: Jens Axboe <[email protected]> > Signed-off-by: Gabriel Krisman Bertazi <[email protected]> > --- > io_uring/net.c | 36 ++++++++++++++++++------------------ > io_uring/opdef.c | 4 ++-- > 2 files changed, 20 insertions(+), 20 deletions(-) This isn't in any release yet, why just 6.18? And why wan't it originally tagged for stable? thanks, greg k-h