Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5598936ybi; Tue, 28 May 2019 16:06:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJyr1suPPtA8+PA4ZWyjvquRJEWMGW0Kql2WbaeJBclROU0ZocYHeunthLq3l+TBDLGLGw X-Received: by 2002:a62:f245:: with SMTP id y5mr76412370pfl.12.1559084795618; Tue, 28 May 2019 16:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559084795; cv=none; d=google.com; s=arc-20160816; b=no1cT4dd+92vbEOV1uQJYtlei+xsZ7U42SEchRJsYWiDh+nujK7sEEe1mTkww9YfKD LdP29KnGHa7rA1db754/BI3HOnNoKyocevkC0ng8PjW3Wa4qm9aPtMB/g+IL9BTetp7O ODUwSV6FIIVHtuc4xOEbTH/uY856v0ki03fcxq/EZkPxuSGEgZfIYHlTvZQLVSryPa+Z y3oGrzUd8qjOBSTEmwuzORKKRv96uSZKljYmTZdtuQX/ZY9Yhb4utJEvombcoXT0fKj4 HVF9ySzuWBGXPaxy81SVZJ9flKvyA1yZqA3FRwlvjFTEJXkXjgYvu2oK0DK2wATCHW9R 42Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=3rzst4gyk4JMXsx0yQw7mq//wObLtIszlTKF4yLv3BY=; b=gS2lYguCV4732aK/DOHQHsNml1htJ7ij5FSK7PLpASBevjSWDeAgms4BSk+X056w/n QdeRW9GZbKxk/SSijLcZv+s7A3F5Li+MeBvLj2rOuZjoiw8b5f0oBEtZJo2kZR8fALze cuHwaNYz9PuErFB+FMlf9LzR4oyd8DIMG7aWhwAWqE55pDcb/eQnU0Zb0UFgL9FcTsBJ TN7aPlDAcMACrkHl/J7OXoW4i57TcqsSPbloV22C/dde8bVcopRTlf4rWh/bqPnD7KoY 7WRgR1UCv3A0XhB2g+rA9dqXy3bdT2yBnSVairOi+JdCgzMsAKUhXeG8jwWM0W9o3qXG /6gQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si25382969pfe.8.2019.05.28.16.06.20; Tue, 28 May 2019 16:06:35 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbfE1XEt (ORCPT + 99 others); Tue, 28 May 2019 19:04:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58240 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbfE1XEt (ORCPT ); Tue, 28 May 2019 19:04:49 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D6C53082B64; Tue, 28 May 2019 23:04:49 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-173.rdu2.redhat.com [10.10.120.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4BCCA600C1; Tue, 28 May 2019 23:04:47 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <155905930702.7587.7100265859075976147.stgit@warthog.procyon.org.uk> <155905933492.7587.6968545866041839538.stgit@warthog.procyon.org.uk> To: Jann Horn Cc: dhowells@redhat.com, Al Viro , raven@themaw.net, linux-fsdevel , Linux API , linux-block@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module , kernel list Subject: Re: [PATCH 3/7] vfs: Add a mount-notification facility MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10417.1559084686.1@warthog.procyon.org.uk> Date: Wed, 29 May 2019 00:04:46 +0100 Message-ID: <10418.1559084686@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 28 May 2019 23:04:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jann Horn wrote: > It might make sense to redesign this stuff so that watches don't hold > references on the object being watched. I explicitly made it hold a reference so that if you place a watch on an automounted mount it stops it from expiring. Further, if I create a watch on something, *should* it be unmountable, just as if I had a file open there or had chdir'd into there? David