Re: [PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
Hi Stanislaw, Thansk for your info. On Thu, Aug 01, 2013 at 01:30:50PM +0200, Stanislaw Gruszka wrote: > Hi Dong Zhu > > On Thu, Aug 01, 2013 at 06:10:19PM +0800, Dong Zhu wrote: > > diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c > > index c7f31aa..cc03290 100644 > > ---

Re: [PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Stanislaw Gruszka
Hi Dong Zhu On Thu, Aug 01, 2013 at 06:10:19PM +0800, Dong Zhu wrote: > diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c > index c7f31aa..cc03290 100644 > --- a/kernel/posix-cpu-timers.c > +++ b/kernel/posix-cpu-timers.c > @@ -1413,9 +1413,9 @@ static int posix_cpu_nsleep(const

[PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
>From c7439b90b0794c016b29356f0e232f7413ef7b60 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Thu, 1 Aug 2013 11:39:04 +0800 When use the current process pid as the clockid, then executes clock_nanosleep syscall the timer will never expire. Kernel should prevent user doing like this and this

[PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
From c7439b90b0794c016b29356f0e232f7413ef7b60 Mon Sep 17 00:00:00 2001 From: Dong Zhu bluezhud...@gmail.com Date: Thu, 1 Aug 2013 11:39:04 +0800 When use the current process pid as the clockid, then executes clock_nanosleep syscall the timer will never expire. Kernel should prevent user doing

Re: [PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Stanislaw Gruszka
Hi Dong Zhu On Thu, Aug 01, 2013 at 06:10:19PM +0800, Dong Zhu wrote: diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index c7f31aa..cc03290 100644 --- a/kernel/posix-cpu-timers.c +++ b/kernel/posix-cpu-timers.c @@ -1413,9 +1413,9 @@ static int posix_cpu_nsleep(const

Re: [PATCH] posix_cpu_timers: fix timer never expires when executes clock_nanosleep

2013-08-01 Thread Dong Zhu
Hi Stanislaw, Thansk for your info. On Thu, Aug 01, 2013 at 01:30:50PM +0200, Stanislaw Gruszka wrote: Hi Dong Zhu On Thu, Aug 01, 2013 at 06:10:19PM +0800, Dong Zhu wrote: diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index c7f31aa..cc03290 100644 ---