diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-06-18 17:01:36 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-06-19 07:09:56 +0300 |
commit | 314b781706e337b8cbde98cfefd3975863e032f2 (patch) | |
tree | 4516ad88a70b3682e80b7a34609368363f4e5c1f /Documentation/riscv | |
parent | 01f5315dd7327b53a5f538b74a2338a651b1832d (diff) | |
download | linux-314b781706e337b8cbde98cfefd3975863e032f2.tar.xz |
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>
Diffstat (limited to 'Documentation/riscv')
0 files changed, 0 insertions, 0 deletions