Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1150301ybb; Fri, 3 Apr 2020 19:55:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLb2aiFCoPym5UAgobVDGWV70X71lufW3mEh7S3Wc652PO1kzQILFjSpGV3faoyVkgIksWW X-Received: by 2002:a9d:6354:: with SMTP id y20mr9022531otk.171.1585968957980; Fri, 03 Apr 2020 19:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585968957; cv=none; d=google.com; s=arc-20160816; b=IdG1kpA67j2z2/llwwwIRryi1jWzHPXlGAXNjs9pBunLyBe4KgqI6+XFlx4o086o/X bWgp4bPT4ryj2QMBgP3DBSPy//dS18m7yk1IWyWn+IYsgLtBECi3D3hKv4g/eJgNIiHY RJRwh02Wn5vXEOD7pFHa0GKz6fdlZLD1DiO1vmJPGsW/LpEnH3Kjh0kSJ+Q/peTD9gxA l0iB/S2rULSnjHtoD5Ozoo64K/2tGAn6PosIvE3Q5hTDYfmejPxjnrWgEBPfEMskewBL SPg7nh5DbP96gguHsOErir9++lHaZCk+CoOpNFuDk7ic3ulozQGRLZZ2LQpYxcQm0thl L6YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MLlUu/KBqpNQ9j9WA/dLvHKGWxsB53wUD6hlU/RrFUk=; b=rDF0MCMx+UoDADV+7oeRGUGSaj1J3+5XLE4bot0/bz+JTqB2kNOxySUwbIvv62mLp7 5O9mtZfTI8NK5KFBNQROwUaHlAF4kSPD32KjK9ANmRzo6WnZPuuDM3J3LCYjAL87cfrk lw7EjY2iEEC/XU06BiYkVBEkoi+sJLHu4UwrFMrrWIQql4x02kP1Np96mYKudIH5zC20 e8qwnLNVlC6CX858prpUlgr0gxY8xmo8w5uhBX649vJGjFJZ0ktgEUCsiEb5VErsaVo5 MrvEsTM7iUsVBaiyh9obdVWuT7l0L9M1jkERGK2OsDgqPKrdeZHQRRu9McxoBx2QEO2H x2vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IcgEkRgf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a66si4595635otb.65.2020.04.03.19.55.38; Fri, 03 Apr 2020 19:55:57 -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=@redhat.com header.s=mimecast20190719 header.b=IcgEkRgf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726254AbgDDCxa (ORCPT + 99 others); Fri, 3 Apr 2020 22:53:30 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:39707 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726208AbgDDCx3 (ORCPT ); Fri, 3 Apr 2020 22:53:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585968808; 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: in-reply-to:in-reply-to:references:references; bh=MLlUu/KBqpNQ9j9WA/dLvHKGWxsB53wUD6hlU/RrFUk=; b=IcgEkRgfuqrFkuZigjZcDNFRtrJqsDCr2Y72ef9JaQKntEaVnak8u6Nr6aCuWoL+IMfF2P Yqb89khKa0zCmTpZIqL0HJsNkpD/JUY56Dl5SHxMZDH1Sr+/J4RzAHcWqwnODnZmV4SiRZ A+YRW+yiITdUgkQ3EM7lM3QTrLMV08c= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-470-ZwPsPAlBMeeGXr2VcAle2A-1; Fri, 03 Apr 2020 22:53:23 -0400 X-MC-Unique: ZwPsPAlBMeeGXr2VcAle2A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 47D1113F8; Sat, 4 Apr 2020 02:53:20 +0000 (UTC) Received: from madcap2.tricolour.ca (unknown [10.3.128.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF1D55C28F; Sat, 4 Apr 2020 02:53:07 +0000 (UTC) Date: Fri, 3 Apr 2020 22:53:04 -0400 From: Richard Guy Briggs To: Paul Moore Cc: Amol Grover , Juri Lelli , Peter Zijlstra , David Howells , Joel Fernandes , Vincent Guittot , James Morris , Madhuparna Bhowmik , Ingo Molnar , Mel Gorman , linux-kernel-mentees@lists.linuxfoundation.org, "Paul E . McKenney" , Jann Horn , Steven Rostedt , Shakeel Butt , Thomas Gleixner , Dietmar Eggemann , Ben Segall , linux-kernel@vger.kernel.org, linux-audit@redhat.com, "Eric W . Biederman" , Andrew Morton Subject: Re: [PATCH 3/3 RESEND] auditsc: Do not use RCU primitive to read from cred pointer Message-ID: <20200404025304.llfj5xw23sapifgm@madcap2.tricolour.ca> References: <20200402055640.6677-1-frextrite@gmail.com> <20200402055640.6677-3-frextrite@gmail.com> <20200403075613.GA2788@workstation-portable> <20200403212138.kr72jr57ppzsv6rm@madcap2.tricolour.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-04-03 17:43, Paul Moore wrote: > On Fri, Apr 3, 2020 at 5:22 PM Richard Guy Briggs wrote: > > On 2020-04-03 13:26, 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? > > > > Via who's tree are you expecting this will make it upstream? > > When I asked a similar question back in February the response was > basically not the audit tree. Well, I went checking mingo and akpm's trees and didn't find 1/3 and 2/3 there even though I thought 3/3 was in audit/stable-5.6. I was mistaken, that patch in audit/stable-5.6 is a previous rcu fix for auditd_conn and not 3/3. > paul moore - RGB -- Richard Guy Briggs Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635