1. 21 10月, 2010 26 次提交
  2. 18 8月, 2010 1 次提交
    • D
      Make do_execve() take a const filename pointer · d7627467
      David Howells 提交于
      Make do_execve() take a const filename pointer so that kernel_execve() compiles
      correctly on ARM:
      
      arch/arm/kernel/sys_arm.c:88: warning: passing argument 1 of 'do_execve' discards qualifiers from pointer target type
      
      This also requires the argv and envp arguments to be consted twice, once for
      the pointer array and once for the strings the array points to.  This is
      because do_execve() passes a pointer to the filename (now const) to
      copy_strings_kernel().  A simpler alternative would be to cast the filename
      pointer in do_execve() when it's passed to copy_strings_kernel().
      
      do_execve() may not change any of the strings it is passed as part of the argv
      or envp lists as they are some of them in .rodata, so marking these strings as
      const should be fine.
      
      Further kernel_execve() and sys_execve() need to be changed to match.
      
      This has been test built on x86_64, frv, arm and mips.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Tested-by: NRalf Baechle <ralf@linux-mips.org>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d7627467
  3. 17 8月, 2010 3 次提交
  4. 15 8月, 2010 1 次提交
  5. 14 8月, 2010 1 次提交
  6. 11 8月, 2010 3 次提交
  7. 08 8月, 2010 1 次提交
  8. 04 8月, 2010 4 次提交
    • M
      microblaze: Add KGDB support · 2d5973cb
      Michal Simek 提交于
      Kgdb uses brki r16, 0x18 instruction to call
      low level _debug_exception function which save
      current state to pt_regs and call microblaze_kgdb_break
      function. _debug_exception should be called only from
      the kernel space. User space calling is not supported
      because user application debugging uses different handling.
      
      pt_regs_to_gdb_regs loads additional special registers
      which can't be changed
      
       * Enable KGDB in Kconfig
       * Remove ancient not-tested KGDB support
       * Remove ancient _debug_exception code from entry.S
      
      Only MMU KGDB support is supported.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      CC: Jason Wessel <jason.wessel@windriver.com>
      CC: John Williams <john.williams@petalogix.com>
      CC: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
      CC: linux-kernel@vger.kernel.org
      Acked-by: NJason Wessel <jason.wessel@windriver.com>
      2d5973cb
    • M
      microblaze: Support brki rX, 0x18 for user application debugging · 751f1605
      Michal Simek 提交于
      This is the first patch which add support for
      user application debugging through brki rX, 0x18 vector.
      
      This patch has side effect which also remove security issue
      to use brki rX, 0x18 to freeze kernel.
      
      Support for old gdb support via priviledged exception
      (brk r0, r0) is still there. It will be remove in future.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      751f1605
    • M
      microblaze: Remove nop after MSRCLR/SET, MTS, MFS instructions · 958063e6
      Michal Simek 提交于
      We need to save instruction and the latest Microblaze shouldn't
      have any problem with it.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      958063e6
    • M
      microblaze: Simplify syscall rutine · 0e41c909
      Michal Simek 提交于
      Syscall can be called only from userspace that's why
      we don't need to check which space kernel come from.
      
      Kernel syscall calling is not check and shouldn't come
      throught this part of code.
      Signed-off-by: NMichal Simek <monstr@monstr.eu>
      0e41c909