[PATCH v3 3/3] kasan: Add riscv to KASAN documentation.

2019-10-07 Thread Nick Hu
Add riscv to the KASAN documentation to mention that riscv is supporting generic kasan now. Signed-off-by: Nick Hu --- Documentation/dev-tools/kasan.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst

[PATCH v3 0/3] KASAN support for RISC-V

2019-10-07 Thread Nick Hu
documentation to mention that riscv is supported. Nick Hu (3): kasan: Archs don't check memmove if not support it. riscv: Add KASAN support kasan: Add riscv to KASAN documentation. Documentation/dev-tools/kasan.rst | 4 +- arch/riscv/Kconfig | 1 + arch/riscv/includ

[PATCH v3 1/3] kasan: Archs don't check memmove if not support it.

2019-10-07 Thread Nick Hu
Skip the memmove checking for those archs who don't support it. Signed-off-by: Nick Hu --- mm/kasan/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/kasan/common.c b/mm/kasan/common.c index 6814d6d6a023..897f9520bab3 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/com

[PATCH v3 2/3] riscv: Add KASAN support

2019-10-07 Thread Nick Hu
ng to VMALLOC area, to the kasan_early_shadow_page because we don't have enough physical space for all the shadow memory corresponding to VMALLOC area. Signed-off-by: Nick Hu --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/kasan.h | 27 arch/riscv/i

Re: [PATCH v3 1/3] kasan: Archs don't check memmove if not support it.

2019-10-21 Thread Nick Hu
On Thu, Oct 17, 2019 at 07:58:04PM -0700, Paul Walmsley wrote: > On Thu, 17 Oct 2019, Andrey Ryabinin wrote: > > > On 10/8/19 9:11 AM, Nick Hu wrote: > > > Skip the memmove checking for those archs who don't support it. > > > > The patch is fine but the

Re: [PATCH v3 2/3] riscv: Add KASAN support

2019-10-21 Thread Nick Hu
On Mon, Oct 21, 2019 at 05:33:31PM +0800, Greentime Hu wrote: > Nick Hu 於 2019年10月8日 週二 下午2:17寫道: > > > > This patch ports the feature Kernel Address SANitizer (KASAN). > > > > Note: The start address of shadow memory is at the beginning of kernel > > space, w

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Nick Hu
Hi Deepak On Tue, Nov 12, 2024 at 5:08 AM Deepak Gupta wrote: > > Kernel will have to perform shadow stack operations on user shadow stack. > Like during signal delivery and sigreturn, shadow stack token must be > created and validated respectively. Thus shadow stack access for kernel > must be e

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-14 Thread Nick Hu
Hi Deepak On Thu, Nov 14, 2024 at 11:50 PM Deepak Gupta wrote: > > > Hi Nick, > > Thanks for reviewing and helping. > > On Thu, Nov 14, 2024 at 02:17:30PM +0800, Nick Hu wrote: > >Hi Deepak > > > >On Thu, Nov 14, 2024 at 9:25 AM Deepak Gupta wrote: >

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Nick Hu
Hi Deepak On Thu, Nov 14, 2024 at 9:06 AM Deepak Gupta wrote: > > On Thu, Nov 14, 2024 at 12:13:38AM +0800, Nick Hu wrote: > >Hi Deepak > > > >On Tue, Nov 12, 2024 at 5:08 AM Deepak Gupta wrote: > >> > >> Kernel will have to perform shadow stack operati

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Nick Hu
Hi Deepak On Thu, Nov 14, 2024 at 9:25 AM Deepak Gupta wrote: > > On Thu, Nov 14, 2024 at 09:20:14AM +0800, Nick Hu wrote: > >Hi Deepak > > > >On Thu, Nov 14, 2024 at 9:06 AM Deepak Gupta wrote: > >> > >> On Thu, Nov 14, 2024 at 12:13:38AM +0800, Nick