Matthew Leach a1d5ebaf8c arm64: big-endian: don't treat code as data when copying sigret code
Currently the sigreturn compat code is copied to an offset in the
vectors table. When using a BE kernel this data will be stored in the
wrong endianess so when returning from a signal on a 32-bit BE system,
arbitrary code will be executed.

Instead of declaring the code inside a struct and copying that, use
the assembler's .byte directives to store the code in the correct
endianess regardless of platform endianess.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2013-10-25 15:59:37 +01:00
..
2012-09-17 13:42:21 +01:00
2013-07-04 14:40:26 +02:00
2013-10-25 11:33:20 +01:00
2012-12-05 11:26:49 +00:00
2012-09-17 13:42:04 +01:00
2013-10-25 11:33:21 +01:00
2013-10-25 11:33:20 +01:00
2012-09-17 13:42:19 +01:00
2013-02-14 09:17:29 -05:00
2013-10-25 11:33:21 +01:00
2012-09-17 10:24:46 +01:00
2013-02-14 09:17:29 -05:00