lkml.org 
[lkml]   [2013]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] posix-timers: Correctly get dying task time sample in posix_cpu_timer_schedule()
On 2013年03月30日 21:15, Frederic Weisbecker wrote:
> In order to arm the next timer to schedule, we take a sample of the
> current process or thread cputime.
>
> If the task is dying though, we don't arm anything but we
> cache the remaining timer expiration delta for further reads.
>
> Something similar is performed in posix_cpu_timer_get() but
> here we forget to take the process wide cputime sample
> before caching it.
>
> As a result we are storing random stack content, leading
> every further reads of that timer to return junk values.
>
> Fix this by taking the appropriate sample in the case of
> process wide timers.
>
> Reported-by: Andrew Morton <akpm@linux-foundation.org>
> Reported-by: Chen Gang <gang.chen@asianux.com>
> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Stanislaw Gruszka <sgruszka@redhat.com>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Oleg Nesterov <oleg@redhat.com>
> Cc: Chen Gang <gang.chen@asianux.com>
> ---

thank you for mark me as reported by, although I reported too late
(Andrew Morton is the first reporter).

next, I should continue to try to find another issues about kernel.

:-)

--
Chen Gang

Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-04-01 02:41    [W:0.118 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site