Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 10 Jan 2003 05:13:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 10 Jan 2003 05:13:02 -0500 Received: from dp.samba.org ([66.70.73.150]:24004 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id ; Fri, 10 Jan 2003 05:12:59 -0500 From: Rusty Russell To: Richard Henderson Cc: Miles Bader , linux-kernel@vger.kernel.org, torvalds@transmeta.com Subject: Re: [PATCH] Make `obsolete params' work correctly if MODULE_SYMBOL_PREFIX is non-empty In-reply-to: Your message of "Fri, 10 Jan 2003 01:52:03 -0800." <20030110015203.A16268@twiddle.net> Date: Fri, 10 Jan 2003 21:20:31 +1100 Message-Id: <20030110102144.4BE3C2C113@lists.samba.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 820 Lines: 22 In message <20030110015203.A16268@twiddle.net> you write: > On Wed, Jan 08, 2003 at 10:56:51PM +1100, Rusty Russell wrote: > > + char sym_name[strlen(obsparm[i].name) + 2]; > > Are you really intending to use variable sized allocation > on the kernel stack? Yep. Maximum length of obsolete parameter name in current kernel: seq_default_timer_resolution (28 chars). It's far more likely that someone will hit the unchecked kmalloc allocations in arch/alpha/kernel/modules.c 8) Hope that helps, Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/