On Fri, Jul 29, 2022 at 10:28 AM Xi Ruoyao <xry111@xxxxxxxxxxx> wrote: > > On Tue, 2022-07-26 at 21:02 +0800, Huacai Chen wrote: > > Disable executable stack for LoongArch by default, as all modern > > architectures do. > > Should this be a 5.19 fix? IIUC after the first release we'll be > impossible to change it because it would "break userspace". > > Note that 5.19 release is scheduled this weekend. Already queued for 5.19-final, thanks. Huacai > > > Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx> > > --- > > arch/loongarch/include/asm/elf.h | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/arch/loongarch/include/asm/elf.h > > b/arch/loongarch/include/asm/elf.h > > index f3960b18a90e..5f3ff4781fda 100644 > > --- a/arch/loongarch/include/asm/elf.h > > +++ b/arch/loongarch/include/asm/elf.h > > @@ -288,8 +288,6 @@ struct arch_elf_state { > > .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, > > bool is_interp, struct arch_elf_state > > *state); > > > > -- > Xi Ruoyao <xry111@xxxxxxxxxxx> > School of Aerospace Science and Technology, Xidian University