Re: [PATCH RESEND v4] riscv: Enable per-task stack canaries

2021-01-12 Thread Palmer Dabbelt
On Thu, 17 Dec 2020 08:29:18 PST (-0800), guo...@kernel.org wrote: From: Guo Ren This enables the use of per-task stack canary values if GCC has support for emitting the stack canary reference relative to the value of tp, which holds the task struct pointer in the riscv kernel. After compare

[PATCH RESEND v4] riscv: Enable per-task stack canaries

2020-12-17 Thread guoren
From: Guo Ren This enables the use of per-task stack canary values if GCC has support for emitting the stack canary reference relative to the value of tp, which holds the task struct pointer in the riscv kernel. After compare arm64 and x86 implementations, seems arm64's is more flexible and