[Bug 21232] Chromium-based browser engines (Chrome, Opera, Comodo Dragon, SRWare Iron) crash on startup unless '--no-sandbox' is used ( native API sandboxing/hooking scheme incompatible with Wine)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jul 15 15:01:19 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=21232

--- Comment #41 from Fabian Maurer <dark.shadow4 at web.de> ---
Created attachment 61800
  --> https://bugs.winehq.org/attachment.cgi?id=61800
Provide hookable 64bit native api thunks

I created an experimental patch to run x64 chrome without "--no-sandbox".

Please note that this is mostly a PoC still, it's not very tested yet. And
possibly broken on non-Linux platforms. I only tested pure 64bit wine on Linux
with google chrome.

The concept is the one I proposed in Comment 37, and subjective speed seems
acceptable.
The patch is built on top of wine-staging, extending the work that already was
done.

Note that we need to register the signal handler early and then overwrite it,
since the ntapi is used pretty early on (might be able to get rid of that).  
We also need to set SystemCallPad twice, because it needs to be set pretty
early on too, but would get overwritten later.

Can someone test if that fixes the issue for you too? If you find it causes
issues, please tell me.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list