All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
@ 2017-10-23 13:16 Julian Andres Klode
  2017-10-23 13:17 ` [Qemu-devel] [Bug 1726394] " Julian Andres Klode
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Julian Andres Klode @ 2017-10-23 13:16 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
address) unmodified, but the third argument is an address to a BPF
filter, causing an EFAULT. Now, the filter is architecture-specifc, so
you can't just rewrite the addresses, so the safest bet is to just
return an error here.

I guess you should just return EINVAL, but not sure. I'd really like
something that can be identified, so seccomp errors can be ignored when
it's not supported.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  New

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
@ 2017-10-23 13:17 ` Julian Andres Klode
  2017-10-25 19:54 ` Julian Andres Klode
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Julian Andres Klode @ 2017-10-23 13:17 UTC (permalink / raw)
  To: qemu-devel

Returning EINVAL would make sense, as that's what a pre-seccomp kernel
or a kernel built without seccomp support would do.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  New

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
  2017-10-23 13:17 ` [Qemu-devel] [Bug 1726394] " Julian Andres Klode
@ 2017-10-25 19:54 ` Julian Andres Klode
  2017-11-03 23:40 ` Julian Andres Klode
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Julian Andres Klode @ 2017-10-25 19:54 UTC (permalink / raw)
  To: qemu-devel

I worked around this in APT for now by ignoring EFAULT or rather,
printing a warning. It would be nice to not do this though.

** Also affects: qemu (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu)
   Importance: Undecided => Medium

** Changed in: qemu (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Triaged

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
  2017-10-23 13:17 ` [Qemu-devel] [Bug 1726394] " Julian Andres Klode
  2017-10-25 19:54 ` Julian Andres Klode
@ 2017-11-03 23:40 ` Julian Andres Klode
  2017-11-03 23:51 ` Julian Andres Klode
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Julian Andres Klode @ 2017-11-03 23:40 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu (Ubuntu)
       Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Fix Committed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (2 preceding siblings ...)
  2017-11-03 23:40 ` Julian Andres Klode
@ 2017-11-03 23:51 ` Julian Andres Klode
  2017-11-05  4:59 ` Bug Watch Updater
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Julian Andres Klode @ 2017-11-03 23:51 UTC (permalink / raw)
  To: qemu-devel

** Bug watch added: Debian Bug tracker #880582
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880582

** Also affects: qemu (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880582
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu package in Debian:
  Unknown

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (3 preceding siblings ...)
  2017-11-03 23:51 ` Julian Andres Klode
@ 2017-11-05  4:59 ` Bug Watch Updater
  2017-11-06  7:32 ` ChristianEhrhardt
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Bug Watch Updater @ 2017-11-05  4:59 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu (Debian)
       Status: Unknown => Confirmed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (4 preceding siblings ...)
  2017-11-05  4:59 ` Bug Watch Updater
@ 2017-11-06  7:32 ` ChristianEhrhardt
  2017-11-07 18:34 ` Peter Maydell
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ChristianEhrhardt @ 2017-11-06  7:32 UTC (permalink / raw)
  To: qemu-devel

FYI - this is from http://lists.nongnu.org/archive/html/qemu-
devel/2017-11/msg00417.html

Upstream response looks good, but not committed there yet.

@Julian - given the case will you need this as an SRU as well or is it
only tied to newer apt (or newer apt use cases)?

Test queues in Bionic are still stalling this, there was an error on an
iso test on s390x which seemed unrelated to the update - I retriggered
for now as I'd assume it needs a newer fixed daily iso.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (5 preceding siblings ...)
  2017-11-06  7:32 ` ChristianEhrhardt
@ 2017-11-07 18:34 ` Peter Maydell
  2017-11-07 19:20 ` Julian Andres Klode
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Peter Maydell @ 2017-11-07 18:34 UTC (permalink / raw)
  To: qemu-devel

v2 of the patch (https://lists.gnu.org/archive/html/qemu-
devel/2017-11/msg01199.html) has been accepted upstream, though it isn't
in master yet.


** Tags added: linux-user

** Changed in: qemu
       Status: New => In Progress

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (6 preceding siblings ...)
  2017-11-07 18:34 ` Peter Maydell
@ 2017-11-07 19:20 ` Julian Andres Klode
  2017-11-14  7:26 ` ChristianEhrhardt
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Julian Andres Klode @ 2017-11-07 19:20 UTC (permalink / raw)
  To: qemu-devel

@pmaydell It's actually https://lists.gnu.org/archive/html/qemu-
devel/2017-11/msg00828.html :)


@paelzer It mostly depends how people run a apt 1.6 foreign architecture chroot with the same pointer size as the host architecture - if they install qemu-user inside the chroot, they're fine, if they copy an old version from the outside, they're not. If the copying is common, we might want to SRU that back to xenial and newer I guess.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (7 preceding siblings ...)
  2017-11-07 19:20 ` Julian Andres Klode
@ 2017-11-14  7:26 ` ChristianEhrhardt
  2017-11-14  7:53 ` Julian Andres Klode
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ChristianEhrhardt @ 2017-11-14  7:26 UTC (permalink / raw)
  To: qemu-devel

This was blocked migrating on a autopkgtest for a known issue now resolved.
TL;DR no bionic images. Resolved now, should migrate soon.

While the final fix now accepted in linux-user is slightly different,
the difference is only a comment. It is therefore fine if we pick this
up on next merge for Bionic.

Once complete I can plan SRU uploads for this.

** Also affects: qemu (Ubuntu Artful)
   Importance: Undecided
       Status: New

** Also affects: qemu (Ubuntu Zesty)
   Importance: Undecided
       Status: New

** Also affects: qemu (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: qemu (Ubuntu Zesty)
       Status: New => Triaged

** Changed in: qemu (Ubuntu Artful)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu source package in Xenial:
  Triaged
Status in qemu source package in Zesty:
  Triaged
Status in qemu source package in Artful:
  Triaged
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (8 preceding siblings ...)
  2017-11-14  7:26 ` ChristianEhrhardt
@ 2017-11-14  7:53 ` Julian Andres Klode
  2017-11-14  8:10 ` ChristianEhrhardt
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Julian Andres Klode @ 2017-11-14  7:53 UTC (permalink / raw)
  To: qemu-devel

I think we can skip SRUing this, apt now has a new workaround based on
execve()ing with QEMU_VERSION=meow, which calls qemu-user to exit with
0. It executes a program guaranteed to exit with 1, and just disables
seccomp if that exits with 0.

https://anonscm.debian.org/cgit/apt/apt.git/commit/?id=243acdee176dd90cb2838690cb5abbd64d4da905

It's hacky, but it works :)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu source package in Xenial:
  Triaged
Status in qemu source package in Zesty:
  Triaged
Status in qemu source package in Artful:
  Triaged
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (9 preceding siblings ...)
  2017-11-14  7:53 ` Julian Andres Klode
@ 2017-11-14  8:10 ` ChristianEhrhardt
  2017-11-14 14:35 ` Launchpad Bug Tracker
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ChristianEhrhardt @ 2017-11-14  8:10 UTC (permalink / raw)
  To: qemu-devel

Ok, thanks for the info Julian!

** Changed in: qemu (Ubuntu Xenial)
       Status: Triaged => Won't Fix

** Changed in: qemu (Ubuntu Zesty)
       Status: Triaged => Won't Fix

** Changed in: qemu (Ubuntu Artful)
       Status: Triaged => Won't Fix

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Committed
Status in qemu source package in Xenial:
  Won't Fix
Status in qemu source package in Zesty:
  Won't Fix
Status in qemu source package in Artful:
  Won't Fix
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (10 preceding siblings ...)
  2017-11-14  8:10 ` ChristianEhrhardt
@ 2017-11-14 14:35 ` Launchpad Bug Tracker
  2017-11-14 14:37 ` ChristianEhrhardt
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: Launchpad Bug Tracker @ 2017-11-14 14:35 UTC (permalink / raw)
  To: qemu-devel

This bug was fixed in the package qemu - 1:2.10+dfsg-0ubuntu4

---------------
qemu (1:2.10+dfsg-0ubuntu4) bionic; urgency=medium

  * Apply linux-user-return-EINVAL-from-prctl-PR_-_SECCOMP.patch from
    James Cowgill to prevent qemu-user from forwarding prctl seccomp
    calls (LP: #1726394)

 -- Julian Andres Klode <juliank@ubuntu.com>  Sat, 04 Nov 2017 00:21:14
+0100

** Changed in: qemu (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu source package in Xenial:
  Won't Fix
Status in qemu source package in Zesty:
  Won't Fix
Status in qemu source package in Artful:
  Won't Fix
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (11 preceding siblings ...)
  2017-11-14 14:35 ` Launchpad Bug Tracker
@ 2017-11-14 14:37 ` ChristianEhrhardt
  2017-11-14 14:42 ` ChristianEhrhardt
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: ChristianEhrhardt @ 2017-11-14 14:37 UTC (permalink / raw)
  To: qemu-devel

See it passed [1] but britney not picking up.
Giving it some time to do so.

[1]:
https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac
/autopkgtest-bionic/bionic/amd64/o/open-
iscsi/20171114_135029_17bf1@/log.gz

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu source package in Xenial:
  Won't Fix
Status in qemu source package in Zesty:
  Won't Fix
Status in qemu source package in Artful:
  Won't Fix
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (12 preceding siblings ...)
  2017-11-14 14:37 ` ChristianEhrhardt
@ 2017-11-14 14:42 ` ChristianEhrhardt
  2018-02-15 11:27 ` Thomas Huth
  2018-04-02  6:14 ` Bug Watch Updater
  15 siblings, 0 replies; 17+ messages in thread
From: ChristianEhrhardt @ 2017-11-14 14:42 UTC (permalink / raw)
  To: qemu-devel

LP, this was unfair to reverse-pass me :-)
Anyway - done - thanks Julian and James C. for your work on that.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  In Progress
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu source package in Xenial:
  Won't Fix
Status in qemu source package in Zesty:
  Won't Fix
Status in qemu source package in Artful:
  Won't Fix
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (13 preceding siblings ...)
  2017-11-14 14:42 ` ChristianEhrhardt
@ 2018-02-15 11:27 ` Thomas Huth
  2018-04-02  6:14 ` Bug Watch Updater
  15 siblings, 0 replies; 17+ messages in thread
From: Thomas Huth @ 2018-02-15 11:27 UTC (permalink / raw)
  To: qemu-devel

Fix has been released with QEMU 2.11:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=a8b154a637b586441b

** Changed in: qemu
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  Fix Released
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu source package in Xenial:
  Won't Fix
Status in qemu source package in Zesty:
  Won't Fix
Status in qemu source package in Artful:
  Won't Fix
Status in qemu package in Debian:
  Confirmed

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [Qemu-devel] [Bug 1726394] Re: Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)
  2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
                   ` (14 preceding siblings ...)
  2018-02-15 11:27 ` Thomas Huth
@ 2018-04-02  6:14 ` Bug Watch Updater
  15 siblings, 0 replies; 17+ messages in thread
From: Bug Watch Updater @ 2018-04-02  6:14 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu (Debian)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1726394

Title:
  Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address)

Status in QEMU:
  Fix Released
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu source package in Xenial:
  Won't Fix
Status in qemu source package in Zesty:
  Won't Fix
Status in qemu source package in Artful:
  Won't Fix
Status in qemu package in Debian:
  Fix Released

Bug description:
  qemu-user passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
  address) unmodified, but the third argument is an address to a BPF
  filter, causing an EFAULT. Now, the filter is architecture-specifc, so
  you can't just rewrite the addresses, so the safest bet is to just
  return an error here.

  I guess you should just return EINVAL, but not sure. I'd really like
  something that can be identified, so seccomp errors can be ignored
  when it's not supported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1726394/+subscriptions

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-04-02  6:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-23 13:16 [Qemu-devel] [Bug 1726394] [NEW] Passes through prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, address) Julian Andres Klode
2017-10-23 13:17 ` [Qemu-devel] [Bug 1726394] " Julian Andres Klode
2017-10-25 19:54 ` Julian Andres Klode
2017-11-03 23:40 ` Julian Andres Klode
2017-11-03 23:51 ` Julian Andres Klode
2017-11-05  4:59 ` Bug Watch Updater
2017-11-06  7:32 ` ChristianEhrhardt
2017-11-07 18:34 ` Peter Maydell
2017-11-07 19:20 ` Julian Andres Klode
2017-11-14  7:26 ` ChristianEhrhardt
2017-11-14  7:53 ` Julian Andres Klode
2017-11-14  8:10 ` ChristianEhrhardt
2017-11-14 14:35 ` Launchpad Bug Tracker
2017-11-14 14:37 ` ChristianEhrhardt
2017-11-14 14:42 ` ChristianEhrhardt
2018-02-15 11:27 ` Thomas Huth
2018-04-02  6:14 ` Bug Watch Updater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.