4 ms·
If you want to stop the inevitable new chrome 0-days: --js-flags="--jitless" Blows my mind you can't turn off JIT in the config. It's a searchable setting
by Grimburger 4y ago
If you want to stop the inevitable new chrome 0-days:
--js-flags="--jitless"
Blows my mind you can't turn off JIT in the config. It's a searchable setting in Firefox and on by default in Edge's Super Duper Secure mode.
- dataflow 4y agoHow do you set that to run on auto-run when the OS starts? Or in general, when Chrome is launched in some other way than you typing that on the command-line?
- tacotime 4y agoAt least on Windows, you should be able to modify the target property of the program’s shortcut to add any desired flags. Then use that shortcut to launch, or drop it in the startup folder. On Linux idk, maybe an alias?
- dataflow 4y agoWhat shortcut though? Auto-launch is automatically set by Chrome in the registry, and Chrome really doesn't like you to mess with things it manages in general, and would eventually overwrite this in any case. Also I _think_ messing with shortcuts sometimes has weird effects with Chrome, like on taskbar grouping, though it's been a while since I've tried.
- HideousKojima 4y agoIn Windows, at least, you can make a batch file to launch Chrome with that option, and then use a shortcut to that batch file to open Chrome.
- OkayPhysicist 4y agoYou can skip the batch file and just include the flag in the shortcut.
- ravenstine 4y agoHow much of a performance penalty is there for turning off JIT? Are there any other consequences?
- Operative0198 4y agoCrypto libraries that rely on WebAssembly (disabled by jitless mode) break. Some services like protonmail that require to use client device encryption will fail.
- Dwedit 4y agoJitless will not protect you from errors in the DOM implementation that cause use-after-free.
- sebazzz 4y agoThe point of decreasing attack surface is increasing security. While the solution of OP will not prevent the issue you mentioned, it certainly decreases the attack surface.
- chlorion 4y agoCould you explain a little bit more in depth on how to do this on firefox?
- mtmail 4y agohttps://superuser.com/questions/1668807/how-to-disable-jit-compiler-just-in-time-compiler-in-firefox https://superuser.com/questions/1668807/how-to-disable-jit-c...
- cpeterso 4y agoYou can turn off the “javascript.options.baselinejit” and “javascript.options.ion” (Ion is the optimizing JIT) preferences in about:config, but you are definitely voiding the warranty and running an untested configuration by doing this! https://searchfox.org/mozilla-central/rev/57527d50ef5d3df412caa5d99536f0709399be6f/modules/libpref/init/StaticPrefList.yaml#7276 https://searchfox.org/mozilla-central/rev/57527d50ef5d3df412...
- deleted 4y ago[deleted]
- wfh 4y agoSure, you can use the enterprise policy: https://chromeenterprise.google/policies/#DefaultJavaScriptJitSetting https://chromeenterprise.google/policies/#DefaultJavaScriptJ... And this existed before SDSM... in fact SDSM depends on the code landed in Chrome that backs this policy.