seccomp: not compatible with ARM OABI
PATCH 1/1 seccomp: not compatible with ARM OABI
Make sure that seccomp filter won't be built when ARM OABI is in use, since there is work needed to distinguish calling conventions. Until that is done (which is likely never since OABI is deprecated), make sure seccomp filter is unavailable in the OABI compat world.
--- arch/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
arch/Kconfig +4 -1
@@ -331,12 +331,15 @@ config HAVE_ARCH_SECCOMP_FILTER config SECCOMP_FILTER def_bool y - depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET + depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET && !OABI_COMPAT help Enable tasks to build secure computing environments defined in terms of Berkeley Packet Filter programs which implement task-defined system call filtering polices. + Not available on ARM when built with OABI compatibility due to + lack of a sensible way to distinguish the calling conventions. + See Documentation/prctl/seccomp_filter.txt for details. config HAVE_CONTEXT_TRACKING
Signature · 6 lines
1.7.9.5 -- Kees Cook Chrome OS Security
Thanks!
Quoted 38 lines · Kees Cook
Make sure that seccomp filter won't be built when ARM OABI is in use, since there is work needed to distinguish calling conventions. Until that is done (which is likely never since OABI is deprecated), make sure seccomp filter is unavailable in the OABI compat world.
Signed-off-by Kees Cook <[email protected]>--- arch/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)arch/Kconfig +4
-2@@ -331,12 +331,15 @@ config HAVE_ARCH_SECCOMP_FILTER config SECCOMP_FILTER def_bool y - depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET + depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET && !OABI_COMPAT help Enable tasks to build secure computing environments defined in terms of Berkeley Packet Filter programs which implement task-defined system call filtering polices. + Not available on ARM when built with OABI compatibility due to + lack of a sensible way to distinguish the calling conventions. + See Documentation/prctl/seccomp_filter.txt for details. config HAVE_CONTEXT_TRACKING --1.7.9.5
--
Kees Cook
Chrome OS Security
Hi,
arch/Kconfig config HAVE_ARCH_SECCOMP_FILTER · line 334
Quoted 10 lines · Kees Cook
arch/Kconfig +1
-1@@ -331,12 +331,15 @@ config HAVE_ARCH_SECCOMP_FILTER config SECCOMP_FILTER def_bool y - depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET + depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET && !OABI_COMPAT
Isn't this the whole point of HAVE_ARCH_SECCOMP_FILTER?
Just change the select in arch/arm/Kconfig to this:
select HAVE_ARCH_SECCOMP_FILTER if !OABI_COMPAT
Cheers
James
Quoted 16 lines · James Hogan
Hi,
arch/Kconfig config HAVE_ARCH_SECCOMP_FILTER · line 334
Quoted 10 lines · Kees Cook
arch/Kconfig +1
-1@@ -331,12 +331,15 @@ config HAVE_ARCH_SECCOMP_FILTER config SECCOMP_FILTER def_bool y - depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET + depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET && !OABI_COMPATIsn't this the whole point of
HAVE_ARCH_SECCOMP_FILTER?
Quoted 3 lines
Just change the select in
arch/arm/Kconfigto this:select
HAVE_ARCH_SECCOMP_FILTERif !OABI_COMPAT
Oh! Yeah, that's a much cleaner way to handle it. I totally forgot that "select" could be conditional. I will respin it that way.
Thanks!
-Kees
Signature · 2 lines
Kees Cook Chrome OS Security