Commit 1829419b authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Huacai Chen
Browse files

LoongArch: Handle CONFIG_32BIT in syscall_get_arch()



If CONFIG_32BIT is set, it should return AUDIT_ARCH_LOONGARCH32 instead
of AUDIT_ARCH_LOONGARCH64 in syscall_get_arch().

Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 8b81576c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -78,7 +78,11 @@ static inline void syscall_set_arguments(struct task_struct *task,

static inline int syscall_get_arch(struct task_struct *task)
{
#ifdef CONFIG_32BIT
	return AUDIT_ARCH_LOONGARCH32;
#else
	return AUDIT_ARCH_LOONGARCH64;
#endif
}

static inline bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs)