Skip to content

resolve: really always initialize aux - #32163

Merged
daandemeyer merged 1 commit into
systemd:mainfrom
rpigott:more-dnssec-fixup
Apr 9, 2024
Merged

daandemeyer merged 1 commit into
systemd:mainfrom
rpigott:more-dnssec-fixup

Conversation

@rpigott

@rpigott rpigott commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

dns_transaction_request_dnssec_rr was already adjusted in 4001710, to allow for the return parameter to be passed uninitialized. However this codepath was missed, meaning this function could sometimes return success without having actually set the parameter.

Fixes: 4001710 ("resolved: minor dnssec fixups")
Fixes: 4769063 ("resolved: don't request the SOA for every dns label")


Fixes: #32162

dns_transaction_request_dnssec_rr was already adjusted in 4001710,
to allow for the return parameter to be passed uninitialized. However
this codepath was missed, meaning this function could sometimes return
success without having actually set the parameter.

Fixes: 4001710 ("resolved: minor dnssec fixups")
Fixes: 4769063 ("resolved: don't request the SOA for every dns label")
@github-actions github-actions Bot added resolve please-review PR is ready for (re-)review by a maintainer labels Apr 8, 2024
@rpigott

rpigott commented Apr 8, 2024 •

Copy link
Copy Markdown
Contributor Author

@evverx @yuwata think I accidentally introduced this when I dropped the aux initialization per #31827 (comment). Looks like the ret 1 bit wasn't actually prepared for that. Oops :/

@daandemeyer daandemeyer added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Apr 8, 2024
@bluca bluca removed the please-review PR is ready for (re-)review by a maintainer label Apr 8, 2024

@yuwata yuwata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ouch, LGTM.

@daandemeyer
daandemeyer merged commit 73f77f3 into systemd:main Apr 9, 2024
@github-actions github-actions Bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Apr 9, 2024
@rpigott
rpigott deleted the more-dnssec-fixup branch April 9, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

resolved: Conditional jump or move depends on uninitialised value in dns_transaction_process_reply

4 participants