All of lore.kernel.org
 help / color / mirror / Atom feed
* Preparation for Linux 3.0
@ 2011-06-02  3:50 Tetsuo Handa
  2011-06-02 19:11 ` Henrique de Moraes Holschuh
  0 siblings, 1 reply; 3+ messages in thread
From: Tetsuo Handa @ 2011-06-02  3:50 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

I noticed that commit 55922c9d "Linux 3.0-rc1" caused
dhcp-client 2.0pl5-19.1sarge3 (in Debian Sarge) to report SIOCSIFNETMASK and
SIOCSIFBRDADDR errors (though, it seems to me that these errors are not
affecting the functionality).

  Setting up IP spoofing protection: rp_filter.
  Configuring network interfaces...Internet Software Consortium DHCP Client 2.0pl5
  Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
  All rights reserved.
  
  Please contribute if you find this software useful.
  For info, please visit http://www.isc.org/dhcp-contrib.html
  
  [   21.081635] pcnet32 0000:02:00.0: eth0: link up
  SIOCSIFNETMASK: Cannot assign requested address
  SIOCSIFBRDADDR: Cannot assign requested address
  Listening on LPF/eth0/00:0c:29:9e:eb:32
  Sending on   LPF/eth0/00:0c:29:9e:eb:32
  Sending on   Socket/fallback/fallback-net
  DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
  DHCPOFFER from 192.168.1.254
  DHCPREQUEST on eth0 to 255.255.255.255 port 67
  DHCPACK from 192.168.1.254
  bound to 192.168.1.128 -- renewal in 43200 seconds.
  done.
  Starting portmap daemon: portmap.



I guess this program is doing something like below.

  if grep -q ^2.6 /proc/sys/kernel/osrelease
  then
    do ioctl for 2.6 kernels
  else
    do ioctl for 2.4 kernels
  fi

We need to widely announce that userland applications using branches based on
/proc/sys/kernel/osrelease need to be fixed.

Regards.

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

* Re: Preparation for Linux 3.0
  2011-06-02  3:50 Preparation for Linux 3.0 Tetsuo Handa
@ 2011-06-02 19:11 ` Henrique de Moraes Holschuh
  2011-06-02 22:19   ` Tetsuo Handa
  0 siblings, 1 reply; 3+ messages in thread
From: Henrique de Moraes Holschuh @ 2011-06-02 19:11 UTC (permalink / raw)
  To: Tetsuo Handa; +Cc: torvalds, linux-kernel

On Thu, 02 Jun 2011, Tetsuo Handa wrote:
> We need to widely announce that userland applications using branches based on
> /proc/sys/kernel/osrelease need to be fixed.

A debug patch to disclose any userspace application that touches that file
would be of some help, I suppose?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

* Re: Preparation for Linux 3.0
  2011-06-02 19:11 ` Henrique de Moraes Holschuh
@ 2011-06-02 22:19   ` Tetsuo Handa
  0 siblings, 0 replies; 3+ messages in thread
From: Tetsuo Handa @ 2011-06-02 22:19 UTC (permalink / raw)
  To: hmh; +Cc: torvalds, linux-kernel

Henrique de Moraes Holschuh wrote:
> On Thu, 02 Jun 2011, Tetsuo Handa wrote:
> > We need to widely announce that userland applications using branches based on
> > /proc/sys/kernel/osrelease need to be fixed.
> 
> A debug patch to disclose any userspace application that touches that file
> would be of some help, I suppose?

Testing with a 2.6.39 kernel built with a patch

--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-VERSION = 2
-PATCHLEVEL = 6
-SUBLEVEL = 39
+VERSION = 3
+PATCHLEVEL = 0
+SUBLEVEL = 0
 EXTRAVERSION =
 NAME = Flesh-Eating Bats with Fangs

applied will be the best.

But a writable sysctl entry (or kernel boot command line option) that changes
the output of /proc/sys/kernel/osrelease may be of some help.

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

end of thread, other threads:[~2011-06-02 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02  3:50 Preparation for Linux 3.0 Tetsuo Handa
2011-06-02 19:11 ` Henrique de Moraes Holschuh
2011-06-02 22:19   ` Tetsuo Handa

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.