Bug 132351

Summary: posix-timers leak on multithreaded exec (unprivileged local DoS)
Product: [Fedora] Fedora Reporter: Roland McGrath <roland>
Component: kernelAssignee: Roland McGrath <roland>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: wtogami
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.8-1.585 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-24 06:53:13 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:
Bug Depends On:    
Bug Blocks: 132232    
Attachments:
Description Flags
test case
none
kernel patch fixing exec timer leak and signal state loss none

Description Roland McGrath 2004-09-11 07:33:48 UTC
Description of problem:

exec when multithreaded fails to clean up posix-timers properly, and
leaks the data structures.  exec when single-threaded fails to clear
out the timers, but doesn't leak, so that's just a bug and no DoS risk.

Version-Release number of selected component (if applicable):
2.6.9-rc1

How reproducible:
100%

Steps to Reproduce:
1.see attached test program.
2.run it a lot.
3.watch it leak.
  
Actual results:
leaks that a mofo


Expected results:
not so much

Additional info:
fix on the way

Comment 1 Roland McGrath 2004-09-11 07:34:22 UTC
Created attachment 103718 [details]
test case

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

Comment 2 Roland McGrath 2004-09-11 07:58:46 UTC
Created attachment 103719 [details]
kernel patch fixing exec timer leak and signal state loss

Fix posted upstream.