Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4419785pxu; Tue, 1 Dec 2020 04:41:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyC2fNsmHmYWFamX7v6x4dLaG8r5zfPWiKdSibJ2rgx9c1V2lZoqEH/rkxyhGJyP2JXrGya X-Received: by 2002:a50:da84:: with SMTP id q4mr2715678edj.377.1606826512691; Tue, 01 Dec 2020 04:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606826512; cv=none; d=google.com; s=arc-20160816; b=oiJKNugiL6PwXiUf2siIeb30/rSLyBYKDukrKA/oT07CK9Ch6KewGKyusGV0nLGwGT Fk9+ZJXrsWCDCY9lXwPsFHWzuG2Dh5fIMF1/XeYCaDdrZ+AHdy3hkLtZcu6nT76zgzJf 7SPtROp29n0KeCcXUVRcMpfRTIy1h/OHsFomTfztHl/94J3sG1XUTF5ppHu/4KdjphFY mjwXF+ITkOpqXa4DOxYxywF3W1QnT7BQHo5ZW4S3ndUGtDl4Q3kcRWfVYLqNTseHNkMy WMr/01a+p02WrpXsAH1i1MSeawZGvIfE8XmaXsImKsUuM2sqxd3ryighiP8FyGaNKM7C NwpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=493pPRQ1cbcXG7JuRF1/JbMIArV86P0mGsjOr36MtbE=; b=ivW8BJ3jbjho17RTBWNiqWBrcGbniluuRHUcKer8HInVZB06ucFhvu5MxOfSb0PPli qhLRvO3t802TnSD0lhbJm0rTLUQr7E03xINOMAeUUq1yaYX6coUEUNieYBiVzEfVbPaa /wbEuC+xc0iTIj5VybmrHIjF8mjYwvAau3W5tKAmeQ9ngrhbTnw6Mu9ndEBiFJxmB1G8 3Y1Wirh6cIUqXxWstgUN5ZAC6b+31RJHc2hvG2OjOlgnII9h2mFnZBqdqYqD+f8nFG48 0Yi/eIh3Rg6uw1msZ5V6qrkSub3lXiOo9iGN00iplz7CHm20UPqLar9tBsY53oPOBqxN HQtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jMoi2W0U; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs21si835693ejc.395.2020.12.01.04.41.05; Tue, 01 Dec 2020 04:41:52 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=jMoi2W0U; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728687AbgLAMh3 (ORCPT + 99 others); Tue, 1 Dec 2020 07:37:29 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:41391 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbgLAMh3 (ORCPT ); Tue, 1 Dec 2020 07:37:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606826163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=493pPRQ1cbcXG7JuRF1/JbMIArV86P0mGsjOr36MtbE=; b=jMoi2W0UpGB0VN/gZsCagJJr6Lp96XRXn7alrEzBb0U1IEVtE7LgjXvFV+4PNK92+gB003 bQR1GizWLfWjLcIQGpumgOQMAXdfb3JY8dexP6rCpcvqUd+KO+wgdqUNcmSN+zHVYjHHHO 7/sDQ5JITSkE8pacywUMczLCeGM23Jg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-140-5ZRgk0Z7N4-aZFRnblE5pw-1; Tue, 01 Dec 2020 07:36:01 -0500 X-MC-Unique: 5ZRgk0Z7N4-aZFRnblE5pw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 35F921E7D2; Tue, 1 Dec 2020 12:36:00 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.135]) by smtp.corp.redhat.com (Postfix) with SMTP id F12E760BE5; Tue, 1 Dec 2020 12:35:57 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 1 Dec 2020 13:35:59 +0100 (CET) Date: Tue, 1 Dec 2020 13:35:56 +0100 From: Oleg Nesterov To: "Eric W. Biederman" Cc: Wen Yang , Alexey Dobriyan , Christian Brauner , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] proc: add locking checks in proc_inode_is_dead Message-ID: <20201201123556.GB2700@redhat.com> References: <20201128175850.19484-1-wenyang@linux.alibaba.com> <87zh2yit5u.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zh2yit5u.fsf@x220.int.ebiederm.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30, Eric W. Biederman wrote: > > Ouch!!!! Oleg I just looked the introduction of proc_inode_is_dead in > d855a4b79f49 ("proc: don't (ab)use ->group_leader in proc_task_readdir() > paths") introduced a ``regression''. > > Breaking the logic introduced in 7d8952440f40 ("[PATCH] procfs: Fix > listing of /proc/NOT_A_TGID/task") to keep those directory listings not > showing up. Sorry, I don't understand... Do you mean that "ls /proc/pid/task" can see an empty dir? Afaics this was possible before d855a4b79f49 too. Or what? Oleg.