All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1912107] [NEW] Option to constrain linux-user exec() to emulated CPU only
@ 2021-01-17 18:37 Mingye Wang
  2021-05-12 11:24 ` [Bug 1912107] " Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mingye Wang @ 2021-01-17 18:37 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

When trying to reproduce a bug someone reported on an actual AMD K10[1], ​I tried to directly throw `qemu_x86-64 -cpu 
​phenom path/to/wrongly-labelled-instruction-set/gcc 1.c` at the problem, but failed to get an "illegal instruction" as expected. A quick investigation reveals that the error is actually caused by one of gcc's child processess, and that the said process is being ran directly on the host. A similar problem happens with trying to call stuff with /usr/bin/env.

 ​[1]: https://github.com/Homebrew/brew/issues/1034

Since both the host and the guest are x86_64, I deemed binfmt
inapplicable to my case. I believe that QEMU should offer a way to
modify exec() and other spawning syscalls so that execution remains on
an emulated CPU in such a case. Call it an extra layer of binfmt, if you
must.

** 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/1912107

Title:
  Option to constrain linux-user exec() to emulated CPU only

Status in QEMU:
  New

Bug description:
  When trying to reproduce a bug someone reported on an actual AMD K10[1], ​I tried to directly throw `qemu_x86-64 -cpu 
  ​phenom path/to/wrongly-labelled-instruction-set/gcc 1.c` at the problem, but failed to get an "illegal instruction" as expected. A quick investigation reveals that the error is actually caused by one of gcc's child processess, and that the said process is being ran directly on the host. A similar problem happens with trying to call stuff with /usr/bin/env.

   ​[1]: https://github.com/Homebrew/brew/issues/1034

  Since both the host and the guest are x86_64, I deemed binfmt
  inapplicable to my case. I believe that QEMU should offer a way to
  modify exec() and other spawning syscalls so that execution remains on
  an emulated CPU in such a case. Call it an extra layer of binfmt, if
  you must.

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


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

end of thread, other threads:[~2021-05-14 19:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-17 18:37 [Bug 1912107] [NEW] Option to constrain linux-user exec() to emulated CPU only Mingye Wang
2021-05-12 11:24 ` [Bug 1912107] " Thomas Huth
2021-05-13 13:23 ` Mingye Wang
2021-05-14 19:28 ` 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.