From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8CE3DC636D4 for ; Wed, 1 Feb 2023 20:35:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229512AbjBAUfN (ORCPT ); Wed, 1 Feb 2023 15:35:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjBAUfN (ORCPT ); Wed, 1 Feb 2023 15:35:13 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E41F9728F9 for ; Wed, 1 Feb 2023 12:34:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675283665; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=v7qADo0C7UbOjbiomYrQ/+MoliYjhSvDYemrOxMV+7A=; b=UcPCqlZe+AL89p5ZoDj4gVApbtkMtK9Zpq8glYMoghFcVjMGRQz1fY48ZH5mEqfc6EL5I+ w+2PJtTaMTkTK2cZoNpdB/++FdU9Jyw+H5Pw70P8/P9vlxqiSZ1dz7pCPi3RYnaTEGxKHi Tn/Qs3lr0j0stv5WzU8ydmOgr4Miy9g= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-381-EVnDlQL2OHadySfnqKWopg-1; Wed, 01 Feb 2023 15:34:21 -0500 X-MC-Unique: EVnDlQL2OHadySfnqKWopg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5E03B38173C1; Wed, 1 Feb 2023 20:34:21 +0000 (UTC) Received: from madcap2.tricolour.com (unknown [10.22.50.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id C96D753A0; Wed, 1 Feb 2023 20:34:19 +0000 (UTC) From: Richard Guy Briggs To: Linux-Audit Mailing List , LKML , io-uring@vger.kernel.org Cc: Paul Moore , Eric Paris , Steve Grubb , Richard Guy Briggs , Christian Brauner , Stefan Roesch Subject: [PATCH v2] io_uring,audit: don't log IORING_OP_MADVISE Date: Wed, 1 Feb 2023 15:33:33 -0500 Message-Id: MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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 --- changelog v2: - drop *GETXATTR patch - drop FADVISE hunk io_uring/opdef.c | 1 + 1 file changed, 1 insertion(+) diff --git a/io_uring/opdef.c b/io_uring/opdef.c index 3aa0d65c50e3..d3f36c633ceb 100644 --- a/io_uring/opdef.c +++ b/io_uring/opdef.c @@ -312,6 +312,7 @@ const struct io_op_def io_op_defs[] = { .issue = io_fadvise, }, [IORING_OP_MADVISE] = { + .audit_skip = 1, .name = "MADVISE", .prep = io_madvise_prep, .issue = io_madvise, -- 2.27.0