qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 8070e7: alpha-linux-user: Fix umount syscall


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 8070e7: alpha-linux-user: Fix umount syscall numbers
Date: Fri, 27 Sep 2013 06:30:07 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 8070e7be8b2909b48b56b5e965fca209ba5969db
      
https://github.com/qemu/qemu/commit/8070e7be8b2909b48b56b5e965fca209ba5969db
  Author: Richard Henderson <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/alpha/syscall_nr.h
    M linux-user/strace.list
    M linux-user/syscall.c

  Log Message:
  -----------
  alpha-linux-user: Fix umount syscall numbers

It has been pointed out on LKML that the alpha umount syscall numbers
are named wrong, and a patch to rectify that has been posted for 3.11.

Glibc works around this by treating NR_umount as NR_umount2 if
NR_oldumount exists.  That's more complicated than we need in QEMU,
given that we control linux-user/*/syscall_nr.h.

This is the last instance of TARGET_NR_oldumount, so delete that from
the strace.list.

Signed-off-by: Richard Henderson <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 868e34d7bdf958963da9582c1c14f2b7930b6d37
      
https://github.com/qemu/qemu/commit/868e34d7bdf958963da9582c1c14f2b7930b6d37
  Author: Richard Henderson <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/main.c

  Log Message:
  -----------
  mips-linux-user: Adjust names in mips_syscall_args

The name field of MIPS_SYS isn't actually used; it's just documentation.
But adjust the umount entries to match mips/syscall_nr.h anyway.

Signed-off-by: Richard Henderson <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: de6b9933772c743789808531b3092329faf42496
      
https://github.com/qemu/qemu/commit/de6b9933772c743789808531b3092329faf42496
  Author: Laurent Vivier <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: convert /proc/net/route when endianess differs

This patch allows to have IP addresses in correct order
in the case of "netstat -nr" when the endianess of the
guest differs from one of the host.

For instance, an m68k guest on an x86_64 host:

WITHOUT this patch:

$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         1.3.0.10        0.0.0.0         UG        0 0          0 eth0
0.3.0.10        0.0.0.0         0.255.255.255   U         0 0          0 eth0
$ cat /proc/net/route
Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask    
MTU     Window  IRTT

eth0    00000000        0103000A        0003    0       0       0       
000000000       0       0
eth0    0003000A        00000000        0001    0       0       0       
00FFFFFF0       0       0

WITH this patch:

$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.3.1        0.0.0.0         UG        0 0          0 eth0
10.0.3.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
$ cat /proc/net/route
Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask    
MTU     Window  IRTT
eth0    00000000        0a000301        0003    0       0       0       
000000000       0       0
eth0    0a000300        00000000        0001    0       0       0       
ffffff000       0       0

Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: f57d419241e7c7cce5d11172081a5860e86aa8bc
      
https://github.com/qemu/qemu/commit/f57d419241e7c7cce5d11172081a5860e86aa8bc
  Author: Laurent Vivier <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/syscall.c
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user: Add setsockopt(SO_ATTACH_FILTER)

This is needed to be able to run dhclient.

Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: bd00c74c7fdd8a34d5e22e27931b3a3a77e3b0dd
      
https://github.com/qemu/qemu/commit/bd00c74c7fdd8a34d5e22e27931b3a3a77e3b0dd
  Author: Laurent Vivier <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/ioctls.h

  Log Message:
  -----------
  linux-user: allow use of TIOCGSID

Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 0d78b3b5b1b5c391aa96b481be106de023810b66
      
https://github.com/qemu/qemu/commit/0d78b3b5b1b5c391aa96b481be106de023810b66
  Author: Laurent Vivier <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: add some IPV6 commands in setsockop()

Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 03cfd8faa7ffb7201e2949b99c2f35b1fef7078b
      
https://github.com/qemu/qemu/commit/03cfd8faa7ffb7201e2949b99c2f35b1fef7078b
  Author: Laurent Vivier <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/linuxload.c
    M linux-user/main.c
    M linux-user/qemu.h

  Log Message:
  -----------
  linux-user: add support of binfmt_misc 'O' flag

The binfmt_misc module can calculate the credentials and security
token according to the binary instead of to the interpreter if the
'C' flag is enabled.

To be able to execute non-readable binaries, this flag implies 'O'
flag. When 'O' flag is enabled, bintfmt_misc opens the file for
reading and pass the file descriptor to the interpreter.

References:
linux/Documentation/binfmt_misc.txt          ['O' and 'C' description]
linux/fs/binfmt_misc.c linux/fs/binfmt_elf.c [ AT_EXECFD usage ]

Signed-off-by: Laurent Vivier <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: dbf4f7965af974593da596ec12ac877d248efed6
      
https://github.com/qemu/qemu/commit/dbf4f7965af974593da596ec12ac877d248efed6
  Author: Petar Jovanovic <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: correct how SOL_SOCKET is converted from target to host and back

Previous implementation does not take into account that SOL_SOCKET constant
can be arch specific. This change fixes some issues with sendmsg/recvmsg.

Signed-off-by: Petar Jovanovic <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 1308c464a8414ce3c6f79e172255fb90b5aa313d
      
https://github.com/qemu/qemu/commit/1308c464a8414ce3c6f79e172255fb90b5aa313d
  Author: Kwok Cheung Yeung <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/main.c

  Log Message:
  -----------
  linux-user: Check type of microMIPS break instruction

microMIPS instructions that cause breakpoint exceptions come in
16-bit and 32-bit variants.  When handling exceptions caused by
such instructions, the instruction type needs to be taken into
account when extracting the break code.

The code has also been restructured for better clarity.

Signed-off-by: Kwok Cheung Yeung <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 89aaf1a6ad91c4cb3224fcca461d71dac9fa3fa6
      
https://github.com/qemu/qemu/commit/89aaf1a6ad91c4cb3224fcca461d71dac9fa3fa6
  Author: Riku Voipio <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/strace.list
    M linux-user/syscall.c

  Log Message:
  -----------
  [v2] linux-user: implement m68k atomic syscalls

With nptl enabled, atomic_cmpxchg_32 and atomic_barrier
system calls are needed. This patch enabled really dummy
versions of the system calls, modeled after the m68k
kernel code.

With this patch I am able to execute m68k binaries
with qemu linux-user (busybox compiled for coldfire).

[v2] que an segfault instead of returning a EFAULT
to keep in line with kernel code.

Cc: Laurent Vivier <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


  Commit: 53d09b761f032f50c4424e8649396a9041070bae
      
https://github.com/qemu/qemu/commit/53d09b761f032f50c4424e8649396a9041070bae
  Author: Edgar E. Iglesias <address@hidden>
  Date:   2013-09-24 (Tue, 24 Sep 2013)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Handle SOCK_CLOEXEC/NONBLOCK if unavailable on host

If the host lacks SOCK_CLOEXEC, bail out with -EINVAL.
If the host lacks SOCK_ONONBLOCK, try to emulate it with fcntl()
and O_NONBLOCK.

Signed-off-by: Edgar E. Iglesias <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>


Compare: https://github.com/qemu/qemu/compare/f828a4c8faa1...53d09b761f03

reply via email to

[Prev in Thread] Current Thread [Next in Thread]