From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:48750 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758909AbdCVTb2 (ORCPT ); Wed, 22 Mar 2017 15:31:28 -0400 Date: Wed, 22 Mar 2017 19:31:22 +0000 From: Al Viro To: Amir Goldstein Cc: Marko Rauhamaa , linux-fsdevel , Jan Kara , Jeff Layton Subject: Re: fanotify read returns with errno == EOPENSTALE Message-ID: <20170322193122.GV29622@ZenIV.linux.org.uk> References: <87inn12urq.fsf@drapion.f-secure.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Mar 22, 2017 at 02:20:15PM -0400, Amir Goldstein wrote: > Well, the behavior was changed in kernel 4.7 (and stable kernels) by > commit by Al Viro: > fac7d19 fix EOPENSTALE bug in do_last() > > Since that commit userspace will be able to see this error in fanotify events. Unless *notify somehow uses do_last() directly, that commit should have no effect on it (and it definitely has no effect on dentry_open() callers)...