Re: [PATCH v2 1/1] riscv/kasan: add KASAN_VMALLOC support

2021-02-25 Thread Nylon Chen
Hi Alex, Palmer On Thu, Feb 25, 2021 at 03:11:07AM +0800, Alex Ghiti wrote: > Hi Nylon, > > Le 2/22/21 ?? 12:13 PM, Alex Ghiti a ??crit??: > > Le 2/21/21 ?? 8:37 PM, Nylon Chen a ??crit??: > >> Hi Alex, Palmer > >> > >> Sorry I missed this message. >

Re: [PATCH v2 1/1] riscv/kasan: add KASAN_VMALLOC support

2021-02-21 Thread Nylon Chen
>> I think we can improve the changelog a bit here with something like that: > >> > >> "KASAN vmalloc space used to be mapped using kasan early shadow page. > >> KASAN_VMALLOC requires the top-level of the kernel page table to be > >> properly popul

[PATCH v2 0/1] kasan: support backing vmalloc space for riscv

2021-01-15 Thread Nylon Chen
v1: https://lore.kernel.org/patchwork/cover/1364392/ v2: 1) Fix checkpatch issues. 2) Remove set_pmd and pmd_populate because it's not necessary. Nylon Chen (1): riscv/kasan: add KASAN_VMALLOC support arch/riscv/Kconfig | 1 + arch/riscv/mm/kasan_init.c

[PATCH v2 1/1] riscv/kasan: add KASAN_VMALLOC support

2021-01-15 Thread Nylon Chen
It references to x86/s390 architecture. So, it doesn't map the early shadow page to cover VMALLOC space. Prepopulate top level page table for the range that would otherwise be empty. lower levels are filled dynamically upon memory allocation while booting. Signed-off-by: Nylon Chen Signe

[PATCH 0/1] kasan: support backing vmalloc space for riscv

2021-01-12 Thread Nylon Chen
ok 37 - vmalloc_oob Nylon Chen (1): riscv/kasan: add KASAN_VMALLOC support arch/riscv/Kconfig | 1 + arch/riscv/mm/kasan_init.c | 66 +- 2 files changed, 66 insertions(+), 1 deletion(-) -- 2.17.1

[PATCH 1/1] riscv/kasan: add KASAN_VMALLOC support

2021-01-12 Thread Nylon Chen
It's reference x86/s390 architecture. So, it's don't map the early shadow page to cover VMALLOC space. Prepopulate top level page table for the range that would otherwise be empty. lower levels are filled dynamically upon memory allocation while booting. Signed-off-by: Nylon C

[PATCH 1/1] riscv: Fix KASAN memory mapping.

2021-01-12 Thread Nylon Chen
From: Nick Hu Use virtual address instead of physical address when translating the address to shadow memory by kasan_mem_to_shadow(). Signed-off-by: Nick Hu Signed-off-by: Nylon Chen --- arch/riscv/mm/kasan_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH v3 1/2] nds32: Fix the items of hwcap_str ordering issue.

2018-11-08 Thread Nylon Chen
The hwcap_str should be set in a correct order according to HWCAP_xx. We also add the missing "fpu_dp" to it. Signed-off-by: Nylon Chen --- arch/nds32/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/set

[PATCH v3 2/2] nds32: support hardware prefetcher

2018-11-08 Thread Nylon Chen
We add a config for user to enable or disable this feature. It can be used to control the hardware prefetch function. Signed-off-by: Nylon Chen --- arch/nds32/Kconfig.cpu| 7 +++ arch/nds32/include/asm/bitfield.h | 6 ++ arch/nds32/kernel/head.S | 2 +- arch/nds32

[PATCH v2 2/2] nds32: support hardware prefetcher

2018-11-08 Thread Nylon Chen
We add a config for user to enable or disable this feature. It can be used to control the hardware prefetch function. Signed-off-by: Nylon Chen --- arch/nds32/Kconfig.cpu| 7 +++ arch/nds32/include/asm/bitfield.h | 6 ++ arch/nds32/kernel/head.S | 2 +- arch/nds32

[PATCH v2 1/2] nds32: Fix the items of hwcap_str ordering issue.

2018-11-08 Thread Nylon Chen
The hwcap_str should be set in a correct order according to HWCAP_xx. We also add the missing "fpu_dp" to it. Signed-off-by: Nylon Chen --- arch/nds32/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/set

[PATCH 1/2] nds32: Fix the missing "fpu_dp" message.

2018-11-06 Thread Nylon Chen
The "fpu_dp" should be added to hwcap_str table to make sure the cpu features displayed correctly. Signed-off-by: Nylon Chen --- arch/nds32/kernel/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c index eacc79024879..e3

[PATCH 2/2] nds32: support hardware prefetcher

2018-11-06 Thread Nylon Chen
We add a config for user to enable or disable this feature. It can be used to control the hardware prefetch function. Signed-off-by: Nylon Chen --- arch/nds32/Kconfig.cpu| 7 +++ arch/nds32/include/asm/bitfield.h | 6 ++ arch/nds32/kernel/head.S | 2 +- arch/nds32