From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzsT1-0008MJ-4h for qemu-devel@nongnu.org; Tue, 21 Feb 2012 11:21:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzsSv-0002Mv-0F for qemu-devel@nongnu.org; Tue, 21 Feb 2012 11:21:27 -0500 Received: from mail-qw0-f45.google.com ([209.85.216.45]:65533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzsSu-0002Mn-TP for qemu-devel@nongnu.org; Tue, 21 Feb 2012 11:21:20 -0500 Received: by qabg40 with SMTP id g40so4378299qab.4 for ; Tue, 21 Feb 2012 08:21:20 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4F43C403.1000000@suse.de> References: <1326469565-7736-1-git-send-email-agraf@suse.de> <393B307E-09C8-4067-AFF1-98C5607C7F97@suse.de> <4F43C403.1000000@suse.de> Date: Tue, 21 Feb 2012 16:21:20 +0000 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] linux-user: fix segfault deadlock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Fabio Erculiani , Riku Voipio , "qemu-devel@nongnu.org Developers" On 21 February 2012 16:19, Alexander Graf wrote: > On 02/21/2012 05:11 PM, Peter Maydell wrote: >> For a proper fix we probably need to handle set/getrlimit for >> RLIMIT_AS specially so we can apply them ourselves to the guest's >> mmap/brk usage and don't get spurious allocation failures of >> our private data structures... > > Or we preallocate structures we need in those critical paths. Or we manage > an allocation failure by not linking pages. Yeah. Feel free to submit patches :-) -- PMM