1. 17 4月, 2012 1 次提交
  2. 29 3月, 2012 4 次提交
  3. 28 3月, 2012 6 次提交
  4. 13 3月, 2012 2 次提交
  5. 24 2月, 2012 2 次提交
  6. 15 2月, 2012 1 次提交
  7. 26 1月, 2012 1 次提交
  8. 18 1月, 2012 1 次提交
    • E
      Audit: push audit success and retcode into arch ptrace.h · d7e7528b
      Eric Paris 提交于
      The audit system previously expected arches calling to audit_syscall_exit to
      supply as arguments if the syscall was a success and what the return code was.
      Audit also provides a helper AUDITSC_RESULT which was supposed to simplify things
      by converting from negative retcodes to an audit internal magic value stating
      success or failure.  This helper was wrong and could indicate that a valid
      pointer returned to userspace was a failed syscall.  The fix is to fix the
      layering foolishness.  We now pass audit_syscall_exit a struct pt_reg and it
      in turns calls back into arch code to collect the return value and to
      determine if the syscall was a success or failure.  We also define a generic
      is_syscall_success() macro which determines success/failure based on if the
      value is < -MAX_ERRNO.  This works for arches like x86 which do not use a
      separate mechanism to indicate syscall failure.
      
      We make both the is_syscall_success() and regs_return_value() static inlines
      instead of macros.  The reason is because the audit function must take a void*
      for the regs.  (uml calls theirs struct uml_pt_regs instead of just struct
      pt_regs so audit_syscall_exit can't take a struct pt_regs).  Since the audit
      function takes a void* we need to use static inlines to cast it back to the
      arch correct structure to dereference it.
      
      The other major change is that on some arches, like ia64, MIPS and ppc, we
      change regs_return_value() to give us the negative value on syscall failure.
      THE only other user of this macro, kretprobe_example.c, won't notice and it
      makes the value signed consistently for the audit functions across all archs.
      
      In arch/sh/kernel/ptrace_64.c I see that we were using regs[9] in the old
      audit code as the return value.  But the ptrace_64.h code defined the macro
      regs_return_value() as regs[3].  I have no idea which one is correct, but this
      patch now uses the regs_return_value() function, so it now uses regs[3].
      
      For powerpc we previously used regs->result but now use the
      regs_return_value() function which uses regs->gprs[3].  regs->gprs[3] is
      always positive so the regs_return_value(), much like ia64 makes it negative
      before calling the audit code when appropriate.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Acked-by: H. Peter Anvin <hpa@zytor.com> [for x86 portion]
      Acked-by: Tony Luck <tony.luck@intel.com> [for ia64]
      Acked-by: Richard Weinberger <richard@nod.at> [for uml]
      Acked-by: David S. Miller <davem@davemloft.net> [for sparc]
      Acked-by: Ralf Baechle <ralf@linux-mips.org> [for mips]
      Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [for ppc]
      d7e7528b
  9. 13 1月, 2012 1 次提交
  10. 22 12月, 2011 1 次提交
  11. 09 12月, 2011 1 次提交
    • T
      memblock: Fix include breakages caused by 24aa0788 · 1c16d242
      Tejun Heo 提交于
      24aa0788 (memblock, x86: Replace memblock_x86_reserve/free_range()
      with generic ones) removed arch/x86/include/asm/memblock.h and dropped
      its inclusion from include/linux/memblock.h which breaks other
      architectures which depended on the generic memblock.h pulling in the
      arch specific one.
      
      However, the proper fix isn't adding back the asm inclusion.  memblock
      doesn't have any arch dependent part and doesn't need arch specific
      header file and asm/memblock.h files are either practically empty or
      contain mostly unrelated arch specific stuff.
      
      * In microblaze, sh, powerpc, sparc and openrisc, asm/memblock.h is
        either empty or just contains unused MEMBLOCK_DBG() macro.  Remove
        them.
      
      * In arm and unicore32, asm/memblock.h contains arch specific stuff.
        Include it directly from its users.  It might be a good idea to
        rename the header file to avoid confusion.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Reported-by: N"H. Peter Anvin" <hpa@zytor.com>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
      1c16d242
  12. 06 12月, 2011 1 次提交
  13. 24 11月, 2011 3 次提交
  14. 22 11月, 2011 1 次提交
  15. 18 11月, 2011 7 次提交
  16. 11 11月, 2011 1 次提交
  17. 04 11月, 2011 1 次提交
  18. 28 10月, 2011 1 次提交
    • S
      sh: kexec: Add PHYSICAL_START · e66ac3f2
      Simon Horman 提交于
      Add PHYSICAL_START kernel configuration parameter to set the address at
      which the kernel should be loaded.
      
      It has been observed on an sh7757lcr that simply modifying MEMORY_START
      does not achieve this goal for 32bit sh. This is due to MEMORY_OFFSET in
      arch/sh/kernel/vmlinux.lds.S bot being based on MEMORY_START on such
      systems.
      Signed-off-by: NSimon Horman <horms@verge.net.au>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      e66ac3f2
  19. 29 9月, 2011 2 次提交
  20. 03 8月, 2011 1 次提交
  21. 27 7月, 2011 1 次提交
    • A
      atomic: cleanup asm-generic atomic*.h inclusion · 7847777a
      Arun Sharma 提交于
      After changing all consumers of atomics to include <linux/atomic.h>, we
      ran into some compile time errors due to this dependency chain:
      
      linux/atomic.h
        -> asm/atomic.h
          -> asm-generic/atomic-long.h
      
      where atomic-long.h could use funcs defined later in linux/atomic.h
      without a prototype.  This patches moves the code that includes
      asm-generic/atomic*.h to linux/atomic.h.
      
      Archs that need <asm-generic/atomic64.h> need to select
      CONFIG_GENERIC_ATOMIC64 from now on (some of them used to include it
      unconditionally).
      
      Compile tested on i386 and x86_64 with allnoconfig.
      Signed-off-by: NArun Sharma <asharma@fb.com>
      Cc: Eric Dumazet <eric.dumazet@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: David Miller <davem@davemloft.net>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7847777a