1. 09 Aug, 2007 3 commits
    • Rusty Russell's avatar
      lguest: Fix Malicious Guest GDT Host Crash · 0d027c01
      Rusty Russell authored
      If a Guest makes hypercall which sets a GDT entry to not present, we
      currently set any segment registers using that GDT entry to 0.
      Unfortunately, this is not sufficient: there are other ways of
      altering GDT entries which will cause a fault.
      
      The correct solution to do what Linux does: let them set any GDT value
      they want and handle the #GP when popping causes a fault.  This has
      the added benefit of making our Switcher slightly more robust in the
      case of any other bugs which cause it to fault.
      
      We kill the Guest if it causes a fault in the Switcher: it's the
      Guest's responsibility to make sure it's not using segments when it
      changes them.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0d027c01
    • Rusty Russell's avatar
      Fix non-TSC guest clocksource lockup · 37250097
      Rusty Russell authored
      lguest uses a host-supplied wallclock-based clocksource when the TSC
      is not reliable.  As this is already in nanoseconds, I naively used a
      multiplier of 1 and a shift of 0.
      
      But update_wall_time() in its infinite wisdom decides to adjust the
      clock a little (where does it think it's getting a more accurate time
      from?)
      
      It will happily tweak the multiplier... to 0, then -1.
      
      So the "fix" is to use a shift of 22 like everyone else, and a
      multiplier of 1 << 22.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      37250097
    • Linus Torvalds's avatar
      Revert "genirq: temporary fix for level-triggered IRQ resend" · 88ffc350
      Linus Torvalds authored
      This reverts commit 0fc4969b.  It was
      always meant to be temporary, but it's generating more useless noise
      than anything else, and we probably should never have done it in the
      generic kernel (only had the people involved test it on their own).
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      88ffc350
  2. 08 Aug, 2007 1 commit
  3. 07 Aug, 2007 21 commits
  4. 06 Aug, 2007 10 commits
  5. 05 Aug, 2007 2 commits
  6. 04 Aug, 2007 3 commits