All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1075272] [NEW] socket type mapping wrong for mips app-level emulation
@ 2012-11-05 18:23 Bugdal
  2013-07-26 12:46 ` [Qemu-devel] [Bug 1075272] " Peter Maydell
  2016-05-20 17:05 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Bugdal @ 2012-11-05 18:23 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

linux-user/syscall.c's do_socket function contains socket type remapping
to work around the nonsensically-permuted MIPS socket types. However, it
fails to account for the SOCK_NONBLOCK and SOCK_CLOEXEC flags that may
be or'd onto the type. Thus, a call from the application such as:

socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)

will fail to have the type permutation performed, and will be passed to
the system as:

socket(AF_INET, SOCK_DGRAM, IPPROTO_TCP)

resulting in EPROTONOSUPPORT.

To fix this, the flag bits should be masked off of the type before the
permutation. They also need remapping themselves (since MIPS uses
different values for these flags bits).

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

Title:
  socket type mapping wrong for mips app-level emulation

Status in QEMU:
  New

Bug description:
  linux-user/syscall.c's do_socket function contains socket type
  remapping to work around the nonsensically-permuted MIPS socket types.
  However, it fails to account for the SOCK_NONBLOCK and SOCK_CLOEXEC
  flags that may be or'd onto the type. Thus, a call from the
  application such as:

  socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)

  will fail to have the type permutation performed, and will be passed
  to the system as:

  socket(AF_INET, SOCK_DGRAM, IPPROTO_TCP)

  resulting in EPROTONOSUPPORT.

  To fix this, the flag bits should be masked off of the type before the
  permutation. They also need remapping themselves (since MIPS uses
  different values for these flags bits).

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

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

* [Qemu-devel] [Bug 1075272] Re: socket type mapping wrong for mips app-level emulation
  2012-11-05 18:23 [Qemu-devel] [Bug 1075272] [NEW] socket type mapping wrong for mips app-level emulation Bugdal
@ 2013-07-26 12:46 ` Peter Maydell
  2016-05-20 17:05 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2013-07-26 12:46 UTC (permalink / raw)
  To: qemu-devel

This should be fixed in QEMU 1.6.


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

Title:
  socket type mapping wrong for mips app-level emulation

Status in QEMU:
  Fix Committed

Bug description:
  linux-user/syscall.c's do_socket function contains socket type
  remapping to work around the nonsensically-permuted MIPS socket types.
  However, it fails to account for the SOCK_NONBLOCK and SOCK_CLOEXEC
  flags that may be or'd onto the type. Thus, a call from the
  application such as:

  socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)

  will fail to have the type permutation performed, and will be passed
  to the system as:

  socket(AF_INET, SOCK_DGRAM, IPPROTO_TCP)

  resulting in EPROTONOSUPPORT.

  To fix this, the flag bits should be masked off of the type before the
  permutation. They also need remapping themselves (since MIPS uses
  different values for these flags bits).

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

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

* [Qemu-devel] [Bug 1075272] Re: socket type mapping wrong for mips app-level emulation
  2012-11-05 18:23 [Qemu-devel] [Bug 1075272] [NEW] socket type mapping wrong for mips app-level emulation Bugdal
  2013-07-26 12:46 ` [Qemu-devel] [Bug 1075272] " Peter Maydell
@ 2016-05-20 17:05 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2016-05-20 17:05 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       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/1075272

Title:
  socket type mapping wrong for mips app-level emulation

Status in QEMU:
  Fix Released

Bug description:
  linux-user/syscall.c's do_socket function contains socket type
  remapping to work around the nonsensically-permuted MIPS socket types.
  However, it fails to account for the SOCK_NONBLOCK and SOCK_CLOEXEC
  flags that may be or'd onto the type. Thus, a call from the
  application such as:

  socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)

  will fail to have the type permutation performed, and will be passed
  to the system as:

  socket(AF_INET, SOCK_DGRAM, IPPROTO_TCP)

  resulting in EPROTONOSUPPORT.

  To fix this, the flag bits should be masked off of the type before the
  permutation. They also need remapping themselves (since MIPS uses
  different values for these flags bits).

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

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

end of thread, other threads:[~2016-05-20 17:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-05 18:23 [Qemu-devel] [Bug 1075272] [NEW] socket type mapping wrong for mips app-level emulation Bugdal
2013-07-26 12:46 ` [Qemu-devel] [Bug 1075272] " Peter Maydell
2016-05-20 17:05 ` Peter Maydell

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.