Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4034737rwb; Fri, 30 Sep 2022 11:47:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7zs85qUucPLu0eq6s6cj+RWsmv+pqdjREse+HntCj0mylXaHlMMXghawd3I5y7n/q0z+JA X-Received: by 2002:a05:6402:4505:b0:451:1551:7b14 with SMTP id ez5-20020a056402450500b0045115517b14mr8980594edb.300.1664563672185; Fri, 30 Sep 2022 11:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664563672; cv=none; d=google.com; s=arc-20160816; b=gkiav+mlkgrxE842swlmTUhqw+66y5QqaNgBybInWtyvqo2LUAkVb4V71bS4s2KSGy s2eHyJJOsjelmd0GCWFamXBC3f1O2uX0682p36evzhmNU3RJnh07YfVnn8XIWDXCsOWG 8iYcYjgtHPi4cYbrgyw3oqvKN4PDZfpOI0VaDBIFVn2WL3x0utolX3Mi7gXbFka+6m8Q N/3AaIWxBR8iFQ6WN4VU93OTSujoaho15d6aS+6PAbGavIbXXnCe8Nv8hKYW4065eXuH CjtTp0xAHMnovpC4sVixVxF89vqoy2SzqdUtxq56QIpdCrPiMgv6ItWplB5JK/xMp5n9 8Sfg== 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=C5CghR29yj45o3eN9hrrm+lM05BpwaaPuSm3KGiUITo=; b=tmVgFnPGilzVo2B9S1+IhBZ+bkUVEMCOPnddg1nm9vaIv1uFgqF0Y7s+xyNfCW+ut4 W/5UhZEn3EdVfbMcSJ6sd+5odKWie7NPGG4bmILWBk7Wu/Qr0Az+QDP97KQiWCWubwz5 n7DDpiVWNktSBlinZyYXCqSeHi2uH8SedAQFDrogOfVxyeaDe5ACF+eeZDtRItqt1tsw caGa90dG5WC86YyNmaDmFFZx1aHOVL46ZMz6mQUxAlfpoH04rB/wP5m+aNkn+CfZ3YC9 r08YTkkfjXkQeGPru5AWNAicddt/Nzx24mjYJZWtGgeyiVkVHOM4gLUmmrWuFsg6qpEe 6UUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=fNU4rSQA; 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 x4-20020aa7dac4000000b004565c425112si686673eds.412.2022.09.30.11.47.26; Fri, 30 Sep 2022 11:47:52 -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=fNU4rSQA; 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 S232295AbiI3SXO (ORCPT + 99 others); Fri, 30 Sep 2022 14:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232370AbiI3SXI (ORCPT ); Fri, 30 Sep 2022 14:23:08 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5730311F7F1 for ; Fri, 30 Sep 2022 11:23:06 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id d64so5547055oia.9 for ; Fri, 30 Sep 2022 11:23: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; bh=C5CghR29yj45o3eN9hrrm+lM05BpwaaPuSm3KGiUITo=; b=fNU4rSQA2vj6V+gJ/dhWhpyTFmcqHILkTTPnXbBshD9eiu3fV0kEVolVwME5iDw8dr PDjPipHf8DsBR/Zbi57Gm7JoZAeafdKDhpuEUyVzxl85r/2r+NY1I+iCezRX6vBZxeak yKqPwc8dK9gkr6SS3CtgGePvGfV2tfkiy7HZkNiFZL1oIiPLJovIdN8SvP8c0alqHrCv SF3kRgVTeXn27y5z11JnftlQErVba8+Dh1Aj2f8nihCfaD8iddMme6XMwj43mWJscfa8 5pUxUb+XpjU3USgQvDGztXVks2Tv8gINCyHRyUWFcazS+DmDO96TKcCL7NVXKObDh0ET HbBA== 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; bh=C5CghR29yj45o3eN9hrrm+lM05BpwaaPuSm3KGiUITo=; b=5941Brs4meFQEJcPvhh7mGZdkEIVAHgPikX+JWrPngdCGAySVAi84y1OZ9qWgpWDSf resWG7TVtJXGOn3UbenrQcirUmScQ/LnGsFlj3tn1HKmmh10H2fb2DrwwDQchdAJJIgL GqUmfVTKBYAm1J8RmNBzlqvZCOe/hn5Wi8XBnZ64HFaE7CcEgXYL0+2H7P3rA4bIo42e bCFi80ZYcZdDIHfnx/FfodSKs0RYA1txr291tLq1uyUwqkGFF/DHsYmPfTUoe/9H6JTe G4Chdo9nuzIvIV00hCF6cOi/S8bHAoi/jkP57umEnjkzyA0xKrUhrK5Yw8v8x3aVxkpR 1A0Q== X-Gm-Message-State: ACrzQf2b305hVbzNrwrLCSJgtQ905NcxwY5A7zmaMWt+YvueiOUEokXw EiTIr5ubgzQpgXADYhOBTwi/FFwdznsr5nuxrCEF67hmNw== X-Received: by 2002:aca:1c13:0:b0:350:ce21:a022 with SMTP id c19-20020aca1c13000000b00350ce21a022mr4493024oic.172.1664562184553; Fri, 30 Sep 2022 11:23:04 -0700 (PDT) MIME-Version: 1.0 References: <20220927225944.2254360-1-ankur.a.arora@oracle.com> <20220927225944.2254360-2-ankur.a.arora@oracle.com> <8171459.NyiUUSuA9g@x2> In-Reply-To: <8171459.NyiUUSuA9g@x2> From: Paul Moore Date: Fri, 30 Sep 2022 14:22:53 -0400 Message-ID: Subject: Re: [PATCH 1/3] audit: cache ctx->major in audit_filter_syscall() To: Ankur Arora Cc: linux-audit@redhat.com, boris.ostrovsky@oracle.com, linux-kernel@vger.kernel.org, eparis@redhat.com, konrad.wilk@oracle.com, Steve Grubb 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 Fri, Sep 30, 2022 at 1:45 PM Steve Grubb wrote: > Hello, > > Thanks for the detailed notes on this investigation. It really is a lot of > good information backing this up. However, there will come a day when someone > sees this "major = ctx->major" and they will send a patch to "fix" this > unnecessary assignment. If you are sending a V2 of this set, I would suggest > adding some comment in the code that this is for a performance improvement > and to see the commit message for additional info. Please do not send a v2 with the changes Steve is suggesting, I think this patch is fine as-is. -- paul-moore.com