Skip to content

Conversation

@tony-josi-aws
Copy link
Member

@tony-josi-aws tony-josi-aws commented Feb 16, 2025

Description

This PR fixes DHCP - v4 and v6 race condition and memory leak.
While the DHCP state machine is processing response from a DHCP server, causing it to change the DHCP state, if another DHCP server responds to the DUT, state mismatch will cause the vDHCPProcess function to result in an infinite loop.

Thanks Raghav for reporting this issue in the forum post.

Along with this fix, the zero copy buffers were not freed in the DHCPv6 state machine as well as in DHCPv4 corner cases, those are also corrected in this PR.

Test Steps

STM32F4 - DHCP v4 tests

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tony-josi-aws tony-josi-aws requested a review from a team as a code owner February 16, 2025 09:54
@tony-josi-aws tony-josi-aws changed the title Fix DHCP (v4 and v6) race condition and memory leak Fix DHCP v4/v6 race condition and memory leak Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants