From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e122bac293ff2240,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-09-19 00:06:06 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed.wirehub.nl!195.129.110.18.MISMATCH!bnewspeer00.bru.ops.eu.uu.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed.siemens.de!news.fth.sbs.de!not-for-mail From: Michael.Back@astrum.de (Michael Back) Newsgroups: comp.os.linux.alpha Subject: 2.4.7 copy_from_user Date: Wed, 19 Sep 2001 07:05:54 GMT Organization: ASTRUM GmbH Message-ID: <3ba84103.63307331@news.fth.sbs.de> Reply-To: Michael.Back@astrum.de NNTP-Posting-Host: ybsx080664.med.siemens.de X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.os.linux.alpha:3822 Hallo, I try to write an device driver which copy data from userspace to kernelspace. A userspace program allocate userspace, write data in this space and give a referance to the device driver. In the device driver I try to copy this data from userspace to Kernelspace with copy_from_user, but sometime I get a Oops: can't get virtual address ... But why ? I thought the function copy_from_user check the addresse, and retrun with zero if the address is wrong ? Additonal copy_from_user should be able to load paged virtual space. I am sure that no race condition is the reason for the Oops !! Is this effect a spezial problem of the alpha-kernel (I have a UP2000) Thanks for help Michael Back