提交 672bc047 编写于 作者: H Huacai Chen 提交者: Hongchen Zhang

LoongArch: Disable executable stack by default

mainline inclusion
from mainline-v5.19
commit 317980e6
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB
CVE: NA

--------------------------------

Disable executable stack for LoongArch by default, as all modern
architectures do.
Reported-by: NAndreas Schwab <schwab@suse.de>
Suggested-by: NWANG Xuerui <git@xen0n.name>
Link: https://sourceware.org/pipermail/binutils/2022-July/121992.htmlTested-by: NWANG Xuerui <git@xen0n.name>
Tested-by: NXi Ruoyao <xry111@xry111.site>
Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
上级 dadd4d8a
...@@ -288,8 +288,6 @@ struct arch_elf_state { ...@@ -288,8 +288,6 @@ struct arch_elf_state {
.interp_fp_abi = LOONGARCH_ABI_FP_ANY, \ .interp_fp_abi = LOONGARCH_ABI_FP_ANY, \
} }
#define elf_read_implies_exec(ex, exec_stk) (exec_stk == EXSTACK_DEFAULT)
extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf, extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf,
bool is_interp, struct arch_elf_state *state); bool is_interp, struct arch_elf_state *state);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册