Skip to content

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

Merged
asraa merged 3 commits into
envoyproxy:mainfrom
chaoqin-li1123:config_validation_for_server_fuzz_test
May 21, 2021
Merged

asraa merged 3 commits into
envoyproxy:mainfrom
chaoqin-li1123:config_validation_for_server_fuzz_test

Conversation

@chaoqin-li1123

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

Copy link
Copy Markdown
Contributor

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

@asraa asraa 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.

Thanks!

Comment thread test/server/server_fuzz_test.cc Resolved
Comment thread test/server/server_fuzz_test.cc Resolved
@asraa

asraa commented May 20, 2021

Copy link
Copy Markdown
Contributor

Could you please add the monorail bug as well?

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

@asraa asraa 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.

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