v2 merged to 6.1+

Bruce

In message: [linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH v2] arm: disable 
CONFIG_OABI_COMPAT
on 09/08/2023 Xiangyu Chen wrote:

> From: Xiangyu Chen <[email protected]>
> 
> OABI_COMPAT is a backwards compatibility tool intended to support 
> the old Linux ARM ABI. When the OABI_COMPAT enabled on ARM platform, 
> the HAVE_ARCH_AUDITSYSCALL[1] and HAVE_ARCH_SECCOMP_FILTER[2] would 
> be dropped due to those features only support EABI mode.
> 
> With strace we can observe that if HAVE_ARCH_AUDITSYSCALL disabled, 
> the audit tool in userspace would fail to use syscall and report an 
> error:
> 
> strace auditctl -R /etc/audit/audit.rules
> 
> sendto(3, [{nlmsg_len=1072, nlmsg_type=0x3f3 /* NLMSG_??? */,
> nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=10, nlmsg_pid=0},
> "\x04\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00
> \x00\x00\x00\x80\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00"...],
> 1072, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 1072
> poll([{fd=3, events=POLLIN}], 1, 500)   = 1 ([{fd=3, revents=POLLIN}])
> 
> recvfrom(3, [{nlmsg_len=1092, nlmsg_type=NLMSG_ERROR, nlmsg_flags=0,
> nlmsg_seq=10, nlmsg_pid=529}, {error=-EINVAL, msg=[{nlmsg_len=1072,
> nlmsg_type=0x3f3 /* NLMSG_??? */, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK,
> nlmsg_seq=10, nlmsg_pid=0},
> "\x04\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00
> \x00\x00\x00\x80\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00"...]}],
> 8988, MSG_PEEK|MSG_DONTWAIT, {sa_family=AF_NETLINK, nl_pid=0,
> nl_groups=00000000}, [12]) = 1092
> 
> write(2, "Error sending add rule data requ"..., 54Error sending add rule
> data request (Invalid argument)) = 54
> 
> 
> [1] 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7a017721
> [2] 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=91702175
> 
> Signed-off-by: Xiangyu Chen <[email protected]>
> ---
> 
> Changes:
> v1->v2 : add strace log to comments
> ---
>  arch/arm/arm.cfg | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/arm/arm.cfg b/arch/arm/arm.cfg
> index aa99bb7e..f2b36dca 100644
> --- a/arch/arm/arm.cfg
> +++ b/arch/arm/arm.cfg
> @@ -2,8 +2,6 @@
>  # Build EABI kernels that support EABI system calls.
>  CONFIG_AEABI=y
>  
> -# Provide support for the old ABI's system calls.
> -CONFIG_OABI_COMPAT=y
>  CONFIG_ARM_THUMB=y
>  
>  # Failure to use this on ARM results in lots of interesting runtime bugs.
> -- 
> 2.17.1
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12955): 
https://lists.yoctoproject.org/g/linux-yocto/message/12955
Mute This Topic: https://lists.yoctoproject.org/mt/100638245/21656
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/linux-yocto/leave/6687884/21656/624485779/xyzzy
 [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to