CONFIG_SECCOMP missing on ARM

Bug #375183 reported by Kees Cook
264
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-linaro (Ubuntu)
Fix Released
High
Amit Kucheria

Bug Description

PR_SET_SECCOMP (see man prctl) does not work correctly on ARM. The CONFIG_SECCOMP is not defined (and is not listed in Kconfig). It is not an arch-specific feature (see kernel/seccomp.c).

$ git grep 'config SECCOMP' | cat
arch/mips/Kconfig:config SECCOMP
arch/powerpc/Kconfig:config SECCOMP
arch/sh/Kconfig:config SECCOMP
arch/sparc/Kconfig:config SECCOMP
arch/x86/Kconfig:config SECCOMP

Tags: kconfig
Kees Cook (kees)
visibility: private → public
Changed in linux (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in linux (Ubuntu):
status: Confirmed → Triaged
tags: added: kernel-config
tags: added: kconfig
removed: kernel-config
Amit Kucheria (amitk)
Changed in linux (Ubuntu):
assignee: nobody → Amit Kucheria (amitk)
Revision history for this message
Evan Martin (Chromium) (evan-chromium) wrote :

This will soon become a requirement for Chromium.

Revision history for this message
Amit Kucheria (amitk) wrote :

This is not just a config issue, it is a lack of hooking up SECCOMP thread flag in ARM. I've got a kernel patch that now compiles, but I will need some hand-holding on testing it. As I understood SECCOMP, it is used to restrict access to the syscalls that a process thread can make to the following - read, write, exit and sigreturn.

Do you have a sample program that will allow me to test if other syscalls are being permitted or not?

Revision history for this message
Kees Cook (kees) wrote :
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: none → ubuntu-10.04-beta-1
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-10.04-beta-1 → ubuntu-10.04-beta-2
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-10.04-beta-2 → later
Amit Kucheria (amitk)
Changed in linux (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Amit Kucheria (amitk) wrote :

Committed to linaro kernel and sent upstream by Nico

affects: linux (Ubuntu) → linux-linaro (Ubuntu)
Changed in linux-linaro (Ubuntu):
status: In Progress → Fix Committed
John Rigby (jcrigby)
Changed in linux-linaro (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.