Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422778AbWJPT1x (ORCPT ); Mon, 16 Oct 2006 15:27:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422853AbWJPT1x (ORCPT ); Mon, 16 Oct 2006 15:27:53 -0400 Received: from smtp-out001.kontent.com ([81.88.40.215]:64178 "EHLO smtp-out.kontent.com") by vger.kernel.org with ESMTP id S1422778AbWJPT1w convert rfc822-to-8bit (ORCPT ); Mon, 16 Oct 2006 15:27:52 -0400 From: Oliver Neukum To: mfbaustx Subject: Re: copy_from_user / copy_to_user with no swap space Date: Mon, 16 Oct 2006 21:28:44 +0200 User-Agent: KMail/1.8 Cc: linux-kernel@vger.kernel.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200610162128.45229.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 617 Lines: 15 Am Montag, 16. Oktober 2006 21:19 schrieb mfbaustx: > So, IF you MUST copy_from/to_user when in the context of the process, AND ? > IF you have no virtual memory/swapping, THEN must it not be true that you ? > can ALWAYS dereferences your user space pointers? No. Your code may be only partially paged into RAM. The same can happen for any mmaped data. Regards Oliver - 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/