-
Notifications
You must be signed in to change notification settings - Fork 868
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
OpenMPI security paranoia about ptrace #3397
Comments
Microsoft Windows 10 Pro [Version 10.0.17134.228] type the following COMMAND in bash:
|
Same issue... Try the following: $ echo 0 > /proc/sys/kernel/yama/ptrace_scope |
Would be nice to permanently configure the system so I don't have to do
this. Looks l8ke Linux projects are using 1 as a default as well.
Much thanks for WSL!!!
…On Sat, Sep 1, 2018, 10:56 AM Shweppie ***@***.***> wrote:
Same issue... Try the following:
$ echo 0 > /proc/sys/kernel/yama/ptrace_scope
or
$ sudo echo 0 > /proc/sys/kernel/yama/ptrace_scope
or
$ echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3397 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AdNyby4XtSY1qDytfWskOuDWB0mD0v7vks5uWspWgaJpZM4VZwDE>
.
|
Yeah |
I will change it in wsl.conf to 0! That is what I need!!! Thank you!!! A
value of 1 hurts OpenMPI performance
…On Mon, Sep 3, 2018, 3:12 PM therealkenc ***@***.***> wrote:
Yeah 1 appears to be the default on unadulterated Ubuntu. Maybe change
the issue title to "change default ptrace_scope to 1if that's really the
concrete ask we're talking about here. [Someone will suggest making it awsl.conf`
thing, and then I'll feel sad inside.]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3397 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AdNyb267W1hMNBCcxFMpuuKbjtt_BFNJks5uXalYgaJpZM4VZwDE>
.
|
If you'd like this setting to be persistent, then you need to edit the config file $ sudo vim /etc/sysctl.d/10-ptrace.conf and edit the line that says kernel.yama.ptrace_scope = 1 to kernel.yama.ptrace_scope = 0 N.B. This was taken from this answer on Stack Overflow. |
Nothing reads that file on WSL (nothing starts |
Ah I see. Right never mind then |
Well, how to set kernel.yama.ptrace_scope to 0 permanently? There is no possibility to set kernel variable in wsl.conf (at least this is not documented) and WSL just ignores rc.local and /etc/sysctl.d files.... |
Test and set it in |
How did you change it? I have the same issue but I can't manage to figure out how to set it to 0 |
How did you change it? I have the same issue but I can't manage to figure out how to set it to 0 |
Solve it using the last command! (I am using WSL 1). Just copy and paste it into your terminal |
Please fill out the below information:
Your Windows build number: (Type
ver
at a Windows Command Prompt)Windows 10 Pro
Version: 1803
OS Build 17134.18
Ubuntu
16.04.4 LTS
xenial
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
Running LAMMPS software inside WSL at the bash command prompt
mike@Tak: mpirun -np 32 --hostfile hostfile /home/mike/bin/sxlmp_umpi -in pdms50_script.in
The following message is generated at the start of execution. This did not happen prior to the 1803 build
WARNING: Linux kernel CMA support was requested via the btl_vader_single_copy_mechanism MCA variable, but CMA support is not available due to restrictive ptrace settings.
The vader shared memory BTL will fall back on another single-copy mechanism if one is available. This may result in lower performance.
Local host: Tak
What should happen:
is there some security "feature" that needs to be disabled in WSL?
be opt-in not opt-out.
Possible rant:
Just a short note: Many of us with compute servers don't care about security. That's what "air gaps" are for. I have yet to find how Microsoft plans to distribute Sperctre and Meltdown to everyone whether they want it or not. Many of us need a tool to see if that crap was installed and hurting performance
and instructions to remove it if found.
By the way:
THANK YOU FOR WSL!!! This is the best way for me to build LAMMPS and run it on my servers and
analysis nodes. I get access to Linux and Windows software!!!
Strace of the failing command, if applicable: (If
some_command
is failing, then runstrace -o some_command.strace -f some_command some_args
, and link the contents ofsome_command.strace
in a gist here).For WSL launch issues, please collect detailed logs.
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: