Home
last modified time | relevance | path

Searched hist:"314 b781706e337b8cbde98cfefd3975863e032f2" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/riscv/mm/
H A Dkasan_init.cdiff 314b781706e337b8cbde98cfefd3975863e032f2 Fri Jun 18 09:01:36 CDT 2021 Jisheng Zhang <jszhang@kernel.org> riscv: kasan: Fix MODULES_VADDR evaluation due to local variables' name

commit 2bfc6cd81bd1 ("riscv: Move kernel mapping outside of linear
mapping") makes use of MODULES_VADDR to populate kernel, BPF, modules
mapping. Currently, MODULES_VADDR is defined as below for RV64:

| #define MODULES_VADDR (PFN_ALIGN((unsigned long)&_end) - SZ_2G)

But kasan_init() has two local variables which are also named as _start,
_end, so MODULES_VADDR is evaluated with the local variable _end
rather than the global "_end" as we expected. Fix this issue by
renaming the two local variables.

Fixes: 2bfc6cd81bd1 ("riscv: Move kernel mapping outside of linear mapping")
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>