Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 707577 - systemd-readahead-collect fails, if auditd is started and selinux is turned on
Summary: systemd-readahead-collect fails, if auditd is started and selinux is turned on
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 19
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Eric Paris
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2011-05-25 12:33 UTC by Harald Hoyer
Modified: 2013-04-23 17:24 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-04-23 17:24:44 UTC
Type: ---

Attachments (Terms of Use)

Description Harald Hoyer 2011-05-25 12:33:52 UTC
From: Harald Hoyer <harald@redhat.com>

At the start of auditd, we are temporarily not able to read
from the fanotify fd. Ignoring it, seems to work.
 src/readahead-collect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/readahead-collect.c b/src/readahead-collect.c
index 3c48a02..913a340 100644
--- a/src/readahead-collect.c
+++ b/src/readahead-collect.c
@@ -380,7 +380,7 @@ static int collect(const char *root) {
                 if ((n = read(fanotify_fd, &data, sizeof(data))) < 0) {
-                        if (errno == EINTR || errno == EAGAIN)
+                        if (errno == EINTR || errno == EAGAIN || errno == EACCES)
                         log_error("Failed to read event: %m");

Comment 1 Harald Hoyer 2011-05-25 15:09:55 UTC
ok, seems to be a kernel bug... reassigning.

Comment 2 Lennart Poettering 2011-05-25 19:11:24 UTC
I have no applied Harald's fix to work around the problem for now. It's also in F15.

Comment 3 Josh Boyer 2012-06-06 13:02:40 UTC
Did this ever get worked on/fixed?

Comment 4 Harald Hoyer 2012-06-06 17:55:53 UTC
(In reply to comment #3)
> Did this ever get worked on/fixed?

Don't know.. might still be present

Comment 5 Harald Hoyer 2012-06-06 17:58:28 UTC
current systemd-readahead-collect works around the "bug"

                if ((n = read(fanotify_fd, &data, sizeof(data))) < 0) {

                        if (errno == EINTR || errno == EAGAIN)

                        /* fanotify sometimes returns EACCES on read()
                         * where it shouldn't. For now let's just
                         * ignore it here (which is safe), but
                         * eventually this should be
                         * dropped when the kernel is fixed.
                         * https://bugzilla.redhat.com/show_bug.cgi?id=707577 */
                        if (errno == EACCES)

                        log_error("Failed to read event: %m");
                        r = -errno;
                        goto finish;

Comment 6 Eric Paris 2012-06-06 18:13:10 UTC
It's still there.  Man I'm a bad maintainer.

Comment 7 Fedora End Of Life 2013-04-03 14:49:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:

Comment 8 Justin M. Forbes 2013-04-05 19:55:15 UTC
Is this still an issue with the 3.9 kernels in F19?

Comment 9 Justin M. Forbes 2013-04-23 17:24:44 UTC
This bug is being closed with INSUFFICIENT_DATA as there has not been a
response in 2 weeks.  If you are still experiencing this issue,
please reopen and attach the relevant data from the latest kernel you are
running and any data that might have been requested previously.

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