All of lore.kernel.org
 help / color / mirror / Atom feed
* fanotify read returns with errno == EOPENSTALE
@ 2017-03-22 15:31 Marko Rauhamaa
  2017-03-22 18:01 ` Matthew Wilcox
  2017-03-22 18:20 ` Amir Goldstein
  0 siblings, 2 replies; 32+ messages in thread
From: Marko Rauhamaa @ 2017-03-22 15:31 UTC (permalink / raw)
  To: linux-fsdevel


An F-Secure product uses fanotify with OPEN_PERM. We ran into an
unexpected situation: a read(2) on the fanotify fd returned -1 with
errno == EOPENSTALE. The only place in the (development) kernel where I
can find EOPENSTALE is in nfs4file.c:nfs4_file_open().

Questions:

 * Should an fanotify client expect EOPENSTALE from read(2)?

 * According to <URL:
   https://github.com/torvalds/linux/blob/master/include/linux/errno.h>,
   EOPENSTALE "should never be seen by user programs." Is this a kernel
   bug?

 * The kernel in question is kernel-3.10.0-229.el7.x86_64 (RHEL 7.3). I
   will take it up with Red Hat if necessary. However, is this a known
   issue that has been fixed in a newer kernel version?


Marko

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2017-04-24  7:40 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-22 15:31 fanotify read returns with errno == EOPENSTALE Marko Rauhamaa
2017-03-22 18:01 ` Matthew Wilcox
2017-03-22 18:20 ` Amir Goldstein
2017-03-22 19:17   ` Amir Goldstein
2017-03-22 19:31   ` Al Viro
2017-03-22 19:39     ` Amir Goldstein
2017-03-23  8:13       ` Marko Rauhamaa
2017-03-23 11:46         ` Amir Goldstein
2017-03-23 11:56           ` Jeff Layton
2017-03-23 12:43             ` Marko Rauhamaa
     [not found]               ` <8760j02mfz.fsf-q6puBR44SRrF1m+2HNTUelaTQe2KTcn/@public.gmane.org>
2017-03-23 13:47                 ` Amir Goldstein
2017-03-23 13:47                   ` Amir Goldstein
2017-03-23 13:47                   ` Amir Goldstein
     [not found]                   ` <CAOQ4uxja14p02jQurLTGv_fHrs+UBa5qfacrgY_-7tyv6UJqdw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-19 13:46                     ` Marko Rauhamaa
2017-04-19 13:46                       ` Marko Rauhamaa
     [not found]                       ` <87lgqwa4tg.fsf-q6puBR44SRrF1m+2HNTUelaTQe2KTcn/@public.gmane.org>
2017-04-20 11:06                         ` Amir Goldstein
2017-04-20 11:06                           ` Amir Goldstein
     [not found]                           ` <CAOQ4uxirSfVVYBexXrWccDHnE5oqxNgUh3-X5Ey1w4R=nHXDjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-20 11:33                             ` Amir Goldstein
2017-04-20 11:33                               ` Amir Goldstein
     [not found]                               ` <CAOQ4uxjA8Z7wnwuHFCKeKT1xz0Gh-qS40Y6cfPi3fAM0MKsRuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-20 12:43                                 ` Marko Rauhamaa
2017-04-20 12:43                                   ` Marko Rauhamaa
     [not found]                                   ` <87shl38d1x.fsf-q6puBR44SRrF1m+2HNTUelaTQe2KTcn/@public.gmane.org>
2017-04-20 13:34                                     ` Amir Goldstein
2017-04-20 13:34                                       ` Amir Goldstein
     [not found]                                       ` <CAOQ4uxiJyrvEJMhM1jhiE5pCgP0iA_LL4Eo_h7UY00wkTKhbTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-21 13:13                                         ` Marko Rauhamaa
2017-04-21 13:13                                           ` Marko Rauhamaa
2017-04-20 14:20                               ` Jan Kara
     [not found]                                 ` <20170420142035.GE22135-4I4JzKEfoa/jFM9bn6wA6Q@public.gmane.org>
2017-04-20 15:06                                   ` Amir Goldstein
2017-04-20 15:06                                     ` Amir Goldstein
     [not found]                                     ` <CAOQ4uxgAOJjWP6PHY6WgOkNK0vmaTWnFZN+Jvea7zpjJ_VU8Bw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-22  7:22                                       ` Amir Goldstein
2017-04-22  7:22                                         ` Amir Goldstein
     [not found]                                         ` <CAOQ4uxgkXz+8=m2o_faAh2g2Z21KhAf67WckgPNWhktz1=DaWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-24  7:40                                           ` Marko Rauhamaa
2017-04-24  7:40                                             ` Marko Rauhamaa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.