WSL2-Linux-Kernel/arch/mips/boot
Paul Cercueil 4d4f9c1a17 MIPS: boot: Fix unaligned access with CONFIG_MIPS_RAW_APPENDED_DTB
The compressed payload is not necesarily 4-byte aligned, at least when
compiling with Clang. In that case, the 4-byte value appended to the
compressed payload that corresponds to the uncompressed kernel image
size must be read using get_unaligned_le32().

This fixes Clang-built kernels not booting on MIPS (tested on a Ingenic
JZ4770 board).

Fixes: b8f54f2cde ("MIPS: ZBOOT: copy appended dtb to the end of the kernel")
Cc: <stable@vger.kernel.org> # v4.7
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2020-12-28 23:26:16 +01:00
..
compressed MIPS: boot: Fix unaligned access with CONFIG_MIPS_RAW_APPENDED_DTB 2020-12-28 23:26:16 +01:00
dts MIPS: DTS: img: Fix schema warnings for pwm-leds 2020-12-05 11:24:29 +01:00
tools .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
.gitignore mips: boot: clean up self-extracting targets scenarios 2020-11-12 23:46:45 +01:00
Makefile kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
ecoff.h MIPS: Make elf2ecoff work on 64bit host machines 2018-06-24 09:25:24 -07:00
elf2ecoff.c MIPS: Make elf2ecoff work on 64bit host machines 2018-06-24 09:25:24 -07:00