Home
last modified time | relevance | path

Searched hist:"2 f78c73f78c39dabc5c44ad8dd61fd6ec65636d6" (Results 1 – 2 of 2) sorted by relevance

/linux/arch/csky/include/asm/
H A Dstackprotector.h2f78c73f78c39dabc5c44ad8dd61fd6ec65636d6 Fri Oct 11 04:56:55 CEST 2019 Mao Han <han_mao@c-sky.com> csky: Initial stack protector support

This is a basic -fstack-protector support without per-task canary
switching. The protector will report something like when stack
corruption is detected:

It's tested with strcpy local array overflow in sys_kill and get:
stack-protector: Kernel stack is corrupted in: sys_kill+0x23c/0x23c

TODO:
- Support task switch for different cannary

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
/linux/arch/csky/kernel/
H A Dprocess.cdiff 2f78c73f78c39dabc5c44ad8dd61fd6ec65636d6 Fri Oct 11 04:56:55 CEST 2019 Mao Han <han_mao@c-sky.com> csky: Initial stack protector support

This is a basic -fstack-protector support without per-task canary
switching. The protector will report something like when stack
corruption is detected:

It's tested with strcpy local array overflow in sys_kill and get:
stack-protector: Kernel stack is corrupted in: sys_kill+0x23c/0x23c

TODO:
- Support task switch for different cannary

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>