Bug 713996
Summary: | pbs_server crashes whenever anything connects | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alex Chernyakhovsky <achernya> | ||||
Component: | torque | Assignee: | Steve Traylen <steve.traylen> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 15 | CC: | fotis, steve.traylen | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | torque-3.0.1-4.fc15 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-07-12 22:01:43 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
Alex Chernyakhovsky
2011-06-17 01:39:39 UTC
Addendum: munge starts fine from systemd and problem persists with pbs_server. I've spent some time debugging pbs_server, and I think I've found the problem. On line 306 of req_getcred.c, there is a call to "memcpy(ptr, buf, bytes_read);", which results in a buffer overflow: ptr is munge_buf which is only MUNGE_SIZE of 256 bytes, but this loop (on my system) will write 368 bytes, smashing the stack. #define MUNGE_SIZE 256 /* I do not know what the proper size of this should be. My testing with munge shows it creates a string of 128 bytes */ Yes, but the req_getcred.c code uses MUNGE_SIZE for the output of unmunge, not munge. Created attachment 505309 [details]
Increase MUNGE_SIZE to avoid smashing stack
Increase MUNGE_SIZE to accommodate potentially large output from unmunge -- this is ~300 bytes on my system, next power of two would be 512, but use 1024 "just in case".
Hi Alex, Thanks for the bug and diagnosis. Upstream bug now here: http://www.clusterresources.com/bugzilla/show_bug.cgi?id=136 new packages very shortly. Steve. torque-3.0.1-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/torque-3.0.1-3.fc15 Package torque-3.0.1-3.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing torque-3.0.1-3.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/torque-3.0.1-3.fc15 then log in and leave karma (feedback). Package torque-3.0.1-4.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing torque-3.0.1-4.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/torque-3.0.1-4.fc15 then log in and leave karma (feedback). torque-3.0.1-4.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |