Bug 11447 - /proc/sys/net/ipv4/route/flush not found
Summary: /proc/sys/net/ipv4/route/flush not found
Status: CLOSED CODE_FIX
Alias: None
Product: Networking
Classification: Unclassified
Component: IPV4 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-28 11:06 UTC by François Valenduc
Modified: 2008-08-29 10:51 UTC (History)
0 users

See Also:
Kernel Version: 2.6.27-rc4-git7
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description François Valenduc 2008-08-28 11:06:22 UTC
Latest working kernel version: 2.6.27-rc4
Earliest failing kernel version: probably 2.6.27-rc4-git7
Distribution: Gentoo
Hardware Environment:
Software Environment:
Problem Description:

When the lo interface is initialized, the following error occurs:
can't open /proc/sys/net/ipv4/route/flush: no such file.
After a bisection, it appears that the following commit is the first bad commit:

commit 2f4520d35d89ca6c5cd129c38e3b11f0283b7d1b
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Mon Aug 25 15:17:44 2008 -0700

    ipv4: sysctl fixes

    net.ipv4.neigh should be a part of skeleton to avoid ordering problems

    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>

If I revert it, the problem doesn't occur.
Comment 1 Anonymous Emailer 2008-08-28 13:18:27 UTC
Reply-To: akpm@linux-foundation.org


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Thu, 28 Aug 2008 11:06:22 -0700 (PDT)
bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=11447
> 
>            Summary: /proc/sys/net/ipv4/route/flush not found
>            Product: Networking
>            Version: 2.5
>      KernelVersion: 2.6.27-rc4-git7
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: IPV4
>         AssignedTo: shemminger@linux-foundation.org
>         ReportedBy: francois.valenduc@tvcablenet.be
> 
> 
> Latest working kernel version: 2.6.27-rc4
> Earliest failing kernel version: probably 2.6.27-rc4-git7
> Distribution: Gentoo
> Hardware Environment:
> Software Environment:
> Problem Description:
> 
> When the lo interface is initialized, the following error occurs:
> can't open /proc/sys/net/ipv4/route/flush: no such file.
> After a bisection, it appears that the following commit is the first bad
> commit:
> 
> commit 2f4520d35d89ca6c5cd129c38e3b11f0283b7d1b
> Author: Al Viro <viro@zeniv.linux.org.uk>
> Date:   Mon Aug 25 15:17:44 2008 -0700
> 
>     ipv4: sysctl fixes
> 
>     net.ipv4.neigh should be a part of skeleton to avoid ordering problems
> 
>     Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
>     Signed-off-by: David S. Miller <davem@davemloft.net>
> 
> If I revert it, the problem doesn't occur.
> 
> 
Comment 2 David S. Miller 2008-08-28 13:30:00 UTC
From: Andrew Morton <akpm@linux-foundation.org>
Date: Thu, 28 Aug 2008 13:18:24 -0700

> 
> (switched to email.  Please respond via emailed reply-to-all, not via the
> bugzilla web interface).

Should be fixed in Linus's tree as of an hour ago, it was a
permissions issue:

commit d994af0d50efc96b2077978fe9f066992639d525
Author: Hugh Dickins <hugh@veritas.com>
Date:   Wed Aug 27 02:35:18 2008 -0700

    ipv4: mode 0555 in ipv4_skeleton
    
    vpnc on today's kernel says Cannot open "/proc/sys/net/ipv4/route/flush":
    d--------- 0 root root 0 2008-08-26 11:32 /proc/sys/net/ipv4/route
    d--------- 0 root root 0 2008-08-26 19:16 /proc/sys/net/ipv4/neigh
    
    Signed-off-by: Hugh Dickins <hugh@veritas.com>
    Acked-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index e91bafe..6ee5354 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -3121,9 +3121,9 @@ static struct ctl_table empty[1];
 static struct ctl_table ipv4_skeleton[] =
 {
 	{ .procname = "route", .ctl_name = NET_IPV4_ROUTE,
-	  .child = ipv4_route_table},
+	  .mode = 0555, .child = ipv4_route_table},
 	{ .procname = "neigh", .ctl_name = NET_IPV4_NEIGH,
-	  .child = empty},
+	  .mode = 0555, .child = empty},
 	{ }
 };
 
Comment 3 Anonymous Emailer 2008-08-29 09:36:35 UTC
Reply-To: =?ISO-8859-1?Q?Fran=E7ois_Valenduc?=
 <francois.valenduc@tvcablenet.be>

David Miller a 

Note You need to log in before you can comment on or make changes to this bug.