[PATCH v2 1/2] posix-timers: Prevents overrun counter overflow

2015-01-24 Thread Daniel Church
If a timer overruns too many times before a call to timer_getoverrun the overrun count can overflow and go negative. Adds delaytimer_max value to cap overrun count and prevent overflow. Signed-off-by: Daniel Church --- include/linux/posix-timers.h | 3 +++ kernel/time/posix-timers.c | 45

[PATCH v2 0/2] posix-timers: Prevents overrun counter overflow, adds DELAYTIMER_MAX

2015-01-24 Thread Daniel Church
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

[PATCH v2 2/2] posix-timers: Exposes DELAYTIMER_MAX constant used to govern overruns

2015-01-24 Thread Daniel Church
POSIX.1-2001 specification of timer_getoverrun() supports constant DELAYTIMER_MAX which prevents overflow and caps overrun count. Exposes delaytimer_max value to userland via /proc/sys/kernel/delaytimer_max such that GLIBC can support DELAYTIMER_MAX constant. Signed-off-by: Daniel Church

[PATCH 2/2] posix-timers: Exposes DELAYTIMER_MAX constant used to govern overruns

2015-01-23 Thread Daniel Church
POSIX.1-2001 specification of timer_getoverrun() supports constant DELAYTIMER_MAX which prevents overflow and caps overrun count. Exposes delaytimer_max value to userland via /proc/sys/kernel/delaytimer_max such that GLIBC can support DELAYTIMER_MAX constant. Signed-off-by: Daniel Church

[PATCH 1/2] posix-timers: Prevents overrun counter overflow

2015-01-23 Thread Daniel Church
If a timer overruns too many times before a call to timer_getoverrun the overrun count can overflow and go negative. Adds delaytimer_max value to cap overrun count and prevent overflow. Signed-off-by: Daniel Church --- include/linux/posix-timers.h | 3 +++ kernel/time/posix-timers.c | 42

[PATCH 0/2] posix-timers: Prevents overrun counter overflow, adds DELAYTIMER_MAX

2015-01-23 Thread Daniel Church
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