public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Obsolete messages ...
@ 2003-03-27  2:57 Davide Libenzi
  2003-03-27 14:21 ` David S. Miller
  0 siblings, 1 reply; 10+ messages in thread
From: Davide Libenzi @ 2003-03-27  2:57 UTC (permalink / raw)
  To: Linux Kernel Mailing List


Any CONFIG_DROP_FREAKIN_OBSOLETE_MSGS (SO_BSDCOMPAT,bdflush,...) anywhere
soon in 2.5.67 ? :)



- Davide


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

* Re: Obsolete messages ...
  2003-03-27  2:57 Obsolete messages Davide Libenzi
@ 2003-03-27 14:21 ` David S. Miller
  2003-03-27 14:46   ` Alan Cox
                     ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: David S. Miller @ 2003-03-27 14:21 UTC (permalink / raw)
  To: Davide Libenzi; +Cc: Linux Kernel Mailing List

On Wed, 2003-03-26 at 18:57, Davide Libenzi wrote:
> Any CONFIG_DROP_FREAKIN_OBSOLETE_MSGS (SO_BSDCOMPAT,bdflush,...) anywhere
> soon in 2.5.67 ? :)

If you fix the apps, the messages go away.  In fact, you want to know
that you have unfixed apps on your box when you run these kernels so
I'd say the messages should stay even well into early 2.6.x

-- 
David S. Miller <davem@redhat.com>

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

* Re: Obsolete messages ...
  2003-03-27 14:21 ` David S. Miller
@ 2003-03-27 14:46   ` Alan Cox
  2003-03-27 14:59     ` David S. Miller
  2003-03-27 18:11   ` Davide Libenzi
  2003-03-27 23:26   ` Dave Jones
  2 siblings, 1 reply; 10+ messages in thread
From: Alan Cox @ 2003-03-27 14:46 UTC (permalink / raw)
  To: David S. Miller; +Cc: Davide Libenzi, Linux Kernel Mailing List

On Thu, 2003-03-27 at 14:21, David S. Miller wrote:
> If you fix the apps, the messages go away.  In fact, you want to know
> that you have unfixed apps on your box when you run these kernels so
> I'd say the messages should stay even well into early 2.6.x

In which case they would benefit from net/shut_up sysctl. In lots of
environments they will just be a pain


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

* Re: Obsolete messages ...
  2003-03-27 14:46   ` Alan Cox
@ 2003-03-27 14:59     ` David S. Miller
  2003-03-27 15:51       ` James Morris
  0 siblings, 1 reply; 10+ messages in thread
From: David S. Miller @ 2003-03-27 14:59 UTC (permalink / raw)
  To: alan; +Cc: davidel, linux-kernel

   From: Alan Cox <alan@lxorguk.ukuu.org.uk>
   Date: 27 Mar 2003 14:46:11 +0000

   In which case they would benefit from net/shut_up sysctl. In lots of
   environments they will just be a pain
   
Keep in mind we have these kinds of messages in 2.4.x right this
very moment, and nobody complains about them nor asks for sysctls
to shut them off.

See net/socket.c:sock_create() for example.

Now, I'll all for netratelimit()'ing the networking ones.

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

* Re: Obsolete messages ...
  2003-03-27 14:59     ` David S. Miller
@ 2003-03-27 15:51       ` James Morris
  2003-03-27 15:52         ` David S. Miller
  0 siblings, 1 reply; 10+ messages in thread
From: James Morris @ 2003-03-27 15:51 UTC (permalink / raw)
  To: David S. Miller; +Cc: alan, davidel, linux-kernel

On Thu, 27 Mar 2003, David S. Miller wrote:

> Now, I'll all for netratelimit()'ing the networking ones.

What about warning just once like the SOCK_PACKET one?


- James
-- 
James Morris
<jmorris@intercode.com.au>

--- linux-2.5.66.orig/net/core/sock.c	Tue Mar 25 23:09:41 2003
+++ linux-2.5.66.w2/net/core/sock.c	Fri Mar 28 02:47:31 2003
@@ -155,8 +155,13 @@
 
 static void sock_warn_obsolete_bsdism(const char *name)
 {
-	printk(KERN_WARNING "process `%s' is using obsolete "
-	       "%s SO_BSDCOMPAT\n", current->comm, name);
+	static int warned;
+	
+	if (!warned) {
+		warned = 1;
+		printk(KERN_WARNING "process `%s' is using obsolete "
+		       "%s SO_BSDCOMPAT\n", current->comm, name);
+	}
 }
 
 /*


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

* Re: Obsolete messages ...
  2003-03-27 15:51       ` James Morris
@ 2003-03-27 15:52         ` David S. Miller
  0 siblings, 0 replies; 10+ messages in thread
From: David S. Miller @ 2003-03-27 15:52 UTC (permalink / raw)
  To: jmorris; +Cc: alan, davidel, linux-kernel

   From: James Morris <jmorris@intercode.com.au>
   Date: Fri, 28 Mar 2003 02:51:18 +1100 (EST)

   On Thu, 27 Mar 2003, David S. Miller wrote:
   
   > Now, I'll all for netratelimit()'ing the networking ones.
   
   What about warning just once like the SOCK_PACKET one?
   
Ok, applied.

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

* Re: Obsolete messages ...
  2003-03-27 14:21 ` David S. Miller
  2003-03-27 14:46   ` Alan Cox
@ 2003-03-27 18:11   ` Davide Libenzi
  2003-03-27 23:26   ` Dave Jones
  2 siblings, 0 replies; 10+ messages in thread
From: Davide Libenzi @ 2003-03-27 18:11 UTC (permalink / raw)
  To: David S. Miller; +Cc: Linux Kernel Mailing List

On Thu, 27 Mar 2003, David S. Miller wrote:

> On Wed, 2003-03-26 at 18:57, Davide Libenzi wrote:
> > Any CONFIG_DROP_FREAKIN_OBSOLETE_MSGS (SO_BSDCOMPAT,bdflush,...) anywhere
> > soon in 2.5.67 ? :)
>
> If you fix the apps, the messages go away.  In fact, you want to know
> that you have unfixed apps on your box when you run these kernels so
> I'd say the messages should stay even well into early 2.6.x

I know David, I already did ( named and /etc/inittab in my case ). My idea
was to have something like warn_obsolete(char *) to be used in all places
where necessary, and have a config option ( on by default ) that chop
messages in off case.



- Davide


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

* Re: Obsolete messages ...
  2003-03-27 14:21 ` David S. Miller
  2003-03-27 14:46   ` Alan Cox
  2003-03-27 18:11   ` Davide Libenzi
@ 2003-03-27 23:26   ` Dave Jones
  2003-03-27 23:44     ` Davide Libenzi
  2 siblings, 1 reply; 10+ messages in thread
From: Dave Jones @ 2003-03-27 23:26 UTC (permalink / raw)
  To: David S. Miller; +Cc: Davide Libenzi, Linux Kernel Mailing List

On Thu, Mar 27, 2003 at 06:21:14AM -0800, David S. Miller wrote:

 > > Any CONFIG_DROP_FREAKIN_OBSOLETE_MSGS (SO_BSDCOMPAT,bdflush,...) anywhere
 > > soon in 2.5.67 ? :)
 > 
 > If you fix the apps, the messages go away.  In fact, you want to know
 > that you have unfixed apps on your box when you run these kernels so
 > I'd say the messages should stay even well into early 2.6.x

If folks want to mail me reports of any app (and version, even distro
info) that reports these sorts of messages, I'll add them to the doc at 
http://www.codemonkey.org.uk/post-halloween-2.5.txt

		Dave


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

* Re: Obsolete messages ...
  2003-03-27 23:26   ` Dave Jones
@ 2003-03-27 23:44     ` Davide Libenzi
  2003-03-28 22:48       ` jjs
  0 siblings, 1 reply; 10+ messages in thread
From: Davide Libenzi @ 2003-03-27 23:44 UTC (permalink / raw)
  To: Dave Jones; +Cc: David S. Miller, Linux Kernel Mailing List

On Thu, 27 Mar 2003, Dave Jones wrote:

> On Thu, Mar 27, 2003 at 06:21:14AM -0800, David S. Miller wrote:
>
>  > > Any CONFIG_DROP_FREAKIN_OBSOLETE_MSGS (SO_BSDCOMPAT,bdflush,...) anywhere
>  > > soon in 2.5.67 ? :)
>  >
>  > If you fix the apps, the messages go away.  In fact, you want to know
>  > that you have unfixed apps on your box when you run these kernels so
>  > I'd say the messages should stay even well into early 2.6.x
>
> If folks want to mail me reports of any app (and version, even distro
> info) that reports these sorts of messages, I'll add them to the doc at
> http://www.codemonkey.org.uk/post-halloween-2.5.txt

Well, usually /etc/inittab calls /sbin/update ( bdflush ). About
SO_BSDCOMPAT I can report Bind 9.2.2 but I think their code is right. They
do check for "#ifdef SO_BSDCOMPAT", that is still defined in asm/socket.h.
By removing SO_BSDCOMPAT from asm/socket.h and rebuilding, it should be
fine.



- Davide


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

* Re: Obsolete messages ...
  2003-03-27 23:44     ` Davide Libenzi
@ 2003-03-28 22:48       ` jjs
  0 siblings, 0 replies; 10+ messages in thread
From: jjs @ 2003-03-28 22:48 UTC (permalink / raw)
  To: Davide Libenzi; +Cc: Dave Jones, David S. Miller, Linux Kernel Mailing List

Davide Libenzi wrote:

>Well, usually /etc/inittab calls /sbin/update ( bdflush ). About
>SO_BSDCOMPAT I can report Bind 9.2.2 but I think their code is right. They
>do check for "#ifdef SO_BSDCOMPAT", that is still defined in asm/socket.h.
>By removing SO_BSDCOMPAT from asm/socket.h and rebuilding, it should be
>fine.
>
ACK! - commenting out the SO_BSDCOMPAT
line in asm/socket.h and rebuilding the bind rpms
cured the plague of syslog msgs here (RH 8.0)


Best Regards,

Joe


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

end of thread, other threads:[~2003-03-28 22:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-27  2:57 Obsolete messages Davide Libenzi
2003-03-27 14:21 ` David S. Miller
2003-03-27 14:46   ` Alan Cox
2003-03-27 14:59     ` David S. Miller
2003-03-27 15:51       ` James Morris
2003-03-27 15:52         ` David S. Miller
2003-03-27 18:11   ` Davide Libenzi
2003-03-27 23:26   ` Dave Jones
2003-03-27 23:44     ` Davide Libenzi
2003-03-28 22:48       ` jjs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox