Re: [PATCH v4 16/30] riscv/shstk: If needed allocate a new shadow stack on clone

2024-09-13 Thread kernel test robot
/mm-everything next-20240913] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/lin

Re: [PATCH v4 16/30] riscv/shstk: If needed allocate a new shadow stack on clone

2024-09-13 Thread kernel test robot
/mm-everything next-20240913] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/lin

Re: [PATCH v4 16/30] riscv/shstk: If needed allocate a new shadow stack on clone

2024-09-13 Thread kernel test robot
-20240913] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Deepa

Re: [PATCH v4 21/30] riscv/traps: Introduce software check exception

2024-09-13 Thread Andy Chiu
Hi Deepak Deepak Gupta 於 2024年9月13日 週五 上午2:32寫道: > > zicfiss / zicfilp introduces a new exception to priv isa `software check > exception` with cause code = 18. This patch implements software check > exception. > > Additionally it implements a cfi violation handler which checks for code > in xtva

Re: [PATCH v4 23/30] riscv signal: save and restore of shadow stack for signal

2024-09-13 Thread Andy Chiu
Hi Deepak, Deepak Gupta 於 2024年9月13日 週五 上午1:20寫道: > > Save shadow stack pointer in sigcontext structure while delivering signal. > Restore shadow stack pointer from sigcontext on sigreturn. > > As part of save operation, kernel uses `ssamoswap` to save snapshot of > current shadow stack on shadow

Re: [PATCH v4 07/30] riscv: zicfilp / zicfiss in dt-bindings (extensions.yaml)

2024-09-13 Thread Conor Dooley
On Thu, Sep 12, 2024 at 04:16:26PM -0700, Deepak Gupta wrote: > Make an entry for cfi extensions in extensions.yaml. > > Signed-off-by: Deepak Gupta > --- > .../devicetree/bindings/riscv/extensions.yaml| 12 > 1 file changed, 12 insertions(+) > > diff --git a/Documentation/

Re: [PATCH v4 01/30] mm: Introduce ARCH_HAS_USER_SHADOW_STACK

2024-09-13 Thread Carlos Bilbao
On 9/12/24 18:16, Deepak Gupta wrote: > From: Mark Brown > > Since multiple architectures have support for shadow stacks and we need to > select support for this feature in several places in the generic code > provide a generic config option that the architectures can select. > > Suggested-by: Da

[PATCH v2] kernel-docs: Add new section for Rust learning materials

2024-09-13 Thread Carlos Bilbao
Include a new section in the Index of Further Kernel Documentation with resources to learn Rust. Reference it in the Rust index. Signed-off-by: Carlos Bilbao --- Changes since v1: - Added two more Rust blogs proposed by Dirk Behme. --- Documentation/process/kernel-docs.rst | 131 +

Re: [PATCH] kernel-docs: Add new section for Rust learning materials

2024-09-13 Thread Carlos Bilbao
On 9/12/24 00:01, Dirk Behme wrote: > On 11.09.2024 20:59, Carlos Bilbao wrote: >> Include a new section in the Index of Further Kernel Documentation with >> resources to learn Rust. Reference it in the Rust index. > Many thanks for creating the patch! Looks nice :) > > Whats about adding > > http

Re: [PATCH v4 15/30] riscv/mm: Implement map_shadow_stack() syscall

2024-09-13 Thread Mark Brown
On Thu, Sep 12, 2024 at 04:16:34PM -0700, Deepak Gupta wrote: > This patch implements this syscall for riscv. riscv doesn't require token > to be setup by kernel because user mode can do that by itself. However to > provide compatibility and portability with other architectues, user mode > can spe