[Top] [All Lists]

Re: [PATCH 2/2] x86-64: seccomp: fix 32/64 syscall hole

To: Ingo Molnar <>
Subject: Re: [PATCH 2/2] x86-64: seccomp: fix 32/64 syscall hole
From: Markus Gutschke (顧孟勤) <>
Date: Wed, 6 May 2009 15:08:40 -0700
Cc: Linus Torvalds <>, Roland McGrath <>, Andrew Morton <>,,,,,,
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed;; s=beta; t=1241647723; bh=q3P0kMXFVVxLh7ZNuwYdy7EIE+k=; h=DomainKey-Signature:MIME-Version:In-Reply-To:References:Date: Message-ID:Subject:From:To:Cc:Content-Type: Content-Transfer-Encoding:X-System-Of-Record; b=TlBgcpgBi95ZWXAhCM IzZBbmngXlwoje0QNvesG4mLw8SaO3zsZwzTMwrpPbA/lQq7PIm0Y+uHEns31BN9wLc g==
Domainkey-signature: a=rsa-sha1; s=beta;; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:content-transfer-encoding:x-system-of-record; b=vlN1f6ehSs9cEwxJIcryrg1ZvM3s5THr1qvhnwCH9IuXHG8TjGtLY7bkTYDBI1BID joWhjdHK2OntygxxjM+gw==
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <alpine.LFD.2.00.0902271932520.3111@localhost.localdomain> <alpine.LFD.2.00.0902271948570.3111@localhost.localdomain> <> <alpine.LFD.2.00.0902280916470.3111@localhost.localdomain> <> <> <> <>
On Wed, May 6, 2009 at 14:54, Ingo Molnar <> wrote:
> Which other system calls would you like to use? Futexes might be
> one, for fast synchronization primitives?

There are a large number of system calls that "normal" C/C++ code uses
quite frequently, and that are not security sensitive. A typical
example would be gettimeofday(). But there are other system calls,
where the sandbox would not really need to inspect arguments as the
call does not expose any exploitable interface.

It is currently awkward that in order to use seccomp we have to
intercept all system calls and provide alternative implementations for
them; whereas we really only care about a comparatively small number
of security critical operations that we need to restrict.

Also, any redirected system call ends up incurring at least two
context switches, which is needlessly expensive for the large number
of trivial system calls. We are quite happy that read() and write(),
which are quite important to us, do not incur this penalty.


<Prev in Thread] Current Thread [Next in Thread>