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

Fix nil deref in Windows layer setup #1418

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

dcantah
Copy link
Contributor

@dcantah dcantah commented Jun 3, 2022

The OS of the UVM was being checked by a pointer method at the start of the function when passing in a UVM object is optional. For process isolated and host process containers nil would be passed where this would be hit.

The OS of the UVM was being checked by a pointer method at the start
of the function when passing in a UVM object is optional. For process
isolated and host process containers nil would be passed where this
would be hit.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
@dcantah dcantah requested a review from a team as a code owner June 3, 2022 16:31
@dcantah
Copy link
Contributor Author

dcantah commented Jun 3, 2022

@ambarve @anmaxvl We missed this in review 😅

Copy link
Contributor

@ambarve ambarve left a comment

Choose a reason for hiding this comment

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

Good catch. Thanks for fixing this Danny!

Copy link
Contributor

@anmaxvl anmaxvl left a comment

Choose a reason for hiding this comment

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

LGTM thanks 🤦‍♂️

@dcantah dcantah merged commit a4ae0fa into microsoft:master Jun 3, 2022
kiashok pushed a commit to kiashok/hcsshim that referenced this pull request Jul 11, 2022
The OS of the UVM was being checked by a pointer method at the start
of the function when passing in a UVM object is optional. For process
isolated and host process containers nil would be passed where this
would be hit.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
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.

None yet

3 participants