Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp821749ybb; Fri, 3 Apr 2020 12:27:37 -0700 (PDT) X-Google-Smtp-Source: APiQypKY+iDgdphdSgHRSL32DyyiNuvPYbemMyexGG/ZHDIwTqb6G3QNDb7QfzQ0XXZjwycVS+Am X-Received: by 2002:a9d:6d82:: with SMTP id x2mr8103999otp.50.1585942056527; Fri, 03 Apr 2020 12:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585942056; cv=none; d=google.com; s=arc-20160816; b=JJfiiFjXeii1SBGn8CBt85L0WIIPCOtzyGQMU43SFC2yVHiKrnNc8Qwt86JUMo3pus 59kOZ80/kLBx9oJmI4zmQJydWYrvOlgx5UbeKdncyVqUDcpPBZILIekWzauclmmPdyOd HKbEaBbtIgQN1rSyHaJvpngZIBjEmuR1joI9Hjv5p1tIjLzAoDElLv2xHvXIaMzX2Dsy kouTkEe0Jwnsev2POMUjGvWuMUr7/VrOhlgTe/1pBPLGXgAkwcyGajaC34XiR5wew9FO rnigMdgTmYz9Vxm2TTvgE0E3KjsL/n7HwknhS3Wm8vbNc8FcRuQs0iIrA0PWqJB7NbvG BBgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=65rVr9Q9wr51d57tXR6aU7HcBrvBAcXIjk9gkyTDJto=; b=svW7GIWZFa+oqXbBcwofC8cdl5s9y+h4qKwZaGT610a05um7c/9OIVPWh80yWj2HM3 zLnk3s1Xi77IZBlDy6rYvpdhwkGkrfeI2Ct6rnY0hWv2o1P49Fa0K+7Oi0iSi+cyacrz kRKwei9w5rirpZEgdYF/nZzeV7pQdGRJwZFsXDv0FUrcOph9CVfrPlg+BesmExKqoMHb FzR0Iv2SXBrVzHSxcmN588EHGMAUJidAL4kF0lbYKQ5y4OtthH9cJILyh5C7en+JTZra 2G2ZwiKT008z0vv8vXI8H8EivpCzh+1JA1w9CDVOZAhdu4lre7I1iCCbFAVeyz5RrD1L sp9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=yIAUATGp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18si4080518otq.124.2020.04.03.12.27.23; Fri, 03 Apr 2020 12:27:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=yIAUATGp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728711AbgDCTZ4 (ORCPT + 99 others); Fri, 3 Apr 2020 15:25:56 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:36926 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbgDCTZz (ORCPT ); Fri, 3 Apr 2020 15:25:55 -0400 Received: by mail-ed1-f66.google.com with SMTP id de14so10640768edb.4 for ; Fri, 03 Apr 2020 12:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=65rVr9Q9wr51d57tXR6aU7HcBrvBAcXIjk9gkyTDJto=; b=yIAUATGpTxycCd6OS4/9mbNgMIuLoAjFDHvlIkWj8Rpv7U2iT8eIT5UEq669+by3O6 +2+9cS0/w5X+eP5/Q5HUbCaRkVlwKDEdIj1Vf0AjvJG5Ask5EmrfhNdxzn4zUyOHakUu i3qNWoKuZo4fTjdi09Wnjz9Tgz3tHK/PWPXXlHWl8LdbMLwO/gLxuNomGnjp4lAJ0yjT vpVVbxk1lGRrb+yIss3+VldnsIrapiNJQkCvCIlN6Mx1BX54F8XWFuN6Huh3hHskDkrm V7OIbPIA+McTO9XXT3A4jwi+48+SZtr6ZvTDu15U+ATosiHv0Qhn6ePOPdv2zsUQmGlb dvug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=65rVr9Q9wr51d57tXR6aU7HcBrvBAcXIjk9gkyTDJto=; b=YYo3pX4RWcae7FbjFN0XJI0KA03XW6n70lXRFyJm3Qea8X/rtU0ADEss6ApeWogRks fy/Fvm2RRT+cMnuhOmw4fR2y/huDfusxmgELLm8pai/1MsE/sZ2yhFB6PLoquEtQK2az klGnWsbsZcc4gN4pFX5228TwIm5x7bSrRZUu7KmQvUuXjySEoeZlrdA225uf9Qi1v/5p lu57TOepw2vmAa/rkFPww2rkXuyst11HFQmktDbbVq4DL3fAsaiI/RN0/fF5KsA674VI jyaoXA+hsOiNKOfb/52/RQEYJuMw8MH+C/y51PA+lDFzXzNL9IjLCTp9jcn9gAsF9xke Nr2A== X-Gm-Message-State: AGi0PuYSIa+V3O2IKSg01e3gIn2dietEqNznGt3/Ofbf8BYOsXvqlnxs v5QNNqSlDhiUB8aPRnd0r6BscHhPm61De0XNQF08 X-Received: by 2002:a17:906:583:: with SMTP id 3mr9741790ejn.308.1585941953025; Fri, 03 Apr 2020 12:25:53 -0700 (PDT) MIME-Version: 1.0 References: <20200402055640.6677-1-frextrite@gmail.com> <20200402055640.6677-3-frextrite@gmail.com> <20200403075613.GA2788@workstation-portable> In-Reply-To: <20200403075613.GA2788@workstation-portable> From: Paul Moore Date: Fri, 3 Apr 2020 15:25:42 -0400 Message-ID: Subject: Re: [PATCH 3/3 RESEND] auditsc: Do not use RCU primitive to read from cred pointer To: Amol Grover Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , James Morris , Thomas Gleixner , Jann Horn , David Howells , Shakeel Butt , "Eric W . Biederman" , Andrew Morton , Eric Paris , linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, linux-audit@redhat.com, Joel Fernandes , Madhuparna Bhowmik , "Paul E . McKenney" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 3, 2020 at 3:56 AM Amol Grover wrote: > On Thu, Apr 02, 2020 at 08:56:36AM -0400, Paul Moore wrote: > > On Thu, Apr 2, 2020 at 1:57 AM Amol Grover wrote: > > > task_struct::cred is only used task-synchronously and does > > > not require any RCU locks, hence, rcu_dereference_check is > > > not required to read from it. > > > > > > Suggested-by: Jann Horn > > > Co-developed-by: Joel Fernandes (Google) > > > Signed-off-by: Joel Fernandes (Google) > > > Signed-off-by: Amol Grover > > > --- > > > kernel/auditsc.c | 15 +++++---------- > > > 1 file changed, 5 insertions(+), 10 deletions(-) > > > > This is the exact same patch I ACK'd back in February, yes? > > > > https://lore.kernel.org/linux-audit/CAHC9VhQCbg1V290bYEZM+izDPRpr=XYXakohnDaMphkBBFgUaA@mail.gmail.com > > > > Hi Paul, > > That's correct. I've resend the series out of the fear that the first 2 > patches might've gotten lost as it's been almost a month since I last > sent them. Could you please ack this again, and if you don't mind could > you please go through the other 2 patches and ack them aswell? If you hadn't changed the patch at all, and it doesn't look like you did, you could have (and likely should have) just carried over my ACK. Regardless, I'll re-ACK it now (below). As far as the other two patches are concerned, they look okay to me but I would defer my ACK to maintainer of that code. Acked-by: Paul Moore -- paul moore www.paul-moore.com