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

[fuzz]: fix oss fuzz 32643, Config validation of lb_subset_config for server fuzz test #16582

Merged

Conversation

chaoqin-li1123
Copy link
Member

@chaoqin-li1123 chaoqin-li1123 commented May 19, 2021

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Commit Message: In server fuzz test, misconfiguration of subset_selectors will cause the test to failed.(https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32643) When we set single_host_per_subset to be true and specify more than 1 key, envoy will throw unexpected exception. Since the correct configuration of subset_selectors is well documented, we can reject such misconfiguration to prevent the fuzz test failure.
Additional Description:
Risk Level: low
Testing: add config validation to server fuzz test.
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

chaoqin-li1123 added 2 commits May 19, 2021 19:54
Signed-off-by: chaoqin-li1123 <[email protected]>
Signed-off-by: chaoqin-li1123 <[email protected]>
@chaoqin-li1123 chaoqin-li1123 changed the title Config validation of lb_subset_config for server fuzz test [fuzz]: fix oss fuzz 32643, Config validation of lb_subset_config for server fuzz test May 19, 2021
Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

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

Thanks!

test/server/server_fuzz_test.cc Show resolved Hide resolved
test/server/server_fuzz_test.cc Outdated Show resolved Hide resolved
@asraa
Copy link
Contributor

asraa commented May 20, 2021

Could you please add the monorail bug as well?

Signed-off-by: chaoqin-li1123 <[email protected]>
Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@asraa asraa merged commit 19abe17 into envoyproxy:main May 21, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
… server fuzz test (envoyproxy#16582)

* misconfiguration of subset_selectors will cause the test to failed. reject such misconfiguration to prevent the fuzz test failure.

Signed-off-by: chaoqin-li1123 <[email protected]>
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.

2 participants