Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 12 Nov 2002 12:17:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 12 Nov 2002 12:17:34 -0500 Received: from dp.samba.org ([66.70.73.150]:9696 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id ; Tue, 12 Nov 2002 12:17:33 -0500 From: Rusty Russell To: Jamie Lokier Cc: "Perez-Gonzalez, Inaky" , "'Mark Mielke'" , linux-kernel@vger.kernel.org Subject: Re: Users locking memory using futexes In-reply-to: Your message of "Tue, 12 Nov 2002 03:46:48 -0000." <20021112034648.GA11766@bjl1.asuk.net> Date: Wed, 13 Nov 2002 04:17:47 +1100 Message-Id: <20021112172423.6E0322C27F@lists.samba.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 23 In message <20021112034648.GA11766@bjl1.asuk.net> you write: > Perez-Gonzalez, Inaky wrote: > > [...] each time you lock a futex you are pinning the containing page > > into physical memory, that would cause that if you have, for > > example, 4000 futexes locked in 4000 different pages, there is going > > to be 4 MB of memory locked in [...] > > Ouch! It looks to me like userspace can use FUTEX_FD to lock many > pages of memory, achieving the same as mlock() but without the > resource checks. > > Denial of service attack? See "pipe". 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/