1. 29 7月, 2006 4 次提交
    • A
      [PATCH] x86_64: Dump leftover backtrace entries when dwarf2 unwinder got stuck · b13761ec
      Andi Kleen 提交于
      The dwarf2 unwinder currently often gets stuck because a lot
      of assembly code doesn't have proper dwarf2 annotiation yet.
      
      This currently often happens with __down. Should fix this by
      adding proper dwarf2 annotation to all inline assembly. However
      until that's done we need a quick fix for 2.6.18 to avoid
      incomplete backtraces.
      
      So when this happens dump the rest of the stack with the old unwinder
      instead of silently not dumping it. There was already a optional
      "both" mode that dumped both, but that was too ugly.
      
      I also clarified the headers for the different backtraces a bit.
      
      Also add a clear error message for missing dwarf2
      annotation that people can work on.
      
      And I removed a dead variable left over from Ingo's changes.
      
      Cc: mingo@elte.hu
      Cc: jbeulich@novell.com
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b13761ec
    • A
      [PATCH] x86_64: Don't clobber r8-r11 in int 0x80 handler · 0e92da4a
      Andi Kleen 提交于
      When int 0x80 is called from long mode r8-r11 would leak out of the
      kernel (or rather they would be filled with some values from
      the kernel stack). I don't think it's a security issue because
      the values come from the fixed stack frame which should be near
      always user registers from a previous interrupt.
      
      Still better fix it.
      
      Longer term the register save macros need to be cleaned up
      to avoid such mistakes in the future.
      
      Original analysis from Richard Brunner, fix by me.
      
      Cc: Richard.Brunner@amd.com
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0e92da4a
    • A
      [PATCH] i386/x86-64: Add user_mode checks to profile_pc for oprofile · d5a26017
      Andi Kleen 提交于
      Fixes a obscure user space triggerable crash during oprofiling.
      
      Oprofile calls profile_pc from NMIs even when user_mode(regs) is not true and
      the program counter is inside the kernel lock section. This opens
      a race - when a user program jumps to a kernel lock address and
      a NMI happens before the illegal page fault exception is raised
      and the program has a unmapped esp or ebp then the kernel could
      oops. NMIs have a higher priority than exceptions so that could
      happen.
      
      Add user_mode checks to i386/x86-64 profile_pc to prevent that.
      
      Cc: John Levon <levon@movementarian.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d5a26017
    • C
      [PATCH] i386: switch_to(): misplaced parentheses · facf0147
      Chuck Ebbert 提交于
      Recent changes in i386 __switch_to() have a misplaced closing
      parenthesis causing an unlikely() to terminate early.
      Signed-off-by: NChuck Ebbert <76306.1226@compuserve.com>
      Acked-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      facf0147
  2. 28 7月, 2006 1 次提交
  3. 27 7月, 2006 1 次提交
  4. 25 7月, 2006 1 次提交
  5. 22 7月, 2006 10 次提交
  6. 18 7月, 2006 2 次提交
  7. 16 7月, 2006 1 次提交
  8. 15 7月, 2006 10 次提交
  9. 14 7月, 2006 10 次提交