mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG]  lack of  /proc/net/ax25  with  2.6.24-rc5
       [not found] ` <20071215101810.GA3143@ami.dom.local>
@ 2007-12-16 21:17   ` Bernard Pidoux
  2007-12-17 21:56     ` Rafael J. Wysocki
  2007-12-17 22:44     ` [PATCH] sysctl: Fix ax25 checks Eric W. Biederman
  0 siblings, 2 replies; 6+ messages in thread
From: Bernard Pidoux @ 2007-12-16 21:17 UTC (permalink / raw)
  To: Linux Netdev List; +Cc: linux-kernel

With 2.6.24-rc5 there is no /proc/net/ax25

Here is an extract from dmesg after boot :

=======================
sysctl table check failed: /net/ax25/ax0/ax25_default_mode .3.9.1.2 
Unknown sysctl binary path
Pid: 2936, comm: kissattach Not tainted 2.6.24-rc5 #1
  [<c012ca6a>] set_fail+0x3b/0x43
  [<c012ce7a>] sysctl_check_table+0x408/0x456
  [<c012ce8e>] sysctl_check_table+0x41c/0x456
  [<c012ce8e>] sysctl_check_table+0x41c/0x456
  [<c02ac64a>] _spin_unlock+0x14/0x1c
  [<c012ce8e>] sysctl_check_table+0x41c/0x456
  [<c011e681>] sysctl_set_parent+0x19/0x2a
  [<c011f55c>] register_sysctl_table+0x45/0x85
  [<d8be9d26>] ax25_register_sysctl+0x112/0x11c [ax25]
  [<d8be6c76>] ax25_device_event+0x2e/0x90 [ax25]
  [<c012c560>] notifier_call_chain+0x2a/0x47
  [<c012c59f>] raw_notifier_call_chain+0x17/0x1a
  [<c0259290>] dev_open+0x6f/0x75
  [<c0257ee7>] dev_change_flags+0x9c/0x148
  [<c0256ab3>] __dev_get_by_name+0x68/0x73
  [<c0292307>] devinet_ioctl+0x22e/0x53b
  [<c0259074>] dev_ioctl+0x472/0x5ba
  [<c024d4ba>] sock_ioctl+0x1aa/0x1cf
  [<c024d310>] sock_ioctl+0x0/0x1cf
  [<c016bc19>] do_ioctl+0x19/0x4c
  [<c016be40>] vfs_ioctl+0x1f4/0x20b
  [<c0103d01>] sysenter_past_esp+0x9a/0xa9
  [<c016be9c>] sys_ioctl+0x45/0x5d
  [<c0103cc6>] sysenter_past_esp+0x5f/0xa9
  =======================
sysctl table check failed: /net/ax25/ax0/backoff_type .3.9.1.3 Unknown 
sysctl binary path
(...) truncated
  =======================
sysctl table check failed: /net/ax25/ax0/connect_mode .3.9.1.4 Unknown 
sysctl binary path
(...)
  =======================
sysctl table check failed: /net/ax25/ax0/standard_window_size .3.9.1.5 
Unknown sysctl binary path
  =======================
(...)

and so on ...



Bernard Pidoux
f6bvp@amsat.org

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

* Re: [BUG]  lack of  /proc/net/ax25  with  2.6.24-rc5
  2007-12-16 21:17   ` [BUG] lack of /proc/net/ax25 with 2.6.24-rc5 Bernard Pidoux
@ 2007-12-17 21:56     ` Rafael J. Wysocki
  2007-12-17 22:44     ` [PATCH] sysctl: Fix ax25 checks Eric W. Biederman
  1 sibling, 0 replies; 6+ messages in thread
From: Rafael J. Wysocki @ 2007-12-17 21:56 UTC (permalink / raw)
  To: Bernard Pidoux; +Cc: Linux Netdev List, linux-kernel, Eric W. Biederman

On Sunday, 16 of December 2007, Bernard Pidoux wrote:
> With 2.6.24-rc5 there is no /proc/net/ax25

FYI, I've created a Bugzilla entry for this issue at:
http://bugzilla.kernel.org/show_bug.cgi?id=9589

Please add your address to the CC list in there.

Thanks,
Rafael


> Here is an extract from dmesg after boot :
> 
> =======================
> sysctl table check failed: /net/ax25/ax0/ax25_default_mode .3.9.1.2 
> Unknown sysctl binary path
> Pid: 2936, comm: kissattach Not tainted 2.6.24-rc5 #1
>   [<c012ca6a>] set_fail+0x3b/0x43
>   [<c012ce7a>] sysctl_check_table+0x408/0x456
>   [<c012ce8e>] sysctl_check_table+0x41c/0x456
>   [<c012ce8e>] sysctl_check_table+0x41c/0x456
>   [<c02ac64a>] _spin_unlock+0x14/0x1c
>   [<c012ce8e>] sysctl_check_table+0x41c/0x456
>   [<c011e681>] sysctl_set_parent+0x19/0x2a
>   [<c011f55c>] register_sysctl_table+0x45/0x85
>   [<d8be9d26>] ax25_register_sysctl+0x112/0x11c [ax25]
>   [<d8be6c76>] ax25_device_event+0x2e/0x90 [ax25]
>   [<c012c560>] notifier_call_chain+0x2a/0x47
>   [<c012c59f>] raw_notifier_call_chain+0x17/0x1a
>   [<c0259290>] dev_open+0x6f/0x75
>   [<c0257ee7>] dev_change_flags+0x9c/0x148
>   [<c0256ab3>] __dev_get_by_name+0x68/0x73
>   [<c0292307>] devinet_ioctl+0x22e/0x53b
>   [<c0259074>] dev_ioctl+0x472/0x5ba
>   [<c024d4ba>] sock_ioctl+0x1aa/0x1cf
>   [<c024d310>] sock_ioctl+0x0/0x1cf
>   [<c016bc19>] do_ioctl+0x19/0x4c
>   [<c016be40>] vfs_ioctl+0x1f4/0x20b
>   [<c0103d01>] sysenter_past_esp+0x9a/0xa9
>   [<c016be9c>] sys_ioctl+0x45/0x5d
>   [<c0103cc6>] sysenter_past_esp+0x5f/0xa9
>   =======================
> sysctl table check failed: /net/ax25/ax0/backoff_type .3.9.1.3 Unknown 
> sysctl binary path
> (...) truncated
>   =======================
> sysctl table check failed: /net/ax25/ax0/connect_mode .3.9.1.4 Unknown 
> sysctl binary path
> (...)
>   =======================
> sysctl table check failed: /net/ax25/ax0/standard_window_size .3.9.1.5 
> Unknown sysctl binary path
>   =======================
> (...)
> 
> and so on ...
> 
> 
> 
> Bernard Pidoux
> f6bvp@amsat.org
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 



-- 
"Premature optimization is the root of all evil." - Donald Knuth

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

* [PATCH] sysctl:  Fix ax25 checks
  2007-12-16 21:17   ` [BUG] lack of /proc/net/ax25 with 2.6.24-rc5 Bernard Pidoux
  2007-12-17 21:56     ` Rafael J. Wysocki
@ 2007-12-17 22:44     ` Eric W. Biederman
  2007-12-18  0:08       ` Bernard Pidoux
  2007-12-18  6:59       ` David Miller
  1 sibling, 2 replies; 6+ messages in thread
From: Eric W. Biederman @ 2007-12-17 22:44 UTC (permalink / raw)
  To: Bernard Pidoux
  Cc: Linux Netdev List, linux-kernel, Rafael J. Wysocki, Andrew Morton

Bernard Pidoux <pidoux@ccr.jussieu.fr> writes:

> With 2.6.24-rc5 there is no /proc/net/ax25

/proc/sys/net/ax25?

> Here is an extract from dmesg after boot :

Groan.  I thought I had found the last of the bugs with
my sysctl sanity checks.  I guess you actually have to
use ax25 for this bug to show up.

Thank you for catching this. 

> =======================
> sysctl table check failed: /net/ax25/ax0/ax25_default_mode .3.9.1.2 Unknown
> sysctl binary path
> Pid: 2936, comm: kissattach Not tainted 2.6.24-rc5 #1
>  [<c012ca6a>] set_fail+0x3b/0x43
>  [<c012ce7a>] sysctl_check_table+0x408/0x456
>  [<c012ce8e>] sysctl_check_table+0x41c/0x456
>  [<c012ce8e>] sysctl_check_table+0x41c/0x456
>  [<c02ac64a>] _spin_unlock+0x14/0x1c
>  [<c012ce8e>] sysctl_check_table+0x41c/0x456
>  [<c011e681>] sysctl_set_parent+0x19/0x2a
>  [<c011f55c>] register_sysctl_table+0x45/0x85
>  [<d8be9d26>] ax25_register_sysctl+0x112/0x11c [ax25]
>  [<d8be6c76>] ax25_device_event+0x2e/0x90 [ax25]
>  [<c012c560>] notifier_call_chain+0x2a/0x47
>  [<c012c59f>] raw_notifier_call_chain+0x17/0x1a
>  [<c0259290>] dev_open+0x6f/0x75
>  [<c0257ee7>] dev_change_flags+0x9c/0x148
>  [<c0256ab3>] __dev_get_by_name+0x68/0x73
>  [<c0292307>] devinet_ioctl+0x22e/0x53b
>  [<c0259074>] dev_ioctl+0x472/0x5ba
>  [<c024d4ba>] sock_ioctl+0x1aa/0x1cf
>  [<c024d310>] sock_ioctl+0x0/0x1cf
>  [<c016bc19>] do_ioctl+0x19/0x4c
>  [<c016be40>] vfs_ioctl+0x1f4/0x20b
>  [<c0103d01>] sysenter_past_esp+0x9a/0xa9
>  [<c016be9c>] sys_ioctl+0x45/0x5d
>  [<c0103cc6>] sysenter_past_esp+0x5f/0xa9
>  =======================
> sysctl table check failed: /net/ax25/ax0/backoff_type .3.9.1.3 Unknown sysctl
> binary path
> (...) truncated
>  =======================
> sysctl table check failed: /net/ax25/ax0/connect_mode .3.9.1.4 Unknown sysctl
> binary path
> (...)
>  =======================
> sysctl table check failed: /net/ax25/ax0/standard_window_size .3.9.1.5 Unknown
> sysctl binary path
>  =======================
> (...)
>
> and so on ...
>

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
---
 kernel/sysctl_check.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/kernel/sysctl_check.c b/kernel/sysctl_check.c
index bed939f..a68425a 100644
--- a/kernel/sysctl_check.c
+++ b/kernel/sysctl_check.c
@@ -428,7 +428,7 @@ static struct trans_ctl_table trans_net_netrom_table[] = {
 	{}
 };
 
-static struct trans_ctl_table trans_net_ax25_table[] = {
+static struct trans_ctl_table trans_net_ax25_param_table[] = {
 	{ NET_AX25_IP_DEFAULT_MODE,	"ip_default_mode" },
 	{ NET_AX25_DEFAULT_MODE,	"ax25_default_mode" },
 	{ NET_AX25_BACKOFF_TYPE,	"backoff_type" },
@@ -446,6 +446,11 @@ static struct trans_ctl_table trans_net_ax25_table[] = {
 	{}
 };
 
+static struct trans_ctl_table trans_net_ax25_table[] = {
+	{ 0, NULL, trans_net_ax25_param_table },
+	{}
+};
+
 static struct trans_ctl_table trans_net_bridge_table[] = {
 	{ NET_BRIDGE_NF_CALL_ARPTABLES,		"bridge-nf-call-arptables" },
 	{ NET_BRIDGE_NF_CALL_IPTABLES,		"bridge-nf-call-iptables" },
-- 
1.5.3.rc6.17.g1911


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

* Re: [PATCH] sysctl:  Fix ax25 checks
  2007-12-17 22:44     ` [PATCH] sysctl: Fix ax25 checks Eric W. Biederman
@ 2007-12-18  0:08       ` Bernard Pidoux
  2007-12-18  0:16         ` Eric W. Biederman
  2007-12-18  6:59       ` David Miller
  1 sibling, 1 reply; 6+ messages in thread
From: Bernard Pidoux @ 2007-12-18  0:08 UTC (permalink / raw)
  To: Eric W. Biederman
  Cc: Linux Netdev List, linux-kernel, Rafael J. Wysocki, Andrew Morton

Eric,

I applied your patch and now I have all /proc/sys/net/ax25
created and initialized as before.

Thanks.

Bernard Pidoux




Eric W. Biederman wrote:
> Bernard Pidoux <pidoux@ccr.jussieu.fr> writes:
> 
>> With 2.6.24-rc5 there is no /proc/net/ax25
> 
> /proc/sys/net/ax25?
> 
>> Here is an extract from dmesg after boot :
> 
> Groan.  I thought I had found the last of the bugs with
> my sysctl sanity checks.  I guess you actually have to
> use ax25 for this bug to show up.
> 
> Thank you for catching this. 
> 
>> =======================
>> sysctl table check failed: /net/ax25/ax0/ax25_default_mode .3.9.1.2 Unknown
>> sysctl binary path
>> Pid: 2936, comm: kissattach Not tainted 2.6.24-rc5 #1
>>  [<c012ca6a>] set_fail+0x3b/0x43
>>  [<c012ce7a>] sysctl_check_table+0x408/0x456
>>  [<c012ce8e>] sysctl_check_table+0x41c/0x456
>>  [<c012ce8e>] sysctl_check_table+0x41c/0x456
>>  [<c02ac64a>] _spin_unlock+0x14/0x1c
>>  [<c012ce8e>] sysctl_check_table+0x41c/0x456
>>  [<c011e681>] sysctl_set_parent+0x19/0x2a
>>  [<c011f55c>] register_sysctl_table+0x45/0x85
>>  [<d8be9d26>] ax25_register_sysctl+0x112/0x11c [ax25]
>>  [<d8be6c76>] ax25_device_event+0x2e/0x90 [ax25]
>>  [<c012c560>] notifier_call_chain+0x2a/0x47
>>  [<c012c59f>] raw_notifier_call_chain+0x17/0x1a
>>  [<c0259290>] dev_open+0x6f/0x75
>>  [<c0257ee7>] dev_change_flags+0x9c/0x148
>>  [<c0256ab3>] __dev_get_by_name+0x68/0x73
>>  [<c0292307>] devinet_ioctl+0x22e/0x53b
>>  [<c0259074>] dev_ioctl+0x472/0x5ba
>>  [<c024d4ba>] sock_ioctl+0x1aa/0x1cf
>>  [<c024d310>] sock_ioctl+0x0/0x1cf
>>  [<c016bc19>] do_ioctl+0x19/0x4c
>>  [<c016be40>] vfs_ioctl+0x1f4/0x20b
>>  [<c0103d01>] sysenter_past_esp+0x9a/0xa9
>>  [<c016be9c>] sys_ioctl+0x45/0x5d
>>  [<c0103cc6>] sysenter_past_esp+0x5f/0xa9
>>  =======================
>> sysctl table check failed: /net/ax25/ax0/backoff_type .3.9.1.3 Unknown sysctl
>> binary path
>> (...) truncated
>>  =======================
>> sysctl table check failed: /net/ax25/ax0/connect_mode .3.9.1.4 Unknown sysctl
>> binary path
>> (...)
>>  =======================
>> sysctl table check failed: /net/ax25/ax0/standard_window_size .3.9.1.5 Unknown
>> sysctl binary path
>>  =======================
>> (...)
>>
>> and so on ...
>>
> 
> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
> ---
>  kernel/sysctl_check.c |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/kernel/sysctl_check.c b/kernel/sysctl_check.c
> index bed939f..a68425a 100644
> --- a/kernel/sysctl_check.c
> +++ b/kernel/sysctl_check.c
> @@ -428,7 +428,7 @@ static struct trans_ctl_table trans_net_netrom_table[] = {
>  	{}
>  };
>  
> -static struct trans_ctl_table trans_net_ax25_table[] = {
> +static struct trans_ctl_table trans_net_ax25_param_table[] = {
>  	{ NET_AX25_IP_DEFAULT_MODE,	"ip_default_mode" },
>  	{ NET_AX25_DEFAULT_MODE,	"ax25_default_mode" },
>  	{ NET_AX25_BACKOFF_TYPE,	"backoff_type" },
> @@ -446,6 +446,11 @@ static struct trans_ctl_table trans_net_ax25_table[] = {
>  	{}
>  };
>  
> +static struct trans_ctl_table trans_net_ax25_table[] = {
> +	{ 0, NULL, trans_net_ax25_param_table },
> +	{}
> +};
> +
>  static struct trans_ctl_table trans_net_bridge_table[] = {
>  	{ NET_BRIDGE_NF_CALL_ARPTABLES,		"bridge-nf-call-arptables" },
>  	{ NET_BRIDGE_NF_CALL_IPTABLES,		"bridge-nf-call-iptables" },

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

* Re: [PATCH] sysctl:  Fix ax25 checks
  2007-12-18  0:08       ` Bernard Pidoux
@ 2007-12-18  0:16         ` Eric W. Biederman
  0 siblings, 0 replies; 6+ messages in thread
From: Eric W. Biederman @ 2007-12-18  0:16 UTC (permalink / raw)
  To: Bernard Pidoux
  Cc: Linux Netdev List, linux-kernel, Rafael J. Wysocki, Andrew Morton

Bernard Pidoux <pidoux@ccr.jussieu.fr> writes:

> Eric,
>
> I applied your patch and now I have all /proc/sys/net/ax25
> created and initialized as before.

Thanks for reporting this.

Eric

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

* Re: [PATCH] sysctl: Fix ax25 checks
  2007-12-17 22:44     ` [PATCH] sysctl: Fix ax25 checks Eric W. Biederman
  2007-12-18  0:08       ` Bernard Pidoux
@ 2007-12-18  6:59       ` David Miller
  1 sibling, 0 replies; 6+ messages in thread
From: David Miller @ 2007-12-18  6:59 UTC (permalink / raw)
  To: ebiederm; +Cc: pidoux, netdev, linux-kernel, rjw, akpm

From: ebiederm@xmission.com (Eric W. Biederman)
Date: Mon, 17 Dec 2007 15:44:08 -0700

> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>

Applied, thanks Eric.

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

end of thread, other threads:[~2007-12-18  6:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <476303C8.2060507@ccr.jussieu.fr>
     [not found] ` <20071215101810.GA3143@ami.dom.local>
2007-12-16 21:17   ` [BUG] lack of /proc/net/ax25 with 2.6.24-rc5 Bernard Pidoux
2007-12-17 21:56     ` Rafael J. Wysocki
2007-12-17 22:44     ` [PATCH] sysctl: Fix ax25 checks Eric W. Biederman
2007-12-18  0:08       ` Bernard Pidoux
2007-12-18  0:16         ` Eric W. Biederman
2007-12-18  6:59       ` David Miller

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

all inboxes | Powered by JetHome®