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

network: fix misaligned memory access in setsockopt(). #92

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

PiotrSikora
Copy link

Fixes envoyproxy#7968.

Signed-off-by: Piotr Sikora piotrsikora@google.com

@PiotrSikora
Copy link
Author

cc @lizan

@PiotrSikora PiotrSikora changed the title network: fix misaligned access in setsockopt(). network: fix misaligned memory access in setsockopt(). Aug 20, 2019
@PiotrSikora
Copy link
Author

We don't have CI in istio/envoy, but I verified locally that this PR fixes misaligned memory access issue, and the PR upstream passed all the tests: envoyproxy#7969.

cc @istio/release-managers-1-2 @duderino @jplevyak

…envoyproxy#7958)

Description:
libc++ std::string may inline the data which results the memory is not
aligned to `void*`. Use vector instead to store the optval.

Detected by UBSAN with libc++ config. Preparation for envoyproxy#4251

Risk Level: Low
Testing: unittest locally
Docs Changes: N/A
Release Notes: N/A
Fixes envoyproxy#7968

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@lizan
Copy link

lizan commented Aug 20, 2019

@googlebot I consent.

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@PiotrSikora
Copy link
Author

Cherry-picked from envoyproxy#7958.

@fpesce fpesce merged commit 1946e81 into istio:release-1.2 Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants