Quite the contrary, it does handle the case for swapped out memory. Lets take a look at it, shall we? copy_to/from_user boils down to __copy_user in arch/i386/lib/usercopy.c: #define __copy_user(to,from,size) \ do { \ int __d0, __d1, __d2; \ __asm__ __volatile__( \ " cmp $7,%0\n" \ " jbe 1f\n" \ " movl %1,%0\n" \ " negl %0\n" \ " andl $7,%0\n" \ " subl %0,%3\n" \ "4: rep; movsb\n" \ " movl %3,%0\n" ...
Comments