mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC
@ 2026-06-16 12:36 Ricardo Robaina
  2026-06-16 14:44 ` Paul Moore
  2026-06-16 15:49 ` Jens Axboe
  0 siblings, 2 replies; 5+ messages in thread
From: Ricardo Robaina @ 2026-06-16 12:36 UTC (permalink / raw)
  To: io-uring, linux-kernel; +Cc: axboe, paul, sgrubb, Ricardo Robaina

IORING_OP_RECV_ZC is a read operation. Audit only tracks file/socket
creation, not subsequent reads. Set audit_skip to align with
audit-userspace uringop_table.h.

Fixes: 11ed914bbf94 ("io_uring/zcrx: add io_recvzc request")
Suggested-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
---
 io_uring/opdef.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index c3ef52b70811..fef134a21113 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -519,6 +519,7 @@ const struct io_issue_def io_issue_defs[] = {
 #endif
 	},
 	[IORING_OP_RECV_ZC] = {
+		.audit_skip		= 1,
 		.needs_file		= 1,
 		.unbound_nonreg_file	= 1,
 		.pollin			= 1,
-- 
2.53.0


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

* Re: [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC
  2026-06-16 12:36 [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC Ricardo Robaina
@ 2026-06-16 14:44 ` Paul Moore
  2026-06-16 14:47   ` Ricardo Robaina
  2026-06-16 15:49 ` Jens Axboe
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Moore @ 2026-06-16 14:44 UTC (permalink / raw)
  To: Ricardo Robaina; +Cc: io-uring, linux-kernel, axboe, sgrubb

On Tue, Jun 16, 2026 at 8:36 AM Ricardo Robaina <rrobaina@redhat.com> wrote:
>
> IORING_OP_RECV_ZC is a read operation. Audit only tracks file/socket
> creation ...

That's not strictly correct, audit tracks more than just socket
creation.  Connection events and connection-less writes are also of
interest.

> ... not subsequent reads. Set audit_skip to align with
> audit-userspace uringop_table.h.

While the logic above is correct, IORING_OP_RECV_ZC should be
"audit_skip", the reasoning is backwards: the audit userspace io_uring
table is dependent on the kernel, not the other way around (for what
should be obvious reasons).

Acked-by: Paul Moore <paul@paul-moore.com>

> Fixes: 11ed914bbf94 ("io_uring/zcrx: add io_recvzc request")
> Suggested-by: Steve Grubb <sgrubb@redhat.com>
> Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
> ---
>  io_uring/opdef.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/io_uring/opdef.c b/io_uring/opdef.c
> index c3ef52b70811..fef134a21113 100644
> --- a/io_uring/opdef.c
> +++ b/io_uring/opdef.c
> @@ -519,6 +519,7 @@ const struct io_issue_def io_issue_defs[] = {
>  #endif
>         },
>         [IORING_OP_RECV_ZC] = {
> +               .audit_skip             = 1,
>                 .needs_file             = 1,
>                 .unbound_nonreg_file    = 1,
>                 .pollin                 = 1,
> --
> 2.53.0

-- 
paul-moore.com

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

* Re: [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC
  2026-06-16 14:44 ` Paul Moore
@ 2026-06-16 14:47   ` Ricardo Robaina
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Robaina @ 2026-06-16 14:47 UTC (permalink / raw)
  To: Paul Moore; +Cc: io-uring, linux-kernel, axboe, sgrubb

On Tue, Jun 16, 2026 at 11:44 AM Paul Moore <paul@paul-moore.com> wrote:
>
> On Tue, Jun 16, 2026 at 8:36 AM Ricardo Robaina <rrobaina@redhat.com> wrote:
> >
> > IORING_OP_RECV_ZC is a read operation. Audit only tracks file/socket
> > creation ...
>
> That's not strictly correct, audit tracks more than just socket
> creation.  Connection events and connection-less writes are also of
> interest.
>
> > ... not subsequent reads. Set audit_skip to align with
> > audit-userspace uringop_table.h.
>
> While the logic above is correct, IORING_OP_RECV_ZC should be
> "audit_skip", the reasoning is backwards: the audit userspace io_uring
> table is dependent on the kernel, not the other way around (for what
> should be obvious reasons).
>
> Acked-by: Paul Moore <paul@paul-moore.com>
>
> > Fixes: 11ed914bbf94 ("io_uring/zcrx: add io_recvzc request")
> > Suggested-by: Steve Grubb <sgrubb@redhat.com>
> > Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
> > ---
> >  io_uring/opdef.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/io_uring/opdef.c b/io_uring/opdef.c
> > index c3ef52b70811..fef134a21113 100644
> > --- a/io_uring/opdef.c
> > +++ b/io_uring/opdef.c
> > @@ -519,6 +519,7 @@ const struct io_issue_def io_issue_defs[] = {
> >  #endif
> >         },
> >         [IORING_OP_RECV_ZC] = {
> > +               .audit_skip             = 1,
> >                 .needs_file             = 1,
> >                 .unbound_nonreg_file    = 1,
> >                 .pollin                 = 1,
> > --
> > 2.53.0
>
> --
> paul-moore.com
>

Thanks for reviewing the patch and the clarification, Paul!

-Ricardo


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

* Re: [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC
  2026-06-16 12:36 [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC Ricardo Robaina
  2026-06-16 14:44 ` Paul Moore
@ 2026-06-16 15:49 ` Jens Axboe
  2026-06-16 15:51   ` Ricardo Robaina
  1 sibling, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2026-06-16 15:49 UTC (permalink / raw)
  To: io-uring, linux-kernel, Ricardo Robaina; +Cc: paul, sgrubb


On Tue, 16 Jun 2026 09:36:32 -0300, Ricardo Robaina wrote:
> IORING_OP_RECV_ZC is a read operation. Audit only tracks file/socket
> creation, not subsequent reads. Set audit_skip to align with
> audit-userspace uringop_table.h.

Applied, thanks!

[1/1] io_uring, audit: don't log IORING_OP_RECV_ZC
      commit: bdc2fc388c348ee14b4f984ff75f2ea440cefd44

Best regards,
-- 
Jens Axboe




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

* Re: [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC
  2026-06-16 15:49 ` Jens Axboe
@ 2026-06-16 15:51   ` Ricardo Robaina
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Robaina @ 2026-06-16 15:51 UTC (permalink / raw)
  To: Jens Axboe; +Cc: io-uring, linux-kernel, paul, sgrubb

On Tue, Jun 16, 2026 at 12:49 PM Jens Axboe <axboe@kernel.dk> wrote:
>
>
> On Tue, 16 Jun 2026 09:36:32 -0300, Ricardo Robaina wrote:
> > IORING_OP_RECV_ZC is a read operation. Audit only tracks file/socket
> > creation, not subsequent reads. Set audit_skip to align with
> > audit-userspace uringop_table.h.
>
> Applied, thanks!
>
> [1/1] io_uring, audit: don't log IORING_OP_RECV_ZC
>       commit: bdc2fc388c348ee14b4f984ff75f2ea440cefd44
>
> Best regards,
> --
> Jens Axboe
>
>
>

Thanks, Jens!


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

end of thread, other threads:[~2026-06-16 15:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 12:36 [PATCH] io_uring, audit: don't log IORING_OP_RECV_ZC Ricardo Robaina
2026-06-16 14:44 ` Paul Moore
2026-06-16 14:47   ` Ricardo Robaina
2026-06-16 15:49 ` Jens Axboe
2026-06-16 15:51   ` Ricardo Robaina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®