diff options
author | 2021-06-18 22:01:36 +0800 | |
---|---|---|
committer | 2021-06-18 21:09:56 -0700 | |
commit | 314b781706e337b8cbde98cfefd3975863e032f2 (patch) | |
tree | 4516ad88a70b3682e80b7a34609368363f4e5c1f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | riscv: sifive: fix Kconfig errata warning (diff) | |
download | wireguard-linux-314b781706e337b8cbde98cfefd3975863e032f2.tar.xz wireguard-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions