NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Wine11 and PaX MPROTECT



On Sun, 22 Nov 2026, Ruslan Bekenev wrote:

I spent some time trying to port Wine 11 (recent one) to NetBSD (I'm
on 11.0 atm).
It was mostly just migration of patches from existing emulators/wine.
It works fine and I was able to run some windows CLI programs and just
have run TotalCommander (gui file manager).

My current problem is that any time I call wine <program> I get
segfault due to MPROTECT. The wine binary has paxctl +m set which as
far as I understand should disable the protection. Unfortunately it
still crashes. It works fine though, if I disable mprotect completely
with sysctl -w security.pax.mprotect.global=0.


`sysctl -w security.pax.mprotect.debug=1' will make the kernel print the PID
and COMM of the process it rejected:

https://github.com/NetBSD/src/blob/trunk/sys/kern/kern_pax.c#L451

That should tell you which process also needs `paxctl +m' in Wine 11.

-RVP


Home | Main Index | Thread Index | Old Index