From: Paul Moore <pmoore@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Eduardo Otubo <eduardo.otubo@profitbricks.com>,
Philipp Gesang <philipp.gesang@intra2net.com>
Subject: Re: [Qemu-devel] [PATCH] seccomp: change configure to avoid arm 32 to break
Date: Wed, 05 Nov 2014 15:35:09 -0500 [thread overview]
Message-ID: <2511814.5UZKhYSZ5W@sifl> (raw)
In-Reply-To: <CAFEAcA__-JLbfWyz9vRxDNpoJfMHQZT5_rQyxhgdK2SWGjWB_w@mail.gmail.com>
On Wednesday, November 05, 2014 08:08:06 PM Peter Maydell wrote:
> On 5 November 2014 19:46, Paul Moore <pmoore@redhat.com> wrote:
> > On Wednesday, November 05, 2014 05:08:20 PM Peter Maydell wrote:
> >> On 5 November 2014 16:47, Eduardo Otubo wrote:
> >> > Right now seccomp is breaking the compilation of Qemu on armv7l due
> >> > to libsecomp current lack of support for this arch. This problem is
> >> > already fixed on libseccomp upstream but no release date for that is
> >> > scheduled to far. This patch disables support for seccomp on armv7l
> >> > temporarily until libseccomp does a new release. Then I'll remove the
> >> > hack and update libseccomp dependency on configure script.
> >> >
> >> > Related bug: https://bugs.launchpad.net/qemu/+bug/1363641
> >
> > ...
> >
> >> (How are upstream proposing to fix this anyway? I couldn't
> >> figure that out from the mailing list thread.)
> >
> > The problem was that the released version of libseccomp has some "holes"
> > in
> > the internal syscall table for 32-bit ARM with respect to all of the other
> > supported architectures. The current libseccomp upstream has some
> > additional tooling and checks to ensure that the different ABI syscall
> > tables are kept in sync to prevent something like this from happening in
> > the future.
>
> OK. So should we make QEMU say "if x86_64 or i386, require
> seccomp 2.1 or better, else require 2.2 or better"?
I would probably just limit QEMU/seccomp to x86_64 and x86. Once we have the
new release that fixes everything we can start worrying about versions and
different ABIs.
> If our current source will build with seccomp 2.2 then that seems like a
> better check to put in our configure script than a simple disabling of
> the functionality on ARM hosts; it means that if distros end up
> with QEMU 2.2 plus seccomp 2.2 the functionality won't be
> unnecessarily disabled. (Please correct me if I have your
> next-release numbering wrong!)
Well, technically we don't have libseccomp v2.2 yet so I can't say for certain
what it will look like and how it will behave.
> > I'm more than happy to discuss how libseccomp handles the different
> > architectures, but that's probably a bit off-topic for this thread.
>
> I guess the only thing that matters for us is that there wasn't
> an API break required for the fix.
Nope, the API is solid, just some internal fixes.
--
paul moore
security and virtualization @ redhat
next prev parent reply other threads:[~2014-11-05 20:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 16:47 [Qemu-devel] [PATCH] seccomp: change configure to avoid arm 32 to break Eduardo Otubo
2014-11-05 17:08 ` Peter Maydell
2014-11-05 19:46 ` Paul Moore
2014-11-05 20:08 ` Peter Maydell
2014-11-05 20:35 ` Paul Moore [this message]
2014-11-06 9:24 ` Eduardo Otubo
2014-11-06 16:37 ` Paul Moore
-- strict thread matches above, loose matches on Subject: below --
2014-11-06 14:49 Eduardo Otubo
2014-11-06 15:49 ` Peter Maydell
2014-11-06 16:22 ` Eduardo Otubo
2014-11-06 16:22 ` Paul Moore
2014-11-06 16:36 ` Eduardo Otubo
2014-11-06 16:54 ` Paul Moore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2511814.5UZKhYSZ5W@sifl \
--to=pmoore@redhat.com \
--cc=eduardo.otubo@profitbricks.com \
--cc=peter.maydell@linaro.org \
--cc=philipp.gesang@intra2net.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).