From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: IPv4: sysctl table check failed [was: mmotm 2010-10-07-14-08 uploaded] Date: Thu, 7 Oct 2010 15:22:56 -0700 Message-ID: <20101007152256.9c21ef22.akpm@linux-foundation.org> References: <201010072140.o97Le69i025659@imap1.linux-foundation.org> <4CAE4479.6010606@gmail.com> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org, ML netdev , "David S. Miller" , Eric Dumazet , "Eric W. Biederman" To: Jiri Slaby Return-path: In-Reply-To: <4CAE4479.6010606@gmail.com> Sender: mm-commits-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, 08 Oct 2010 00:06:49 +0200 Jiri Slaby wrote: > On 10/07/2010 11:08 PM, akpm@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2010-10-07-14-08 has been uploaded to > > Hi, I got bunch of "sysctl table check failed" below. All seem to be > related to ipv4: > > sysctl table check failed: /net/ipv4/tcp_mem No min > Pid: 1, comm: swapper Not tainted 2.6.36-rc7-mm1_64+ #1285 > Call Trace: > [] set_fail+0xa4/0xf0 > [] sysctl_check_table+0x2a6/0x310 > [] sysctl_check_table+0x5b/0x310 > [] sysctl_check_table+0x5b/0x310 > [] __register_sysctl_paths+0xf4/0x320 > [] ? printk+0x3c/0x42 > [] ? sysfs_add_file+0xc/0x10 > [] ? sysctl_ipv4_init+0x0/0x87 > [] register_sysctl_paths+0x26/0x30 > [] sysctl_ipv4_init+0x40/0x87 > [] do_one_initcall+0x3f/0x170 > [] kernel_init+0x158/0x1e2 > [] kernel_thread_helper+0x4/0x10 > [] ? kernel_init+0x0/0x1e2 > [] ? kernel_thread_helper+0x0/0x10 OK, thanks. Eric D's net-avoid-limits-overflow.patch switched tcp_mem and udp_mem from proc_dointvec() to proc_doulongvec_minmax(). And sysctl_check_table() checks `min' and `max' for proc_doulongvec_minmax() but not for proc_dointvec(). I'm not sure which Eric to blame ;) .min and .max are optional, so perhaps the check is wrong?