diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-06-18 22:01:36 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-06-18 21:09:56 -0700 |
commit | 314b781706e337b8cbde98cfefd3975863e032f2 (patch) | |
tree | 4516ad88a70b3682e80b7a34609368363f4e5c1f /certs/common.h | |
parent | 01f5315dd7327b53a5f538b74a2338a651b1832d (diff) | |
download | linux-314b781706e337b8cbde98cfefd3975863e032f2.tar.gz linux-314b781706e337b8cbde98cfefd3975863e032f2.tar.bz2 linux-314b781706e337b8cbde98cfefd3975863e032f2.zip |
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 'certs/common.h')
0 files changed, 0 insertions, 0 deletions