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.8 required=3.0 tests=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 0EB39C11D00 for ; Thu, 20 Feb 2020 23:08:22 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id 66117222C4 for ; Thu, 20 Feb 2020 23:08:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 66117222C4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-17872-kernel-hardening=archiver.kernel.org@lists.openwall.com Received: (qmail 26307 invoked by uid 550); 20 Feb 2020 23:08:16 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 26266 invoked from network); 20 Feb 2020 23:08:15 -0000 Date: Thu, 20 Feb 2020 23:07:58 +0000 From: Al Viro To: Linus Torvalds Cc: "Eric W. Biederman" , LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module , Akinobu Mita , Alexey Dobriyan , Andrew Morton , Andy Lutomirski , Daniel Micay , Djalal Harouni , "Dmitry V . Levin" , Greg Kroah-Hartman , Ingo Molnar , "J . Bruce Fields" , Jeff Layton , Jonathan Corbet , Kees Cook , Oleg Nesterov , Solar Designer Subject: Re: [PATCH 0/7] proc: Dentry flushing without proc_mnt Message-ID: <20200220230758.GT23230@ZenIV.linux.org.uk> References: <20200212200335.GO23230@ZenIV.linux.org.uk> <20200212203833.GQ23230@ZenIV.linux.org.uk> <20200212204124.GR23230@ZenIV.linux.org.uk> <87lfp7h422.fsf@x220.int.ebiederm.org> <87pnejf6fz.fsf@x220.int.ebiederm.org> <871rqpaswu.fsf_-_@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro On Thu, Feb 20, 2020 at 03:02:22PM -0800, Linus Torvalds wrote: > On Thu, Feb 20, 2020 at 12:48 PM Eric W. Biederman > wrote: > > > > Linus, does this approach look like something you can stand? > > A couple of worries, although one of them seem to have already been > resolved by Al. > > I think the real gatekeeper should be Al in general. But other than > the small comments I had, I think this might work just fine. > > Al? I'll need to finish RTFS there; I have initially misread that patch, actually - Eric _is_ using that thing both for those directories and for sysctl inodes. And the prototype for that machinery (the one he'd pulled from proc_sysctl.c) is playing with pinning superblocks way too much; for per-pid directories that's not an issue, but for sysctl table removal you are very likely to hit a bunch of evictees on the same superblock...