diff options
author | Alexandre Ghiti <alexandre.ghiti@canonical.com> | 2022-02-25 13:39:49 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-03-03 13:11:30 -0800 |
commit | a3d328037846d013bb4c7f3777241e190e4c75e1 (patch) | |
tree | d79229ff688adac37205ca9118d99d7fe54e9519 /tools/lib/api/fd/array.h | |
parent | 8b274f2238950c55570ff14fcc278a7fcbecc663 (diff) |
riscv: Fix config KASAN && SPARSEMEM && !SPARSE_VMEMMAP
In order to get the pfn of a struct page* when sparsemem is enabled
without vmemmap, the mem_section structures need to be initialized which
happens in sparse_init.
But kasan_early_init calls pfn_to_page way before sparse_init is called,
which then tries to dereference a null mem_section pointer.
Fix this by removing the usage of this function in kasan_early_init.
Fixes: 8ad8b72721d0 ("riscv: Add KASAN support")
Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/lib/api/fd/array.h')
0 files changed, 0 insertions, 0 deletions