Commit 4636f35f authored by Chen Jiahao's avatar Chen Jiahao Committed by Jinjie Ruan
Browse files

arm64: fix AUDIT_ARCH_AARCH64ILP32 bug on audit subsystem

hulk inclusion
category: bugfix
bugzilla: 174525 https://gitee.com/openeuler/kernel/issues/I8JVJ3



--------

In arm64be_ilp32 platform, audit could not record log in some case, because
syscall_get_arch() in arch/arm64 returns AUDIT_ARCH_AARCH64ILP32, which
fits the arm32 platform. Audit will gets a fault arch in this
situation and hence mismatch some syscall numbers in audit_match_perm().

This patch fixes it, and use the arch AUDIT_ARCH_AARCH64 which matches
all syscall numbers in arm64be_ilp32 platform.

Fixes: 0fe4141ba63a ("[Backport] arm64: introduce AUDIT_ARCH_AARCH64ILP32 for ilp32")
Signed-off-by: default avatarChen Jiahao <chenjiahao16@huawei.com>
Reviewed-by: default avatarLiao Chang <liaochang1@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
parent b56be86b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment