Re: [PATCH] io_uring/net: allow filtering on IORING_OP_CONNECT

auxcore labs <[email protected]>
Newsgroups org.kernel.vger.io-uring
Message-ID <CABnvZUnk7Z_ggqqWHRw0hepqufhHv8DtZxzP=EVN37vKkNdXOQ@mail.gmail.com>
Yes -- just sent: "[PATCH liburing] tests: add cBPF filter tests for
IORING_OP_CONNECT"

Regards,
Shouvik


On Tue, May 12, 2026 at 9:04 PM Jens Axboe <[email protected]> wrote:
>
> On 5/12/26 5:02 AM, Shouvik Kar wrote:
> > This adds custom filtering for IORING_OP_CONNECT, where the target
> > family is always exposed, and (for AF_INET / AF_INET6) port and
> > address are exposed. port and v4_addr are in network byte order so
> > filter authors can compare against on-wire constants.
> >
> > Skip population unless addr_len covers the populated fields, to
> > avoid leaking stale io_async_msghdr data on short connects.
>
> Looks pretty straight forward to me. Do you have a liburing test
> case for this too?
>
> --
> Jens Axboe
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.