1. 22 4月, 2007 7 次提交
  2. 31 3月, 2007 5 次提交
  3. 26 3月, 2007 10 次提交
  4. 25 3月, 2007 15 次提交
  5. 24 3月, 2007 3 次提交
    • T
      [PATCH] x86_64: avoid sending LOCAL_TIMER_VECTOR IPI to itself · f33bc55c
      Thomas Gleixner 提交于
      Ray Lee reported, that on an UP kernel with "noapic" command line option
      set, the box locks hard during boot.
      
      Adding some debug printks revealed, that the last action on the box
      before stalling was "Send IPI" - a debug printk which was put into
      smp_send_timer_broadcast_ipi().
      
      It seems that send_IPI_mask(mask, LOCAL_TIMER_VECTOR) fails when
      "noapic" is set on the command line on an UP kernel.
      
      Aside of that it does not make much sense to trigger an interrupt
      instead of calling the function directly on the CPU which gets the
      PIT/HPET interrupt in case of broadcasting.
      Reported-by: NRay Lee <ray-lk@madrabbit.org>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NRay Lee <ray-lk@madrabbit.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f33bc55c
    • R
      [PATCH] i386: clear segment register padding in core dumps · 6ea65ff7
      Roland McGrath 提交于
      The segment register slots in struct pt_regs are padded to 32 bits.
      Some of these are stored with instructions like "pushl %es", which
      leaves the high 16 bits as they were.  So the high bits of these
      fields in struct pt_regs contain kernel stack garbage.  These bits are
      ignored by everything and never leak to user space, except in core
      dumps.  The user struct pt_regs is always at the base of the thread's
      kernel stack and so it seems unlikely the information that leaks from
      here is ever worthwhile so as to be a security concern, but I'm not
      sure about that.  It has been this way for ages; userland consumers of
      core dumps all mask off these high bits themselves.  So it is not urgent.
      
      This change masks off the padding bits of the segment register slots
      in core dumps.  ptrace already masks off these high bits, so this
      makes the values in core dumps consistent with what ptrace would
      report just before the process died.
      
      As I read the processor manuals, the cs and ss values will always be
      padded with zero bits rather than stack garbage.  But unlike "pushl %es",
      this is not simple to test with a userland program.  So I added the two
      instructions rather than wonder if they are really never necessary.
      
      I think that x86_64 does not have this problem (for either 32-bit or
      64-bit processes).  It only uses "mov" instructions from segment
      registers, which zero-extend.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6ea65ff7
    • L
      x86-64: add "local_apic_timer_c2_ok" here too · 2e7c2838
      Linus Torvalds 提交于
      Needed for any architecture that claims ARCH_APICTIMER_STOPS_ON_C3,
      not just i386.
      
      I'm hoping Thomas will clean this up a bit later..
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2e7c2838