1. 20 12月, 2012 1 次提交
  2. 29 11月, 2012 5 次提交
  3. 18 11月, 2012 1 次提交
  4. 19 10月, 2012 1 次提交
  5. 17 10月, 2012 1 次提交
  6. 16 10月, 2012 1 次提交
  7. 09 10月, 2012 4 次提交
  8. 06 10月, 2012 1 次提交
    • J
      cross-arch: don't corrupt personality flags upon exec() · 16f3e95b
      Jiri Kosina 提交于
      Historically, the top three bytes of personality have been used for
      things such as ADDR_NO_RANDOMIZE, which made sense only for specific
      architectures.
      
      We now however have a flag there that is general no matter the
      architecture (UNAME26); generally we have to be careful to preserve the
      personality flags across exec().
      
      This patch tries to fix all architectures that forcefully overwrite
      personality flags during exec() (ppc32 and s390 have been fixed recently
      by commits f9783ec8 ("[S390] Do not clobber personality flags on
      exec") and 59e4c3a2 ("powerpc/32: Don't clobber personality flags on
      exec") in a similar way already).
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
      Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Jesper Nilsson <jesper.nilsson@axis.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Richard Kuo <rkuo@codeaurora.org>
      Cc: Hirokazu Takata <takata@linux-m32r.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
      Cc: Jonas Bonn <jonas@southpole.se>
      Cc: Chen Liqin <liqin.chen@sunplusct.com>
      Cc: Lennox Wu <lennox.wu@gmail.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Chris Zankel <chris@zankel.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      16f3e95b
  9. 04 10月, 2012 1 次提交
  10. 03 10月, 2012 2 次提交
  11. 01 10月, 2012 3 次提交
    • A
      m68k: switch to generic sys_execve()/kernel_execve() · d878d6da
      Al Viro 提交于
      The tricky part here is that task_pt_regs() on m68k works *only* for
      process inside do_signal().  However, we need something much simpler -
      pt_regs of a process inside do_signal() may be at different offsets
      from the stack bottom, depending on the way we'd entered the kernel,
      but for a task inside sys_execve() it *is* at constant offset.
      Moreover, for a kernel thread about to become a userland process the
      same location is also fine - setting sp to that will leave the kernel
      stack pointer at the very bottom of the kernel stack when we finally
      switch to userland.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d878d6da
    • A
      m68k: split ret_from_fork(), simplify kernel_thread() · 533e6903
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      533e6903
    • G
      m68k: always set stack frame format for ColdFire on thread start · 0973c687
      Greg Ungerer 提交于
      The stack frame "format" field needs to be explicitly set on thread creation
      on ColdFire. For a normal long word aligned user stack pointer the frame
      format is 0x4.
      
      We were doing this for non-MMU ColdFire, but not for the case with MMU enabled.
      So fix it so we always do it if targeting ColdFire.
      
      The old code happend to rely on the stack frame format being inhereted from
      the process calling exec. Furture changes means that may not always work,
      so we really do want to set it explicitly.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      0973c687
  12. 28 9月, 2012 1 次提交
    • D
      Make most arch asm/module.h files use asm-generic/module.h · 786d35d4
      David Howells 提交于
      Use the mapping of Elf_[SPE]hdr, Elf_Addr, Elf_Sym, Elf_Dyn, Elf_Rel/Rela,
      ELF_R_TYPE() and ELF_R_SYM() to either the 32-bit version or the 64-bit version
      into asm-generic/module.h for all arches bar MIPS.
      
      Also, use the generic definition mod_arch_specific where possible.
      
      To this end, I've defined three new config bools:
      
       (*) HAVE_MOD_ARCH_SPECIFIC
      
           Arches define this if they don't want to use the empty generic
           mod_arch_specific struct.
      
       (*) MODULES_USE_ELF_RELA
      
           Arches define this if their modules can contain RELA records.  This causes
           the Elf_Rela mapping to be emitted and allows apply_relocate_add() to be
           defined by the arch rather than have the core emit an error message.
      
       (*) MODULES_USE_ELF_REL
      
           Arches define this if their modules can contain REL records.  This causes
           the Elf_Rel mapping to be emitted and allows apply_relocate() to be
           defined by the arch rather than have the core emit an error message.
      
      Note that it is possible to allow both REL and RELA records: m68k and mips are
      two arches that do this.
      
      With this, some arch asm/module.h files can be deleted entirely and replaced
      with a generic-y marker in the arch Kbuild file.
      
      Additionally, I have removed the bits from m32r and score that handle the
      unsupported type of relocation record as that's now handled centrally.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      786d35d4
  13. 27 9月, 2012 18 次提交