1. 26 10月, 2012 2 次提交
    • C
      xtensa: reset windowbase/windowstart when cloning the VM · 6ebe7da2
      Chris Zankel 提交于
      When we copy a user thread with CLONE_VM, we also have to reset
      windowbase and windowstart to start a pristine stack frame. Otherwise,
      overflows can happen using the address 0 as the stack pointer.
      Also add a special case for vfork, which continues on the
      parent stack until it calls execve. Because this could be a call8, we
      need to spill the stack pointer of the previus frame (if still 'live' in
      the register file).
      Signed-off-by: NChris Zankel <chris@zankel.net>
      6ebe7da2
    • C
      xtensa: allow multi-inclusion for uapi/unistd.h · 2f72d4f6
      Chris Zankel 提交于
      Xtensa implements a method that allows to generate a arbitrary output
      for each system call by defining the __SYSCALL(number, function, num_args).
      This usually requires to include uapi/unistd.h twice. Instead of removing
      the guard agains multiple inclusion entirely, allow to include unistd.h again
      only if __SYSCALL is defined. Note that __SYSCALL gets always undefined at
      the end of the file.
      Signed-off-by: NChris Zankel <chris@zankel.net>
      2f72d4f6
  2. 20 10月, 2012 1 次提交
  3. 16 10月, 2012 5 次提交
  4. 13 10月, 2012 1 次提交
    • J
      vfs: define struct filename and have getname() return it · 91a27b2a
      Jeff Layton 提交于
      getname() is intended to copy pathname strings from userspace into a
      kernel buffer. The result is just a string in kernel space. It would
      however be quite helpful to be able to attach some ancillary info to
      the string.
      
      For instance, we could attach some audit-related info to reduce the
      amount of audit-related processing needed. When auditing is enabled,
      we could also call getname() on the string more than once and not
      need to recopy it from userspace.
      
      This patchset converts the getname()/putname() interfaces to return
      a struct instead of a string. For now, the struct just tracks the
      string in kernel space and the original userland pointer for it.
      
      Later, we'll add other information to the struct as it becomes
      convenient.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      91a27b2a
  5. 04 10月, 2012 8 次提交
  6. 01 10月, 2012 2 次提交
  7. 23 9月, 2012 1 次提交
  8. 19 9月, 2012 2 次提交
  9. 31 7月, 2012 1 次提交
  10. 12 7月, 2012 1 次提交
  11. 06 7月, 2012 1 次提交
  12. 21 6月, 2012 1 次提交
  13. 14 6月, 2012 1 次提交
  14. 05 6月, 2012 1 次提交
  15. 02 6月, 2012 6 次提交
  16. 24 5月, 2012 1 次提交
  17. 22 5月, 2012 3 次提交
  18. 17 5月, 2012 1 次提交
    • S
      fork: move the real prepare_to_copy() users to arch_dup_task_struct() · 55ccf3fe
      Suresh Siddha 提交于
      Historical prepare_to_copy() is mostly a no-op, duplicated for majority of
      the architectures and the rest following the x86 model of flushing the extended
      register state like fpu there.
      
      Remove it and use the arch_dup_task_struct() instead.
      Suggested-by: NOleg Nesterov <oleg@redhat.com>
      Suggested-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      Link: http://lkml.kernel.org/r/1336692811-30576-1-git-send-email-suresh.b.siddha@intel.comAcked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Chris Zankel <chris@zankel.net>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Richard Kuo <rkuo@codeaurora.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: James E.J. Bottomley <jejb@parisc-linux.org>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Chen Liqin <liqin.chen@sunplusct.com>
      Cc: Lennox Wu <lennox.wu@gmail.com>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      55ccf3fe
  19. 05 5月, 2012 1 次提交