RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1291402 - FANOTIFY - Add patch for listening daemon's own opens to be pre-approved
Summary: FANOTIFY - Add patch for listening daemon's own opens to be pre-approved
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.2
Hardware: Unspecified
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: Murphy Zhou
URL:
Whiteboard:
Depends On:
Blocks: 1295577 1296180 1313485
TreeView+ depends on / blocked
 
Reported: 2015-12-14 19:42 UTC by Steve Grubb
Modified: 2016-06-30 16:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-30 16:21:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Steve Grubb 2015-12-14 19:42:12 UTC
Description of problem:
If a daemon using FANOTIFY needs to open a file on a watched filesystem and
its wanting OPEN_PERM events, we get deadlock. (This could happen because
of a library the daemon is using suddenly decides it needs to look in a new
file.) 

Additional info:
Patch allowing this is posted upstream:
http://lkml.iu.edu/hypermail/linux/kernel/1510.1/03342.html

Comment 9 Eric Sandeen 2016-01-28 16:14:18 UTC
I sent a patch based on sgrubb's, moving "policy" to userspace at open time to fsdevel, and Jan Kara dumped cold water on that too.  As I am really not an expert in the subsystem or the usecase here, it'd be great to have sgrubb et al chime in with ideas and opinions on fsdevel...

Comment 10 Eric Sandeen 2016-06-30 16:18:03 UTC
This has never been agreed to or merged upstream, moving to 7.4 for now.

Comment 11 Steve Grubb 2016-06-30 16:21:38 UTC
This can actually be closed. I am making different plans to solve the problem. I do appreciate all the help on it.


Note You need to log in before you can comment on or make changes to this bug.