]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix zeroing on exception in copy_*_user
authorAndi Kleen <ak@suse.de>
Tue, 26 Sep 2006 08:52:39 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:39 +0000 (10:52 +0200)
commit0343d59f6b7803f3fa0e55629a9d187dd1b3aacc
treea1445aeaf8fbdf84898c8cdc13dd98c550b5be0f
parentb3baf7e3e16c05b202d2d9fa284dc565a9efb25b
[PATCH] Fix zeroing on exception in copy_*_user

- Don't zero for __copy_from_user_inatomic following i386.
This will prevent spurious zeros for parallel file system writers when
one does a exception
- The string instruction version didn't zero the output on
exception. Oops.

Also I cleaned up the code a bit while I was at it and added a minor
optimization to the string instruction path.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/x8664_ksyms.c
arch/x86_64/lib/copy_user.S
include/asm-x86_64/uaccess.h