1. 07 Dec, 2006 1 commit
  2. 06 Sep, 2006 1 commit
    • Thomas Gleixner's avatar
      [PATCH] prevent timespec/timeval to ktime_t overflow · 96dd7421
      Thomas Gleixner authored
      
      
      Frank v.  Waveren pointed out that on 64bit machines the timespec to
      ktime_t conversion might overflow.  This is also true for timeval to
      ktime_t conversions.  This breaks a "sleep inf" on 64bit machines.
      
      While a timespec/timeval with tx.sec = MAX_LONG is valid by specification
      the internal representation of ktime_t is based on nanoseconds.  The
      conversion of seconds to nanoseconds overflows for seconds values >=
      (MAX_LONG / NSEC_PER_SEC).
      
      Check the seconds argument to the conversion and limit it to the maximum
      time which can be represented by ktime_t.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Frank v Waveren <fvw@var.cx>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      96dd7421
  3. 25 Jun, 2006 1 commit
  4. 26 Mar, 2006 1 commit
  5. 15 Feb, 2006 1 commit
  6. 01 Feb, 2006 1 commit
  7. 12 Jan, 2006 1 commit
  8. 10 Jan, 2006 2 commits