From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: libaudit large stack requirement in audit_send() Date: Mon, 29 Apr 2013 14:35:54 -0400 Message-ID: <2516602.f5OUPAXt9O@x2> References: <1367252116.6765.50.camel@chavez-laptop> <1670639.0hriYILyqT@x2> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from x2.localnet (vpn-239-188.phx2.redhat.com [10.3.239.188]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r3TIZvIr008262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 29 Apr 2013 14:35:58 -0400 In-Reply-To: <1670639.0hriYILyqT@x2> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Monday, April 29, 2013 12:48:48 PM Steve Grubb wrote: > I'm open to ideas. I don't know if putting req.nlh.nlmsg_len into a tmp > variable would help the compiler realise it can reclaim the area occupied > by req or not. I might be able to get rid of rep2 by reusing the area of > rep after coping out the important part of it. But this part of the code > hasn't significantly changed in 7-8 years. I checked in a change (792) that reduces the stack use by 9008 bytes. Not sure I can get much more. -Steve