Bug 947140 - avahi spams logs
avahi spams logs
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: E-mail List
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-23 11:38 UTC by Marvin FourtyTwo
Modified: 2016-05-11 16:11 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marvin FourtyTwo 2015-09-23 11:38:22 UTC
Avahi spams logs with messages like this: 

avahi-daemon[1135]: Invalid response packet from host aaa.bbb.ccc.ddd

This is partly due to a Windows 10 bug (so it only happens if you have win10 machine in the same network).

see also:

https://bugzilla.redhat.com/show_bug.cgi?id=1240711
http://avahi.org/ticket/352

maybe this still needs another patch for win 10.
Comment 1 Bernhard Wiedemann 2015-09-23 13:17:00 UTC
avahi is part of GNOME

also, dont we have rate-limiting for log messages?
Comment 2 Marvin FourtyTwo 2015-09-23 13:25:32 UTC
sure, but that can't be the solution...

# journalctl -u avahi-daemon | grep Invalid | wc -l
119598

see?
Comment 3 Marvin FourtyTwo 2015-09-23 13:26:53 UTC
btw, the fedora patch fixes it for me:

diff -up avahi-0.6.31/avahi-core/server.c.invalid_packet avahi-0.6.31/avahi-core/server.c
--- avahi-0.6.31/avahi-core/server.c.invalid_packet     2015-09-22 08:12:58.544588701 -0500
+++ avahi-0.6.31/avahi-core/server.c    2015-09-22 08:13:39.743862403 -0500
@@ -972,11 +972,9 @@ static void dispatch_packet(AvahiServer
             return;
         }
 
-        if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT) != 0 ||
-            avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0 ||
-            avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0) {
+        if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0) {
 
-            avahi_log_warn("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address));
+            avahi_log_debug("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address));
             return;
         }
Comment 6 Dominique Leuenberger 2015-10-09 09:40:45 UTC
sr#337127 addresses this issue:


changes files:
--------------
--- avahi.changes
+++ avahi.changes
@@ -1,0 +2,6 @@
+Wed Oct  7 20:34:24 UTC 2015 - mgorse@suse.com
+
+- Add avahi-0.6.31-invalid-packet.patch: do not spam logs for
+  invalid packets (boo#947140 bsc#948277).
+
+-------------------------------------------------------------------
Comment 7 Achim Mildenberger 2015-11-06 08:56:08 UTC
Would it be possible to release a patched version of avahi for openSuSE 13.2? The problem exists there as well.

Thank you very much, Achim
Comment 8 Dominique Leuenberger 2015-11-06 09:16:08 UTC
Submitted to Leap 42.1 (doh.. that was missed) and 13.2

342646  State:review     By:dimstar      When:2015-11-06T09:14:27
        maintenance_incident: openSUSE:Factory/avahi@c899df5b01f6d61a84db35dcf5f55d48 -> openSUSE:Maintenance (release in openSUSE:Leap:42.1:Update)
        Review by User       is new:       maintbot                                          
        Descr: Release this as a maintenance update - the fix was forgotten in
               Leap 42.1 (especially the log spam fix)
 

342647  State:review     By:dimstar      When:2015-11-06T09:15:28
        maintenance_incident: openSUSE:Factory/avahi@c899df5b01f6d61a84db35dcf5f55d48 -> openSUSE:Maintenance (release in openSUSE:13.2:Update)
        Review by User       is new:       maintbot                                          
        Descr: Release this as a maintenance update - The issues are present
               also in 13.2
Comment 9 Swamp Workflow Management 2015-11-12 13:20:43 UTC
SUSE-RU-2015:1974-1: An update that has two recommended fixes can now be installed.

Category: recommended (low)
Bug References: 947140,948277
CVE References: 
Sources used:
SUSE Linux Enterprise Workstation Extension 12 (src):    avahi-glib2-0.6.31-22.4
SUSE Linux Enterprise Software Development Kit 12 (src):    avahi-0.6.31-22.4, avahi-glib2-0.6.31-22.4
SUSE Linux Enterprise Server 12 (src):    avahi-0.6.31-22.4, avahi-glib2-0.6.31-22.4
SUSE Linux Enterprise Desktop 12 (src):    avahi-0.6.31-22.4, avahi-glib2-0.6.31-22.4
Comment 10 Swamp Workflow Management 2015-11-16 11:10:42 UTC
openSUSE-RU-2015:1999-1: An update that has three recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 914298,947140,948277
CVE References: 
Sources used:
openSUSE Leap 42.1 (src):    avahi-0.6.31-26.1, avahi-glib2-0.6.31-26.1, avahi-mono-0.6.31-26.1, avahi-qt4-0.6.31-26.1
openSUSE 13.2 (src):    avahi-0.6.31-23.3.1, avahi-glib2-0.6.31-23.3.1, avahi-mono-0.6.31-23.3.1, avahi-qt4-0.6.31-23.3.1
Comment 11 Swamp Workflow Management 2015-12-29 14:10:59 UTC
SUSE-RU-2015:1974-2: An update that has two recommended fixes can now be installed.

Category: recommended (low)
Bug References: 947140,948277
CVE References: 
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP1 (src):    avahi-glib2-0.6.31-23.1
SUSE Linux Enterprise Software Development Kit 12-SP1 (src):    avahi-0.6.31-23.1, avahi-glib2-0.6.31-23.1
SUSE Linux Enterprise Server 12-SP1 (src):    avahi-0.6.31-23.1, avahi-glib2-0.6.31-23.1
SUSE Linux Enterprise Desktop 12-SP1 (src):    avahi-0.6.31-23.1, avahi-glib2-0.6.31-23.1
Comment 13 Swamp Workflow Management 2016-05-11 16:11:05 UTC
SUSE-RU-2016:1280-1: An update that has two recommended fixes can now be installed.

Category: recommended (low)
Bug References: 941761,947140
CVE References: 
Sources used:
SUSE Linux Enterprise Software Development Kit 11-SP4 (src):    avahi-0.6.23-11.34.3, avahi-glib2-0.6.23-13.34.8, avahi-mono-0.6.23-11.34.6
SUSE Linux Enterprise Server 11-SP4 (src):    avahi-0.6.23-11.34.3, avahi-glib2-0.6.23-13.34.8
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    avahi-0.6.23-11.34.3, avahi-glib2-0.6.23-13.34.8