From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A029C35254 for ; Mon, 10 Feb 2020 17:46:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 52FDD2080C for ; Mon, 10 Feb 2020 17:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581356811; bh=s36p1l4ZPlQFYPOrfr/fxqnjD5UfABvmtBfZytlVlp4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=dRs0rYkKiaYNzqx0WA0Osrr3Gsggy7278KWm79qv3E64KWuhhk83VgGpWZFt/UBOu i6VdHuoYYFOn0gBSMe9tg9I7HBga/oQzV3j6R4WqQlAp07dGP+Z4cCT/Bmo8Hamnm7 mAXU/51KiSfwQQuLwA2pBZ5RfKj0bxqHfIwCE7nw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727806AbgBJRqu (ORCPT ); Mon, 10 Feb 2020 12:46:50 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36471 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbgBJRqs (ORCPT ); Mon, 10 Feb 2020 12:46:48 -0500 Received: by mail-lj1-f193.google.com with SMTP id r19so8244816ljg.3 for ; Mon, 10 Feb 2020 09:46:47 -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=cd7U9/E5zM6vdJXJL0VBLjpcSRP3btq2n4zEa+RoYVrvrDpt33Uz1m2t0kcRg73GF8 M8ceW4M4/XI5rXEsMUOILzWiYpuYr4sKsusUGHiRwort3Z/EELWfqR2nNqPJNwGbquXL p1OcVUZi81IpYnOX4IbGFyF+8tW7vp9J4ATWWx6JESSy/zwW+c2uZZEEFzWXBD8vy2wh FA5xwfs5Gqerorp7X4Bzb58E5iJRe1NzYsd0tGoFR0D+7ggVsSbCZdbhnh8vfLiteKUT 1PP64vufrLKsHmLs98gpDun3cEjeIF3woHbdpkKUKVSIf/EfFVq3+tWYcQQRSHJsd3Tn 47oA== X-Gm-Message-State: APjAAAX8TqcJCk/nZ8TVtu6c5NNUtCD1Qnnh39Mx+wRXFVVYwpefy37h e1R9XVqeG0k7RcCuXiZgTxjlL1Nucp4= X-Google-Smtp-Source: APXvYqzLG22wBD5IcTW/Vc2qSvcJoSbPKxzDxFWQ/XQ1JlShsMK3jbCDYtGZ06KpPshXZsZ0379ixw== X-Received: by 2002:a2e:808a:: with SMTP id i10mr1623964ljg.151.1581356805353; Mon, 10 Feb 2020 09:46:45 -0800 (PST) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id d4sm477622lfn.42.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-f171.google.com with SMTP id a13so8196667ljm.10 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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