From owner-freebsd-hackers@FreeBSD.ORG Thu May 20 15:58:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E54316A4CE for ; Thu, 20 May 2004 15:58:27 -0700 (PDT) Received: from VARK.homeunix.com (adsl-68-122-7-9.dsl.pltn13.pacbell.net [68.122.7.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 523F043D48 for ; Thu, 20 May 2004 15:58:27 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.10/8.12.10) with ESMTP id i4KMvYAd023894; Thu, 20 May 2004 15:57:34 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.10/8.12.10/Submit) id i4KMvYIa023893; Thu, 20 May 2004 15:57:34 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Thu, 20 May 2004 15:57:34 -0700 From: David Schultz To: Tomas Pluskal Message-ID: <20040520225734.GA23802@VARK.homeunix.com> Mail-Followup-To: Tomas Pluskal , hackers@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: hackers@FreeBSD.ORG Subject: Re: copyin() EFAULT X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 22:58:27 -0000 On Wed, May 19, 2004, Tomas Pluskal wrote: > I would like to ask you for help or explanation - why do I get EFAULT when > invoking copyin() or fubyte() etc. I am writing a kernel module, and I [...] > So copying of some blocks was OK, and on some blocks it returned EFAULT. > Why? You will get EFAULT when you try to copy pages that are not mapped in the user process.