Re: oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sven Wegener
Date: Sunday, August 3, 2008 - 12:24 pm

On Sun, 3 Aug 2008, Denis V. Lunev wrote:


No need to, the issue can be triggered by

sysctl net.ipv4.ip_default_ttl=1

when 76e6ebfb40a2455c18234dcb0f9df37533215461 is applied.

ipv4_doint_and_flush and ipv4_doint_and_flush_strategy access the member 
extra2 of the ctl_table, but it is never set to a meaningful value. Don't 
know if it's just the following that is missing or if we need another 
namespace.

net: Add missing extra2 prameter for ip_default_ttl sysctl

Commit 76e6ebfb40a2455c18234dcb0f9df37533215461 needs the extra2 parameter 
set to init_net, else we'll oops when setting the ip_default_ttl sysctl.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
---
 net/ipv4/sysctl_net_ipv4.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
index 770d827..e0689fd 100644
--- a/net/ipv4/sysctl_net_ipv4.c
+++ b/net/ipv4/sysctl_net_ipv4.c
@@ -232,6 +232,7 @@ static struct ctl_table ipv4_table[] = {
 		.mode		= 0644,
 		.proc_handler	= &ipv4_doint_and_flush,
 		.strategy	= &ipv4_doint_and_flush_strategy,
+		.extra2		= &init_net,
 	},
 	{
 		.ctl_name	= NET_IPV4_NO_PMTU_DISC,
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c), Marcin Slusarz, (Sun Aug 3, 10:02 am)
Re: oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c), Denis V. Lunev, (Sun Aug 3, 11:56 am)
Re: oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c), Sven Wegener, (Sun Aug 3, 12:24 pm)
Re: oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c), Sven Wegener, (Sun Aug 3, 12:43 pm)
Re: oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c), Sven Wegener, (Sun Aug 3, 12:48 pm)
Re: oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c), Marcin Slusarz, (Sun Aug 3, 12:52 pm)
Re: oops in rt_cache_invalidate (2.6.27-rc1-2b12a4c), Denis V. Lunev, (Sun Aug 3, 1:04 pm)