Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935651AbXLRAJL (ORCPT ); Mon, 17 Dec 2007 19:09:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758948AbXLRAIy (ORCPT ); Mon, 17 Dec 2007 19:08:54 -0500 Received: from smtp5-g19.free.fr ([212.27.42.35]:39423 "EHLO smtp5-g19.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758638AbXLRAIx (ORCPT ); Mon, 17 Dec 2007 19:08:53 -0500 X-Greylist: delayed 96681 seconds by postgrey-1.27 at vger.kernel.org; Mon, 17 Dec 2007 19:08:53 EST Message-ID: <47670F90.4020004@ccr.jussieu.fr> Date: Tue, 18 Dec 2007 01:08:48 +0100 From: Bernard Pidoux Organization: Universite Pierre & Marie Curie - Paris 6 User-Agent: Thunderbird 2.0.0.4 (X11/20070620) MIME-Version: 1.0 To: "Eric W. Biederman" CC: Linux Netdev List , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Andrew Morton Subject: Re: [PATCH] sysctl: Fix ax25 checks References: <476303C8.2060507@ccr.jussieu.fr> <20071215101810.GA3143@ami.dom.local> <476595EC.5050103@ccr.jussieu.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3579 Lines: 107 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 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 >> [] set_fail+0x3b/0x43 >> [] sysctl_check_table+0x408/0x456 >> [] sysctl_check_table+0x41c/0x456 >> [] sysctl_check_table+0x41c/0x456 >> [] _spin_unlock+0x14/0x1c >> [] sysctl_check_table+0x41c/0x456 >> [] sysctl_set_parent+0x19/0x2a >> [] register_sysctl_table+0x45/0x85 >> [] ax25_register_sysctl+0x112/0x11c [ax25] >> [] ax25_device_event+0x2e/0x90 [ax25] >> [] notifier_call_chain+0x2a/0x47 >> [] raw_notifier_call_chain+0x17/0x1a >> [] dev_open+0x6f/0x75 >> [] dev_change_flags+0x9c/0x148 >> [] __dev_get_by_name+0x68/0x73 >> [] devinet_ioctl+0x22e/0x53b >> [] dev_ioctl+0x472/0x5ba >> [] sock_ioctl+0x1aa/0x1cf >> [] sock_ioctl+0x0/0x1cf >> [] do_ioctl+0x19/0x4c >> [] vfs_ioctl+0x1f4/0x20b >> [] sysenter_past_esp+0x9a/0xa9 >> [] sys_ioctl+0x45/0x5d >> [] 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 > --- > 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" }, -- 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/