Add SIGPIPE handler to subprocess execution in rootwrap and utils.execute
Bug #1053364 reported by
Thierry Carrez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Thierry Carrez | |||
Folsom |
Fix Released
|
Medium
|
Chuck Short | |||
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Thierry Carrez | |||
Folsom |
Fix Released
|
Medium
|
Chuck Short | |||
neutron |
Fix Released
|
Medium
|
Thierry Carrez | |||
Folsom |
Fix Released
|
Medium
|
Chuck Short | |||
cinder (Ubuntu) | ||||||
Quantal |
Fix Released
|
Undecided
|
Unassigned | |||
nova (Ubuntu) | ||||||
Quantal |
Fix Released
|
Undecided
|
Unassigned | |||
quantum (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | |||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
As explained here: http://
Python ignores SIGPIPE on startup, because it prefers to check every write and raise an IOError exception rather than taking the signal. This is all well and good for Python itself, but most Unix subprocesses don't expect to work this way. Thus, when you are creating subprocesses from Python, it is very important to set SIGPIPE back to the default action. Before I realised this was necessary, I wrote code that caused serious data loss due to a child process carrying on out of control after its parent process died!
Our execution stuff should make use of that.
Related branches
lp://staging/~gandelman-a/ubuntu/quantal/quantum/2012.2.1
- Openstack Ubuntu Testers: Pending requested
-
Diff: 79 lines (+68/-0)1 file modifieddebian/changelog (+68/-0)
CVE References
Changed in nova: | |
importance: | High → Medium |
Changed in cinder: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in quantum: | |
status: | New → Triaged |
importance: | Undecided → Medium |
summary: |
- Add SIGPIPE handler to subprocess execution + Add SIGPIPE handler to subprocess execution in rootwrap and + utils.execute |
tags: | removed: folsom-rc-potential |
tags: | added: folsom-backport-potential |
tags: | removed: folsom-backport-potential |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
Changed in quantum (Ubuntu Precise): | |
status: | New → Confirmed |
tags: | added: in-stable-folsom |
Changed in nova: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
no longer affects: | cinder (Ubuntu Precise) |
no longer affects: | quantum (Ubuntu Precise) |
Changed in quantum (Ubuntu Quantal): | |
status: | New → Confirmed |
Changed in quantum (Ubuntu): | |
importance: | Undecided → Medium |
Changed in nova (Ubuntu): | |
status: | New → Fix Committed |
Changed in cinder (Ubuntu): | |
status: | New → Fix Committed |
Changed in nova (Ubuntu Quantal): | |
status: | New → Fix Committed |
Changed in quantum (Ubuntu Quantal): | |
status: | Confirmed → Fix Committed |
tags: | removed: in-stable-folsom |
tags: | removed: verification-needed |
Changed in quantum: | |
milestone: | grizzly-1 → 2013.1 |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
Changed in cinder: | |
milestone: | grizzly-1 → 2013.1 |
no longer affects: | cinder (Ubuntu) |
no longer affects: | nova (Ubuntu) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/13346
Review: https:/