Skip to content

[sched] Limit zombie host chain traversal to 10 hops - #7422

Merged
davidpanderson merged 1 commit into
BOINC:masterfrom
qixuancao:fix/issue-2433
Nov 6, 2026
Merged

davidpanderson merged 1 commit into
BOINC:masterfrom
qixuancao:fix/issue-2433

Conversation

@qixuancao

@qixuancao qixuancao commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Description of the Change
Per @davidpanderson's feedback in #7418, simplify the zombie host chain protection in authenticate_user() (sched/handle_request.cpp) to a simple loop counter (++n > 10) that exits with ERR_DB_NOT_FOUND and falls back to creating a new host record.

Release Notes
N/A

Fixes #2433
Assisted-by: Antigravity:Gemini-4-Argon


Summary by cubic

Prevents infinite loops in authenticate_user() when following zombie host chain links by capping traversal at 10 hops, and clears the reply host id in the fallback path. Fixes #2433.

  • Exits the zombie chain loop with ERR_DB_NOT_FOUND after 10 hops so cyclic chains create a new host record instead of looping forever.
  • Resets g_reply->hostid to 0 when falling back to a new host, matching the existing g_request->hostid reset.

Written for commit aeb8def. Summary will update on new commits.

View guided diff

Keep a counter when following merged zombie host links (host.userid == 0)
and exit the loop with ERR_DB_NOT_FOUND after 10 iterations so cyclic
zombie chains fall back to creating a new host record instead of looping
indefinitely.

Fixes BOINC#2433
Assisted-by: Antigravity:Gemini-4-Argon

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

View guided diff | Re-trigger cubic

@AenBleidd

Copy link
Copy Markdown
Member

@davidpanderson, please review

@davidpanderson

Copy link
Copy Markdown
Contributor

Good (although the g_reply->hostid line isn't needed)

@davidpanderson
davidpanderson merged commit a37d292 into BOINC:master Nov 6, 2026
271 of 272 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Server Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

scheduler: Infinite loop possible

3 participants