On Wednesday 21 November 2001 10:06 am, you wrote: > Hi, > > Did you check for the return code of copy_to_user() [it indicates the > number of bytes that remain to be written, i.e. successful completion is > indicated by a return value 0]? Yes - it returns the correct number of bytes! But it didn't succedd > I think that writing to the process's code segment fails, because it's > write protected (i.e. your return code would equal the number of bytes you > requested to copy). You might try to (temporarily) modify the protection of > the corresponding vm_area and/or page table entries, to enable writing to > the code segment - it's just an idea, I don't know, if it works and what > side effects this has. Yes, I'm starting working on that... but I must take a look at linux mem management... Thanks -- Luís Henriques -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/