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

Issues installing caused by Windows Security #303

Open
tadghh opened this issue Dec 27, 2023 · 6 comments
Open

Issues installing caused by Windows Security #303

tadghh opened this issue Dec 27, 2023 · 6 comments

Comments

@tadghh
Copy link

tadghh commented Dec 27, 2023

Issuing installing Msys2 error 254
this is for SEO
image

@Biswa96
Copy link
Member

Biswa96 commented Dec 27, 2023

Have you tried to exclude the installation directory in antivirus or antimalware software?

@tadghh
Copy link
Author

tadghh commented Dec 27, 2023

This issue was encountered here too
appveyor/ci#3777

Workaround

Script

See this link, it looks like it disables the required protections for only Msys2

Manual

Go-to Windows Security -> App and browser control -> Exploit protection

Need to keep the following disabled

  • Force randomization ASLR
  • Randomize memory allocations (Bottom-up ALSR)
  • Validate exception chains (SEHOP)
  • Validate heap intergrity

Notes

requiring systems to disable these settings could harm the adoption of Msys2.

@tadghh tadghh changed the title Install Error when using External drive Issues installing caused by Windows Security Dec 27, 2023
@MehdiChinoune
Copy link

AFAIK ASLR is not enabled by default on Windows.

@tadghh
Copy link
Author

tadghh commented Dec 28, 2023

AFAIK ASLR is not enabled by default on Windows.

This is correct, however with this "issue" the user base who require those features are being cut off imo.

@MehdiChinoune
Copy link

MehdiChinoune commented Dec 28, 2023

This is correct, however with this "issue" the user base who require those features are being cut off imo.

We can do nothing about it, While MinGW-w64 (native Windows) packages were built with ASLR enabled https://www.msys2.org/news/#2021-01-31-aslr-enabled-by-default. but unfortunately CygWin (Which MSYS environment is based on) has some issues with it.
There were some reports like yours before, like this msys2/MSYS2-packages#3925
see also:
https://cygwin.com/pipermail/cygwin/2020-March/244106.html
https://cygwin.com/pipermail/cygwin/2020-August/245973.html

@tadghh
Copy link
Author

tadghh commented Dec 28, 2023

This is correct, however with this "issue" the user base who require those features are being cut off imo.

We can do nothing about it, While MinGW-w64 (native Windows) packages were built with ASLR enabled https://www.msys2.org/news/#2021-01-31-aslr-enabled-by-default. but unfortunately CygWin (Which MSYS environment is based on) has some issues with it. There were some reports like yours before, like this msys2/MSYS2-packages#3925 see also: https://cygwin.com/pipermail/cygwin/2020-March/244106.html https://cygwin.com/pipermail/cygwin/2020-August/245973.html

Hopefully someday it will be fixed :)

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

No branches or pull requests

3 participants