Re: [PATCH v3 15/29] riscv/shstk: If needed allocate a new shadow stack on clone

2024-05-13 Thread Deepak Gupta
On Sun, May 12, 2024 at 07:05:27PM +0200, Alexandre Ghiti wrote: On 04/04/2024 01:35, Deepak Gupta wrote: Userspace specifies VM_CLONE to share address space and spawn new thread. CLONE_VM? Yes I meant CLONE_VM, will fix it. `clone` allow userspace to specify a new stack for new

Re: [PATCH v3 15/29] riscv/shstk: If needed allocate a new shadow stack on clone

2024-05-12 Thread Alexandre Ghiti
On 04/04/2024 01:35, Deepak Gupta wrote: Userspace specifies VM_CLONE to share address space and spawn new thread. CLONE_VM? `clone` allow userspace to specify a new stack for new thread. However there is no way to specify new shadow stack base address without changing API. This patch

[PATCH v3 15/29] riscv/shstk: If needed allocate a new shadow stack on clone

2024-04-03 Thread Deepak Gupta
Userspace specifies VM_CLONE to share address space and spawn new thread. `clone` allow userspace to specify a new stack for new thread. However there is no way to specify new shadow stack base address without changing API. This patch allocates a new shadow stack whenever VM_CLONE is given. In