This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/2] posix-timers: Prevents overrun counter overflow, adds DELAYTIMER_MAX
- From: Daniel Church <dchurch at andplus dot com>
- To: Thomas Gleixner <tglx at linutronix dot de>
- Cc: linux-kernel at vger dot kernel dot org, libc-alpha at sourceware dot org
- Date: Fri, 23 Jan 2015 13:03:29 -0500
- Subject: [PATCH 0/2] posix-timers: Prevents overrun counter overflow, adds DELAYTIMER_MAX
- Authentication-results: sourceware.org; auth=none
If a timer overruns too many times before a call to timer_getoverrun the
overrun count can overflow and go negative. POSIX.1-2001 specification
of timer_getoverrun() supports constant DELAYTIMER_MAX which prevents
overflow and caps overrun count. Adds delaytimer_max value, caps
overrun count, and exposes value to userland via
/proc/sys/kernel/delaytimer_max.
Resolves https://bugzilla.kernel.org/show_bug.cgi?id=12665 - POSIX timers API does not support DELAYTIMER_MAX