Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262133AbVDRQsy (ORCPT ); Mon, 18 Apr 2005 12:48:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262138AbVDRQsy (ORCPT ); Mon, 18 Apr 2005 12:48:54 -0400 Received: from webmail.topspin.com ([12.162.17.3]:55985 "EHLO exch-1.topspincom.com") by vger.kernel.org with ESMTP id S262133AbVDRQsG (ORCPT ); Mon, 18 Apr 2005 12:48:06 -0400 To: Timur Tabi Cc: Troy Benjegerdes , linux-kernel@vger.kernel.org, openib-general@openib.org Subject: Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation X-Message-Flag: Warning: May contain useful information References: <200544159.Ahk9l0puXy39U6u6@topspin.com> <20050411142213.GC26127@kalmia.hozed.org> <52mzs51g5g.fsf@topspin.com> <4263DBBF.9040801@ammasso.com> From: Roland Dreier Date: Mon, 18 Apr 2005 09:12:45 -0700 In-Reply-To: <4263DBBF.9040801@ammasso.com> (Timur Tabi's message of "Mon, 18 Apr 2005 11:09:35 -0500") Message-ID: <52is2kawsi.fsf@topspin.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 18 Apr 2005 16:12:45.0549 (UTC) FILETIME=[74E9C1D0:01C54431] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 579 Lines: 13 Timur> Why do you call mlock() and get_user_pages()? In our code, Timur> we only call mlock(), and the memory is pinned. We have a Timur> test case that fails if only get_user_pages() is called, Timur> but it passes if only mlock() is called. What if a buggy/malicious userspace program doesn't call mlock()? - R. - 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/