Bug 132319

Summary: task_struct leak in posix-timers
Product: [Fedora] Fedora Reporter: Roland McGrath <roland>
Component: kernelAssignee: Roland McGrath <roland>
Status: CLOSED NEXTRELEASE QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: rawhideCC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-12 09:29:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test program to show timer_create leaking task_structs
none
fix for task_struct leak in timer_create none

Description Roland McGrath 2004-09-10 21:05:14 UTC
Description of problem:

timer_create with other than SIGEV_THREAD_ID leaks a task_struct.

Version-Release number of selected component (if applicable):
2.6.9-rc1, let's say

How reproducible:
100%

Steps to Reproduce:
1. use timer_create over and over in new processes,
   e.g. try attached test program 
2. check slabtop
3. watch task_struct count grow out of control
  
Actual results:

leak

Expected results:

no leak 

Additional info:

fix on the way

Comment 1 Roland McGrath 2004-09-10 21:06:01 UTC
Created attachment 103703 [details]
test program to show timer_create leaking task_structs

gcc -o timerleak -g timerleak.c -lrt -Wall

Comment 2 Roland McGrath 2004-09-10 21:09:57 UTC
Created attachment 103704 [details]
fix for task_struct leak in timer_create

I've submitted this fix upstream.

Comment 3 Roland McGrath 2004-09-12 09:29:41 UTC
Fix went into Linus's tree.