Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1399995ybs; Mon, 25 May 2020 15:18:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWFc0bb9+jQiJs1wRgQSZgggw/W8ZI0M9ehJHtIywj+Zqsejer64hoMe0YjH2gDJsvQF32 X-Received: by 2002:a17:906:410a:: with SMTP id j10mr19912212ejk.378.1590445086754; Mon, 25 May 2020 15:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590445086; cv=none; d=google.com; s=arc-20160816; b=MgQuqQOh000TZiqh60StjNfNfFon1lxmkGrjOYPfJCRUkRZzDO8qUOtHYGSi5yp/g2 xjoFldg5wJWq9v8WbFxXLI1slZdmH/W4ja8D6KpYEczC0cIChmhK1iQk3EPQ0u/0ng4O thOUe/qnmvbvTjn/V7R8NnWKuBtJyB6wW4vA5feesGqyAnEiGZVTLfxPAWw8HLdtvb2P A3wRdzLTJha9D2FPT6ifNIZaZkyusbMCIUu5ZL1FLiESpy/Dpa4Li+oi0QVFJMdDRYyc mgAu3bNr+aTCIvitzZB0Wg7pBf9NmHKBsHS7YzRhc9JxniK6ZeqIcdstwgegjIWJer0H wPgg== 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=PAB8InMNdHtw1sY8dxXS0+RSR7K8nRd/W2k8ffZ4Q3w=; b=QUt7a3gnSAPawIWQvRmp8PWPdVd5LgvG41nnVwzAghibFfGXBwSpdlHISqtAOjZvIl WSSC1iH/j/V+qY/AjAK1BQI/k8BD/cg+Z3pWlXd0Mc4IR86TwudL1I29oqbLNi44SNxR 4gVnU+uWjqGjYzrc2evlR2RjZ1uE0l9nqVm0q/S+XW5dFlD/dHGGr6+/ylnGUrii6cNk rjv7fC03wZE8T68I4iNGBsAbGBa3/HqhE3wWBGRwotvlALqIkdoDifBEqn+eFiaxSO9X nAG5hhOzEFwiFseqX8bdKZg1jzNY9kv3auOqUxPzBg5W/IBjqXXc0Fq4O+3CYMHK2Jab vcpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dQt1HWBC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl17si10072781ejb.241.2020.05.25.15.17.44; Mon, 25 May 2020 15:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dQt1HWBC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389744AbgEYSEj (ORCPT + 99 others); Mon, 25 May 2020 14:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388621AbgEYSEj (ORCPT ); Mon, 25 May 2020 14:04:39 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1483AC061A0E for ; Mon, 25 May 2020 11:04:39 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id z26so9066286pfk.12 for ; Mon, 25 May 2020 11:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PAB8InMNdHtw1sY8dxXS0+RSR7K8nRd/W2k8ffZ4Q3w=; b=dQt1HWBCWLmDUW4sY0Mjq7AsizTnXYbIqlA07X17hC7kRvqZXOW0r5uLSBi7HIboJy 1oaEhozTeWEe0OMESdA0thK5z5GakMN70IXUvYQptEkgg6WxQ3OF/ZtuzZ5QLrDwvxE9 Jzlu2CivysdX9LI7xIfqdUKF2roCZCnzYPwtnWUJyVt4ddzDV1MUwy5zxdOUrBnx9wDM PGCkHPAt5bZp95Z+al59oUl1263zfkAQWD7cCBlM2WAXvB8POff8EF+5wMtPIpGMdg7F coqtJIBArB+oepQtEqTJszeDkudWjkWEHw76Jkuqd+LljrBB0qFp3UQT/MlNKFd0/OGM HyyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PAB8InMNdHtw1sY8dxXS0+RSR7K8nRd/W2k8ffZ4Q3w=; b=gDtoVJbqrp42/IEYLmmQLUcPYAFsCkoMWAJOfzBVoCH201ph9OzTAk4LLoJsiO2VV/ 01mAJHvDjcaTl8DFZABnYuVQ3AckUy1AcdriXy+SGecDgAN+edsvM0WPPdK5Y9KOZw+E Rm9gIsRaExWNngqK0Z/UDNkBro5kaHOR6gakYa5VIsmYUzvqzfFhYNJT0NwUJ0BJBT+l 70F4lGjJmIV4y7+busokT2UFNcFYkgUVWAeVVPTaET36yvgF2hA/2Hzgp0FMWhBXIXiP BbwcbZw7qjZlCbsSitwgVYKHLnzwKUYckSDI9YR7thQbUE+4QrgB6gidw225IKHD/gK0 3D9Q== X-Gm-Message-State: AOAM530Kg/Dxu67KBfLPiUA/BpIa4kMRimEtFPs2SeIExEujQ0CzkrQY 8vSyQHoOH6wAtAC0s/dbDIs= X-Received: by 2002:a63:4cc:: with SMTP id 195mr27470706pge.294.1590429878562; Mon, 25 May 2020 11:04:38 -0700 (PDT) Received: from workstation-LAP.localdomain ([103.87.56.138]) by smtp.gmail.com with ESMTPSA id k2sm13946901pfd.108.2020.05.25.11.04.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 May 2020 11:04:37 -0700 (PDT) Date: Mon, 25 May 2020 23:34:21 +0530 From: Amol Grover To: Richard Guy Briggs 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 , Paul Moore , Eric Paris , "Paul E . McKenney" , linux-kernel@vger.kernel.org, Madhuparna Bhowmik , linux-audit@redhat.com, Joel Fernandes , linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH 1/3 RESEND] sched: Remove __rcu annotation from cred pointer Message-ID: <20200525180421.GA19@workstation-LAP.localdomain> References: <20200402055640.6677-1-frextrite@gmail.com> <20200524081117.GA29@workstation-LAP.localdomain> <20200525131741.s6lgb263fpo5uszk@madcap2.tricolour.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200525131741.s6lgb263fpo5uszk@madcap2.tricolour.ca> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 25, 2020 at 09:17:41AM -0400, Richard Guy Briggs wrote: > On 2020-05-24 13:41, Amol Grover wrote: > > On Thu, Apr 02, 2020 at 11:26:38AM +0530, Amol Grover wrote: > > > task_struct::cred (subjective credentials) is *always* used > > > task-synchronously, hence, does not require RCU semantics. > > > > > > task_struct::real_cred (objective credentials) can be used in > > > RCU context and its __rcu annotation is retained. > > > > > > However, task_struct::cred and task_struct::real_cred *may* > > > point to the same object, hence, the object pointed to by > > > task_struct::cred *may* have RCU delayed freeing. > > > > > > Suggested-by: Jann Horn > > > Co-developed-by: Joel Fernandes (Google) > > > Signed-off-by: Joel Fernandes (Google) > > > Signed-off-by: Amol Grover > > > > Hello everyone, > > > > Could you please go through patches 1/3 and 2/3 and if deemed OK, give > > your acks. I sent the original patch in beginning of February (~4 months > > back) and resent the patches again in beginning of April due to lack of > > traffic. Paul Moore was kind enough to ack twice - the 3/3 and its > > resend patch. However these 2 patches still remain. I'd really > > appreciate if someone reviewed them. > > I asked on April 3 which upstream tree you expect this patchset to go > through and I did not see a reply. Do you have a specific target or is > the large addressee list assuming someone else is taking this set? All > we have seen is that it is not intended to go through the audit tree. > Apologies for it. As Paul Moore replied, initially I assumed this patchset to not go through the audit tree as the audit specific changes were secondary to the main change (though certainly I did not think which upstream tree the patchset would go through). But now I am okay with the patchset making it to upstream via audit tree if it is fine by the maintainers. Thanks Amol > > Thanks > > Amol > > - 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 >