]> git.baikalelectronics.ru Git - kernel.git/commit
tile: fix bug in get_user() for 4-byte values
authorChris Metcalf <cmetcalf@tilera.com>
Sat, 16 Jun 2012 20:53:06 +0000 (16:53 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Sat, 16 Jun 2012 20:56:13 +0000 (16:56 -0400)
commit4659893a5ef30cbe4b3b59020e1e4b6e227798d8
tree5efaceb0e8cae2fee56c751e53c716b7859d0a13
parent1140ece4e43893bef14a33125746b2aef4180b90
tile: fix bug in get_user() for 4-byte values

The definition of 32-bit values in the 64-bit tilegx architecture is that
they should be sign-extended regardless of whether they are considered
signed or unsigned by the compiler.  Accordingly, we need to use an
"ld4s" rather than "ld4u" to load and sign-extend for get_user().

This fixes glibc bug 14238 (see http://sourceware.org/bugzilla),
introduced during the 3.5 merge window.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/uaccess.h