Re: [PATCH v12 22/28] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2025-03-20 Thread Radim Krčmář
2025-03-14T14:39:41-07:00, Deepak Gupta : > 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 enabled. Why can't kerne

Re: [PATCH net-next v9 3/6] tun: Introduce virtio-net hash feature

2025-03-20 Thread Jason Wang
On Thu, Mar 20, 2025 at 1:33 PM Akihiko Odaki wrote: > > On 2025/03/20 10:31, Jason Wang wrote: > > On Wed, Mar 19, 2025 at 1:29 PM Akihiko Odaki > > wrote: > >> > >> On 2025/03/19 9:58, Jason Wang wrote: > >>> On Tue, Mar 18, 2025 at 6:10 PM Akihiko Odaki > >>> wrote: > > On 2025/03

Re: [PATCH v12 19/28] riscv/ptrace: riscv cfi status and state via ptrace and in core files

2025-03-20 Thread Deepak Gupta
On Thu, Mar 20, 2025 at 3:24 PM Radim Krčmář wrote: > > 2025-03-14T14:39:38-07:00, Deepak Gupta : > > Expose a new register type NT_RISCV_USER_CFI for risc-v cfi status and > > state. Intentionally both landing pad and shadow stack status and state > > are rolled into cfi state. Creating two diffe

Re: [PATCH v12 25/28] riscv: create a config for shadow stack and landing pad instr support

2025-03-20 Thread Deepak Gupta
On Thu, Mar 20, 2025 at 2:25 PM Radim Krčmář wrote: > > 2025-03-14T14:39:44-07:00, Deepak Gupta : > > This patch creates a config for shadow stack support and landing pad instr > > support. Shadow stack support and landing instr support can be enabled by > > selecting `CONFIG_RISCV_USER_CFI`. Sele

Re: [PATCH v12 22/28] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2025-03-20 Thread Deepak Gupta
On Thu, Mar 20, 2025 at 3:10 PM Radim Krčmář wrote: > > 2025-03-14T14:39:41-07:00, Deepak Gupta : > > 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 sha