Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262584AbTE2T5Q (ORCPT ); Thu, 29 May 2003 15:57:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262590AbTE2T5Q (ORCPT ); Thu, 29 May 2003 15:57:16 -0400 Received: from smtp-out2.iol.cz ([194.228.2.87]:22410 "EHLO smtp-out2.iol.cz") by vger.kernel.org with ESMTP id S262584AbTE2T5P (ORCPT ); Thu, 29 May 2003 15:57:15 -0400 Date: Thu, 29 May 2003 22:10:10 +0200 From: Pavel Machek To: Arjan van de Ven Cc: "David S. Miller" , ak@suse.de, akpm@digeo.com, linux-kernel@vger.kernel.org Subject: Re: must-fix list, v5 Message-ID: <20030529201010.GF1454@elf.ucw.cz> References: <20030529.023203.41634240.davem@redhat.com> <20030529112517.GC1215@elf.ucw.cz> <20030529.042615.55727031.davem@redhat.com> <1054208379.5223.0.camel@laptop.fenrus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1054208379.5223.0.camel@laptop.fenrus.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > What is copy_in_user? > > > > Both source and destination pointers are in userspace. > > sys_memcpy() ? No, its for in-kernel usage. If you want to copy 10 bytes in userspace, you can't use memcpy()... You'd have to do copy_from_user() then copy_to_user(); and that's what copy_in_user does. Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - 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/