Bug 1355827
| Summary: | dhcpd has a segfault at startup with a big ip range | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard D Alloway <ralloway> | ||||
| Component: | dhcp | Assignee: | Pavel Zhukov <pzhukov> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 7.2 | CC: | jstodola, mganisin, ralloway, thozza | ||||
| Target Milestone: | rc | Keywords: | Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | dhcp-4.2.5-52.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-08-01 20:38:58 UTC | Type: | Bug | ||||
| 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: | 1380362, 1393869 | ||||||
| Attachments: |
|
||||||
|
Description
Richard D Alloway
2016-07-12 15:49:44 UTC
Created attachment 1178959 [details] Proposed patch I backported the existing patch for this issue as noted in ISC Bugs 38637 (https://kb.isc.org/article/AA-01285/82/DHCP-4.3.3b1-Release-Notes.html [^]) and added more information and a link to a URL which explains how to serve more than 14 million IPs with ISC DHCP. I was able to replicate this issue. The patch has been attached to the ticket. Let me know if you have any questions. Thanks! -Rich Alloway (RogueWave) I confirmed the segfault. It doesn't even need IP address configuration. (In reply to Richard D Alloway from comment #1) > Created attachment 1178959 [details] > Proposed patch > > I backported the existing patch for this issue as noted in ISC Bugs 38637 > (https://kb.isc.org/article/AA-01285/82/DHCP-4.3.3b1-Release-Notes.html [^]) > and added more information and a link to a URL which explains how to serve > more than 14 million IPs with ISC DHCP. Where do I find the patch? It is not included in the dist-git patch unfortunately and I wasn't able to find it using the ISC bug number. Thanks. Hi Pavel! Sorry for the confusion. It wasn't an actual patch that I backported. I created my own patch by comparing the source of server/mdb.c from ISC DHCP 4.2.8 and 4.3.4. In the 4.3.4 source, the changes are lines 826-849 of server/mdb.c. My patch for 4.2.5 is included in the attachments portion of this ticket. Let me know if you have any further questions. Thanks! -Rich Alloway (RogueWave) Note: The result of the patch ISC DHCP exits with failure. The difference is that the failure is not a segmentation fault but an actuall error message. Example below. dhcpd[14409]: /etc/dhcp/dhcpd.conf line 8: 10.1.0.0-10.255.255.254 is an overly large address range. dhcpd[14409]: range dynamic-bootp 10.1.0.0 10.255.255.254; dhcpd[14409]: ^ dhcpd[14409]: Consider breaking large address ranges into multiple scopes of less than 14 million IPs each. dhcpd[14409]: For more information, please visit: https://support.roguewave.com/resources/blogs/openlogic-blogs/how-to-extend-isc-dhcp/ dhcpd[14409]: Memory overflow. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1956 |