Messages in this thread | | | Date | Mon, 4 Feb 2013 20:32:23 +0100 | From | Oleg Nesterov <> | Subject | Re: clock_nanosleep() task_struct leak |
| |
On 02/01, Thomas Gleixner wrote: > > B1;2601;0cOn Fri, 1 Feb 2013, Tommi Rantala wrote: > > > Hello, > > > > Trinity discovered a task_struct leak with clock_nanosleep(), reproducible with: > > > > -----8<-----8<-----8<----- > > #include <time.h> > > > > static const struct timespec req; > > > > int main(void) { > > return clock_nanosleep(CLOCK_PROCESS_CPUTIME_ID, > > TIMER_ABSTIME, &req, NULL); > > } > > -----8<-----8<-----8<-----
posix_cpu_timer_create()->get_task_struct() I guess...
Cough. I am not sure I ever understood this code, but now it certainly looks as if I never saw it before.
All I can say is: I'll try to take another look tomorrow :/
> Groan. That code probably has more than that leak burried inside.
Oh. yes... but if you meant something connected to this particular "test-case" please tell us ;)
Oleg.
| |