1. 28 3月, 2012 1 次提交
    • C
      compat: use sys_sendfile64() implementation for sendfile syscall · 1631fcea
      Chris Metcalf 提交于
      <asm-generic/unistd.h> was set up to use sys_sendfile() for the 32-bit
      compat API instead of sys_sendfile64(), but in fact the right thing to
      do is to use sys_sendfile64() in all cases.  The 32-bit sendfile64() API
      in glibc uses the sendfile64 syscall, so it has to be capable of doing
      full 64-bit operations.  But the sys_sendfile() kernel implementation
      has a MAX_NON_LFS test in it which explicitly limits the offset to 2^32.
      So, we need to use the sys_sendfile64() implementation in the kernel
      for this case.
      
      Cc: <stable@kernel.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
      1631fcea
  2. 16 3月, 2012 1 次提交
    • C
      [PATCH v3] ipc: provide generic compat versions of IPC syscalls · 48b25c43
      Chris Metcalf 提交于
      When using the "compat" APIs, architectures will generally want to
      be able to make direct syscalls to msgsnd(), shmctl(), etc., and
      in the kernel we would want them to be handled directly by
      compat_sys_xxx() functions, as is true for other compat syscalls.
      
      However, for historical reasons, several of the existing compat IPC
      syscalls do not do this.  semctl() expects a pointer to the fourth
      argument, instead of the fourth argument itself.  msgsnd(), msgrcv()
      and shmat() expect arguments in different order.
      
      This change adds an ARCH_WANT_OLD_COMPAT_IPC config option that can be
      set to preserve this behavior for ports that use it (x86, sparc, powerpc,
      s390, and mips).  No actual semantics are changed for those architectures,
      and there is only a minimal amount of code refactoring in ipc/compat.c.
      
      Newer architectures like tile (and perhaps future architectures such
      as arm64 and unicore64) should not select this option, and thus can
      avoid having any IPC-specific code at all in their architecture-specific
      compat layer.  In the same vein, if this option is not selected, IPC_64
      mode is assumed, since that's what the <asm-generic> headers expect.
      
      The workaround code in "tile" for msgsnd() and msgrcv() is removed
      with this change; it also fixes the bug that shmat() and semctl() were
      not being properly handled.
      Reviewed-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
      48b25c43
  3. 11 3月, 2012 1 次提交
  4. 10 3月, 2012 7 次提交
  5. 09 3月, 2012 13 次提交
  6. 08 3月, 2012 17 次提交