summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2021-09-03 00:24:42 +0300
committerHelge Deller <deller@gmx.de>2021-09-03 10:47:02 +0300
commitc42813b71a06a2ff4a155aa87ac609feeab76cf3 (patch)
tree540c6dd6c8a11ab9b7409c67c4cc575fd905f1ee /arch/powerpc/platforms
parente5a2cac908df691f1637f9272d4c6dec83239611 (diff)
downloadlinux-c42813b71a06a2ff4a155aa87ac609feeab76cf3.tar.xz
parisc: Fix unaligned-access crash in bootloader
Kernel v5.14 has various changes to optimize unaligned memory accesses, e.g. commit 0652035a5794 ("asm-generic: unaligned: remove byteshift helpers"). Those changes triggered an unalignment-exception and thus crashed the bootloader on parisc because the unaligned "output_len" variable now suddenly was read word-wise while it was read byte-wise in the past. Fix this issue by declaring the external output_len variable as char which then forces the compiler to generate byte-accesses. Signed-off-by: Helge Deller <deller@gmx.de> Cc: Arnd Bergmann <arnd@kernel.org> Cc: John David Anglin <dave.anglin@bell.net> Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102162 Fixes: 8c031ba63f8f ("parisc: Unbreak bootloader due to gcc-7 optimizations") Fixes: 0652035a5794 ("asm-generic: unaligned: remove byteshift helpers") Cc: <stable@vger.kernel.org> # v5.14+
Diffstat (limited to 'arch/powerpc/platforms')
0 files changed, 0 insertions, 0 deletions