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

Cygwin DLL mismatch on Mandatory ASLR enabled systems #454

Open
SakuraIsayeki opened this issue Jan 18, 2025 · 1 comment
Open

Cygwin DLL mismatch on Mandatory ASLR enabled systems #454

SakuraIsayeki opened this issue Jan 18, 2025 · 1 comment

Comments

@SakuraIsayeki
Copy link

SakuraIsayeki commented Jan 18, 2025

Context

Some W11 systems are configured to use more extensive security features, either by user choice or company policy.
One of these more problematic features is ASLR, which has the nasty side effect of breaking heaps of software, due to address relocations.

Problem

On a W11 system with Mandatory ASLR enabled (configured via Windows security), SSHFS-Win's underlying Cygwin implementation will throw a fatal error, citing address mismatch. This causes in most cases the network mapping to silently fail without errors.
Diagnosing this fault can be done by running .\sshfs-win.exe svc \sshfs.kr\user@myserver\ X:.

Reproduction

The issue can be systematically reproduced by toggling "Force randomisation for images (Mandatory ASLR)" in Windows Security to "On by default" :

Image

Workaround

Disabling Mandatory ASLR and rebooting will solve any issues caused by address mismatch.

While this issue may perhaps never be fixed in the scope of SSHFS-Win, I ought to share my findings, having spent way too much time diagnosing this issue.

@billziss-gh
Copy link
Collaborator

@SakuraIsayeki this is very helpful to know. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants