All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1832916] [NEW] linux-user does not check PROT_EXEC
@ 2019-06-14 22:12 Richard Henderson
  2019-06-16 17:53 ` [Qemu-devel] [Bug 1832916] " Richard Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Richard Henderson @ 2019-06-14 22:12 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

At no point do we actually verify that a page is PROT_EXEC before
translating.  All we end up verifying is that the page is readable.  Not
the same thing, obviously.

The following test case should work for any architecture, though I've
only validated it for x86_64 and aarch64.

** Affects: qemu
     Importance: Undecided
     Assignee: Richard Henderson (rth)
         Status: New

** Attachment added: "z.c"
   https://bugs.launchpad.net/bugs/1832916/+attachment/5270854/+files/z.c

** Changed in: qemu
     Assignee: (unassigned) => Richard Henderson (rth)

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

Title:
  linux-user does not check PROT_EXEC

Status in QEMU:
  New

Bug description:
  At no point do we actually verify that a page is PROT_EXEC before
  translating.  All we end up verifying is that the page is readable.
  Not the same thing, obviously.

  The following test case should work for any architecture, though I've
  only validated it for x86_64 and aarch64.

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


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

* [Qemu-devel] [Bug 1832916] Re: linux-user does not check PROT_EXEC
  2019-06-14 22:12 [Qemu-devel] [Bug 1832916] [NEW] linux-user does not check PROT_EXEC Richard Henderson
@ 2019-06-16 17:53 ` Richard Henderson
  2019-06-17 18:15 ` Alex Bennée
  2021-05-04  7:55 ` Thomas Huth
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2019-06-16 17:53 UTC (permalink / raw)
  To: qemu-devel

It turns out we can't fix this without also fixing
our implementation of signal trampolines.

** Changed in: qemu
       Status: New => 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/1832916

Title:
  linux-user does not check PROT_EXEC

Status in QEMU:
  Confirmed

Bug description:
  At no point do we actually verify that a page is PROT_EXEC before
  translating.  All we end up verifying is that the page is readable.
  Not the same thing, obviously.

  The following test case should work for any architecture, though I've
  only validated it for x86_64 and aarch64.

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


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

* [Qemu-devel] [Bug 1832916] Re: linux-user does not check PROT_EXEC
  2019-06-14 22:12 [Qemu-devel] [Bug 1832916] [NEW] linux-user does not check PROT_EXEC Richard Henderson
  2019-06-16 17:53 ` [Qemu-devel] [Bug 1832916] " Richard Henderson
@ 2019-06-17 18:15 ` Alex Bennée
  2021-05-04  7:55 ` Thomas Huth
  2 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2019-06-17 18:15 UTC (permalink / raw)
  To: qemu-devel

** Tags added: testcase

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

Title:
  linux-user does not check PROT_EXEC

Status in QEMU:
  Confirmed

Bug description:
  At no point do we actually verify that a page is PROT_EXEC before
  translating.  All we end up verifying is that the page is readable.
  Not the same thing, obviously.

  The following test case should work for any architecture, though I've
  only validated it for x86_64 and aarch64.

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


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

* [Bug 1832916] Re: linux-user does not check PROT_EXEC
  2019-06-14 22:12 [Qemu-devel] [Bug 1832916] [NEW] linux-user does not check PROT_EXEC Richard Henderson
  2019-06-16 17:53 ` [Qemu-devel] [Bug 1832916] " Richard Henderson
  2019-06-17 18:15 ` Alex Bennée
@ 2021-05-04  7:55 ` Thomas Huth
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2021-05-04  7:55 UTC (permalink / raw)
  To: qemu-devel

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/122


** Changed in: qemu
       Status: Confirmed => Expired

** Changed in: qemu
     Assignee: Richard Henderson (rth) => (unassigned)

** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #122
   https://gitlab.com/qemu-project/qemu/-/issues/122

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

Title:
  linux-user does not check PROT_EXEC

Status in QEMU:
  Expired

Bug description:
  At no point do we actually verify that a page is PROT_EXEC before
  translating.  All we end up verifying is that the page is readable.
  Not the same thing, obviously.

  The following test case should work for any architecture, though I've
  only validated it for x86_64 and aarch64.

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


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

end of thread, other threads:[~2021-05-04  8:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-14 22:12 [Qemu-devel] [Bug 1832916] [NEW] linux-user does not check PROT_EXEC Richard Henderson
2019-06-16 17:53 ` [Qemu-devel] [Bug 1832916] " Richard Henderson
2019-06-17 18:15 ` Alex Bennée
2021-05-04  7:55 ` Thomas Huth

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.