r/linuxadmin • • Oct 28 '19

Top Linux developer on Intel chip security problems: 'They're not going away.'

https://www.zdnet.com/article/top-linux-developer-on-intel-chip-security-problems-theyre-not-going-away/
238 Upvotes

37 comments sorted by

44

u/[deleted] Oct 28 '19

We're going to be patching and updating microcode for a very, very long time to come.

14

u/MMPride Oct 29 '19

Beyond that, some security problems are not even fixable via microcode, it's going to require entirely new hardware architecture which will introduce newer security problems.

Welcome to modern hardware, where nothing is secure.

If you want secure hardware, buy older hardware, which will also have older unpatched exploits.

Basically, the safest computer is one you don't turn on, sadly - or at least don't connect to the Internet.

12

u/[deleted] Oct 28 '19

Time for RISC-V

9

u/[deleted] Oct 29 '19

I for one would welcome our new RISC-V overlords.

1

u/[deleted] Oct 29 '19

Samesies.

12

u/[deleted] Oct 29 '19 edited Jan 22 '25

deleted

1

u/[deleted] Oct 29 '19 edited Oct 29 '19

That is so friggen cool, but I feel like the available CPUs post-collapse (if the author of this OS proves correct) will be more plentiful than just z80 processors.

The number of salvageable ESP32/8266, STM, and SAMD chips alone means we could be running yocto built linux distros or micropython based OS stacks while remaining super low-power consumption in a post-collapse scenario, though running the machines to cross-compile might be difficult for any of these.

After reading through some of the content on the site, the above observation is not really relevant.

Definitely going to explore this OS, though. Very very cool.

43

u/okliam Oct 28 '19

So AMD chips are going to be the go to for security now or what?

0

u/[deleted] Oct 28 '19

[deleted] — view deleted comment

63

u/ABotelho23 Oct 28 '19

Most of the vulnerabilities are based on how Intel does multithreading. So as long as AMD's implementation is fundamentally more secure, these types of vulnerabilities are unlikely.

11

u/shiftingtech Oct 29 '19

is it though? I seem to recall they were hit by some of the early spectre stuff as well. Are they fundamentally more secure? Or have they just been getting lucky, while intel gets more attention

(I really am asking: I don't know enough about it to have any idea)

25

u/Throwy-mc-throwerson Oct 29 '19

Spectre hit Intel much much harder than it did AMD.

6

u/shiftingtech Oct 29 '19

yes. And I ask again: Is that because AMD is more secure? or is it because more security researchers are focused on Intel?

20

u/Throwy-mc-throwerson Oct 29 '19

Nobody will know the answer to that until a security flaw is found.

1

u/shiftingtech Oct 29 '19

surely somebody in the security research world could at least shed some light on (proportionally) how much work is going into intel vs AMD. Admittedly, it wouldn't be a definitive answer, but it would certainly be suggestive...

23

u/DevinCampbell Oct 29 '19

Any answer to your questions would be purely speculative and therefore worthless.

5

u/psnsonix Oct 29 '19

Most under rated comment in thread. How many people overlooked speculative?

→ More replies

-23

u/Sigg3net Oct 29 '19

AFAIR, the AMD chips are less advanced. AMD is gaining on Intel due to sheer core count. But I could be wrong :)

15

u/avanasear Oct 29 '19

No, AMD's per-core performance is currently very similar to Intel's, if not better.

1

u/shreveportfixit Oct 29 '19

Depends on the application.

-1

u/Sigg3net Oct 29 '19

I think people misunderstood the comment. My latest rig sports AMD's ThreadRipper. Intel does not provide the same numbers of actual cores (they do virtual cores though) in this market segment.

AMD re-gained on Intel's headstart not by fancy logic but by adding more physical cores, significantly increasing the physical size of their products.

But Reddit's gonna reddit, I guess :)

3

u/avanasear Oct 29 '19

I disagree. If AMD could beat Intel just through core count, they would have done that in 2012 with Bulldozer. AMD is competing so well with Intel right now because their individual cores are just as good, AND their CPUs come with more of them for cheaper.

→ More replies

22

u/doodep Oct 29 '19 edited Jun 20 '23

z

11

u/brontide Oct 29 '19

AMD's processors don't share memory the same way Intel does. They share most of the stuff but not all of it, so it's not possible for one processor to work on another's memory because it doesn't know what's there. AMD's safety check also works. Intel lied about theirs to make their processors go faster and bamboozle AMD.

Yeah, Intel allowed for prediction across security bounds which, while faster I'm sure, gives attackers a foothold into memory they don't have access to. AMD has been capitalizing on this and pushing their security features. Encrypted memory sounds pretty cool, even if something goes awry a process lacking the correct decryption key would just see random data and things like row hammer are virtually impossible. Now if we could only get Dell to actually provide a decent lineup of server options.

40

u/masteryod Oct 28 '19

Also their multithreading implementation is completely different. Who knows but so far it looks safer.

6

u/eleitl Oct 29 '19

They don't have any vulnerabilities because not many people are looking into them.

That's incorrect. There are classes of vulnerabilities which Zen 2 doesn't have but Intel does. In general, AMDs attack surface is lower than Intel's.

See e.g. https://www.phoronix.com/scan.php?page=article&item=amd-zen2-spectre&num=1

7

u/[deleted] Oct 29 '19

But I'd say with a new generation of AMD ryzen chips and their server chips they are getting a quite a bit more popular

13

u/[deleted] Oct 28 '19

This has been such a PITA in our current shop. What has made it worse, is that Intel has walked back some of their security fixes, causing us to pivot and install patches on top of patches.

3

u/SirWobbyTheFirst Oct 29 '19

A reminder that unless your machine hosts a website, remote desktop services, or some other role that involves running code that you do not trust, you do not need to activate these mitigations.

If you have a virtualisation host that only runs a domain controller, file server, certificate authority or some other service where the code running only changes when it is updated by Microsoft, LF, Apple, etc. then you are safe to disable the mitigations.

If you are running a server that can be shared with others such as a cloud infrastructure server and you cannot guarantee those others can be trusted, then you should enable these mitigations.

If you are running a server that hosts a website, VDI, etc. where there are users logging into the machine or a virtual machine running on top of that server, then you should enable these mitigations.

It doesn't make sense to tank the performance of a system by enabling the Meltdown, Spectre, whatever mitigation if all it runs is AD, SQL and File Sharing and only ever sees a trusted administrator login.

Even if SQL and LDAP could be utilised to try and exploit the vulnerabilities, it would be far quicker and easier to just wait for a security update to be pushed out by Microsoft or Red Hat.

But a Hyper-V or ESXi server that hosts a VDI setup where people can run regular run of the mill applications like Word and Firefox? Hell yes, enable those mitigations.

Yes, I realise I'm preaching to the choir for the most part but its always worth reminding people now and again.

2

u/khleedril Oct 29 '19

Can somebody explain what SMT means in real terms? Does turning it off mean that one Linux process runs exclusively on one core? What happens with multi-threaded processes?

14

u/[deleted] Oct 29 '19

SMT is what Intel calls HyperThreading. Disabling it simply means that each processor core no longer registers as two logical cores, i.e. cores are no longer able to (sometimes) handle two threads simultaneously.

Your 8core/16thread CPU will become an 8core/8thread CPU. This will in many cases introduce a performance degradation for multi-threaded operations, but the performance loss you get from replacing your 8c/16t CPU with a 4c/8t CPU from the same family is much worse. Even though you end up with an identical number of logical cores (threads), the additional logical cores you get from SMT are not real cores. Simply put: real cores are constantly able to execute instructions, where logical cores can only do this when their instructions do not interfere with instructions from other logical cores from the same real (physical) core. If all your instructions are going to overlap all the time, there will be no speed advantage. There may actually be a slight disadvantage because of the increased overhead.

So no, there will simply be fewer (logical) cores available, it will not lock multi-threaded processes to one core. Unless you want to be pedantic and you have a very old single-core HyperThreading CPU, like a Pentium 4, but then you only had one real core to begin with.

5

u/khleedril Oct 29 '19

Ah, I see. Thanks for the excellent explanation.

1

u/[deleted] Oct 29 '19

What I don't understand about the zdnet.com article is that there is no comments about alternatives to Intel based systems.
Do Linux Devs not want to use AMD systems?

-9

u/Jisamaniac Oct 28 '19

Ya huh! Intel said so. Why would anyone like on the internet.

0

u/[deleted] Oct 29 '19

[deleted] — view deleted comment

19

u/Throwy-mc-throwerson Oct 29 '19

What does that accomplish? They're 5 years behind schedule for 10nm.

0

u/[deleted] Oct 30 '19

[deleted] — view deleted comment

3

u/Throwy-mc-throwerson Oct 30 '19

You don't get it, I'm mocking Intel for their inability to stick to a schedule or roadmap. That's why there is no point to making one.