Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3971041ybv; Mon, 10 Feb 2020 09:47:26 -0800 (PST) X-Google-Smtp-Source: APXvYqw26PwBY/WaWQ0/u0IRjYN9Hd1kdQLBOvoZrepPNhHUlBQdAMhFAKTF1u5tcqE4jSGo7KHP X-Received: by 2002:a9d:3f4b:: with SMTP id m69mr1815719otc.146.1581356846210; Mon, 10 Feb 2020 09:47:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581356846; cv=none; d=google.com; s=arc-20160816; b=XBIb/tSv9u5VupC14IgqP2wnG76ZG41EB3wOY6QLhe9r6vGHLCmZibs+T2T30WSOoK m9n64BoW/tu9gDNFZyG6Jg4b9aurk9tov8uAVPYbMr+y4I1T3PB13dSimAS+frivH3qo 1PLueSW7VnUXUemtr8GD8FvWhzZY671aR6WIUSc4HMM1e6Zm/bN+cngrQMo6I6qc8Kje sSwKO2JkRkvw3r8uC0WLZYtyRPVIP3kd1RyzSEH/QucQ0Qu5H8VbKrlUNUM8qW6dnx5N eUVg0uZCuzWAip0v1Mc6waocyYjrHORwds8jO3ajtbtmhvbl226JZ8HNrCVy/5EtmeK9 V/Cg== 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=cMABvWd/7c4TphsJ+M/Bzt18EBtYsvxejNNk0qYwcjM=; b=GWERRne7WtXeIr8UCStdcPIq7dhjnJLey6Dx8U94FwMo7chSKa0V/3av+FvheX5yi0 NMznOeb2B6dFmeJqvRi7k7+55WJalZUjUJ1PAJEZ3FOnEBWFVkQJDJ0OVYjD8yBqLm9C PRuzrkWRJ+f2IuFyxjYfYlaP6kwgo5rAj6a99O+z7pz+RnztMLm2p+pW6ay9CQdqQKeH qSSFI6PGsV1iBsXYem7obgjFTApP+k4z67M35lXZlQusi1GmzfVjD/yegRfIwTuvQcRE O9dEw2NNLY7mSgegJGWPMm/tlgu4u8dZf3nGQ0d7nCDv4np/ztv0oVnftvs4XK7EsVw/ 1tgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AJWGb7vi; 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 l5si506459otn.35.2020.02.10.09.47.14; Mon, 10 Feb 2020 09:47:26 -0800 (PST) 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=@linux-foundation.org header.s=google header.b=AJWGb7vi; 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 S1728174AbgBJRqs (ORCPT + 99 others); Mon, 10 Feb 2020 12:46:48 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:34814 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727806AbgBJRqr (ORCPT ); Mon, 10 Feb 2020 12:46:47 -0500 Received: by mail-lj1-f193.google.com with SMTP id x7so8250706ljc.1 for ; Mon, 10 Feb 2020 09:46:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cMABvWd/7c4TphsJ+M/Bzt18EBtYsvxejNNk0qYwcjM=; b=AJWGb7viPUuSlXbBtks15QbiGc0V+5N1kFBw6HmGv/BocUHZwmHNnivHvSwIiPeEQm 1fliH10RGyoPY6yV4O5rwY5izrulFkNof0M2GsGbSrfCirug6Mx7f0jNvrzCMioGftQD acWtx/PsAUjj64YLYfwg5kSuWK5If6M0QpBoQ= 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=cMABvWd/7c4TphsJ+M/Bzt18EBtYsvxejNNk0qYwcjM=; b=MVN7gaUPKGL+tthcRH4ogr1kxfix7zuFEn189kIJL58fjSFVIEfGj8PksdL8UyNe8P ENNu1qFBFGpNPQ0H3eteTmHlFbg+Z5rfuIVjI/XG5SCKBQrM0PrCAHJu6NWmCSuDDiQ+ Iiy6VikV16UpSVFFv22INlODMbm4a5aGLGqDeYFOKFwnfiLuSGNBhrQxm5h2mq+f5W7O +V7xlVw9QsCplxJgpQ4UMJpsQZfh7940buciCCS7z0JY4iGvNSWUnwAEbfxBsiSOFxc/ HYeckoxcl1eKHOMadbjyHbY/H2TpgFgSqrboceqAsP78SY8qYXowOjqLj0yeMPpOHxad LhUw== X-Gm-Message-State: APjAAAVnQHWaV0OwUcny7gZvCaRuQc34CfPEL5a/rmtmczfVugobWovP BEbASYTC2xa8XJb/uw4+KYpLGlDIJPI= X-Received: by 2002:a2e:b5ce:: with SMTP id g14mr1501347ljn.264.1581356804945; Mon, 10 Feb 2020 09:46:44 -0800 (PST) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id v7sm667949ljd.12.2020.02.10.09.46.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Feb 2020 09:46:43 -0800 (PST) Received: by mail-lj1-f180.google.com with SMTP id q8so8176675ljj.11 for ; Mon, 10 Feb 2020 09:46:42 -0800 (PST) X-Received: by 2002:a2e:461a:: with SMTP id t26mr1591348lja.204.1581356802297; Mon, 10 Feb 2020 09:46:42 -0800 (PST) MIME-Version: 1.0 References: <20200210150519.538333-1-gladkov.alexey@gmail.com> <20200210150519.538333-8-gladkov.alexey@gmail.com> In-Reply-To: <20200210150519.538333-8-gladkov.alexey@gmail.com> From: Linus Torvalds Date: Mon, 10 Feb 2020 09:46:26 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 07/11] proc: flush task dcache entries from all procfs instances To: Alexey Gladkov Cc: LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module , Akinobu Mita , Alexander Viro , Alexey Dobriyan , Andrew Morton , Andy Lutomirski , Daniel Micay , Djalal Harouni , "Dmitry V . Levin" , "Eric W . Biederman" , Greg Kroah-Hartman , Ingo Molnar , "J . Bruce Fields" , Jeff Layton , Jonathan Corbet , Kees Cook , Oleg Nesterov , Solar Designer 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 Mon, Feb 10, 2020 at 7:06 AM Alexey Gladkov wrote: > > This allows to flush dcache entries of a task on multiple procfs mounts > per pid namespace. > > The RCU lock is used because the number of reads at the task exit time > is much larger than the number of procfs mounts. Ok, this looks better to me than the previous version. But that may be the "pee-in-the-snow" effect, and I _really_ want others to take a good look at the whole series. The right people seem to be cc'd, but this is pretty core, and /proc has a tendency to cause interesting issues because of how it's involved in a lot of areas indirectly. Al, Oleg, Andy, Eric? Linus