From: Matthew Leach Date: Fri, 11 Oct 2013 13:52:14 +0000 (+0100) Subject: arm64: big-endian: don't treat code as data when copying sigret code X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~54^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1d5ebaf8ccdd100f45042ce32c591867de04ac3;p=pandora-kernel.git 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 Signed-off-by: Matthew Leach Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed