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

windows arm64 fixes, upgrade winio and thrift #1858

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

James-Pickett
Copy link
Contributor

@James-Pickett James-Pickett commented Sep 10, 2024

No description provided.

@James-Pickett James-Pickett changed the title upgrade winio and thrift upgrade winio and thrift, stop ole crashes Sep 10, 2024
@James-Pickett James-Pickett changed the title upgrade winio and thrift, stop ole crashes windows arm64 fixes, upgrade winio and thrift, stop ole crashes Sep 10, 2024
ee/wmi/wmi.go Outdated
// calling service.Release() and the serviceRaw.Clear() (or the reverse) causes
// a panic on arm64 (Exception 0xc0000005: Access Violation). The hunch is that on arm64
// one clears the memory of the other.
defer service.Release()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm making the assumption here that the call to serviceRaw.Clear() that is defered above will release this as well because we get an access violation if both serviceRaw.Clear() and service.Release() get called (regardless of order)

Copy link
Contributor

Choose a reason for hiding this comment

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

Hrm. I wonder if something isn't doing what we think in service := serviceRaw.ToIDispatch()

All this stuff is deep in unsafe pointer land

Copy link
Contributor

Choose a reason for hiding this comment

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

But it seems like we should be able to make a pretty small test case and post it as an issue.

Though... go-ole/go-ole#255

directionless
directionless previously approved these changes Sep 11, 2024
@James-Pickett James-Pickett changed the title windows arm64 fixes, upgrade winio and thrift, stop ole crashes windows arm64 fixes, upgrade winio and thrift Sep 11, 2024
@James-Pickett James-Pickett marked this pull request as ready for review September 11, 2024 17:12
@James-Pickett James-Pickett added this pull request to the merge queue Sep 11, 2024
Merged via the queue into kolide:main with commit e22a96a Sep 11, 2024
47 of 48 checks passed
@James-Pickett James-Pickett deleted the james/windows-arm64-fixes-2 branch September 11, 2024 17:36
RebeccaMahany added a commit to RebeccaMahany/launcher that referenced this pull request Sep 13, 2024
desktop triggers Windows Hello

Fix timeout, small refactor

Tidy up names, add documentation

Retrieve key credential status

Retrieve pubkey

Get attestation

windows arm64 fixes, upgrade winio and thrift (kolide#1858)

Fix `autoupdate_managed` table value for MacOS 15 (kolide#1862)

james/remove wmi unneeded releases (kolide#1863)

Check windows service manager settings prior to setting them (kolide#1859)

Co-authored-by: Michael <60191460+lurky@users.noreply.github.com>
Co-authored-by: seph <seph@kolide.co>
Co-authored-by: Rebecca Mahany-Horton <rebeccamahany@gmail.com>

Update function signature

Move to ee
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.

3 participants