1. 18 8月, 2017 1 次提交
  2. 30 6月, 2017 1 次提交
  3. 21 6月, 2017 1 次提交
    • T
      posix-cpu-timers: Make timespec to nsec conversion safe · 098b0e01
      Thomas Gleixner 提交于
      The expiry time of a posix cpu timer is supplied through sys_timer_set()
      via a struct timespec. The timespec is validated for correctness.
      
      In the actual set timer implementation the timespec is converted to a
      scalar nanoseconds value. If the tv_sec part of the time spec is large
      enough the conversion to nanoseconds (sec * NSEC_PER_SEC) overflows 64bit.
      
      Mitigate that by using the timespec_to_ktime() conversion function, which
      checks the tv_sec part for a potential mult overflow and clamps the result
      to KTIME_MAX, which is about 292 years. 
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Xishi Qiu <qiuxishi@huawei.com>
      Cc: John Stultz <john.stultz@linaro.org>
      Link: http://lkml.kernel.org/r/20170620154113.588276707@linutronix.de
      098b0e01
  4. 14 6月, 2017 7 次提交
  5. 04 6月, 2017 6 次提交
  6. 27 5月, 2017 1 次提交
  7. 24 5月, 2017 1 次提交
  8. 17 4月, 2017 1 次提交
  9. 15 4月, 2017 5 次提交
  10. 14 3月, 2017 1 次提交
  11. 02 3月, 2017 2 次提交
  12. 01 2月, 2017 4 次提交
  13. 25 12月, 2016 1 次提交
  14. 16 11月, 2016 1 次提交
  15. 15 11月, 2016 1 次提交
  16. 11 7月, 2016 1 次提交
  17. 02 3月, 2016 1 次提交
    • F
      posix-cpu-timers: Migrate to use new tick dependency mask model · b7878300
      Frederic Weisbecker 提交于
      Instead of providing asynchronous checks for the nohz subsystem to verify
      posix cpu timers tick dependency, migrate the latter to the new mask.
      
      In order to keep track of the running timers and expose the tick
      dependency accordingly, we must probe the timers queuing and dequeuing
      on threads and process lists.
      
      Unfortunately it implies both task and signal level dependencies. We
      should be able to further optimize this and merge all that on the task
      level dependency, at the cost of a bit of complexity and may be overhead.
      Reviewed-by: NChris Metcalf <cmetcalf@ezchip.com>
      Cc: Christoph Lameter <cl@linux.com>
      Cc: Chris Metcalf <cmetcalf@ezchip.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Luiz Capitulino <lcapitulino@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rik van Riel <riel@redhat.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      b7878300
  18. 15 10月, 2015 4 次提交