News for hackers. Stuff that matters.
Re:How to make Linux run fast again on Intel CPUs by gigatexal on Sunday October 13, 2019 @06:50AM (#21239700)
For a local workstation user not doing anything sensitive etc I don’t see why you wouldn’t do this. Be smart. Be clean online. And enjoy the full power of your box. A server though, especially one that will be targeted, should take the performance hit and get patched.
Re:How to make Linux run fast again on Intel CPUs by twic on Sunday October 13, 2019 @08:06AM (#21239943)
Isn't it the other way round? Most of these mitigations are to stop hostile code from stealing your secrets. A physical server doesn't run hostile code. A workstation with a web browser which supports JavaScript runs potentially hostile code all day, every day.
Re:How to make Linux run fast again on Intel CPUs by badsectoracula on Sunday October 13, 2019 @12:51PM (#21241350)
Some random server you have control over most likely doesn't run much hostile stuff. But nowadays a HUGE number of "servers" are really cloud-hosted VMs and on those every single thing is hostile from the cloud company's perspective.
Re:How to make Linux run fast again on Intel CPUs by twic on Sunday October 13, 2019 @06:19PM (#21243555)
True - i did write physical on purpose!
Re:How to make Linux run fast again on Intel CPUs by badsectoracula on Sunday October 13, 2019 @07:24PM (#21243982)
But the machines hosting those VMs are physical servers too and i'm certain than gigatexal was including them when he wrote that comment.
Re:How to make Linux run fast again on Intel CPUs by vbezhenar on Sunday October 13, 2019 @09:13AM (#21240181)
Depends on your browsing pattern. I don't visit random websites often. And even if I do, I don't stick there for long (those exploits need a lot of time to extract useful data). And sites that I visit are trusted (like HN) so they are very unlikely to run exploits.
Re:How to make Linux run fast again on Intel CPUs by dijit on Sunday October 13, 2019 @10:56AM (#21240676)
Sorry, I consider this to be a very poor defence.

You might trust the site you go to; but that's not all the javascript that gets loaded, there are includes that a lot of web developers will use for convenience, there are ad networks and there are bugs that could allow some unintended javascript to get loaded (like with bit-squatting[0]).

It's not a given that you're safe running javascript if you only visit sites you trust. Even if you are INCREDIBLY sanitary, which I would argue is unrealistic (just check your history and you'll see that you probably visit many sites off of a google search).

[0]: http://www.youtube.com/watch?v=lZ8s1JwtNas / http://dinaburg.org/bitsquatting.html

Re:How to make Linux run fast again on Intel CPUs by arghwhat on Sunday October 13, 2019 @10:56AM (#21240671)
You run arbitrary code from a lot more sites than you just those you visit, and I doubt you're combing through it.

Third-party JS, tracking, unblocked advertisements, possibly malicious on-site code, etc.

If you're allowing any site to run JavaScript, you're running entirely arbitrary and uncontrolled code on your machine, and thus is in dire need of the mitigations.

It's a different situation for a server designed to not run remote code, which makes it practically impossible to exploit speculative execution vulnerabilities.

Re:How to make Linux run fast again on Intel CPUs by melvinroest on Sunday October 13, 2019 @08:48AM (#21240089)
I didn’t read the article, but I would advice against the idea that I can read a good chunk of your memory with Meltdown and Spectre via a JS ad.

I am fuzzy on the details, but I do think it’s possible.

Meltdown is out of order execution detectable from caches. They made it difficult to get a good timing source in JS, so there’s that.

Spectre is training the branch predictor unit to execute code that you want in caches. You would need a good timing source again.

So there is some security in place. I think a creative hacker will get around it though.

Re:How to make Linux run fast again on Intel CPUs by roblabla on Sunday October 13, 2019 @09:12AM (#21240178)
> They made it difficult to get a good timing source in JS, so there’s that.

No, they didn't. A while loop with a counter is a good timing source, and you can't really prevent that without severely crippling everything's performance. Want a good timing source in your browser? Just follow those three easy steps:

1. Start a while loop in a webworker

2. In that while loop, incrementing a counter in a SharedArrayBuffer

3. In the main javascript, read that number from the SharedArrayBuffer.

Bam, a decent clock.

Re:How to make Linux run fast again on Intel CPUs by Filligree on Sunday October 13, 2019 @09:25AM (#21240233)
Didn't they disable SharedArraybuffer for that reason?
Re:How to make Linux run fast again on Intel CPUs by striking on Sunday October 13, 2019 @09:56AM (#21240358)
Yes and no?

> Note that SharedArrayBuffer was disabled by default in all major browsers on 5 January, 2018 in response to Spectre. Chrome [re-enabled it in v67](https://bugs.chromium.org/p/chromium/issues/detail?id=821270) on platforms where its site-isolation feature is enabled to protect against Spectre-style vulnerabilities.

from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:How to make Linux run fast again on Intel CPUs by majewsky on Sunday October 13, 2019 @01:41PM (#21241626)
> They made it difficult to get a good timing source in JS

It's true that Date.now() has a reduced precision, e.g. Firefox with privacy.resistFingerprinting=true rounds to the nearest 100 ms increment. But you still get high-precision timestamps from window.requestAnimationFrame(), so you get a precision of at least 16 ms, assuming 60 Hz refresh rate, or even higher on gaming rigs with 144 Hz monitors.

Re:How to make Linux run fast again on Intel CPUs by progval on Sunday October 13, 2019 @05:41PM (#21243275)
I find it amusing that having an expansive monitor could be used to leak data more efficiently from CPU caches and RAM
Re:How to make Linux run fast again on Intel CPUs by vrodic on Sunday October 13, 2019 @07:13AM (#21239776)
If you don't run untrusted code you should be fine on bare metal servers too.
Re:How to make Linux run fast again on Intel CPUs by equalunique on Sunday October 13, 2019 @08:05AM (#21239942)
These days I find it hard to trust the many dependencies installed by language-level package managers. OS-level system package managers tend to do better, but they too have also had incidents.
Re:How to make Linux run fast again on Intel CPUs by vbezhenar on Sunday October 13, 2019 @09:17AM (#21240200)
If you have compromised dependency, spectre is the least thing you should worry about IMO.
Re:How to make Linux run fast again on Intel CPUs by geofft on Sunday October 13, 2019 @08:29AM (#21240027)
Then why do you have them installed? Surely you're not using those dependencies you don't trust as actual dependencies of your server application, are you?
Re:How to make Linux run fast again on Intel CPUs by a1369209993 on Sunday October 13, 2019 @10:22AM (#21240495)
Fraudulent transitive dependencies.

My application depends on libuseful version 1 or later. libuseful_1 depends on libtiny, but libuseful_2 depends on libbigballofmud, which consists of libtiny and 800 other libraries that have been merged together for political reasons. libuseless, which was also merged into libbigballofmud, depends on rce-daemon, or nvidia-brick-the-install, or systemd, and I've never heard of rce-daemon before, so it's not blacklisted and installs with no error message. As the other two options suggest, this is not hypothetical.

Re:How to make Linux run fast again on Intel CPUs by majewsky on Sunday October 13, 2019 @01:52PM (#21241702)
> nvidia-brick-the-install

Is this in reference to when the nvidia driver had

  sudo rm -rf /usr /lib/something/something
in its install script?
Re:How to make Linux run fast again on Intel CPUs by a1369209993 on Sunday October 13, 2019 @02:49PM (#21242089)
... I'm not actually surprised.

But no; my desktop machine has a video card that doesn't display anything (black screen) if booted with the non-legacy nvidia drivers. I had to boot off a old 32-bit install to get rid of them and then wrestle apt/dpkg back into a sane state.

Re:How to make Linux run fast again on Intel CPUs by majewsky on Sunday October 13, 2019 @06:20PM (#21243561)
Ah right, yes, NVidia frequently drops support for old models in their newer driver releases. I'm so happy I have left that world behind, with both my PC and notebook using AMD GPUs.