-
Notifications
You must be signed in to change notification settings - Fork 827
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
mmap() fails on tmpfs (operation not permitted) #2974
Comments
Thanks for filing, @therealkenc. I'll take a look this morning and see what's going on, this is unexpected. |
@therealkenc I believe your Linux configuration is different than what comes on a stock Ubuntu install. Take a look at your /proc/self/mountinfo file. Is the /run tmpfs mount mounted with the noexec flag? |
Thanks for looking Ben and great analysis. Never say "fine on Real Linux natch", dammit. The real code is remounting |
@therealkenc - No problem, let me know if you' find anything that jumps out at you. |
Nah. This is squarely linux-behavior. What I saw was: works on Linux (because |
Dammit... No, Re-ran the OP test case on stock Ubuntu Bionic just now. Yeah, passes even with |
WSL2 good enough for me. WSL1 LZ can be #3937. |
Version 17101. Took a bit to figure out where
mmap()
was going wrong here. Works onlxfs
(/home
), but nottmpfs
(/run
).Fine on Real Linux[edit: don't assume things, Ken]. Code below is taken nearly verbatim from here.tmpfs
(but we know that)Repro:
Test case:
And
sudo strace -o mmap-fail.strace ./mmap-fail
for pedantry:The text was updated successfully, but these errors were encountered: