[systemd-bugs] [Bug 61697] New: missing EPOLL_DEL causes logstorm when changing system time very early

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 2 09:04:56 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=61697

          Priority: medium
            Bug ID: 61697
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: missing EPOLL_DEL causes logstorm when changing system
                    time very early
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: major
    Classification: Unclassified
                OS: All
          Reporter: enrico.scholz at informatik.tu-chemnitz.de
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

Created attachment 75789
  --> https://bugs.freedesktop.org/attachment.cgi?id=75789&action=edit
quick patch to fix time change related logstorm

When system time is changed very early there can be created
thousands/millions of messages like

| Mar 02 17:20:47 gkar systemd[1]: systemd-tmpfiles-clean.timer: time change,
recalculating next elapse.
| Mar 02 17:20:47 gkar systemd[1]: Time has been changed
| ...
| Mar 02 17:20:49 gkar systemd-journal[1058]: Missed 91079 kernel messages
| Mar 02 17:20:49 gkar systemd[1]: systemd-tmpfiles-clean.timer: time change,
recalculating next elapse.


This happens because the 'm->time_change_watch.fd' is closed in the
hope that it gets removed from the epoll-fd too.  This removal does
not happen here because forked processes (udevd?) hold an instance of
the old timer fd which triggers epoll over and over again.

There should happen an explicit EPOLL_DEL before
close_nointr_nofail(m->time_change_watch.fd).


For me, it causes problems with the time_changed_watch.fd only.  But a
quick look it seems that other code was written under the same wrong
assumption and must be fixed too.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130302/177d5c69/attachment.html>


More information about the systemd-bugs mailing list