LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-09-2024, 10:19 PM   #1
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Weird proton log message?


So while going through logs this past weekend, I noticed line after line of this in a steam proton log (created via PROTON_LOG=1 %command% in launch options):

Code:
"err:virtual:try_map_free_area mmap() error Operation not permitted"
I've increased vm.max_map_count, and that doesn't seem to affect it any. I'm not noticing any crashes or problems, though. I've also got at least 8GB of RAM free when playing a game. (I've been obsessively checking top when running a game after noticing that.) I got more vram free while gaming than I know what to do with now, so that's not the issue, either.

Searching through forums, it's popped up in other people's logs: https://www.linuxquestions.org/quest...ng-4175732254/

So what causes it? Is it something to fix/worry about? I was in a world event in Guild Wars 2 tonight for a solid 40 minutes with graphics absolutely cranked, and no problems.
 
Old 05-10-2024, 10:09 PM   #2
nhattu1986
LQ Newbie
 
Registered: Dec 2005
Distribution: slackware
Posts: 23

Rep: Reputation: 14
It caused by kernel prevent application from mmap the low virtual address as method to prevent you from accidental mmap the NULL address.

from the manual of the debian mmap_min_addr:

https://wiki.debian.org/mmap_min_addr

Quote:
Allowing processes to map low values increases the security implications of a class of defects known as "kernel NULL pointer dereference" defects
also from the same page, it also note that it will interference with some application and wine is one of them
Quote:
The downside to preventing applications from mmap'ing low virtual memory addresses is that certain applications depend on this functionality. dosemu, qemu and wine
also from the kernel documentation:
https://www.kernel.org/doc/html/late...=mmap_min_addr
Quote:
By default this value is set to 0 and no protections will be enforced by the security module. Setting this value to something like 64k will allow the vast majority of applications to work correctly and provide defense in depth against future potential kernel bugs
I think in the old version of kernel that values is set to 0 and it allow wine to mmap to any address, but the recent kernel changed that to some other values that bigger than the min values that wine is using and it cause the warning, set the min mmap to 64kb will fix the issue

so you can just follow the post #2 on this thread and it should fix the warning of wine


https://www.linuxquestions.org/quest...te-4175700295/
 
Old 05-10-2024, 10:14 PM   #3
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by nhattu1986 View Post
I think in the old version of kernel that values is set to 0 and it allow wine to mmap to any address, but the recent kernel changed that to some other values that bigger than the min values that wine is using and it cause the warning, set the min mmap to 64kb will fix the issue

so you can just follow the post #2 on this thread and it should fix the warning of wine


https://www.linuxquestions.org/quest...te-4175700295/
Oh cool, thanks! But isn't that the default? (65536)
 
Old 05-10-2024, 10:18 PM   #4
nhattu1986
LQ Newbie
 
Registered: Dec 2005
Distribution: slackware
Posts: 23

Rep: Reputation: 14
Quote:
Originally Posted by garpu View Post
Oh cool, thanks! But isn't that the default? (65536)
you can check the default of your system by using
Code:
sysctl vm.mmap_min_addr
in my system, it set to 98304
Code:
nhattu@dakstar:~$ sysctl vm.mmap_min_addr
vm.mmap_min_addr = 98304
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setcap works with Wine but not with Proton (Proton "ignores" it) Liemaeu Linux - Software 2 03-24-2021 08:18 AM
LXer: Steam Play Proton 4.11-9 is out with a few fixes, plus a new release of Proton GE LXer Syndicated Linux News 0 11-28-2019 06:12 PM
LXer: Want a more up to date Proton for Steam Play on Linux? Proton GE has a big new release out LXer Syndicated Linux News 0 09-04-2019 11:51 PM
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
HP Photosmart weird weird weird.... Vlad_M Linux - General 5 02-20-2005 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration