1. 25 7月, 2013 1 次提交
  2. 26 6月, 2013 1 次提交
  3. 29 5月, 2013 2 次提交
  4. 20 4月, 2013 1 次提交
    • D
      net: socket: move ktime2ts to ktime header api · 6e94d1ef
      Daniel Borkmann 提交于
      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: NDaniel Borkmann <dborkman@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6e94d1ef
  5. 04 11月, 2012 1 次提交
  6. 15 8月, 2012 1 次提交
  7. 31 3月, 2011 1 次提交
  8. 15 5月, 2010 1 次提交
  9. 20 4月, 2008 1 次提交
  10. 15 2月, 2008 1 次提交
  11. 08 2月, 2008 1 次提交
  12. 11 10月, 2007 1 次提交
  13. 11 7月, 2007 2 次提交
  14. 16 6月, 2007 1 次提交
  15. 10 5月, 2007 1 次提交
  16. 26 4月, 2007 1 次提交
  17. 17 3月, 2007 1 次提交
  18. 17 2月, 2007 1 次提交
  19. 12 2月, 2007 1 次提交
  20. 08 12月, 2006 1 次提交
  21. 07 9月, 2006 1 次提交
    • T
      [PATCH] prevent timespec/timeval to ktime_t overflow · 96dd7421
      Thomas Gleixner 提交于
      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: NThomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Frank v Waveren <fvw@var.cx>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      96dd7421
  22. 26 6月, 2006 1 次提交
  23. 27 3月, 2006 1 次提交
  24. 16 2月, 2006 1 次提交
  25. 02 2月, 2006 1 次提交
  26. 12 1月, 2006 1 次提交
  27. 11 1月, 2006 2 次提交