1. 23 9月, 2016 32 次提交
  2. 22 9月, 2016 8 次提交
    • P
      Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20160915' into staging · 430da7a8
      Peter Maydell 提交于
      linux-user changes since 2.7 release
      
      # gpg: Signature made Thu 22 Sep 2016 13:09:17 BST
      # gpg:                using RSA key 0xB44890DEDE3C9BC0
      # gpg: Good signature from "Riku Voipio <riku.voipio@iki.fi>"
      # gpg:                 aka "Riku Voipio <riku.voipio@linaro.org>"
      # Primary key fingerprint: FF82 03C8 C391 98AE 0581  41EF B448 90DE DE3C 9BC0
      
      * remotes/riku/tags/pull-linux-user-20160915: (26 commits)
        linux-user: fix TARGET_NR_select
        linux-user: Fix incorrect offset of tuc_stack in ARM do_sigframe_return_v2
        linux-user: Sanity check clone flags
        linux-user: Remove unnecessary nptl_flags variable from do_fork()
        linux-user: Implement force_sigsegv() via force_sig()
        linux-user: SIGSEGV from sigreturn need not be fatal
        linux-user: ARM: Give SIGSEGV if signal frame setup fails
        linux-user: SIGSEGV on signal entry need not be fatal
        linux-user: Pass si_type information to queue_signal() explicitly
        linux-user: Recheck for pending synchronous signals too
        linux-user: ppc64: set MSR_CM bit for BookE 2.06 MMU
        linux-user: Use correct target SHMLBA in shmat()
        linux-user: Use glib malloc functions in load_symbols()
        linux-user: Check dump_write() return in elf_core_dump()
        linux-user: Fix error handling in flatload.c target_pread()
        linux-user: Fix incorrect use of host errno in do_ioctl_dm()
        linux-user: Check lock_user() return value for NULL
        linux-user: Pass missing MAP_ANONYMOUS to target_mmap() call
        linux-user: report signals being taken in strace output
        linux-user: Range check the nfds argument to ppoll syscall
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      430da7a8
    • P
      Merge remote-tracking branch 'remotes/otubo/tags/pull-seccomp-20160921' into staging · 3648100e
      Peter Maydell 提交于
      seccomp branch queue
      
      # gpg: Signature made Wed 21 Sep 2016 10:30:09 BST
      # gpg:                using RSA key 0xFD0CFF5B12F8BD2F
      # gpg: Good signature from "Eduardo Otubo (Software Engineer @ ProfitBricks) <eduardo.otubo@profitbricks.com>"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 1C96 46B6 E1D1 C38A F2EC  3FDE FD0C FF5B 12F8 BD2F
      
      * remotes/otubo/tags/pull-seccomp-20160921:
        seccomp: adding getrusage to the whitelist
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3648100e
    • P
      Merge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2016-09-20' into staging · ffd455ae
      Peter Maydell 提交于
      Block patches for 2.8
      
      # gpg: Signature made Tue 20 Sep 2016 21:29:53 BST
      # gpg:                using RSA key 0xF407DB0061D5CF40
      # gpg: Good signature from "Max Reitz <mreitz@redhat.com>"
      # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1  1829 F407 DB00 61D5 CF40
      
      * remotes/maxreitz/tags/pull-block-2016-09-20:
        iotest 055: refactor and speed up
        commit: get the overlay node before manipulating the backing chain
        blockdev: Modularize nfs block driver
        blockdev: Add dynamic module loading for block drivers
        blockdev: Add dynamic generation of module_block.h
        blockdev: prepare iSCSI block driver for dynamic loading
        qemu-img: add skip option to dd
        qemu-img: add the 'dd' subcommand
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      ffd455ae
    • P
      Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20160920' into staging · b98bbea2
      Peter Maydell 提交于
      tcg updates for 20 Sep
      
      # gpg: Signature made Tue 20 Sep 2016 19:48:04 BST
      # gpg:                using RSA key 0xAD1270CC4DD0279B
      # gpg: Good signature from "Richard Henderson <rth7680@gmail.com>"
      # gpg:                 aka "Richard Henderson <rth@redhat.com>"
      # gpg:                 aka "Richard Henderson <rth@twiddle.net>"
      # Primary key fingerprint: 9CB1 8DDA F8E8 49AD 2AFC  16A4 AD12 70CC 4DD0 279B
      
      * remotes/rth/tags/pull-tcg-20160920:
        tcg/i386: Extend TARGET_PAGE_MASK to the proper type
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      b98bbea2
    • L
      linux-user: fix TARGET_NR_select · 5457dc9e
      Laurent Vivier 提交于
      TARGET_NR_select can have three different implementations:
      
        1- to always return -ENOSYS
      
           microblaze, ppc, ppc64
      
           -> TARGET_WANT_NI_OLD_SELECT
      
        2- to take parameters from a structure pointed by arg1
          (kernel sys_old_select)
      
           i386, arm, m68k
      
           -> TARGET_WANT_OLD_SYS_SELECT
      
        3- to take parameters from arg[1-5]
           (kernel sys_select)
      
           x86_64, alpha, s390x,
           cris, sparc, sparc64
      
      Some (new) architectures don't define NR_select,
      
        4- but only NR__newselect with sys_select:
      
            mips, mips64, sh
      
        5- don't define NR__newselect, and use pselect6 syscall:
      
            aarch64, openrisc, tilegx, unicore32
      Reported-by: NTimothy Pearson <tpearson@raptorengineering.com>
      Reported-by: NAllan Wirth <awirth@akamai.com>
      Suggested-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      5457dc9e
    • T
      linux-user: Fix incorrect offset of tuc_stack in ARM do_sigframe_return_v2 · 45eafb4d
      Timothy E Baldwin 提交于
      struct target_ucontext_v2 is not at the begining of the signal frame,
      therefore do_sigaltstack was being passed bogus arguments.
      
      As the offset depends on the type of signal frame fixed by passing in the
      beginning of the context from do_sigreturn_v2 and do_rt_sigreturn_v2.
      Suggested-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NTimothy Edward Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      45eafb4d
    • P
      linux-user: Sanity check clone flags · 5ea2fc84
      Peter Maydell 提交于
      We currently make no checks on the flags passed to the clone syscall,
      which means we will not fail clone attempts which ask for features
      that we can't implement. Add sanity checking of the flags to clone
      (which we were already doing in the "this is a fork" path, but not
      for the "this is a new thread" path), tidy up the checking in
      the fork path to match it, and check that the fork case isn't trying
      to specify a custom termination signal.
      
      This is helpful in causing some LTP test cases to fail cleanly
      rather than behaving bizarrely when we let the clone succeed
      but didn't provide the semantics requested by the flags.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      5ea2fc84
    • P
      linux-user: Remove unnecessary nptl_flags variable from do_fork() · 7cfbd386
      Peter Maydell 提交于
      The 'nptl_flags' variable in do_fork() is set to a copy of
      'flags', and then the CLONE_NPTL_FLAGS are cleared out of 'flags'.
      However the only effect of this is that the later check on
      "if (flags & CLONE_PARENT_SETTID)" is never true. Since we
      will already have done the setting of parent_tidptr in clone_func()
      in the child thread, we don't need to do it again.
      
      Delete the dead if() and the clearing of CLONE_NPTL_FLAGS from
      'flags', and then use 'flags' where we were previously using
      'nptl_flags', so we can delete the unnecessary variable.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NRiku Voipio <riku.voipio@linaro.org>
      7cfbd386