David S. Miller 1f474646fd sparc64: Fix sun4u execute bit check in TSB I-TLB load.
Thanks to testcase and report from Brad Spengler:

--------------------
#include <stdio.h>

typedef int (* _wee)(void);

int main(void)
{
        char buf[8] = { '\x81', '\xc7', '\xe0', '\x08', '\x81', '\xe8',
                        '\x00', '\x00' };
        _wee wee;
        printf("%p\n", &buf);
        wee = (_wee)&buf;
        wee();

        return 0;
}
--------------------

TSB I-tlb load code tries to use andcc to check the _PAGE_EXEC_4U bit,
but that's bit 12 so it gets sign extended all the way up to bit 63
and the test nearly always passes as a result.

Use sethi to fix the bug.

Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-19 15:19:52 -08:00
..
2008-12-04 09:17:15 -08:00
2009-11-02 21:15:59 -08:00
2008-12-04 09:17:21 -08:00
2009-11-16 02:54:07 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 13:26:31 -08:00
2009-08-10 09:35:00 +02:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-08 01:08:24 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-11-02 04:19:42 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-12-16 07:20:18 -08:00
2009-11-02 04:19:42 -08:00
2010-01-26 04:16:49 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-12-16 07:20:19 -08:00
2009-11-02 04:19:42 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2010-01-15 01:34:28 -08:00
2008-12-04 09:17:21 -08:00
2009-07-12 12:22:34 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-09-15 17:04:38 -07:00
2009-11-02 04:19:42 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:22 -08:00
2008-12-04 09:17:22 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2010-01-08 00:03:26 -08:00
2009-12-11 06:44:58 -05:00
2009-12-11 06:44:58 -05:00
2009-12-11 06:44:58 -05:00
2005-04-16 15:20:36 -07:00
2008-09-19 21:18:01 -07:00
2008-12-04 09:17:21 -08:00
2009-07-12 12:22:34 -07:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-07-12 13:02:09 -07:00
2009-01-06 12:46:46 -08:00
2008-12-04 09:17:21 -08:00
2008-07-17 21:37:46 -07:00
2008-07-17 21:37:46 -07:00