From: Richard Guy Briggs rgb@redhat.com
[ Upstream commit fbe870a72fd1ddc5e08c23764e23e5766f54aa87 ]
fadvise and madvise both provide hints for caching or access pattern for file and memory respectively. Skip them.
Fixes: 5bd2182d58e9 ("audit,io_uring,io-wq: add some basic audit support to io_uring") Signed-off-by: Richard Guy Briggs rgb@redhat.com Link: https://lore.kernel.org/r/b5dfdcd541115c86dbc774aa9dd502c964849c5f.167528264... Acked-by: Paul Moore paul@paul-moore.com Signed-off-by: Jens Axboe axboe@kernel.dk Signed-off-by: Sasha Levin sashal@kernel.org --- io_uring/opdef.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/io_uring/opdef.c b/io_uring/opdef.c index 3aa0d65c50e34..be45b76649a08 100644 --- a/io_uring/opdef.c +++ b/io_uring/opdef.c @@ -313,6 +313,7 @@ const struct io_op_def io_op_defs[] = { }, [IORING_OP_MADVISE] = { .name = "MADVISE", + .audit_skip = 1, .prep = io_madvise_prep, .issue = io_madvise, },