Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v2.7-branch] DNS parsing issues #82392

Open
wants to merge 5 commits into
base: v2.7-branch
Choose a base branch
from

Conversation

TaiJuWu
Copy link
Member

@TaiJuWu TaiJuWu commented Dec 2, 2024

Backport #82072 to v2.7

Fixes #82139

@github-actions github-actions bot added area: Networking area: Tests Issues related to a particular existing or missing test labels Dec 2, 2024
@jukkar
Copy link
Member

jukkar commented Dec 4, 2024

I wonder what is going on with the CI. It just says This job failed even after a restart.

Edit: never mind, missed the created issue

@TaiJuWu
Copy link
Member Author

TaiJuWu commented Dec 4, 2024

I wonder what is going on with the CI. It just says This job failed even after a restart.

Edit: never mind, missed the created issue

After that issue is resolved, I will rebase code to re-trigger CI.

@TaiJuWu TaiJuWu force-pushed the backport-82072-to-v2.7-branch branch from 84936ba to 0b7e8c5 Compare December 11, 2024 01:34
@cfriedt
Copy link
Member

cfriedt commented Dec 11, 2024

@kartben - any idea why the doc build is failing in this PR?

@kartben
Copy link
Collaborator

kartben commented Dec 12, 2024

@kartben - any idea why the doc build is failing in this PR?

Will have a look (my) tomorrow -- prob need to "freeze" requirements-doc.txt a bit more than it currently is 🥶

@TaiJuWu
Copy link
Member Author

TaiJuWu commented Dec 12, 2024

Hi @cfriedt @nashif
The CI still does not run after #82752 is merged.

Could you take a look?

--- Update ---
I missed there are update today. Will rebase.

If the packet parsing fails in dns_unpack_response_query(), then
do not continue further but bail out early.

Signed-off-by: Jukka Rissanen <[email protected]>
Make sure we test malformed packet parsing.

Signed-off-by: Jukka Rissanen <[email protected]>
Make sure that when copying the qname, the source buffer is large
enough for the data.

Signed-off-by: Jukka Rissanen <[email protected]>
The dns_unpack_answer() did not check the length of the message
properly which can cause out of bounds read.

Signed-off-by: Jukka Rissanen <[email protected]>
Make sure we catch invalid answer during parsing.

Signed-off-by: Jukka Rissanen <[email protected]>
@TaiJuWu TaiJuWu force-pushed the backport-82072-to-v2.7-branch branch from 0b7e8c5 to 262cd26 Compare December 12, 2024 06:02
@kartben
Copy link
Collaborator

kartben commented Dec 12, 2024

relevant issue -- pypa/setuptools#4478
still need to figure out how to work around it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants