All of lore.kernel.org
 help / color / mirror / Atom feed
* netfilter 01/02: Make nflog quiet when no one listen in userspace.
@ 2008-06-11 12:42 Patrick McHardy
  2008-06-12  0:51 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2008-06-11 12:42 UTC (permalink / raw)
  To: David S. Miller; +Cc: Netfilter Development Mailinglist

[-- Attachment #1: Type: text/plain, Size: 498 bytes --]

Hi Dave,

following are two fixes for netfilter:

- silence a noisy warning when no logging backend is active

- fix a ctnetlink related crash in nf_nat_setup_info()

The second one is a regression present since 2.6.23, I'll
also send that one to -stable.

I have another patch queued to fix a NAT crash probably caused
by a RCU race, but I'd like to get confirmation that it actually
fixes the problem before sending it upstream, so I'll hold on
to it for a few more days.

Please apply, thanks.


[-- Attachment #2: 01.diff --]
[-- Type: text/x-diff, Size: 1556 bytes --]

netfilter: Make nflog quiet when no one listen in userspace.

The message "nf_log_packet: can't log since no backend logging module loaded
in! Please either load one, or disable logging explicitly" was displayed for
each logged packet when no userspace application is listening to nflog events.
The message seems to warn for a problem with a kernel module missing but as
said before this is not the case. I thus propose to suppress the message (I
don't see any reason to flood the log because a user application has crashed.)

Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>

---
commit 21fa91adce646ad0449e898a64edaa828ca131e7
tree 48ef8d9b33e312af5f55bf0d6795fab46c70fda2
parent 2e761e0532a784816e7e822dbaaece8c5d4be14d
author Eric Leblond <eric@inl.fr> Tue, 10 Jun 2008 07:54:34 +0200
committer Patrick McHardy <kaber@trash.net> Tue, 10 Jun 2008 07:54:34 +0200

 net/netfilter/nf_log.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c
index bc11d70..9fda6ee 100644
--- a/net/netfilter/nf_log.c
+++ b/net/netfilter/nf_log.c
@@ -92,10 +92,6 @@ void nf_log_packet(int pf,
 		vsnprintf(prefix, sizeof(prefix), fmt, args);
 		va_end(args);
 		logger->logfn(pf, hooknum, skb, in, out, loginfo, prefix);
-	} else if (net_ratelimit()) {
-		printk(KERN_WARNING "nf_log_packet: can\'t log since "
-		       "no backend logging module loaded in! Please either "
-		       "load one, or disable logging explicitly\n");
 	}
 	rcu_read_unlock();
 }

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

* Re: netfilter 01/02: Make nflog quiet when no one listen in userspace.
  2008-06-11 12:42 netfilter 01/02: Make nflog quiet when no one listen in userspace Patrick McHardy
@ 2008-06-12  0:51 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-06-12  0:51 UTC (permalink / raw)
  To: kaber; +Cc: netfilter-devel

From: Patrick McHardy <kaber@trash.net>
Date: Wed, 11 Jun 2008 14:42:04 +0200

> following are two fixes for netfilter:
> 
> - silence a noisy warning when no logging backend is active
> 
> - fix a ctnetlink related crash in nf_nat_setup_info()
> 
> The second one is a regression present since 2.6.23, I'll
> also send that one to -stable.
> 
> I have another patch queued to fix a NAT crash probably caused
> by a RCU race, but I'd like to get confirmation that it actually
> fixes the problem before sending it upstream, so I'll hold on
> to it for a few more days.
> 
> Please apply, thanks.

Both fixes applied, thanks Patrick!

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

end of thread, other threads:[~2008-06-12  0:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 12:42 netfilter 01/02: Make nflog quiet when no one listen in userspace Patrick McHardy
2008-06-12  0:51 ` David Miller

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.