1. 23 Jul, 2014 4 commits
  2. 11 Jun, 2014 1 commit
  3. 25 Jul, 2013 1 commit
  4. 25 Jun, 2013 1 commit
  5. 28 May, 2013 2 commits
  6. 19 Apr, 2013 1 commit
    • Daniel Borkmann's avatar
      net: socket: move ktime2ts to ktime header api · 6e94d1ef
      Daniel Borkmann authored
      Currently, ktime2ts is a small helper function that is only used in
      net/socket.c. Move this helper into the ktime API as a small inline
      function, so that i) it's maintained together with ktime routines,
      and ii) also other files can make use of it. The function is named
      ktime_to_timespec_cond() and placed into the generic part of ktime,
      since we internally make use of ktime_to_timespec(). ktime_to_timespec()
      itself does not check the ktime variable for zero, hence, we name
      this function ktime_to_timespec_cond() for only a conditional
      conversion, and adapt its users to it.
      Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6e94d1ef
  7. 03 Nov, 2012 1 commit
  8. 15 Aug, 2012 1 commit
  9. 31 Mar, 2011 1 commit
  10. 14 May, 2010 1 commit
  11. 19 Apr, 2008 1 commit
  12. 14 Feb, 2008 1 commit
  13. 07 Feb, 2008 1 commit
  14. 10 Oct, 2007 1 commit
  15. 11 Jul, 2007 2 commits
  16. 15 Jun, 2007 1 commit
  17. 09 May, 2007 1 commit
  18. 26 Apr, 2007 1 commit
  19. 17 Mar, 2007 1 commit
  20. 16 Feb, 2007 1 commit
  21. 11 Feb, 2007 1 commit
  22. 07 Dec, 2006 1 commit
  23. 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
  24. 25 Jun, 2006 1 commit
  25. 26 Mar, 2006 1 commit
  26. 15 Feb, 2006 1 commit
  27. 01 Feb, 2006 1 commit
  28. 12 Jan, 2006 1 commit
  29. 10 Jan, 2006 2 commits