Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp934913ybb; Fri, 3 Apr 2020 14:45:37 -0700 (PDT) X-Google-Smtp-Source: APiQypJ6Qz87oTpYV5+HtiTyU4S/sZaR2u8Rq9HzU7RC6h7P3q6FjdTY8lwBw/Je89D7YGEayeEI X-Received: by 2002:a9d:18f:: with SMTP id e15mr7716115ote.42.1585950337355; Fri, 03 Apr 2020 14:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585950337; cv=none; d=google.com; s=arc-20160816; b=c52VJTj6mVrp41mWYveSixIlE+EyBPDPzIWCrFwY2HaVZpzAqHxnVQLtJYT6V8U1Du YuX/CU1iviGvkH2Ce9TkXFhIiETno61rvpCAZTwK2LYb5QscNP9ddVDmXVvk4g7+A9ND /eOG95TpqsAkTc81gNMIpxjfi92WahKHfDrY1efgo0JtargcdANc6L56JjL6BfN23rO/ anpTTwtoxMCZb0GO383vpZQaJQR1cxg4iVovP58/hoRyouVVGQkYB8frmMniP76YeRQw rmV3EXYvicU/Okj5wauqkpRga1KLn4lvsZcWDvu4o63hhVNElmiLjq+ybgcRIiHlkOUT Sywg== 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=vrK7vwUeUnQBBKtc7jLVryrHjAhV8bpINdD94AtArAQ=; b=YM+obnvKVf6MRU3EqhmrubXYjr0CPUxQkVq+xke9fRQuLm+kl7zaU74AWqmxxnCj5m 8vODTrx1pbxjdpe6w6cijpZObN1ikdz+kzZqY67Q5fvrfqoY7PpYcnLRe35rx/Qt/A1a 29FEhnGw+YymoWMPYmVEPKAmk6tPLEO6Q/4Tk4G5kRG3hZrnRxBkLvMpTeWNObHCop9U kIua00AVP85X6BgzUD30HJMSN3ixYcyS7//UsSxMLuMp4PcMCV5rn+fR65nO/DrFbE5h ynqJUw5uoexAnGk5NPFJrmuXZ3+exDqecb/BQ9Am/XEiVSCjMj/UIf2lvR9fzTaRczRu J6mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=BqhEXmar; 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 w11si4809437oib.235.2020.04.03.14.45.24; Fri, 03 Apr 2020 14:45:37 -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=BqhEXmar; 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 S1728060AbgDCVoJ (ORCPT + 99 others); Fri, 3 Apr 2020 17:44:09 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36040 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbgDCVoI (ORCPT ); Fri, 3 Apr 2020 17:44:08 -0400 Received: by mail-ed1-f65.google.com with SMTP id i7so11098118edq.3 for ; Fri, 03 Apr 2020 14:44:08 -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=vrK7vwUeUnQBBKtc7jLVryrHjAhV8bpINdD94AtArAQ=; b=BqhEXmarpha79beDhAorB7lrnB2lI2KqeqEc9AalPy8EKuqfwoJUOFuhlDZM0NCIp7 HYaQ3xyxEV40Uz96yFvPMayjvCC1LJJzKF6j2T8RKSsyGrWS1YzFBBmbQtz77rHlnCeh IctJOBWK1WJPBhECOIuCiEm7oE+XykwiB2gqVQcOaUUkfhBjgNwKahFWqyugap3x+UQq AZSMWWuYDVfRTjAAw9pn9KztugTIxD7EZ+GEijrCzzLS4EXkqSYDYbdDiwYmA+di2JSP F9ks/fvOHQDQdBpdEaSudpR/AdtMfrZ+Fi6ZxkFvnJhuncgORpMdFbSNnXAzXFvGFe66 Wq2w== 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=vrK7vwUeUnQBBKtc7jLVryrHjAhV8bpINdD94AtArAQ=; b=lFIX5OchvqbvyUadRdRZZuD5ChdsYeDa9t1dkftHNpmuB/qUft9RJFrjUgnoPxb5Li s82eeSB0sKe1be7ep4Tsu1+bGdU1rrKPUwGpu2lUdSz91g6LDwxPvLQrSPqs3vArUPko cDVTGR+6/dUVP35D8wv35C2BOISCqXHoFEhGihcTBjVKZPRirVom2U5s74PomTOzDSwO sZxhedjXSmdfe/FrKQ4MkWHn6tUcywaDf96v73877KXvCmG8yIWK6VD6rUq+oCrBXzO5 vJdzykquK3xWtnMp2FEWoQA77TUT6aWqXdwPT52DiYWOCBb/I57zc+lXmzFxRniqXmy+ R71Q== X-Gm-Message-State: AGi0PuZWrJT+30ITkrO0ASe8QiJGNsu7JDlqc1JVF4dolhH6tTWbWtfk gsnib687oXF8Qp9RjjsOD0/Xhp3KWaslTUvK9igQ X-Received: by 2002:a17:906:b2c7:: with SMTP id cf7mr10678793ejb.271.1585950247447; Fri, 03 Apr 2020 14:44:07 -0700 (PDT) MIME-Version: 1.0 References: <20200402055640.6677-1-frextrite@gmail.com> <20200402055640.6677-3-frextrite@gmail.com> <20200403075613.GA2788@workstation-portable> <20200403212138.kr72jr57ppzsv6rm@madcap2.tricolour.ca> In-Reply-To: <20200403212138.kr72jr57ppzsv6rm@madcap2.tricolour.ca> From: Paul Moore Date: Fri, 3 Apr 2020 17:43:56 -0400 Message-ID: Subject: Re: [PATCH 3/3 RESEND] auditsc: Do not use RCU primitive to read from cred pointer To: Richard Guy Briggs 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 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 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. -- paul moore www.paul-moore.com