News for hackers. Stuff that matters.
Re:Spectre mitigations murder userspace performance by neilsimp1 on Saturday June 19, 2021 @08:33AM (#27559916)
`mitigations=off` in your GRUB_CMDLINE_LINUX_DEFAULT to disable Spectre/Meltdown mitigations, in case anyone is wondering. This page has a pretty decent write-up on it: https://leochavez.org/index.php/2020/11/16/disabling-intel-a....
Re:Spectre mitigations murder userspace performance by dijit on Saturday June 19, 2021 @09:01AM (#27560090)
I love that this is a toggle like this, having control of my system is why I love Linux.

But I must caution desktop users against doing this for performance, it's _much_ better to have some kind of build server somewhere else with this kernel flag than to run it on your desktop.

Why? because your desktop executes untrusted and rather arbitrary code pretty often, not just in the form of Javascript but that's the largest example I can think of.

Right now there's a kind of herd immunity for these things, nobody would really attack spectre because everyone is running mitigations, but if you make the target large enough there will be working exploits.

For isolated machines running trusted workloads (thinking: databases or webservers serving static content) then it's a really nice flag to have on-hand.

Re:Spectre mitigations murder userspace performance by tyingq on Saturday June 19, 2021 @09:16AM (#27560202)
Nice 3rd party toggle for windows: https://www.grc.com/inspectre.htm

Or a Powershell script from MS: https://support.microsoft.com/en-us/topic/understanding-get-...

Re:Spectre mitigations murder userspace performance by rkagerer on Saturday June 19, 2021 @02:44PM (#27563170)
I'd like some more technical details on what exactly InSpectre does (specifically for the Meltdown patch). e.g. Does it just flip a registry key? Rewrite a microcode patch somewhere? Couldn't find an explanation in the software (even under Show Tech Details) or on their site; could you point me to it?

Also, do all the major browsers now have their own mitigations built in?

Re:Spectre mitigations murder userspace performance by rkagerer on Saturday June 19, 2021 @03:27PM (#27563618)
Answering my own Question #1: Looks like it sets values for FeatureSettingsOverride and FeatureSettingsOverrideMask under the "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" registry key.

FeatureSettingsOverride is a bit field where bit 0 controls the mitigation for CVE-2017-5715 (Spectre) and bit 1 controls it for CVE-2017-5754 (Meltdown). If the bit value is 0 the corresponding mitigation is enabled, if 1 it's disabled. FeatureSettingsOverrideMask is simply a mask to control which bits of FeatureSettingsOverride to apply. So, for example, FeatureSettingsOverride = 2 and FeatureSettingsOverrideMask = 3 would enable the Spectre mitigation (if available) and disable the Meltdown one.

More info here:

https://support.microsoft.com/en-us/topic/windows-server-gui...

https://gist.github.com/daBONDi/6f86210e54c68e84e85372fc4d1f...

Haven't checked if the program emits different behavior for other CPU's or OS versions.

Re:Spectre mitigations murder userspace performance by asdfasgasdgasdg on Sunday June 20, 2021 @08:03AM (#27569236)
For anyone considering whether to disable these for desktop performance, I tried to do some research on how much it helps, at least for my workload. From what I was able to read, for gaming, the performance differences are negligible. There also seems to be some indication that disabling mitigations is also harmful to performance on more recent CPUs, since more and more of the mitigations are being baked into the silicon.

https://www.reddit.com/r/intel/comments/kp6b6i/how_bad_is_it...

Re:Spectre mitigations murder userspace performance by ncann on Saturday June 19, 2021 @07:39PM (#27565586)
That Powershell script seems to show the current status only, and not have any option to turn the protections on/off?
Re:Spectre mitigations murder userspace performance by kurikuri on Saturday June 19, 2021 @07:37PM (#27565568)
>desktop executes untrusted and rather arbitrary code pretty often

Aren’t the most affected group of users cloud users (and providers), not desktop users? I thought the biggest risk of specter attacks is the ability to glean information on other server residents who should be segmented off. There are many more concerns in user space which make attacking a desktop with specter pretty cumbersome for low reward wrt opportunity cost.

The performance savings of speculative execution do seem to be worth the risk on a desktop IMO.

Re:Spectre mitigations murder userspace performance by tcoff91 on Saturday June 19, 2021 @08:11PM (#27565789)
I was under the impression that spectre is is much more limited in scope than Meltdown. I think you have to be in a position to influence the execution of the program you are trying to extract information from. Like JavaScript engines running in browsers. One example is your JS can be used to get the browser to speculatively execute something that leaks data. I think that it’d be pretty hard for one VM to set up a spectre attack on another arbitrary VM. Meltdown however does expose everything.
Re:Spectre mitigations murder userspace performance by foobarbazetc on Saturday June 19, 2021 @08:04PM (#27565751)
Yeah, this is mostly an issue in the cloud where you share SMT threads with other people.
Re:Spectre mitigations murder userspace performance by chithanh on Saturday June 19, 2021 @10:24PM (#27566541)
To be more precise, running different cloud customers on different SMT threads of the same core allows them to attack each other.

This is also the case with Spectre-related vulnerabilities such as L1TF.

Re:Spectre mitigations murder userspace performance by tabokie on Saturday June 19, 2021 @11:41PM (#27566900)
At least on AWS EC2, malicious neighbors won't be an issue. "This issue has been addressed for AWS hypervisors, and no instance can read the memory of another instance, nor can any instance read AWS hypervisor memory. We have not observed meaningful performance impact for the overwhelming majority of EC2 workloads."[1]

[1] https://aws.amazon.com/speculative-execution-os-updates/

Re:Spectre mitigations murder userspace performance by bigiain on Sunday June 20, 2021 @01:41AM (#27567445)
> for the overwhelming majority of EC2 workloads.

I wonder if that’s weasel words for

“the majority of AWS workloads run single digit cpu utilisation, so a 50% performance hit is not a ‘meaningful performance impact’ for them”?

Re:Spectre mitigations murder userspace performance by porphyra on Saturday June 19, 2021 @01:52PM (#27562643)
Phoronix has comprehensive benchmarks on the impact of spectre mitigations if you want to find out how much of a difference it will actually make before exposing your system:

https://www.phoronix.com/scan.php?page=search&q=Spectre

Re:Spectre mitigations murder userspace performance by josefx on Saturday June 19, 2021 @10:03AM (#27560538)
> not just in the form of Javascript but that's the largest example I can think of.

As far as I understand browsers still get owned at every pwn2own. So you might want to stop running untrusted JavaScript anyway.

Re:Spectre mitigations murder userspace performance by dijit on Saturday June 19, 2021 @10:21AM (#27560651)
I don't want to go into this topic because frontend developers are very defensive of their capability to Javascript on people, they often cite javascript adoption numbers as proof that it's fine to make it mandatory or cite complex web applications as a reason for it to be mandatory for all sites, which I personally find to be a false dichotomy.

I tend to agree with what you're saying but the ship has sailed very much and running without javascript is a losing proposition these days.

(my web browser starts up with javascript disabled except for some whitelisted sites and it usually only takes 15 minutes for me to find something completely broken on the internet and re-enable javascript entirely).

Re:Spectre mitigations murder userspace performance by voakbasda on Saturday June 19, 2021 @10:27AM (#27560691)
Entirely? Use NoScript to temporarily enable only those portions of the single site that you need. No affiliation, just a happy user.
Re:Spectre mitigations murder userspace performance by SkyMarshal on Saturday June 19, 2021 @11:01AM (#27561010)
/second NoScript. Instead of whitelisting whole sites, you can whitelist links to JavaScript imports across all sites, temporarily or permanently.

So for example, you can whitelist urls to all the major JavaScript frontend frameworks’ CDNs, like bootstrap, etc. while leaving known trackers and spyware blacklisted by default.

Anecdotally it seems most websites still work with their trackers disabled, as long as they have their frontend framework/s loaded.

Re:Spectre mitigations murder userspace performance by gruez on Saturday June 19, 2021 @11:28AM (#27561319)
I disagree. There are way too many sites that require javascript that you'll eventually get into the habit of blindly enabling scripts when a site breaks, negating any security benefits.
Re:Spectre mitigations murder userspace performance by SkyMarshal on Saturday June 19, 2021 @02:36PM (#27563099)
I disagree. I'm not just pulling this out of my ass, I've been doing exactly this for years, I can't remember how long. It works fine.

>you'll eventually get into the habit of blindly enabling scripts when a site breaks, negating any security benefits.

The key here is that when you're deciding whether to whitelist a JS import, and you don't know what it is and don't want to take the time to look it up, then whitelist it temporarily not permanently. It will be moved back to the blacklist the next time you restart the browser.

Only permanently whitelist JS that you know for sure isn't a tracker or malware or sketchy.

Re:Spectre mitigations murder userspace performance by msbarnett on Saturday June 19, 2021 @04:12PM (#27564002)
> Only permanently whitelist JS that you know for sure isn't a tracker or malware or sketchy.

What’s the whitelist based on? URI? Or file content hash? Because today’s “criticalsitefunctunality.js” is tomorrow’s “upstream got p0wned and there’s a Bitcoin miner in there too now”.

Sites churn so often that “permanently” whitelisting hashes is probably a never ending chore, and you’re unlikely to want to constantly re-inspect minimized JS, so this eventually turns into semi-blind faith.

And permanently whitelisting URIs is pure security theatre; that file could contain anything, next request.

Re:Spectre mitigations murder userspace performance by SkyMarshal on Saturday June 19, 2021 @04:56PM (#27564401)
I'm aware of all that, but it's not theater, it's just part of a defense in depth strategy. Reduces attack surface area, doesn't eliminate it, while maintaining usability of the web.

If you have a better approach that accomplishes both of those objectives, do tell.

Re:Spectre mitigations murder userspace performance by gruez on Saturday June 19, 2021 @05:08PM (#27564489)
I'm sure it adds some amount of security. I'm just skeptical it adds enough security to be worth the hassle. I discussed the threat model here: https://news.ycombinator.com/item?id=27564457 and came to the conclusion that it wouldn't prevent much attacks in practice.
Re:Spectre mitigations murder userspace performance by msbarnett on Saturday June 19, 2021 @05:20PM (#27564562)
> If you have a better approach that accomplishes both of those objectives, do tell.

Use a browser that isolates the JS engine in its own process and leave spectre mitigations enabled rather than try to play kid-plugging-holes-in-dike-with-finger by auditing all the world’s constantly-changing JS for spectre/meltdown gadgets?

Re:Spectre mitigations murder userspace performance by SkyMarshal on Saturday June 19, 2021 @05:41PM (#27564712)
>Use a browser that isolates the JS engine in its own process

Definitely. All for that.

>and leave spectre mitigations enabled

I do that anyway. The performance cost is unnoticeable to my normal workloads.

>rather than try to play kid-plugging-holes-in-dike-with-finger by auditing all the world’s constantly-changing JS for spectre/meltdown gadgets?

I'll continue doing this too, largely because I want to see what's going on behind the scenes on all the websites I visit. Useful for me to see it all, especially as it changes over time as you observe.

That said, Easylist and Privacylist are also great if you'd rather crowd-source the finger-in-dike-hole-plugging.

Re:Spectre mitigations murder userspace performance by argomo on Saturday June 19, 2021 @03:01PM (#27563341)
I used to do this. It broke too often when doing credit card purchases though... it would take multiple attempts to complete a purchase and figure out which domains needed to be enabled. Sometimes the status would be left ambiguous. Once I double-spent, but fortunately it was a cancellable reservation. I suppose you can do better if you just spend at a few key sites.
Re:Spectre mitigations murder userspace performance by smichel17 on Saturday June 19, 2021 @11:22PM (#27566826)
I do it with uMatrix. I usually go up to the "all sites" level and enable most everything before going through a credit card payment flow, for this reason.

Security is only part of my motivation, though, and not the main part -- I mostly do it because it protects me by default from all the pop-up type crap that so many websites foist on you. Yes, it's a pain to un-break sites sometimes. But I resent it less than going through the equivalent pain in "privacy settings" popups, wriggling chat widgets, "ate you sure you don't want to sign up for our newsletter?" nags, etc. Websites are already broken; as long as that's true, I'd rather be in control of why.

Re:Spectre mitigations murder userspace performance by SkyMarshal on Saturday June 19, 2021 @05:00PM (#27564432)
>it would take multiple attempts to complete a purchase and figure out which domains needed to be enabled.

Yeah I went through this too, figuring out all the CC purchase redirects. Some are just idiotic to the point I wish govts would pass a law mandating zero redirects for online purchases. Stripe, Paypal, Square, Braintree and a few others do payments just fine without the redirects so it's clearly possible.

But eventually even that gets solved and the redirects get whitelisted. Haven't encountered this problem for a long time.

Re:Spectre mitigations murder userspace performance by cartoonworld on Saturday June 19, 2021 @10:22PM (#27566534)
I have used NoScript for over a decade and I've been bitten by this too, but I've noticed that it has gotten better. CC processors seem to have encountered enough crappy browsers and broken JS implimentations that they've improved their services in the last half dozen years or so.

That said, when there's something old, important, and/or dumb looking, I usually spawn a new Firefox container (using Multi-Account Container plugin) and use NoScript's temporary bypass function.

Re:Spectre mitigations murder userspace performance by andrepd on Saturday June 19, 2021 @07:22PM (#27565476)
Simply "enable all" for pesky cases like that.
Re:Spectre mitigations murder userspace performance by hutzlibu on Saturday June 19, 2021 @12:54PM (#27562120)
You probably misunderstood : allmost all websites require javascript, yes - but you can selectivly allow only the javascript of that site, their framework etc. and block all the tracker/ads javascript with NoScript/UBlock - and then it is working and probably quite safe. But to mitigate, more and more websites find ways to sneak in the tracker/ads/analytics into the main sites js. So it is not as easy, either.

Which is why I just use basic ublock origin and regulary wipe the browser cache.

Re:Spectre mitigations murder userspace performance by gruez on Saturday June 19, 2021 @05:04PM (#27564457)
>but you can selectivly allow only the javascript of that site, their framework etc. and block all the tracker/ads javascript with NoScript/UBlock

What's the difference between that and just using the standard easylist/easyprivacy filter? I suppose there's a small chance that a third party site went rogue and isn't on the default lists, but I'm skeptical how many attacks that would thrawt in reality. The attacks I heard of tend to be first party/supply chain (would be white listed by you), or delivered through an ad network (probably already be on a blacklist).

Re:Spectre mitigations murder userspace performance by SkyMarshal on Saturday June 19, 2021 @05:33PM (#27564649)
Easylist and Privacylist are great. I suppose the main reasons for doing it manually are seeing firsthand what all the sites you visit are doing behind the scenes, and getting a sense of what is legitimately needed functionality, what isn't, and what is just downright sketchy.
Re:Spectre mitigations murder userspace performance by hutzlibu on Saturday June 19, 2021 @05:59PM (#27564875)
Yup. But you can only do this when you have time for it. I kind of got very pragmatic with it.
Re:Spectre mitigations murder userspace performance by josefx on Saturday June 19, 2021 @05:08PM (#27564484)
I feel that is a bit like driving blindfolded because you might get distracted at some point anyway. Sure that one script you have to enable might be the one to exploit your system, but it might also be one of the dozens that didn't do anything useful.
Re:Spectre mitigations murder userspace performance by beebeepka on Saturday June 19, 2021 @02:23PM (#27562961)
I've been using noscript for at least a decade and it hasn't happened yet. I have conditioned my wife to use it too. She doesn't do it either
Re:Spectre mitigations murder userspace performance by gruez on Saturday June 19, 2021 @05:06PM (#27564472)
So what happens if you go to a site and see a blank/broken page? Do you just go back and abandon the page? Do you do a full risk assessment of each of the domains? What does that assessment entail?
Re:Spectre mitigations murder userspace performance by lanstin on Sunday June 20, 2021 @01:01AM (#27567227)
First I curse JavaScript developers (sorry). Then I use a heuristic like is this a real website for a real thing that I heard of before today, then temp trust; if it’s click baity or new, don’t trust or try adding in one at a time or mostly just give up. Very little shortage of content.
Re:Spectre mitigations murder userspace performance by beebeepka on Sunday June 20, 2021 @05:56AM (#27568605)
Depends. Sometimes I leave immediately, other times that blank is just a cover on top of content. And finally, I sometimes have to enable a domain/subdomain using common sense.

It's not that hard, nor time consuming. Again, my wife can do it and she's not a developer.

Still though. There are sites that would not work at all until everything is enabled, including ads. Imagine not being able to buy a plane ticket because wizzair wants to serve you ads

Re:Spectre mitigations murder userspace performance by alisonkisk on Saturday June 19, 2021 @12:24PM (#27561856)
uMatrix by uBlock Origin too.
Re:Spectre mitigations murder userspace performance by dijit on Saturday June 19, 2021 @11:43AM (#27561466)
I use a browser called Qutebrowser which doesn't have a noscript addon; but I can disable javascript loading on a domain level.

However, overall I can tell you for absolute certain: if you have JS partially disabled things break in non-obvious ways and I find myself playing whack-a-mole with allowing various domains to load javascript to get the page working.

I'm pretty certain you do also, because it's basically impossible to tell why certain damned sites are broken and the most obvious thing to do is just enable JS temporarily to see if it works at all.

This is especially annoying on some part of a site such as checkout- where reloading the page causes a form resubmission.

Re:Spectre mitigations murder userspace performance by alisonkisk on Saturday June 19, 2021 @12:23PM (#27561849)
I like this breakage because it makes me unhappy with the website and less likely to use it -- the immune system is working as it should.
Re:Spectre mitigations murder userspace performance by KronisLV on Saturday June 19, 2021 @01:40PM (#27562524)
That's probably a good approach for random news sites and such, much less so when your internet banking and even online shopping sites require JS on.
Re:Spectre mitigations murder userspace performance by lanstin on Sunday June 20, 2021 @01:03AM (#27567241)
If the actual payment is via Paypal I think it usually works without JavaScript in the merchant. And like content, there is no shortage of places to buy stuff.

For banking i use their phone app or else visit them in person. But I use a credit union not a bank as I want to trust the people holding my money.

Re:Spectre mitigations murder userspace performance by sneak on Saturday June 19, 2021 @10:25AM (#27560676)
Nah. I browse the web with NoScript. Snowden himself says to disable scripting in browsers.
Re:Spectre mitigations murder userspace performance by swiley on Saturday June 19, 2021 @10:20AM (#27560647)
I'm continually shocked that people are so ok with automatically executing any code random sites they connect to shove at them.
Re:Spectre mitigations murder userspace performance by alisonkisk on Saturday June 19, 2021 @12:25PM (#27561867)
Code is data. Data is code.
Re:Spectre mitigations murder userspace performance by swiley on Saturday June 19, 2021 @02:28PM (#27563023)
It's more or less impossible to express recursion (in the same ways you can with js) with pure css/html.

If you want to be overly reductionist then you can argue nothing matters because your just staring at a box with lights in it.

Re:Spectre mitigations murder userspace performance by bruce343434 on Saturday June 19, 2021 @01:56PM (#27562691)
Viral bacteria are matter. Matter is viral bacteria.
Re:Spectre mitigations murder userspace performance by temac on Saturday June 19, 2021 @10:30AM (#27560711)
> I love that this is a toggle like this, having control of my system is why I love Linux.

You can disable mitigations on Windows too.

Re:Spectre mitigations murder userspace performance by SteveNuts on Saturday June 19, 2021 @11:44AM (#27561478)
Yeah but the next update will probably turn it back on silently...
Re:Spectre mitigations murder userspace performance by a1369209993 on Saturday June 19, 2021 @01:52PM (#27562653)
Unlikely; Windows updates (mostly) only turn things you disabled back on if they're harmful to you.
Re:Spectre mitigations murder userspace performance by toomanyducks on Saturday June 19, 2021 @02:33PM (#27563071)
idk about this, my anecdotal experience suggests otherwise - irrelevant things (i.e., monitor resolutions, mouse acceleration curves, and I think DNS settings at one point) can be thrown around by updates a bit too frequently in my experience.
Re:Spectre mitigations murder userspace performance by saurik on Saturday June 19, 2021 @02:21PM (#27562938)
Yeah: and disabling mitigations for an attack certainly wouldn't be considered "harmful" by anyone.
Re:Spectre mitigations murder userspace performance by Causality1 on Saturday June 19, 2021 @07:19PM (#27565458)
I have a tablet that was unusable before I installed WuMgr and blocked auto-updates because every 24 hours Windows Update would force-install a broken touchscreen driver. Windows Update is the single most embarrassing, half-assed software project of the 21st century.
Re:Spectre mitigations murder userspace performance by dustingetz on Saturday June 19, 2021 @09:31AM (#27560312)
your desktop is already rooted by Zoom
Re:Spectre mitigations murder userspace performance by jacquesm on Saturday June 19, 2021 @10:02AM (#27560527)
And teams. And all that software that you used to be able to use that you have to make exceptions for so that in the end you end up forgetting to re-enable some critical part of the windows scareware implementation.

Seriously: try installing Firefox on Windows 10 (I had to do this recently, I have now one computer in the house on Win 10 due to a hard requirement for some software/hardware combo), and you'll see Microsoft learned next to nothing from the browser wars lawsuit. They're simply asking to have this done to them again, they now actively discourage Firefox to be installed by claiming it can 'damage your computer' and is insecure. Incredible this stuff.

Oh, and Google will return a link for Chrome as the first item when you search for Adblock for Firefox. You can't make this stuff up.

Has there ever been a large company in IT that didn't turn absolutely evil as soon as the opportunity presented itself?

Re:Spectre mitigations murder userspace performance by formerly_proven on Saturday June 19, 2021 @11:10AM (#27561122)
> You never sent me a response on the question of what things an app would do that would make it run with MS-DOS and not run with DR-DOS. Is there [a] feature they have that might get in our way?

Bill Gates

> What the [user] is supposed to do is feel uncomfortable, and when he has bugs, suspect that the problem is DR-DOS and then go out to buy MS-DOS.

MS SVP Brad silverberg

> If you're going to kill someone there isn't much reason to get all worked up about it and angry. Any discussions beforehand are a waste of time. We need to smile at Novell while we pull the trigger.

MS VP Jim alchin

What has changed? Nothing, of course. Settling and paying fines for blatant abuses of dominant market positions has been Microsoft’s MO for decades.

Re:Spectre mitigations murder userspace performance by revscat on Saturday June 19, 2021 @03:17PM (#27563515)
The behaviors described here are intrinsic to capitalism, and are not peculiar to any individual company. The executives quoted here are simply describing the waters they swim in. But they are only one fish in the sea that is liberal governance. The system is the problem, not Microsoft.
Re:Spectre mitigations murder userspace performance by rbanffy on Saturday June 19, 2021 @04:19PM (#27564070)
This system will cause any publicly traded company to behave like a sociopath and limit career paths for non-sociopaths who are unwilling to break (or bend) the law to further their agendas.
Re:Spectre mitigations murder userspace performance by Santosh83 on Saturday June 19, 2021 @10:27AM (#27560684)
I run Windows 10 (Home) since years and the OS has so far, never tried to warn me about Firefox. It does however reset default browser back to Edge after biannual major OS upgrades. Also searching 'adblock for Firefox' on Google returns several results from Mozilla addons for me. Chrome is not linked anywhere on the first page of results.

What is personally more annoying is Edge keeps randomly popping up a banner asking if I'm sure it shouldn't be the default browser. When a user declines once, the OS shouldn't nag repeatedly.

Re:Spectre mitigations murder userspace performance by hutzlibu on Saturday June 19, 2021 @01:04PM (#27562213)
"When a user declines once, the OS shouldn't nag repeatedly. "

Haha, ... when you apply that standard to the modern world - you sometimed wish the stoneage back.

Seriously, there is something deeply wrong with society, when all this shit just gets accepted by everyone.

"Telemetry" such a innocent word. If they would write we record allmost everything you do on your computer and send that data to wherever we want to .. I doubt much would actually change, as MS office software is still mandatory in many places, but maybe there would be more awareness of it.

Re:Spectre mitigations murder userspace performance by tester756 on Saturday June 19, 2021 @10:44AM (#27560818)
>Oh, and Google will return a link for Chrome as the first item when you search for Adblock for Firefox. You can't make this stuff up.

Maybe your profile affects results, here:

"Adblock for Firefox"

returns

"https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/"

"adblock"

returns 1st url = https://adblockplus.org

2nd url is = chrome.google.com

Re:Spectre mitigations murder userspace performance by bennyp101 on Saturday June 19, 2021 @12:36PM (#27561976)
I just setup 2 laptops this week on Win10 Pro, inatlled Firefox and Chrome, and nowhere did it mention anything about Firefox being bad?

Maybe a Win10 Home, or some other version? Or was that in a search result (or ad) not actually Windows?

Re:Spectre mitigations murder userspace performance by callahad on Saturday June 19, 2021 @01:59PM (#27562723)
Give it time; it's a trickle campaign. Just this morning I updated my Win 10 Pro desktop, and on reboot I got a full screen wizard prompting me to "use recommended browser settings" which is doublespeak for changing my default browser to Edge.

Edit: On re-reading, I believe OP was specifically referring to false positives with SmartScreen that crop up regularly, like at https://www.reddit.com/r/firefox/comments/n7gige/ms_edge_blo...

Re:Spectre mitigations murder userspace performance by kevingadd on Saturday June 19, 2021 @02:53PM (#27563261)
The SmartScreen stuff is a plague that applies to all software developers in varying degrees. Chrome does this with their safe browsing stuff too, I hate it - essentially everyone gets told your exe is "malicious" until enough people have downloaded it without it being flagged as malware.

The idea that it applies to trusted vendors like Mozilla shipping code-signed executables is bonkers to me.

Nice way to promote further centralization into services like app stores that don't suffer from this!

Re:Spectre mitigations murder userspace performance by LinuxBender on Saturday June 19, 2021 @03:30PM (#27563632)
You can disable SmartScreen with O&O ShutUp10 [1] on the home version.

[1] - https://www.oo-software.com/en/shutup10

Re:Spectre mitigations murder userspace performance by vladvasiliu on Sunday June 20, 2021 @01:20AM (#27567336)
> Give it time; it's a trickle campaign. Just this morning I updated my Win 10 Pro desktop, and on reboot I got a full screen wizard prompting me to "use recommended browser settings" which is doublespeak for changing my default browser to Edge.

Yeah, I actually think this is a case of "don't explain by malice that which could be adequately explained by stupidity" or something.

I'm only a casual Windows user (only use for it games) and never bother to install another browser, Edge works well enough to download Steam and occasionally look up something on the internet.

Earlier this week when it installed the new update I also got the same "use recommended browser settings" dialog box. I think I had disabled 3rd party cookies or something as well as the random junk on the new page, so not willing to click around for half an hour I denied using anything and all went well. I'm pretty sure this isn't the first time I see the "use recommended settings" on this PC, since seeing it gave me an "again?!" reaction.

This is a Win10 Pro that's always been kept up to date.

Re:Spectre mitigations murder userspace performance by hutzlibu on Saturday June 19, 2021 @01:07PM (#27562236)
" Has there ever been a large company in IT that didn't turn absolutely evil as soon as the opportunity presented itself?"

I like nuances, though. "absolute evil" is a bit strong.

There were companies who were engaged with enslaving people and working them to death. (some still are)

I am no fan of googles development, but absolute evil leaves no room to describe other companies who are actually worse.

Re:Spectre mitigations murder userspace performance by toomanyducks on Saturday June 19, 2021 @02:44PM (#27563166)
> some still are

well that's an understatement[0].

I alos think it's less productive to interpret the phrase absolute evil as a comment on an entity's moral alignments (because it's a corporation, it's not chaotic evil or neutral good, it just is) but as a comment on the foundation and effects of the economic and political systems defining of the corporations (capitalism under neoliberalism). Absolute evil seems like a fairly decent personification of those metrics to me: every extra push to manufacture another product pushes us closer to a climate catastrophe (even 'green' products like Teslas, especially green products like Teslas[1]). Even if you deny climate change, you can't deny that workers are being taken advantage of near habitually. If we're going to personify the destruction of the earth and the worker, absolute evil does not seem too far off.

0: https://en.wikipedia.org/wiki/Foxconn_suicides for one 1: https://www.wired.com/2016/03/teslas-electric-cars-might-not...

Re:Spectre mitigations murder userspace performance by hutzlibu on Saturday June 19, 2021 @05:58PM (#27564862)
There is still a big difference, between exploiting people - and owning people - and literal doing what you want with them. Flock them. Burn them. Rape them - as you please. This is slavery as it used to be (and partly still is!!). And that term gets watered down when applied to something else.

Exploiting people because they are desperate is a big problem. Maybe call it modern day slavery. But it really is not the same as what slavery means for people who are literaly and 100% owned by others.

Re:Spectre mitigations murder userspace performance by thatguy0900 on Saturday June 19, 2021 @12:02PM (#27561649)
With growth hacking it seems that all the it companies that get big now were evil when they were small, too
Re:Spectre mitigations murder userspace performance by nerdponx on Saturday June 19, 2021 @10:29AM (#27560704)
> Has there ever been a large company that didn't turn absolutely evil as soon as the opportunity presented itself?

No?

Re:Spectre mitigations murder userspace performance by Natsu on Saturday June 19, 2021 @04:03PM (#27563929)
> Microsoft learned next to nothing from the browser wars lawsuit.

That's been true since the very beginning.

I very nearly filed papers to oppose class council in one of the state lawsuits on the basis that the proposed settlement was calculated to create a new antitrust injury to the class.

But I didn't because I was young and pro se and there was no way for me to afford or find representation. If I had to do it again I would've filed pro se requesting that they reject the settlement on that basis and appoint a guardian ad litem to roll the dice anyway.

Re:Spectre mitigations murder userspace performance by rbanffy on Saturday June 19, 2021 @04:15PM (#27564034)
> Has there ever been a large company in IT that didn't turn absolutely evil as soon as the opportunity presented itself?

If turning evil increases shareholder value, it’s their fiduciary duty to do so.

Re:Spectre mitigations murder userspace performance by pstuart on Saturday June 19, 2021 @04:30PM (#27564189)
> If turning evil increases shareholder value, it’s their fiduciary duty to do so.

Meh. Maybe not: https://medium.com/bull-market/there-is-no-effective-fiducia...

Re:Spectre mitigations murder userspace performance by bostonsre on Saturday June 19, 2021 @09:51AM (#27560449)
Seriously. I hate zoom, there are so many features that smell like malware (how when a call starts sometimes my system level volume no longer is controllable and I have to go to zoom settings to control it. I have windows+wsl, but it's happened on macs in my company as well). Google gets a lot of hate, but I like their meeting tool because they keep it simple and it works.
Re:Spectre mitigations murder userspace performance by matsemann on Saturday June 19, 2021 @09:59AM (#27560508)
I just changed company. Wish I could go back to Zoom. Google Meet is horrible. I have to open Chrome for all meetings, as it (probably intentionally) runs worse in other browsers. But even in Chrome there are issues. Some workloads (like running tests) can take 5x as long on my system if I'm sharing my screen on Meet. Making working with others more hassle than it should be.
Re:Spectre mitigations murder userspace performance by jacquesm on Saturday June 19, 2021 @10:03AM (#27560534)
This is fair, but at least you're sure that when you close the window that it's gone and that is as far as I'm concerned its biggest feature. Oh, and that it seems to work well on all platforms.
Re:Spectre mitigations murder userspace performance by cj on Saturday June 19, 2021 @10:11AM (#27560586)
“Close browser tab” - immediately exits a Google Meet.

Closing a Zoom/Webex meeting, who knows since it’s still running in the background.

I also like meetings sandboxed in a browser so weird things like “automatically take control of your screen and maximize window” doesn’t happen when someone in a Zoom meeting starts sharing their screen.

Even at the expense of more CPU.

Re:Spectre mitigations murder userspace performance by ulzeraj on Saturday June 19, 2021 @11:31AM (#27561347)
That meme with the actor taking to a bloodied Jesus comes to mind while reading you guys comparing google with zoom. You guys are so lucky. I work on Skype for Business over a Citrix Workspace connection.

While Skype is an unmitigated disaster that can’t do simple stuff like copying text there is Citrix that requires a wizard installer with admin rights that deploys 3 background services and requires an audio plugin (separated, with another wizard installer) to do a worse remote streaming experience than what discord does for teenagers using a browser.

Re:Spectre mitigations murder userspace performance by Sunspark on Saturday June 19, 2021 @12:31PM (#27561933)
The inability to copy text may be due to an admin setting. At my previous workplace they disabled the ability to paste in images, etc. into Skype for Business saying that it was a security risk. They also disabled the ability to copy and paste between apps except within MS Office for the same reason.

It's not Citrix doing this, but your administrator.

Re:Spectre mitigations murder userspace performance by ulzeraj on Saturday June 19, 2021 @12:48PM (#27562074)
Copy and paste works. They did disabled any communication between the client machine and the Citrix VDI except for audio and camera but the feature I'm complaining about is within the Remote Desktop. It works but its random and terrible. Sometimes you try to copy a single word but it copies the entire message along with the metadata containing sender and timestamp.
Re:Spectre mitigations murder userspace performance by formerly_proven on Saturday June 19, 2021 @11:39AM (#27561425)
Since you are on Skype for Business I'm going to assume you are not using Teams currently. Teams is actually a lot worse in almost every way than SfB when it comes to the functions both systems share.

> While Skype is an unmitigated disaster that can’t do simple stuff like copying text

Do you mean from shared contents or from the chat? The latter works for me, but since you also mention using Citrix Workspace, which sounds like a remote desktop/application tool, it seems likely to me that this is actually the fault of Citrix, not Skype. Remote clipboards seem to be rather unreliable, I'm using DCV 2017 and the clipboard breaks basically every five minutes, necessitating a reconnect.

Re:Spectre mitigations murder userspace performance by ulzeraj on Saturday June 19, 2021 @11:53AM (#27561554)
Sometimes you copy what you want sometimes you copy the message with the metadata and sometimes copy doesn’t work. Pasting stuff from other sources will cause some weird table elements to appear. There is no way to format code. Sometimes it says the message is too big but then you paste the same message into notepad and copy paste again it works just fine. The text editor and visualization seems to be arctifacts of a bygone era where everything was rich text.

I’m not sure if it’s the clipboard because my employer does not allow shared drives, clipboard, usb or any resource from my local machine except for mic and webcam.

Ohhh and let’s talk abou the HUGE black ribbon at the top of the screen when you are sharing your window. It totally covers the browser tabs. You have to restore the window and switch tabs and maximize it again. It _is_ an unmitigated disaster that degrades the overall experience.

Re:Spectre mitigations murder userspace performance by teddyh on Saturday June 19, 2021 @11:07AM (#27561088)
> “Close browser tab” - immediately exits a Google Meet.

How would you know? Or, put another way: Why don’t you want to trust Google Meet, but apparently want to trust Google Chrome?

Re:Spectre mitigations murder userspace performance by wizzwizz4 on Saturday June 19, 2021 @01:16PM (#27562319)
Meet isn't much integrated into Chrome, so absent a Chrome bug, closing Meet stops running Meet code, so stops the meeting. “Closing” Zoom relies on Zoom detecting the closure and stopping the meeting.

It's not about spying from the software authors (having these softwares on your computer makes that impossible to defend against), but about knowing whether the people you were just talking to still have access to your camera and microphone feeds.

Re:Spectre mitigations murder userspace performance by teddyh on Sunday June 20, 2021 @11:03AM (#27570708)
> Meet isn't much integrated into Chrome

Again, how would you know that? There is no reasonable way you could possibly know that.

Re:Spectre mitigations murder userspace performance by thrower123 on Saturday June 19, 2021 @06:07PM (#27564929)
There has never been a webmeeting software that people didn't bitch about constantly. They all suck, because, fundamentally, what they are trying to accomplish sucks. Nobody wants to do audio/video meetings, we just suffer through them because we have to.
Re:Spectre mitigations murder userspace performance by lanstin on Sunday June 20, 2021 @01:20AM (#27567330)
Same as bug tracking software.
Re:Spectre mitigations murder userspace performance by ziml77 on Saturday June 19, 2021 @11:55AM (#27561576)
We had Zoom at our workplace for longer than most people knew what it was and I still have not installed it on my own PC. If I don't need to have myself on video, I run zoom on the work machine I'm remoted into and use my phone for the audio. If I need to use video, I use the application installed on my iPad since I trust that it's even more sandboxed than my Android device. I would rather not have the application installed on any of my personal devices, but that's the closest I can get when it comes to keeping Zoom away from my stuff.
Re:Spectre mitigations murder userspace performance by vladvasiliu on Sunday June 20, 2021 @01:23AM (#27567351)
Huh. I had this happen on Linux, too. I chalked it up to PulseAudio getting lost with my multiple sound cards and connecting / disconnecting peripherals.
Re:Spectre mitigations murder userspace performance by marcosdumay on Saturday June 19, 2021 @10:12AM (#27560594)
Just because it's rooted by 1 or 20 companies it's not reason to open it up to any random person on the internet.
Re:Spectre mitigations murder userspace performance by Abishek_Muthian on Sunday June 20, 2021 @03:14PM (#27573040)
> I love that this is a toggle like this, having control of my system is why I love Linux.

The need to keep telling this loud and clear for the manufacturers to hear is more needed now than ever since computers are becoming closed systems like smartphones and Manufacturers are claiming 'Customers not having to make hard decisions' to do so.

Re:Spectre mitigations murder userspace performance by IshKebab on Saturday June 19, 2021 @09:21AM (#27560232)
Kind of feels like apps should opt in to (or out of) mitigations individually. Obviously a web browser needs it, but does Clang? VSCode? Zoom? Probably not.
Re:Spectre mitigations murder userspace performance by dijit on Saturday June 19, 2021 @09:36AM (#27560351)
Three main things here:

1) we can’t trust people to categorise their own apps because the incentive for performance over security is a trade off we’ve all made time and time again.

2) efforts to address mandatory access controls have a coloured history here: selinux and apparmor both have very low adoption rates no matter your personal anecdotes.

3) These mitigation’s are so thorough that it would be more expensive on performance to even _check_ per application than it would be just to enable it everywhere.

Re:Spectre mitigations murder userspace performance by staticassertion on Saturday June 19, 2021 @03:15PM (#27563494)
I don't think that (3) is true.
Re:Spectre mitigations murder userspace performance by dijit on Saturday June 19, 2021 @04:24PM (#27564125)
How would you implement such a change?

Considering that you have:

A) some list of allowed applications/programs

B) a run of this check on every syscall

C) to be faster than a TLB flush

Re:Spectre mitigations murder userspace performance by staticassertion on Saturday June 19, 2021 @05:58PM (#27564863)
I don't know but I can't imagine a highly predictable branch being slower than a TLB flush.
Re:Spectre mitigations murder userspace performance by dijit on Saturday June 19, 2021 @06:15PM (#27564986)
Well consider the fact that checking a table of “ok” programs is a branch and a lookup in of itself.
Re:Spectre mitigations murder userspace performance by carl_dr on Saturday June 19, 2021 @07:13PM (#27565410)
It would be a branch, but surely it would be a flag on the process struct set when the process started, rather than a lookup each time.
Re:Spectre mitigations murder userspace performance by staticassertion on Saturday June 19, 2021 @06:24PM (#27565054)
Yeah that should be really fast, still. Programs could also opt to just tell the OS "hey don't check this system call from me", on each system call, avoiding any lookup.

The impact of TLB flushing, not just the cost of the flush, is really significant - it's going to take a lot of work to be as expensive within the syscall path.

Re:Spectre mitigations murder userspace performance by saati on Sunday June 20, 2021 @05:12AM (#27568384)
What would stop malware telling the os to not check it?
Re:Spectre mitigations murder userspace performance by binarybanana on Sunday June 20, 2021 @11:30AM (#27570985)
Nothing, but that only makes reading the malware's memory possible with these exploits. That malware won't be able to access memory of some other process, if that other process is using those flags itself.

Edit: For that to work that flag would have to work on the context switch level. So every time you switch away from a sensitive process, flush all buffers and whatever else, then switch. This also requires the kernel itself to enable mitigations as necessary when it touches encryption keys before switching back to user space.

Re:Spectre mitigations murder userspace performance by staticassertion on Sunday June 20, 2021 @05:10PM (#27573939)
That assumes that the malware can already have arbitrary control over system calls, at which point spectre isn't the issue.
Re:Spectre mitigations murder userspace performance by ikiris on Saturday June 19, 2021 @06:19PM (#27565025)
Just require everyone evil to set the evil bit, and everything would be much easier.
Re:Spectre mitigations murder userspace performance by edflsafoiewq on Saturday June 19, 2021 @09:51AM (#27560450)
Didn't browsers implement their own mitigations? Or were those only for some vulns?
Re:Spectre mitigations murder userspace performance by kzrdude on Saturday June 19, 2021 @09:56AM (#27560482)
Vscode is a browser
Re:Spectre mitigations murder userspace performance by Nullabillity on Saturday June 19, 2021 @10:17AM (#27560624)
As in "it runs JavaScript and renders HTML", yes. As in "it runs stuff in a security sandbox", no.
Re:Spectre mitigations murder userspace performance by squiggleblaz on Saturday June 19, 2021 @04:58PM (#27564412)
How about extensions? I would have thought these amount to a comparable security concern as web pages. Do they have adequate isolation?
Re:Spectre mitigations murder userspace performance by IshKebab on Saturday June 19, 2021 @05:54PM (#27564822)
No, extensions are fully trusted. They can do anything.
Re:Spectre mitigations murder userspace performance by BeeOnRope on Saturday June 19, 2021 @03:12PM (#27563457)
It's worth noting that mitigations=off doesn't even restore all the performance, compared to kernel versions before Spectre mitigations were added at all.

mitigations=off can only "patch out" some expensive instructions in the syscall path, or sometimes take a different path entirely, but it can't go back to the simple code before this was added in the first place. It also can't undo effects of compiler flags like -mindirect-branch which change the compiled code.

I haven't tested it recently, but when I looked at this more than a year ago, the numbers for a simple syscall (which doesn't do much work beyond the syscall mechanics itself) were something like 130ns, 250ns, 700ns for a "pre mitigation kernel", "new kernel with mitigations=off" and "new kernel with mitigations=on".

Some of the numbers have improved since then as better mitigations have been found, and/or improved CPU support for mitigations via microcode updates.

Re:Spectre mitigations murder userspace performance by nemetroid on Saturday June 19, 2021 @10:20AM (#27560644)
In your kernel command line, to be more precise. If you use Grub as your boot loader, this can be achieved by adding it to GRUB_CMDLINE_LINUX_DEFAULT.
Re:Spectre mitigations murder userspace performance by lumost on Saturday June 19, 2021 @11:03AM (#27561022)
has there been any research on what hardware changes would be necessary to reclaim performance? I've noticed extreme stutter events on desktop OSX for the last 2 years. Would be curious if its related.
Re:Spectre mitigations murder userspace performance by foobiekr on Saturday June 19, 2021 @01:43PM (#27562565)
You can turn macOS into Windows 3.1 reading a floppy by mounting an SMB share with a ton of small files and running an rclone sync between it and an external drive that has previously completed a sync. The stat() operations make the kernel go crazy. It’s the most appalling thing I’ve seen and has been broken like this since Catalina where it arrived as a massive performance regression.
Re:Spectre mitigations murder userspace performance by saagarjha on Saturday June 19, 2021 @02:32PM (#27563058)
You don’t even need networked storage for that, just attach a slow spiny disk and it’ll grind every app accessing the filesystem (even if those files are on a super fast internal SSD!) to a halt at random points.
Re:Spectre mitigations murder userspace performance by jodrellblank on Saturday June 19, 2021 @11:42AM (#27561458)
Seems like there’s a lot of people with stuttering macOS https://apple.stackexchange.com/questions/245429/cursor-free...

USB-C and USB 3.0 devices are one common cause, Bluetooth mouse interference by USB another, and external monitors after sleep/wake another.

Re:Spectre mitigations murder userspace performance by desert_boi on Saturday June 19, 2021 @01:39PM (#27562514)
Re:Spectre mitigations murder userspace performance by davidwf on Sunday June 20, 2021 @07:38PM (#27574797)
I know this is random but my Bluetooth mouse was driving me absolutely nuts, and this workaround (which involves a GUI instead of running some random script off the internet) was an absolute lifesaver: https://apple.stackexchange.com/questions/377853/macos-catal...
Re:Spectre mitigations murder userspace performance by blarg1 on Saturday June 19, 2021 @11:33PM (#27566860)
I wonder if I would be safe to use this if I removed all my sensitive passwords from the browser's password manager and/or harddrive?

Does anyone know what is at risk from these exploits?

Re:Spectre mitigations murder userspace performance by amelius on Saturday June 19, 2021 @10:39AM (#27560782)
What if your system is virtualized?
Re:Spectre mitigations murder userspace performance by rbanffy on Saturday June 19, 2021 @04:28PM (#27564163)
If you are pinned to a core, as non burstable instances should be, you are still pretty much vulnerable. Having noisy neighbours will pollute caches and make extracting data harder, but, eventually, everything will leak out.

I’ve been thinking what would happen if cores would be pinned to separate security domains - all kernel processes run on one set of cores and user processes on others. I imagine microkernel OSs could go that way much easier. If kernel and user space communicate only by messages and shared data, there’s no reason they’d need to even share an ISA.

Re:Spectre mitigations murder userspace performance by amelius on Saturday June 19, 2021 @05:25PM (#27564591)
Isn't the entire memory hierarchy (caches) part of the problem?
Re:Spectre mitigations murder userspace performance by rbanffy on Saturday June 19, 2021 @07:04PM (#27565345)
Yes. You’d need to split caches by security context too.
Re:Spectre mitigations murder userspace performance by lanstin on Sunday June 20, 2021 @01:28AM (#27567370)
Maybe each security context needs to be in its own cloud account and own network. Long ago it was an axiom that if you share a call stack in a process you trust each other. Perhaps the current truth is if you share hardware you trust each other.
Re:Spectre mitigations murder userspace performance by rbanffy on Sunday June 20, 2021 @03:36AM (#27567970)
That should work with multiple services, but not in a user/kernel split as we have today.