lwIP - A Lightweight TCP/IP stack - Bugs: bug #61837, DNS Table State Deadlock On NTP...
You are not allowed to post comments on this tracker with your current authentication level.
bug #61837: DNS Table State Deadlock On NTP Retry
Submitter: | HB <bigbummer> | ||
Submitted: | Mon 17 Jan 2022 05:58:05 AM UTC | ||
Votes: | 100 | ||
Category: | DNS | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open | Planned Release: | None |
lwIP version: | 2.1.2 |
Tue 22 Feb 2022 09:27:06 AM UTC, comment #2: |
Simon Goldschmidt <goldsimon> |
Sun 13 Feb 2022 11:24:24 PM UTC, comment #1: Forgot to allocate a PCB when an enqueued request is found, resulting in the dns send to fail. Updated as such:
|
HB <bigbummer> |
Mon 17 Jan 2022 05:58:05 AM UTC, original submission:
When using DNS & NTP, if the DNS server reaches max retries, NTP will enqueue a DNS request before the state of the DNS table is updated to DNS_UNUSED. As the DNS table reports the state is unused and a request is generated for NTP (via dns_call_found(...)), NTP is now deadlocked.
*
*/
|
HB <bigbummer> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 100 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follows 1 latest change.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-02-21 | storky123 | Carbon-Copy | - | Added storky123 |
Powered by Savane 3.13-d3ae.
Corresponding source code
Next time, please provide a patch file instead of describing your proposed change in words. Reading a patch file is far easier.
Anyway, I see the problem:
- dns_call_found() can result in a nested call into the dns code
- the entry in question is re-requested
- we set the entry to DNS_STATE_UNUSED afterwards, effectively cancelling the re-request