Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261485AbVAGQPJ (ORCPT ); Fri, 7 Jan 2005 11:15:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261486AbVAGQPJ (ORCPT ); Fri, 7 Jan 2005 11:15:09 -0500 Received: from e31.co.us.ibm.com ([32.97.110.129]:52699 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id S261485AbVAGQPA (ORCPT ); Fri, 7 Jan 2005 11:15:00 -0500 Subject: [RFC] 2.4 and stack reduction patches From: Badari Pulavarty To: Marcelo Tosatti Cc: Linux Kernel Mailing List Content-Type: text/plain Organization: Message-Id: <1105112886.4000.87.camel@dyn318077bld.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 07 Jan 2005 07:48:06 -0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 26 Hi Marcelo, Few of the product groups are running into stack overflow problems on latest 2.4 distribution releases, especially on z-Series. While poking thro the 2.4 code, I realized the 2.6 stack reduction work did not get merged into 2.4. Biggest offender seems to be "struct linux_binprm" in do_execve(). Converting structure on the stack to malloc() (like 2.6 does) solved majority of problems. There are other places, but savings are smaller. (But after bunch of changes, we were able to reduce stack by 1K). I am wondering, if there is any interest in merging stack reduction patches into 2.4 mainline ? If so, I will rework the patches on latest 2.4 and submit them. Thanks, Badari - 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/