Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4873153rwi; Mon, 17 Oct 2022 11:58:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM67mxyVuosZT0anh3uOXZFGFfrUj/6eL9S4Qa6oxk0ccBg1lScxh6ht/ocn41hiDDpWOtt0 X-Received: by 2002:a17:90a:8044:b0:20a:6412:3b8c with SMTP id e4-20020a17090a804400b0020a64123b8cmr15254528pjw.139.1666033130876; Mon, 17 Oct 2022 11:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666033130; cv=none; d=google.com; s=arc-20160816; b=TWCznT2GZNG1RHTAoCdqxpKKZFuf/Ha2YLwE7OixPHk2U3Psj3uAHzl3s3H+nZoSTH F66XTtVsKI60cECBVbFlL1fbJTYJ46FmB5KNDEyLx+IOApfBdtq/+71UDFL9c4VsEmKM esbjqFMm/jJWCLvGO5QDEg50dIF5ZL/UGQsHHizwisNUayvLNkrFcIHK+KZhNSzAGh8l 3LixKoG+3Wt77nrznA3NovyaksiOqxbOFXoXWv3YC4UzklbfR96v3uv6nqU75mpWh1OM IipUq7BA7m/JwIUj/hsYqilBE7u7YV1uMHsGvD7pSkhe0IolQm6ZUHbJfhoG/9eHS65z c4bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JkUI5JssnCLk+wBNiz00ckkGRif8NZmGGTgkXS2hWkQ=; b=HdcygNeT03L/orwxxgNkYJKlVzNH7pWv5O8ZUgl/kPKBWpUJVBJ2DV7rSPUqIArQEv GX4FZVzJ0DOTSHO+wfm9pF7u4FODZNr7JBsS2bG+wNhFWc2rZip+G4nERksffCpedmBc f0nS43JfYi/mFFcemFvyEeOK5nAZJ7Szo8eU0Lrey/YTlVANqJvtwCAkeSE7zN9uKpq3 ZSLSS2VwngJK+eBIHV6k390ubIVBLpQwkosnbwQr2kDiUvzuMCrwVk8u7hwRdV0d6Kgc EXMoq4vHJkcId+XyDlh/e+SdJAphPMvCvf7hU8Vvnmt2XnjsFF/eWsmxFZdfvdAph/yy tM1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=lOU3R9v3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a170902cec700b001754410b705si14736762plg.268.2022.10.17.11.58.38; Mon, 17 Oct 2022 11:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=lOU3R9v3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230164AbiJQSYJ (ORCPT + 99 others); Mon, 17 Oct 2022 14:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbiJQSYH (ORCPT ); Mon, 17 Oct 2022 14:24:07 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1604366862 for ; Mon, 17 Oct 2022 11:24:06 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-345528ceb87so115526077b3.11 for ; Mon, 17 Oct 2022 11:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JkUI5JssnCLk+wBNiz00ckkGRif8NZmGGTgkXS2hWkQ=; b=lOU3R9v32wfppt01SdcRZ+nDOrOqv6FVKXkeODmFdFUXPexNSX2FBb4dBHnZcpBvHf tm66sh3zXeoKAos3Hny8IyXjXoOuw0IP+b9cnY4Iwv7jz5ElB/l/LHCdyDkevH3fnlsc nHEIhPn9PhMfygrC7ecOJuDBtAxxTIKaMRhMzkfbQ5mQqJUg95eizFmrWRf37SoCGcr0 Td3rZ+ks2NPUpzx1H3kSbkV8wwDr/fZaNludoxIkFbQGeC1V9++9qJTMl5ufN2JLWON7 7ZpDJjuCVANDUIdSLsuYtJLhst/v+/UjW+fi8GLTXuEvKLfu7QnTXoNJUnGFOoqR97B7 H/Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JkUI5JssnCLk+wBNiz00ckkGRif8NZmGGTgkXS2hWkQ=; b=obUpVYtKCP83E6wwmdnsW5rdajTaarzGM3lzO6AO4PNCZ5caka9oLJZYUsxO7EqMME v56gTIYH3Amm/3s7VK2aCSYidRTkj1vtS6aiG7L8FiYSDB47tgQSmj0bzK2AWzlWNSzB 6vy879r+iK5Xzwy4EX7L0nGXjD8Cp2Mv3sSJm8kMgTXorkHpYKxMC40Qe/6XpbAZ0gtL NomP6N29D4X9uPjx9ikFTLQWs7vYQCAxAe3YDV3itpiJWEOZrJSziE5g8Y6U/6wEaZ+2 9alUwdCVhviu6nwN8vN2o8a9VDYa9s/+5oZt75LwtTUz8whWXu9Rh5xXzAxFhCwlQUOO OmBA== X-Gm-Message-State: ACrzQf04UceoO8hlb1mvE5QtuV6tCzcAIxJ/6hTrOgC171CcjuRhiUq/ 4lmj0BYC08uo5h6cUaADpcKEzBa58o4vn9sIjRIa X-Received: by 2002:a0d:ebc1:0:b0:360:5a77:4d78 with SMTP id u184-20020a0debc1000000b003605a774d78mr10235224ywe.336.1666031045245; Mon, 17 Oct 2022 11:24:05 -0700 (PDT) MIME-Version: 1.0 References: <20220927225944.2254360-1-ankur.a.arora@oracle.com> <20220927225944.2254360-2-ankur.a.arora@oracle.com> In-Reply-To: From: Paul Moore Date: Mon, 17 Oct 2022 14:23:54 -0400 Message-ID: Subject: Re: [PATCH 1/3] audit: cache ctx->major in audit_filter_syscall() To: Ankur Arora Cc: linux-audit@redhat.com, eparis@redhat.com, linux-kernel@vger.kernel.org, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 28, 2022 at 6:03 PM Paul Moore wrote: > On Tue, Sep 27, 2022 at 6:59 PM Ankur Arora wrote: > > > > ctx->major contains the current syscall number. This is, of course, a > > constant for the duration of the syscall. Unfortunately, GCC's alias > > analysis cannot prove that it is not modified via a pointer in the > > audit_filter_syscall() loop, and so always loads it from memory. > > > > ... > > > > Signed-off-by: Ankur Arora > > --- > > kernel/auditsc.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > This looks pretty trivial to me, but it's too late in the current -rc > cycle for this to be merged, I'll queue it up for after the upcoming > merge window closes. Thanks. I just merged this into audit/next, thanks again! -- paul-moore.com