Slashdot Mirror


'Kernel Memory Leaking' Intel Processor Design Flaw Forces Linux, Windows Redesign (theregister.co.uk)

According to The Register, "A fundamental design flaw in Intel's processor chips has forced a significant redesign of the Linux and Windows kernels to defang the chip-level security bug." From the report: Programmers are scrambling to overhaul the open-source Linux kernel's virtual memory system. Meanwhile, Microsoft is expected to publicly introduce the necessary changes to its Windows operating system in this month's Patch Tuesday: these changes were seeded to beta testers running fast-ring Windows Insider builds in November and December. Crucially, these updates to both Linux and Windows will incur a performance hit on Intel products. The effects are still being benchmarked, however we're looking at a ballpark figure of five to 30 per cent slow down, depending on the task and the processor model. More recent Intel chips have features -- specifically, PCID -- to reduce the performance hit. Similar operating systems, such as Apple's 64-bit macOS, will also need to be updated -- the flaw is in the Intel x86 hardware, and it appears a microcode update can't address it. It has to be fixed in software at the OS level, or buy a new processor without the design blunder. Details of the vulnerability within Intel's silicon are under wraps: an embargo on the specifics is due to lift early this month, perhaps in time for Microsoft's Patch Tuesday next week. Indeed, patches for the Linux kernel are available for all to see but comments in the source code have been redacted to obfuscate the issue. The report goes on to share some details of the flaw that have surfaced. "It is understood the bug is present in modern Intel processors produced in the past decade," reports The Register. "It allows normal user programs -- from database applications to JavaScript in web browsers -- to discern to some extent the contents of protected kernel memory. The fix is to separate the kernel's memory completely from user processes using what's called Kernel Page Table Isolation, or KPTI."

254 of 416 comments (clear)

  1. Don't know if serious. by Anonymous Coward · · Score: 3, Funny

    At one point, Forcefully Unmap Complete Kernel With Interrupt Trampolines, aka FUCKWIT, was mulled by the Linux kernel team, giving you an idea of how annoying this has been for the developers.

    1. Re:Don't know if serious. by Hal_Porter · · Score: 5, Funny

      https://www.mail-archive.com/l...

      2) Namespace

            Several people including Linus requested to change the KAISER name.

            We came up with a list of technically correct acronyms:

                User Address Space Separation, prefix uass_

                Forcefully Unmap Complete Kernel With Interrupt Trampolines, prefix fuckwit_

            but we are politically correct people so we settled for

              Kernel Page Table Isolation, prefix kpti_

            Linus, your call :)

      LOL!

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    2. Re:Don't know if serious. by Pseudonym · · Score: 2

      At one point, Forcefully Unmap Complete Kernel With Interrupt Trampolines, aka FUCKWIT, was mulled by the Linux kernel team, giving you an idea of how annoying this has been for the developers.

      Someone on LKML using the word "fuckwit" is what Linux developers call "a normal Wednesday".

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
    3. Re:Don't know if serious. by KingBenny · · Score: 1

      I just read "we are not liable for selling yo stupid ass faulty hardware" so we come out with the bug b/c sales are slacking ... on howtogeek the article was all like "but these numbers are linux only so we dont know if it will affect windows at all" thats the OS that runs at 100% of one of my cores just sitting on the desktop while linux would be the os that runs three or four apps over four to six desktops on a celeron i can only conclude this is a "we got you by the balls maneuver" by intel

      --
      Free speech was meant to be free for all... how can anyone grow up in a nanny state ?
  2. FOOF by OverlordQ · · Score: 5, Insightful

    About par for Intel's course. Make it fast at the expense of horrible bugs.

    --
    Your hair look like poop, Bob! - Wanker.
    1. Re:FOOF by Anonymous Coward · · Score: 1

      FOOF

      Was that just onomatopoeia or were you making a reference to Satan's kimchi (a.k.a. dioxygen difluoride)?

    2. Re:FOOF by sjames · · Score: 4, Informative

      Actually, it's a reference to a hex value that could trigger a nasty Pentium bug.

    3. Re:FOOF by Anonymous Coward · · Score: 5, Informative
    4. Re:FOOF by sunking2 · · Score: 1

      Seriously, hardware design is so much more complicated than software its not even funny.

    5. Re:FOOF by TheRaven64 · · Score: 4, Interesting

      Having done a fair amount of both, I would disagree. The things that make software complex are dynamic: you can dynamically create threads and you can dynamically allocate memory, which makes the number of possible interactions almost impossible to statically reason about. In a CPU, all of these things are bounded and (very) finite, to the extent that it is actually possible to apply formal methods to the design (Centaur in collaboration with UT Austin do some amazing work in this area).

      The difference is that a bug in software can usually[1] be fixed after you ship, whereas a bug in silicon usually can't (though if you've got a lot of microcode you can sometimes work around it). ARM has a nice chart of the cost of fixing a bug at each stage in development, which becomes more and more terrifying, whereas for software that cost is roughly flat, so you can get away with spending a lot less effort on correctness.

      [1] Though not always easily. A colleague of mine released his first CVE a couple of years ago for a small library he wrote a couple of decades back. It turns out that most deployments of this library are in fax machines and printers, with no software update mechanism.

      --
      I am TheRaven on Soylent News
    6. Re:FOOF by Shinobi · · Score: 1

      Hardware design of a contemporary CPU is much more difficult than software design, assuming equal competence levels of both crews(However, SOOO many software developers are incompetent AND lazy, so you end up with the huge messes you mention....)

      As for Centaur, they've verified small subsets, based on the Verilog, and not the actual finished hardware with varying frequencies or voltage levels etc etc.

    7. Re: FOOF by Zero__Kelvin · · Score: 1

      Having done both I can assure you that is not true. Just as digital is a special case of analog, so to is software a special case of hardware. They are symbiotic, and a simple "hello world" circuit (led turns on e.g.) is no more complex than the software equivalent. Complexity is in the design, not the domain. The kernel is as complex as the CPU. In fact it just got more complex because of a flaw in the CPU.

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    8. Re:FOOF by aliquis · · Score: 1

      Make you next processor a VIA one.
      https://hexus.net/tech/news/cp...

    9. Re:FOOF by Tablizer · · Score: 1

      SOOO many software developers are incompetent AND lazy

      Because competency is not sufficiently rewarded. If their boss is a PHB, they won't know good code from horse fumes, and reward the horse fumes instead.

    10. Re:FOOF by morethanapapercert · · Score: 1

      I think what you're talking about is Boehm's curve. Got a link to that ARM chart you mentioned?

      --
      I need a wheelchair van for my son. Help me get the word out. https://www.gofundme.com/wheelchair-van-for-jj
  3. In all fairness... by Anonymous Coward · · Score: 3, Insightful

    Intel guys are doing the bulk of the work for the linux kernel changes, and I'm sure to be fair they'll equally cripple all processors with the changes not just their own.

    1. Re:In all fairness... by scumdamn · · Score: 5, Informative

      Looks like you missed this commit from Tom Lendacky at AMD.

    2. Re:In all fairness... by nemequ · · Score: 4, Informative
      What are you talking about? That patch says AMD CPU's aren't vulnerable:

      AMD processors are not subject to the types of attacks that the kernel page table isolation feature protects against. The AMD microarchitecture does not allow memory references, including speculative references, that access higher privileged data when running in a lesser privileged mode when that access would result in a page fault.

      The (trivial) patch essential disables the work-around on AMD CPUs. I'm not going to comment on how fair GP's criticism of Intel is in general, but that link definitely isn't evidence in Intel's favor

    3. Re:In all fairness... by sjames · · Score: 5, Insightful

      That bolster's AC's point. It looks like the Intel guys were going to cripple performance for everyone until the patch from AMD removed the unnecessary crippling from AMD processors.

    4. Re:In all fairness... by Anonymous Coward · · Score: 1

      Intel fucking sucks. What a bunch of wankers.

    5. Re:In all fairness... by ColaMan · · Score: 3, Funny

      Well, I'm guessing the approach was more along the lines of "an abundance of caution with the X86 ISA" as opposed to deliberate malice towards AMD.

      Whilst no doubt there's some Intel guys with a very good working knowledge of AMD CPU internals, you'd really want to get direct confirmation from the actual AMD hardware guys that their hardware is immune to this.

      --

      You are in a twisty maze of processor lines, all alike.
      There is a lot of hype here.
    6. Re:In all fairness... by Demena · · Score: 1

      Thus makes apple's recent fiasco trivia in comparison. I just got a new machine. How do I get it changed for one that does not have the bug?

    7. Re:In all fairness... by sexconker · · Score: 5, Insightful

      Well, I'm guessing the approach was more along the lines of "an abundance of caution with the X86 ISA" as opposed to deliberate malice towards AMD.

      Hi. Have you met Intel?

    8. Re: In all fairness... by Anonymous Coward · · Score: 1

      Lol. No. Intel tried to patch for amd too when they shouldnt. You are right how it is up to amd to patch their own cpus. Intel shouldnt be doing patches which affect amd cpus but we can see why they did. They want their slowdown patch to slowdown amd cpus too. Get with the program

    9. Re:In all fairness... by scumdamn · · Score: 5, Informative

      I'm saying that Intel tried to cripple all processors but the dude from AMD told him their products weren't vulnerable and didn't need to be slowed down.

    10. Re: In all fairness... by viperidaenz · · Score: 3, Insightful

      They didn't explicitly create a patch for AMD CPU's. They made changes that patch ALL x86 CPU's, regardless of vendor.
      AMD submitted a vendor check to disable the patch for AMD CPU's

    11. Re: In all fairness... by Anonymous Coward · · Score: 3, Informative

      When it comes to intel C compiler, optimizations that would work on AMD chips are left out when compiling for that CPU, because "we wouldn't presume to know what would work and what wouldn't on a competitor's chip!"

      Yet in this case, they presumed to know what was best for a competitor's chip.

      Funny how the error always falls to Intel's favor. One might think it wasn't an error at all.

    12. Re: In all fairness... by TheRaven64 · · Score: 3, Interesting

      When it comes to the C compiler, Intel puts some things behind microarchitecture tests because in the past they didn't and people complained. They enabled fast paths after doing feature checks and it turned out that a bunch of x86 chips implemented certain instructions, but in microcoded slow paths and the optimised icc version that used them ran a lot slower than the version that didn't. As a result, they only enable certain instructions on chips that they have tested and which run faster when those instructions are used. And then people complained that they weren't doing optimisations on their competitors chips...

      In this case, there is a vulnerability affecting a bunch of x86 processors, they issued a patch for x86 processors. This is exactly the right thing to do for a security issue: blanket enable and then whitelist safe CPUs.

      --
      I am TheRaven on Soylent News
    13. Re:In all fairness... by ColaMan · · Score: 1

      I was going put in a Trump-esque 'Intel? Great company. Super-great, best company, great people too' kind of spiel here.

      But then I was worried that someone might take me seriously.

      --

      You are in a twisty maze of processor lines, all alike.
      There is a lot of hype here.
    14. Re:In all fairness... by Anne+Thwacks · · Score: 1
      It looks like the Intel guys were going to cripple performance for everyone until the patch from AMD removed the unnecessary crippling from AMD processors.

      This sounds like racketeering to me. Where is RICO when you need him?

      --
      Sent from my ASR33 using ASCII
    15. Re:In all fairness... by nnull · · Score: 3, Interesting

      This, I don't completely understand the reasoning for crippling all processors, including non-intel. It seems Intel is trying to use its political clout to reduce everyone's performance with a bunch of fear and scare tactics which just tops the charts for 2017 and 2018, just so they don't lose their edge. This is just an utter catastrophe for Intel and they're trying to drag the rest of us with them.

    16. Re: In all fairness... by Zocalo · · Score: 2

      This. Without being privy to the closed discussions about how to engineer the patch (which AMD was clearly a part of) we have no way of knowing whether this wasn't the agreed approach. It's not like AMD would really want Intel making the decision over whether or not each of their CPU SKUs were vulnerable, and I doubt Intel would want to make that call either - they've got more pressing matters than trying to exploit AMD CPUs to deal with and they'd have to assume AMD would eat their lunch in court if they got one wrong. Time will tell though, I'm expecting some more details to come out on this aspect of it once the embargo lifts, and I doubt AMD will be shy about it if they think Intel tried to stiff them when they do.

      --
      UNIX? They're not even circumcised! Savages!
    17. Re:In all fairness... by zifn4b · · Score: 2

      Hanlon's Razor: Never attribute to malice that which can be adequately explained by stupidity

      --
      We'll make great pets
    18. Re: In all fairness... by Anonymous Coward · · Score: 1

      The error of deliberately crippling a competitor's performance due to your own blunder when you're a hundred billion dollar company cannot be adequately explained by stupidity.

    19. Re: In all fairness... by zifn4b · · Score: 1

      The error of deliberately crippling a competitor's performance due to your own blunder when you're a hundred billion dollar company cannot be adequately explained by stupidity.

      It's a double-edged sword, if you do nothing to purposefully alter the behavior of the competitor, you're accused of doing something wrong and out of line. If you deliberately alter the behavior for your competitor, even if you had good intentions, you're accused of doing something wrong and out of line.

      Besides, that's what pull requests and code reviews are for. You throw out your best guess and then the code review participants make suggestions based on their bigger picture view of the system. This is how any large scale system with multiple customers that use the system differently works. You're obviously not a developer. Managing all that is tricky business.

      --
      We'll make great pets
    20. Re: In all fairness... by Carewolf · · Score: 1

      When it comes to the C compiler, Intel puts some things behind microarchitecture tests because in the past they didn't and people complained. They enabled fast paths after doing feature checks and it turned out that a bunch of x86 chips implemented certain instructions, but in microcoded slow paths and the optimised icc version that used them ran a lot slower than the version that didn't. As a result, they only enable certain instructions on chips that they have tested and which run faster when those instructions are used. And then people complained that they weren't doing optimisations on their competitors chips...

      No.... This was no how it happened. They had a switch that was compile time and worked fine for AMD, they improved it to be runtime and made it specifically only detect Intel chips for no good reason, when tools were released that fixed their auto-crippling and arms-race started where Intel increasing obfuscated the auto-crippling to make it harder to remove. This back and forth arm-race laster for over a year with a new release every two 2 months, where Intel reinstated a new way of crippling performance on AMD chips when the old one was circumvented. In the end those making the hacks just gave up on the Intel compiler and to this day it still does it.

    21. Re:In all fairness... by dstyle5 · · Score: 1

      A decision like this isn't coming down to what employee X feels is right or wrong: "Yeah, just do what you feel like doing Bob, whatever." This is huge decision which was most likely made by management at Intel. Or by Raja Koduri.. ;)

    22. Re:In all fairness... by bat21 · · Score: 1

      Whether or not Intel would deliberately do something like that (which would be very foolish), individual developers have a general sense of camaraderie. They're not typically going to deliberately screw over people they view as being in friendly competition.

    23. Re: In all fairness... by Agripa · · Score: 1

      When it comes to intel C compiler, optimizations that would work on AMD chips are left out when compiling for that CPU, because "we wouldn't presume to know what would work and what wouldn't on a competitor's chip!"

      So they test for it based on the vendor ID instead of the feature flags doing exactly what they said they are not.

    24. Re: In all fairness... by steveha · · Score: 1

      Intel puts some things behind microarchitecture tests because in the past they didn't and people complained. They enabled fast paths after doing feature checks and it turned out that a bunch of x86 chips implemented certain instructions, but in microcoded slow paths

      I don't have a link, but I remember years ago someone posted example code generated by the Intel C Compiler for copying bytes. If the CPU ID was Intel, the code compiled the most efficient byte copy possible (IIRC it used SIMD); for non-Intel it was an actual loop that copied one byte per loop iteration, didn't even use REP MOVESB.

      I wasn't aware that there was any non-sinister explanation for checking CPU ID; thanks for making me aware. But I continue to think that the Intel C Compiler is actually malicious toward Intel's competition.

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    25. Re:In all fairness... by Demena · · Score: 1

      Possibly. But will they be willing to replace it then? I think not, I think they are soldered in. Be cheaper to replace the machine and I doubt they will do that. Regretfully the consumer laws in this country will probably require them to do so. They are in a bit of shit here, as is every other manufacturer. Many will be able to cut and run but not Apple. At least IOS devices use their CPUs not Intel.

    26. Re:In all fairness... by sjames · · Score: 1

      It might be hard to prove in court, but given Intel's past behavior w/ the Intel compiler, it likely was intentional dirty pool.

    27. Re: In all fairness... by TheRaven64 · · Score: 1

      Not using REP MOVESB is actually a good thing even on some Intel microarchitectures. The cost of that relative to a loop is very variable. Centaur x86 chips will recognise the copy-a-byte-at-a-time loop in microcode and replace it entirely with their own faster memcpy microcode (unless you have breakpoint or watchpoint registers set). The SIMD versions are also not always best. They are on Intel, though the exact set of SSE / AVX instructions that runs fastest varies between microarchitectures (the AVX version is slower on some, even when they support SIMD). A few non-Intel chips have advertised SSE instructions, but cracked them down to a sequence of scalar ops that end up being slower than the equivalent scalar code (early Intel Atoms also cracked 128-bit SSE operations into pairs of 64-bit micro-ops, though these were generally still faster than the scalar equivalents).

      --
      I am TheRaven on Soylent News
    28. Re: In all fairness... by TheRaven64 · · Score: 1

      Do you still have that opinion after the more recent disclosure from Google's Project Zero that at least some AMD chips are vulnerable? What would your opinion have been if Intel had only submitted patches enabling the fix for Intel's chips and it had turned out that at least some AMD chips are vulnerable?

      Having looked at the attack now that it's public, I'd be quite surprised if most superscalar chips weren't vulnerable.

      --
      I am TheRaven on Soylent News
  4. How could this be abused? by jader3rd · · Score: 4, Interesting

    Sorry for the lack of imagination, but if the user space process can only read kernel memory, and can't write to it, how could one make use of this?

    1. Re:How could this be abused? by OverlordQ · · Score: 5, Insightful

      You're running in EC2 on shared hardware. Your instance can read the memory of other instances running on the same physical hardware.

      --
      Your hair look like poop, Bob! - Wanker.
    2. Re:How could this be abused? by pereric · · Score: 5, Interesting

      Cryptographic keys, information on other processes (making other attacks feasible), perhaps random number generator seeds and status, for example ...
      And the principle in general that there could be information the process is not supposed to reach.

    3. Re:How could this be abused? by EndlessNameless · · Score: 5, Interesting

      Private keys for system-level crypto and user credentials are stored in kernel space. You want everyone on the system to be reading those? If you can read a private key or a Kerberos token, you can become that daemon/system/user.

      This bug essentially destroys local security and severely compromises network security, subject to any limitations on where/when data can be read.

      I'm not a microarchitecture guru who can dig through the details and figure out the limitations of potential attacks. Perhaps only a small portion of kernel memory can be exposed via this bug. I don't really know. The naive, simple scenario where all kernel memory is exposed, though---that is pretty damned bad. Infosec doomsday bad.

      --

      ---
      According to the latest ruleset, this post should be modded as Vorpal Flamebait +5.
    4. Re:How could this be abused? by Anonymous Coward · · Score: 2, Interesting

      You're running in EC2 on shared hardware. Your instance can read the memory of other instances running on the same physical hardware.

      Yep, "the cloud" bites again.

      When are you supposedly "technically sophisticated" people going to learn that security inherently means running on your own hardware?

      When you cheap out, you lose. Performance, security, integrity, reliability - everything.

      VM specifically: For most local-system applications, VM is a long in the tooth, unneeded hangover that drops performance. I have 64 GB of RAM. I killed VM long ago (under OS X, it's fairly easy to do) and gained substantially in performance. I run a lot of big, hungry apps, too. Zero problems, faster. It's not the 1990's any longer. Memory is crazy cheap these days compared to your time and security and energy and wallet thickness; you should have lots and lots. If you don't, then there's your error.

      If you really need a cloud (well, you probably don't, but there are exceptions) then you should build your own cloud. The software's out there. Sharing hardware is not a good idea.

      If you won't, or can't, run your own system(s) then you're walking in dogshit. Some of it will eventually stick to your shoes. While the cloud people will be LOL'ing on your dime, suckers.

    5. Re:How could this be abused? by Anonymous Coward · · Score: 1

      Huh. I think you missed the point of VM's. I have a x10dal-i with 2x 2600's and 128GB ram running around 50 VM's. Hardly ever does a single VM need the full resources. It saves money on hardware (a lot) and power (a lot) and makes managing those servers trivial. I can spin up a test server in 'no time' and make it live just as fast, spin down a old one, blow away the test server and not effect the live services. Etc Etc Etc. Sadly market dweebs took that ability and sold it as "the cloud" (which just means other peoples servers) and the penny pinchers bought it hook line and sinker.

    6. Re:How could this be abused? by segedunum · · Score: 1

      Now you have a performance hit to factor into that analysis.

    7. Re:How could this be abused? by LordKronos · · Score: 3, Informative

      He confused me at first with the mention of VMs as, like you, I initially thought he was talking about Virtual Machines (especially given the context of cloud computing and hardware sharing). But he was actually talking about Virtual Memory. Not sure how he got from one topic to the other, but it's pretty clear:

        "Memory is crazy cheap these days compared to your time and security and energy and wallet thickness; you should have lots and lots. If you don't, then there's your error."

    8. Re:How could this be abused? by Mad+Merlin · · Score: 3, Insightful

      When you cheap out, you lose.

      You're assuming that the cloud works out cheaper. Sometimes it does, but for many cases it does not (and it's not even close).

    9. Re:How could this be abused? by chuckugly · · Score: 1

      You disabled paging, most likely, not virtual address mapping.

    10. Re: How could this be abused? by Bert64 · · Score: 1

      It can and will be fixed at the hypervisor layer, but this will incur a performance hit (potentially up to 30%?)...
      That means for the same level of performance, your cloud provider now has to buy 30% more servers, pay for 30% more power, 30% more rackspace, 30% more cooling and 30% more maintenance... Those costs will be passed on to the customers.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    11. Re:How could this be abused? by viperidaenz · · Score: 3, Informative

      You've confused virtual address space for swap.

    12. Re:How could this be abused? by Mal-2 · · Score: 1

      But lots of laptops now ship without DIMM slots. What you get when you buy it is all you will ever have. My Acer C720 has 4 GB of RAM, which is generally adequate, but I do hit the page file a lot. Fortunately, this is made tolerable by an SSD that pretty much saturates the SATA III bus on both reads and writes. (Even the stock 16GB Kingston SSD is really fast, but my 250 GB replacement is slightly faster.)

      For a whole lot of people in a whole lot of situations, adding more RAM just isn't an option. It almost always is an option on a desktop PC, but that has been a shrinking piece of the computing pie for many years now, and can't really be considered a "typical use case" for Windows or Linux any longer.

      --
      How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    13. Re:How could this be abused? by Anne+Thwacks · · Score: 1
      But lots of laptops now ship without DIMM slots.

      And people wonder why sales of laptops are bad? Its obvious the old ones are better if you ever manage to actually get hold of the specs from anyone.

      Typical use case for the Laptops in PC world appears to be "getting in the way".

      --
      Sent from my ASR33 using ASCII
    14. Re:How could this be abused? by Mal-2 · · Score: 1

      No slots (or if you're lucky, maybe M.2 slots) seem to be the order of the day in thin-and-light laptops, and that seems to be what the average person buys now -- and has been for several years. Telling them to upgrade RAM is tantamount to saying "your computer is obsolete".

      As for those old laptops, I've rehabilitated a number of dual-core Merom laptops and put them back in service with family members and friends. They still work just fine, but they are admittedly hot, bulky, and noisy. They also (generally) have a 4 GB RAM limit by design, although they are 64-bit and the Merom architecture itself is not limited to 4 GB. I wouldn't want to sleep with one running by my bed 24/7 though, and I do that with the C720. It's my TV-driving machine, my Minecraft server, and my day-trip computer all in one. I certainly planned that purchase with the knowledge that the RAM was not upgradeable, but that the storage was.

      Basically, if someone has a laptop from 2009 or later, they probably don't have to replace it. That's why laptop sales are weak, but it doesn't mean that there isn't value in the thin-and-light trends that have followed. It's just a different kind of value. Still, these machines are the new baseline, and it does mean "throw more RAM at it" is not an option in a lot of cases.

      --
      How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    15. Re:How could this be abused? by zifn4b · · Score: 1

      When you cheap out, you lose. Performance, security, integrity, reliability - everything.

      Unfortunately, this is the status quo in the computer technology industry and has been for quite some time. The executives don't understand the relationship between cost and quality or just outright reject it because they don't care for reality too much, only profit. Many companies have failed due to executives projecting what they want reality to be onto reality. You can twist perception but reality won't budge.

      --
      We'll make great pets
  5. five to 30 per cent slow down by rwven · · Score: 2

    I find it hard to believe that a virtual memory change will result in a 5-30% slowdown for Intel processors. Maybe for a few extremely specific (likely edge-case) tasks, but if there was a legitimate 5-30% performance decrease, you can bet there would be a far different solution in the works that would suitably fix the problem.

    1. Re: five to 30 per cent slow down by Monster_user · · Score: 1

      By "virtual memory" are we talking Page Files and swap space? Disk space as memory?

      So an almost unusuable computer becomes completely unusable. Unless you're on solid state, then you get the performance of a mechanical hdd.

    2. Re:five to 30 per cent slow down by jonwil · · Score: 2

      If the choice is a 30% slowdown or a massive highly dangerous security flaw, the developers will pick the 30% slowdown. Especially if that flaw is a big problem for people using VMs (there are suggestions in some places that the flaw would be a HUGE problem for cloud providers like Amazon). That said, if you are running Linux and dont care about the security flaw but do care about the slowdown, you can always compile your own kernel without the relavent bits in there :)

    3. Re:five to 30 per cent slow down by Carewolf · · Score: 4, Informative

      I find it hard to believe that a virtual memory change will result in a 5-30% slowdown for Intel processors. Maybe for a few extremely specific (likely edge-case) tasks, but if there was a legitimate 5-30% performance decrease, you can bet there would be a far different solution in the works that would suitably fix the problem.

      Virtual memory access is used in every single memory access cached or not. 5% would be lucky for trying to work around a broken system. I am guessing the flaw is probably in the TLB which is meant to accelerate these things.

    4. Re:five to 30 per cent slow down by gravewax · · Score: 2

      I can see it being a problem for shared providers etc. HOWEVER, I know a lot of cases in the customer I am working with they will happily accept the risk rather than take an even 5% performance hit as they use the machines for dedicated tasks so if rogue code was somehow on their they would have already been seriously compromised. So I seriously hope regardless of OS that their is a way to disable the fix easily while staying in a supported state if the performance hits are more than just FUD.

    5. Re:five to 30 per cent slow down by epine · · Score: 1, Offtopic

      I find it hard to believe that a virtual memory change will result in a 5-30% slowdown for Intel processors. Maybe for a few extremely specific (likely edge-case) tasks, but if there was a legitimate 5-30% performance decrease, you can bet there would be a far different solution in the works that would suitably fix the problem.

      Of course, if microcode update fails, there's always the hail Mary unicorn ass-pull.

      I assure you, every Intel employee is kneeling on the carpet this very instant, facing the most auspicious astrological direction like ten of thousands of well-aligned human magnetic domains, while praying in unison like a telepathic Tourettic cuckoo clocks to any qualified god who will take their call.

      If you've been harbouring a time machine, looking for optimal market conditions, I suggest you pull it out of your ... hiding place ... any minute now, because the market is ripe, ripe, ripe and bidding will begin with a B.

      What a fucking nightmare.

    6. Re: five to 30 per cent slow down by darkain · · Score: 1

      Page File is only one area that can be mapped into a Virtual Address Space. System RAM is another. Often time, I/O is as well.

      https://en.wikipedia.org/wiki/...

    7. Re:five to 30 per cent slow down by Zocalo · · Score: 4, Informative

      Linux users don't even need to compile a custom kernel (although if performance *really* matters you should probably be doing so as a matter of course) as there's a boot time option in the that can be set to disable the new Page Table Isolation mode, "nopti". Without knowing the performance hit for a specific usage case and the nature of the flaw its currently impossible to say whether using it is going to be a good idea or not, but it's nice that they at least thought to include the option. Pretty sure BSD will do the same, but feel free to place your bets on commercial operating system vendors...

      --
      UNIX? They're not even circumcised! Savages!
    8. Re:five to 30 per cent slow down by LinuxIsGarbage · · Score: 2, Insightful

      If the choice is a 30% slowdown or a massive highly dangerous security flaw, the developers will pick the 30% slowdown.

      As it is it seems a lot of developers choose "30% slowdown" over "spend some time to write not shit code".

      "Premature optimization is the root of all evil" gets turned to "Do no optimization whatsoever, have no understanding of underlying hardware, and pick the latest trendiest framework that runs on top of 5 layers of framework to provide 6502 performance from an i7."

    9. Re:five to 30 per cent slow down by eclectro · · Score: 1

      Mail everybody a new chip from the past decade would be the "different" solution!.

      --
      Take the cheese to sickbay, the doctor should see it as soon as possible - B'Elanna Torres, "Learning Curve"
    10. Re:five to 30 per cent slow down by paskie · · Score: 1

      The slowdown is on syscalls. So it depends on your workload. For example, `du -s` is reportedly slowed down really by tens of percents.

      --
      It's not the fall that kills you. It's the sudden stop at the end. -Douglas Adams
    11. Re:five to 30 per cent slow down by Zocalo · · Score: 1

      I think that's actually going to depend more on the OS than the vendor. The available comments, urgency, and secrecy indicates a major hardware security issue being worked around, and both Apple and Microsoft have older OSs versions that are still officially in support for security patches, so this should therefore qualify. I wouldn't put it past either of them to neglect to provide the necessary switch for those older versions in an attempt to encourage people to upgrade to their current release.

      One other thing that I have noticed from the Linux patch is that it is applied by default without any attempt to tie it into the use of some other feature like hardware virtualisation which raises the distinct possibility that it might be a more general problem, and quite possibly something that could be leveraged by a malicious userspace app. If that is the case, then it's potentially a vector for malware to compromise a system which would mean it would be a bad idea to disable the code on *any* system, regardless of whether it's multiuser or not. In that situation, I'd actually kind of expect Apple and Microsoft to be thinking long and hard about whether they want the typical home user to have control or not, even before you take their "we know best" mindsets into consideration.

      --
      UNIX? They're not even circumcised! Savages!
    12. Re:five to 30 per cent slow down by sjames · · Score: 3, Insightful

      They don't have a choice. The cost is quite believable since the workaround involves mapping the kernel in and out of the process space for every system call. Keeping it mapped in and keeping the page tables hot in the cache helps performance a lot.

      The real fix involves new silicon.

    13. Re: five to 30 per cent slow down by Anonymous Coward · · Score: 2, Interesting

      By "virtual memory" are we talking Page Files and swap space? Disk space as memory?

      No. On modern processor running in protected mode, all memory is virtual. Memory pages that appear contiguous could be backed up by NON-contiguous areas of physical memory, device i/o space, numa, swap, etc. This bug may affect any memory access in userspace.

      So an almost unusuable computer becomes completely unusable.

      OK about the second part. The first part is a matter of opinion ;-)

    14. Re:five to 30 per cent slow down by sjames · · Score: 2

      This is a good point. If the machine lives in a protected environment where only approved software is used by authorized users, disabling the fix to avoid the slowdown might be the right thing.

      But I'm pretty sure the slowdown in this case isn't FUD. Otherwise we'd hear Intel loudly denying it by now.

    15. Re: five to 30 per cent slow down by ewibble · · Score: 1

      Why should warranty period apply, this is a manufacturing defect, that causes your machine to be insecure or slower than advertised.

      Just like if find out your car air bags won't work, they are replaced free of charge.

    16. Re:five to 30 per cent slow down by dryeo · · Score: 2

      provide 6502 performance from an i7

      Good, it's a step in the direction of improving latency. Next, replace the rest of the computer with an Apple //E and we'll have something responsive.
      Article measuring latency of various computers that finds the Apple //E to have the least latency in displaying a character, https://danluu.com/input-lag/

      --
      https://en.wikipedia.org/wiki/Inverted_totalitarianism
    17. Re:five to 30 per cent slow down by grimr · · Score: 5, Informative

      I don't think you understand how drastic this fix is. Every time a user mode to kernel mode transition happens and every time a hardware interrupt happens, the entire page table directory layout has to be switched. This means all the TLB caches are flushed as well and that's where the main performance hit comes from.

      So if you're doing something like crypto currency mining you're not going to see much of a hit. But if you're doing a lot of I/O (file servers, database servers, web servers, etc.) you're going to see that 25-35% performance hit.

      And that's why hardware bugs are so serious. Sometimes you get lucky and it's a microcode update with no penalty. Sometimes it's a simple fix with barely any performance penalty. But sometimes you get unlucky and the fix hurts a lot and the only way to get the performance back is to swap out the hardware.

    18. Re: five to 30 per cent slow down by grimr · · Score: 2

      Virtual memory is just the mapping of a virtual address space to a physical address space. Paging is the swapping out of memory to disk so you can allocate more than you physically have. Virtual memory is what's commonly used to implement paging.

      This bug is a flaw with the virtual memory protection mechanism that stops user code from reading kernel data.

    19. Re:five to 30 per cent slow down by grimr · · Score: 1

      It's not the flaw that causes the slowdown, it's the fix that causes the slowdown. You are correct that it has to do with the TLB cache because they are flushed after CR3 is updated to the new page table directory at each switch from user mode to kernel mode and back.

    20. Re:five to 30 per cent slow down by guruevi · · Score: 1

      From what I can read it's actually every context switch, the kernel is forced to look into different address spaces. So for every interrupt (eg. a network packet) your computer has to dump it's CPU cache and re-read from RAM. This totally removes the benefits of L1-L3 caches on the CPU which these days can be ~30MB.

      I'm much more surprised this can't be fixed in microcode, the entire CPU is run by its own "OS" since Pentium 1 the Intel CISC is just a translation to RISC so you should be able to patch it out. If not, it's not like the Pentium F00F bug anymore, these days we're using millions of CPU's per year, recalling even the last 5 years worth is suicide for Intel.

      --
      Custom electronics and digital signage for your business: www.evcircuits.com
    21. Re:five to 30 per cent slow down by segedunum · · Score: 1

      ....but if there was a legitimate 5-30% performance decrease, you can bet there would be a far different solution in the works that would suitably fix the problem.

      There is, and there isn't. Intel obviously does not want to recall hardware and they really don't give a shit. If they slip this under the radar then they're hoping CPUs will just get replaced as an answer to performance problems.

    22. Re:five to 30 per cent slow down by aaarrrgggh · · Score: 1

      Like a lawsuit?

    23. Re:five to 30 per cent slow down by fahrbot-bot · · Score: 1

      I'm much more surprised this can't be fixed in microcode, the entire CPU is run by its own "OS" ...

      Perhaps it actually can, but then Intel would assume the responsibility for that fix -- across all the many, many CPU families and versions -- and the responsible for any bricked CPUs if/when something goes wrong. Better for them to say, "Fixed in the next release."

      --
      It must have been something you assimilated. . . .
    24. Re:five to 30 per cent slow down by hcs_$reboot · · Score: 1

      to provide 6502 performance from an i7."

      Well, if it uses the 6502 instruction set as well, all is not lost!

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    25. Re:five to 30 per cent slow down by complete+loony · · Score: 1

      Every single system call will essentially incur a costly task switch that wasn't there before. The total slowdown will be based on the total number of syscalls used in any particular workload.

      Though since this is the new reality, where accessing kernel memory directly is more expensive than it used to be, you can expect kernel and application developers to try and claw back some of these losses over time.

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
    26. Re:five to 30 per cent slow down by Anonymous Coward · · Score: 3, Informative

      Every process runs in virtual address space--EVERY process. Low level device drivers on X86 might need to map to physical, but nearly everything is virtual. Certainly everything in user-mode.

      This is why process 1 memory location 10000 is a different piece of physical ram from process 5 memory location 10000. Different virtual address spaces. Each such mapping between each virtual address space and physical space is stored in a "page table". (Pages might also not currently exist in physical ram and the OS handles that, e.g., load from disc, make up from scratch or whatever, but that's a separate discussion.)

      The main cost of a context switch between processes is flushing the "TLB" (translation lookaside buffer) - it's essentially a cache of "for the current process, what virtual addresses map to what physical addresses".

      Traditionally, OS's separated the virtual address space into 'Kernel' and 'User' portions. (Those of you that remember /3GB switch on NT know all about this.) This way, jumping into the Kernel is might lighter-weight than jumping between processes because the TLB is still valid and thus doesn't need flushing. The TLB's data about kernel address space is correct.

      The performance hit is this turns every transition from user-to-kernel from "a quick update of the current privilege level" into a full "load new page table and full TLB flush" as the kernel no longer lives in the same virtual address space. This is a huge hit on every kernel call.

      The only OS's that wouldn't be affected by this are ones that use a single address space; or already separate everything including their kernel into separate virtual address spaces. Maybe a microkernel OS isn't affected, and single-address-space things like Unikernels and (Microsoft Research's) Singularity wouldn't be. Non-protecting operating systems also wouldn't be affected as they don't have security to begin with--for example, FreeDOS which aims to still run on 8088 chips, doesn't have any kernel protection or multitasking so it cannot be affected.

    27. Re:five to 30 per cent slow down by guruevi · · Score: 1

      They already release microcode fixes all the time. Microcode gets patched when the OS boots up and then is promptly 'forgotten', it doesn't get permanently written.

      --
      Custom electronics and digital signage for your business: www.evcircuits.com
    28. Re:five to 30 per cent slow down by Xenx · · Score: 1

      The problem is, if it can be fixed in microcode... Intel would likely alienate a lot of businesses by pulling that. Intel letting major business take a 30% performance hit, so Intel can make money off of their own flaw doesn't sound like it would fly. Just because Intel doesn't have a legal responsibility to resolve the problem, doesn't mean it isn't in their best interest as a company.

    29. Re:five to 30 per cent slow down by eldakka · · Score: 1

      This cannot be fixed in microcode. It will require a new hardware revision to fix.

    30. Re:five to 30 per cent slow down by Xenx · · Score: 1

      Design defects are already not covered under their warranty. I'm not saying a lawsuit couldn't happen, but you wouldn't be starting from a position of power.

    31. Re:five to 30 per cent slow down by grimr · · Score: 1

      This totally removes the benefits of L1-L3 caches on the CPU

      No, those caches work on physical addresses so the page table mappings have no effect. It's the TLB caches which caches the virtual to physical address mappings that are flushed.

      I'm much more surprised this can't be fixed in microcode

      Microcode can't fix everything. It's generally limited to how instructions get executed. The virtual memory system can't be patched by microcode. Even if it could the slowdown would be 10s to 100s of times worse than the slowdown caused by this fix. This is a fundamental flaw in the virtual memory protection circuitry.

    32. Re: five to 30 per cent slow down by MrKaos · · Score: 4, Interesting

      By "virtual memory" are we talking Page Files and swap space?

      Almost. The difference is a minor or major page fault. From swap space to ram to CPU cache is a major page fault whereas a memory transfer is between the CPU cache (L1,L2 or L3) and system RAM is a minor page fault.

      Disk space as memory?

      No. Between CPU cache and system RAM. In this case the issue relates to minor page faults which occur when the CPU scheduler is switching tasks, called "context switching", between processes, threads and lwt running on the system.

      The kernel maintains a summary page of the process when it switches tasks so that it doesn't have to recreate details of the process and is more efficient when it switches tasks. It is this summary page that can be attacked and IIUC addresses can be changed to access memory the process does not have permission to access.

      This means that a process running in the userspace of Ring 3 of the CPU it can modify it's summary table to access data in Ring 0, where the kernel is. Which is obviously bad because now that process can access all the memory.

      So an almost unusuable computer becomes completely unusable. Unless you're on solid state, then you get the performance of a mechanical hdd.

      Maybe, but not how you would expect. The CPU scheduler *may* make it possible to hide some of the latency created by the now crippled context switching in mechanical disk latency that you can't do with ssd because of the way IO determines *when* the scheduler will context switch. Still early days and it depends on what techniques can be devised. It depends on where the summary tables are maintained and I would expect that to be in CPU cache, which is much faster than system RAM, which is why it is a tough bug to get around.

      With that in mind it's plain to see why the Linux kernel devs want to call the patch fuckwit_ because Intel screwed up badly on this.

      --
      My ism, it's full of beliefs.
    33. Re:five to 30 per cent slow down by mlyle · · Score: 1

      It's a huge penalty on the system call path. If your code does few system calls and is cpu bound, it's no penalty. Typical code takes a 5% hit. Networking/IPC/filesystem heavy code can pay 35%+ tax.

    34. Re: five to 30 per cent slow down by tigersha · · Score: 1

      On a 6502 all programs have access to all memory all the time

      --
      The dangers of excessive individualism are nothing compared to the oppressiveness of excessive collectivism
    35. Re:five to 30 per cent slow down by TheRaven64 · · Score: 2

      Note that this wouldn't be the first time that Linux has done this. RedHat kernels used to support a 4GB/4GB address split on i386 PAE systems. Conventionally, on 32-bit systems, the kernel reserves the top 2GB of the address space and userspace gets the bottom 2GB. When this started to get cramped, the was an option to reserve the top 1GB for the kernel and make the bottom 3GB available for userspace. Sometimes, even that wasn't enough, so with a 4GB/4GB address split both get completely separate page tables and you do a page table swap on every kernel entry and exit. I remember it came with a performance hit, but I vaguely remember that it was closer to 5-10% back then (which some people were willing to pay if it meant that their code that needed 3.5GB of RAM actually ran, with the kernel using 3GB of RAM). It was fairly short lived, because most people who had a real use for it bought x86-64 hardware.

      --
      I am TheRaven on Soylent News
    36. Re: five to 30 per cent slow down by Pseudonym · · Score: 1

      More to the point, on x86 architectures, running in 64-bit mode requires virtual memory. There is no such thing as 64-bit real mode (although you can identity map memory to emulate it).

      --
      sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
    37. Re: five to 30 per cent slow down by hcs_$reboot · · Score: 1

      Yes, but the Motorola instruction set is nicer.

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    38. Re:five to 30 per cent slow down by Zocalo · · Score: 1

      A lot of modern CPU speed comes from speculative execution of code in branches. In simple terms, if the CPU sees what looks like a loop it will assume it's going to be going round the loop again, look at the execution queue, and start working on any memory fetches, loading of registers, etc.so any the data is right there in the on-chip cache when needed. What seems to be happening with the flaw is that the kernel memory that should be hidden might be accessible during that speculative execution phase and can be copied before the speculative code execution is commited.

      The performance hit from the fix comes if you have a system call to the OS kernel inside that loop, as the fix requires that all that data be flushed to hide kernel memory space from the user memory space every time you switch from usermode to kernel mode and back again. That seems to imply that if your code has a tight loop that makes multiple calls to the OS kernel, then you've not only lost all the performance benefits of the speculative execution and cache, but you've also had to sacrifice CPU cycles to flush it in the first place. If your code loop is being executed millions, or even billions, of times - not uncommon for some tasks - then, yeah, you could well be looking at a double-digit percentage performance hit.

      --
      UNIX? They're not even circumcised! Savages!
    39. Re:five to 30 per cent slow down by edtice1559 · · Score: 1

      This isn't about virtual memory. It's about memory dependence prediction. https://en.wikipedia.org/wiki/... The idea is that the microprocessor will speculatively load some memory so that the pipeline doesn't stall waiting for the load. If it's wrong, so what, just flush it out and stall the pipeline just like you would have with in-order execution. But when the out-of-order execution mechanism does this, it doesn't know what memory the current process actually has access to. So it could potentially load something from kernel space. Not a big deal as the "proper" load would replace this (i.e. pipeline stall, load continue, just as if there were no out-of-order execution). It seems that somebody has found a way, however to access the improperly loaded memory during the transient period when it was in a register. This is the type of creative exploit that it's fun to read about. Now the OS designers have to go back and somehow try to prevent this from happening presumably using some other feature of the micro-processor but the effect will be that the ability to do out-of-order execution will be significantly reduced thus slowing the machine down considerably.

    40. Re:five to 30 per cent slow down by AvitarX · · Score: 1

      I think I saw even more than 30% for du -s without pcid.

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    41. Re:five to 30 per cent slow down by huckamania · · Score: 1

      Would increasing the time between context switches help in this case? If it is context switching that is the culprit, then wouldn't doubling the context switch time cut the penalty in half?

      Most file/web/whatever servers aren't running solitaire or surfing the web, so couldn't the OS makers take advantage of that and disable/retard services and daemons?

      This sounds like a good way to trick people into upgrading their hardware.

    42. Re:five to 30 per cent slow down by Agripa · · Score: 1

      I find it hard to believe that a virtual memory change will result in a 5-30% slowdown for Intel processors. Maybe for a few extremely specific (likely edge-case) tasks, but if there was a legitimate 5-30% performance decrease, you can bet there would be a far different solution in the works that would suitably fix the problem.

      The software fix includes invalidating the page table cache on every task switch and OS call and reloading the page table cache creates a severe performance hit.

      The only way for Intel to fix this is to replace the processor. Won't that be a fabulous marketing opportunity? Buy our new and improved processor to replace our old and inferior one because we screwed up!

    43. Re: five to 30 per cent slow down by Agripa · · Score: 1

      For the FDIV bug Intel recalled the affected cpus.

      The number of CPU affected by the FDIV bug was minor compared to this and they were all replaceable (socketted) unlike this.

    44. Re:five to 30 per cent slow down by Agripa · · Score: 1

      I wonder if Microsoft will apply this change to systems using AMD processors whether they need it or not. Based on the Linux patches from Intel, that is what they intended.

    45. Re:five to 30 per cent slow down by Agripa · · Score: 1

      I'm much more surprised this can't be fixed in microcode, the entire CPU is run by its own "OS" since Pentium 1 the Intel CISC is just a translation to RISC so you should be able to patch it out. If not, it's not like the Pentium F00F bug anymore, these days we're using millions of CPU's per year, recalling even the last 5 years worth is suicide for Intel.

      I got the feeling reading technical details that it can be fixed in microcode by disabling speculative execution which entails an even larger performance hit.

    46. Re:five to 30 per cent slow down by Bengie · · Score: 1

      "Premature optimization is the root of all evil" followed by "Know when to optimize ahead of time otherwise you're going to be in for a world of hurt".

  6. This could be massive by Artem+S.+Tashkinov · · Score: 5, Interesting

    The developers behind the GRSecurity project measured up to 63% performance loss. If most common tasks are equally affected, Intel is sure fucked. Home users might not need to bother, but large cloud providers might be seriously affected.

    Meanwhile the Linux kernel has received the largest incremental minor patch in its history (229KiB) - perhaps kernel 4.14.11 already contains all the required fixes.

    I have a sneaking suspicion Intel shares will fall through the floor in the next few weeks because Intel CPUs might have suddenly become quite slower than their AMD Zen based counterparts.

    1. Re:This could be massive by Artem+S.+Tashkinov · · Score: 5, Informative

      Some PostgreSQL results have just been released: up to 23% performance loss. This is indeed huge.

    2. Re:This could be massive by scumdamn · · Score: 5, Informative

      Doesn't look like it's everybody. https://lkml.org/lkml/2017/12/...

    3. Re:This could be massive by Anonymous Coward · · Score: 1

      It's context switching overhead which is also why nobody ever ran rdbms under osx. Breaking KASLR isn't a good reason for this work, the real problem is prefetching privileged memory from unprivileged processes - possibly as a result of a bug in intel's speculative execution.

    4. Re:This could be massive by sl3xd · · Score: 1

      Nice catch.

      I guess that's what I get for reading articles about the issue, rather than LKML...

      --
      -- Sometimes you have to turn the lights off in order to see.
    5. Re:This could be massive by grimr · · Score: 4, Informative

      Nope. Page Table Isolation is the fix and not the fault. But isolating the userland and kernel page tables means you have to switch between them each time you go from user mode to kernel mode and back. This slows things down.

      AMD CPUs don't have the bug where user mode can read kernel pages so does not require this isolation and the performance hit caused by enabling it. From the AMD email: "The AMD microarchitecture does not allow memory references, including speculative references, that access higher privileged data when running in a lesser privileged mode when that access would result in a page fault."

    6. Re:This could be massive by Qzukk · · Score: 4, Interesting

      Based on this link from Hacker News: https://cyber.wtf/2017/07/28/n... and the linked email/patch from AMD, it looks like what happens is that AMD checks memory permissions up front before allowing an instruction into the pipeline, while Intel made the memory permission check as a later part of the pipeline, apparently after the memory was accessed and inserted into the cache.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    7. Re:This could be massive by Motherfucking+Shit · · Score: 4, Interesting

      I have a sneaking suspicion Intel shares will fall through the floor

      Intel's CEO agrees; a couple weeks ago he sold all the Intel stock he can. If he'd dumped any more shares, he would have had to forfeit his job. That isn't a man who's confident about the future of his company...

      --
      "BSD: Free as in speech. Linux: Free as in beer. Windows 10: Free as in herpes." --Man On Pink Corner in #52607549.
    8. Re:This could be massive by Zocalo · · Score: 3, Interesting

      This flaw has been known about since at least October, and probably even sooner since early code to fix it starting coming out in November, which makes it seem *highly* likely that he was aware of the it and the potential impact when he took the decision to commit to the November sale. Also, as CEO, there's no way that he can plausibly claim "I didn't know about it" like the two Equifax execs who executed a stock sale just before their breach announcement did without coming across as completely incompetent and unfit for the CEO role. This reeks of insider trading, and after the outcry over the Equifax execs I can't imagine that the SEC isn't going to want to take a good hard look at this stock sale as well.

      I'm sure his vested options will pay for some really good lawyers but, even so, forfeiting his job could be the least of his problems.

      --
      UNIX? They're not even circumcised! Savages!
    9. Re:This could be massive by edtice1559 · · Score: 1

      I suspect that Intel shares will go way up in the medium-term as people suddenly find themselves refreshing hardware that was previously just fine. Intel will still get the bulk of the orders.

  7. Obligitory LWN link (Also affects ARM64) by sl3xd · · Score: 5, Informative

    Linux Weekly News has been covering this for quite a while.

    5% slowdown on average, with up to 30% for some particularly bad network operations.

    ARM64 is also affected, so it's not just intel

    --
    -- Sometimes you have to turn the lights off in order to see.
  8. And, time for AMD to shine again by NuclearCat · · Score: 5, Informative

    And what is interesting, AMD is immune to that, proof: https://lkml.org/lkml/2017/12/...

    1. Re:And, time for AMD to shine again by sl3xd · · Score: 1

      Nice catch.

      --
      -- Sometimes you have to turn the lights off in order to see.
  9. Re:tanenbaum's revenge? by sl3xd · · Score: 1

    If you read one of the original articles about the KAISER patch set: a commenter asked about microkernels, and the reply is that since it's a hardware issue, both microkernels & monolithic kernels have to pay the same price.

    --
    -- Sometimes you have to turn the lights off in order to see.
  10. Re:Will this fix the kswapd0 100% CPU bug? by Artem+S.+Tashkinov · · Score: 1

    Have you just hit infamous bug 12309? It's ostensibly fixed however people keep reproducing it (just google for heavy I/O operations slow down my PC).

  11. AMD is safe by TeknoHog · · Score: 5, Informative

    The summary is not fully explicit: this is not a flaw in Intel x86 ISA, but specific to CPUs made by Intel. AMD processors don't have the problem, so they should not need the patch.

    https://lkml.org/lkml/2017/12/...

    This could be a huge win for AMD, because the patch incurs a measurable slowdown. At the moment, though, the Linux fix doesn't seem to distinguish between manufacturers. I expect the distinction will appear later -- better safe than sorry.

    --
    Escher was the first MC and Giger invented the HR department.
    1. Re:AMD is safe by Mindragon · · Score: 1

      Although AMD is safe, why do they mention a 50% slowdown for AMD processors?

      > @grsecurity measured a simple case where Linux “du -s” suffered a 50% slowdown on a recent AMD CPU.

      --
      Just add {In Space!} to anything.
    2. Re:AMD is safe by Anonymous Coward · · Score: 1

      Because the initial patchset didn't exclude AMD, it was a later patch that whitelisted AMD CPUs, so it would have applied the workaround unnecessarily before that.

    3. Re:AMD is safe by ColaMan · · Score: 1

      Presumably they enabled the software workaround and ran it on a bunch of CPUs. Then they picked the most alarming slowdown they could find, regardless of whether that CPU needed the workaround or not.

      Or perhaps they were just unaware at the time that AMD CPUs are not at risk.

      --

      You are in a twisty maze of processor lines, all alike.
      There is a lot of hype here.
  12. Either that or a lawsuit by rsilvergun · · Score: 1

    you cut 30% off the performance of my CPU expect to hear about it.

    --
    Hi! I make Firefox Plug-ins. Check 'em out @ https://addons.mozilla.org/en-US/firefox/addon/youtube-mp3-podcaster/
    1. Re:Either that or a lawsuit by Xenx · · Score: 1

      Technically speaking, they're making a change to the operating system kernel and how it operates, not reducing performance of the CPU.

    2. Re:Either that or a lawsuit by Xenx · · Score: 1

      Microsoft/linux kernel devs/etc are not the ones at fault. They're working around an issue in the CPU. Using your analogy, they didn't design the car. They're just forcing you to either slow down, not drive on their roads, or buy a different car.

    3. Re:Either that or a lawsuit by segedunum · · Score: 1

      That's how they want this to go.

    4. Re:Either that or a lawsuit by Xenx · · Score: 1

      I'm unsure which "they" you're referencing here, so I'm not sure what point you're wanting to make. The problem is in the CPU. The kernel devs as a whole are not responsible for the problem. They're responsible for providing a stable/secure system. If they don't patch the problem with the kernel software, they're intentionally leaving people vulnerable. Unfortunately, given Intel's rather large lead in the CPU market, this is going to negatively impact a lot of people.

    5. Re:Either that or a lawsuit by hcs_$reboot · · Score: 1

      Technically speaking Intel fails to provide a CPU that works as advertised.

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    6. Re:Either that or a lawsuit by Xenx · · Score: 1

      But, Intel isn't the one making the change to the kernel. The change is being done by the kernel devs to fix an issue. They were suggesting a lawsuit for cutting performance of the CPU. As Intel isn't slowing down the CPU, that means they are suggesting a lawsuit against the companies behind the OSes. If they were suggesting a lawsuit against Intel, it was poorly worded.. but a different story.

    7. Re:Either that or a lawsuit by iggymanz · · Score: 1

      chips were advertised and sold as having protected and separated memory

    8. Re:Either that or a lawsuit by Bert64 · · Score: 1

      They're not forcing anything, they're providing options for users who bought a defective product.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    9. Re:Either that or a lawsuit by Xenx · · Score: 2

      If you're provided three options, and only three options, you're forced to pick one. Inaction is a choice that would force at least one of the options.

    10. Re:Either that or a lawsuit by Xenx · · Score: 1

      That has nothing to do with what I said. Intel designed and produced the CPU. The OS devs are responsible only for the OS. If there is a flaw in the Intel CPU, that is between "you" and Intel. The OS devs patching a security hole in the CPU should not leave them open to a lawsuit when the only way to patch it slows down the performance of the system.

    11. Re:Either that or a lawsuit by segedunum · · Score: 1

      This is a CPU problem, and yes, in reality they are reducing the performance of the system. What should be happening is a recall, but Intel obviously don't want to do that. If the impact of the performance hit is noticeable for many, and this includes desktops, servers and every conceivable workload where an Intel CPU is used, expect an absolute shitstorm.

    12. Re:Either that or a lawsuit by Xenx · · Score: 1

      It's a simple path of logic. The problem is in the CPU, not in the kernel. The OS devs are only doing their job and in no way should be targeted in a lawsuit for fixing a security hole they didn't create. That is the only point I made. Anything else is misinterpretation of what I said.

    13. Re:Either that or a lawsuit by Pyramid · · Score: 1

      Intel isn't making any changes because it is physically impossible for them to do so. The only option left for OS maintainers to make software patches to work around this flaw. They would be negligent for leaving a known security flaw unaddressed. This rests solely on Intel's shoulders - they created and sold a product with a serious, undisclosed flaw.

      --
      ~Any apparent grammatical or typographic errors are caused by defects in your display device.
    14. Re:Either that or a lawsuit by Pyramid · · Score: 2

      "you cut 30% off the performance of my CPU expect to hear about it.
      --
      Hi! I make Firefox Plug-ins. Check 'em out @ https://addons.mozilla.org/en-..."

      I can't be the only person who sees the irony of a person complaining about performance degradation and that they make Firefox plug-ins in the same post.

      --
      ~Any apparent grammatical or typographic errors are caused by defects in your display device.
    15. Re:Either that or a lawsuit by Xenx · · Score: 1

      Disabling the fix was one of the options, yes. However, I think the average user won't have the option to disable the fix. It does sound like Microsoft's style.

  13. What about games? by rsilvergun · · Score: 1

    or heck if you've just got a low end laptop?

    --
    Hi! I make Firefox Plug-ins. Check 'em out @ https://addons.mozilla.org/en-US/firefox/addon/youtube-mp3-podcaster/
    1. Re: What about games? by Monster_user · · Score: 1

      I'm already getting serious slowdown from games optimizing for other Windows operating systems. Rebooting into Windows 7 offered an incredible leap in performance on the same rig for one game in particular, Makes the game as fast as it was when I first installed it on the old OS! That is what I get for playing an MMORPG.

    2. Re:What about games? by AHuxley · · Score: 1

      The top games are created to work well on the cpu and gpu limited consoles. No slow down will be noticed from game ports to the PC desktop due to the average games design limitations and the poor quality code, art.
      A new GPU issue would have been evil. CPU use is consul port code and art limited already and most games on suggested settings will not feel any different.

      --
      Domestic spying is now "Benign Information Gathering"
    3. Re:What about games? by Xenx · · Score: 2

      You're over generalizing. You're also assuming people are playing games that are console ports. I play a few games that are already CPU limited. There are also a few popular titles that are cpu intensive. PUBG being a big one right now. I'm not saying this fix is going to make it worse, as I don't know. But, a huge hit to CPU performance would make a huge impact on those games.

    4. Re:What about games? by AHuxley · · Score: 1

      Re "You're also assuming people are playing games that are console ports"
      The end users play what they are told to in ads and from reviews.
      Its the developers who have to be aware of that generations average CPU, GPU and the limitations of a console/PC release. That game has to still run on generations of older cpu's and still play well. So a new CPU should have room to keep working within normal game settings.

      --
      Domestic spying is now "Benign Information Gathering"
    5. Re:What about games? by Xenx · · Score: 1

      First, people play what they want to play... or what everyone else is playing to fit in. Ads will encourage them, but definitely don't define what gets played. That assumption alone tells me that you're not exactly worth the effort here. However, yes.. large titles that start out as a console release are less likely to have higher CPU requirements. There are quite a few PC games, which would be the segment of games affected by issues with the CPU in a PC, that heavily rely on the CPU. Further.. If you look at minimum CPU requirements for PC versions of games that are on console.. often times you'll see the min requirements are higher than the actual CPU of the console. So, obviously... it's not a direct comparison.

    6. Re:What about games? by aliquis · · Score: 1

      I'd call bullshit.

      1) The consoles and "oh shiny"-benchmarks want to brag about 4K and before of ultra graphics quality and show pretty screenshots. As is I have an i7 8700K but still the HD 6950 2 GB graphics card .. I get 80ish to 120 fps in 1280x800 on low in Quake Champions. Not sure which part is holding me back but currently the monitors which support UHD at over 60 Hz is easily counted and I'm more interested in both HDR and higher refresh-rate than what I'm about more pixels. Not that UHD is uninteresting just that I'd much rather have 144 Hz WQHD than 60 Hz UHD. While on consoles 30 fps may be ok or they want to up the graphical quality and sacrifice frame-rate I'm not them. I play games on low to get better performance as is.

      2) The Ryzen 5 1600 isn't all that much slower than an i7 8700K.
      If we compare the max OC chips on userbenchmark the i7 8700K is 37%, 39% and 28% faster in single-core, quad-core and multi-core loads. Throw in whatever disadvantage there for the Intel and the gap shrinks. The Ryzen 5 1600 + B350 board cost half as much as the i7 8700K and a Z370 one.
      For the Ryzen 7 1700 things will look even better but they are also due to a refresh 1-3 months from now. The ThreadRipper 1900X is from the chips they deem worthy for threadripper so I'll use that rather than the Ryzen 7 1700 just to have the best 8 core they have currently. Against that the i7 8700K is 28% and 29% faster on single- and quad-core loads but 10% slower on multi-core ones.
      Remove some Intel performance and add some AMD performance and it will quickly become about a wash but AMD charges half the price for their solution.
      I paid more money for the i7 8700K because it's the best. If it's not then it's of course not worth that money.

      3) Regardless of where consoles are now and whatever a slower processor would be "ok" now things progress and this mean that the Intel chips won't last as long into the future. They will both lose their lead over AMD but of course if Intel fix this on silicon level that mean that the new chips will be a bunch faster too. Intel speed has progressed very slowly at 10% per generation or so. At best possibly. A 30% drop would mean 3 generations of lost performance (That's not how you to math with percent but it's how Intel claimed the i7 7700K against the 6700K, 4790K and 4770K or whatever it was. A kinda weird selection of chips maybe.)

      Anyway a 30% performance loss for gaming would be massive. But I kinda don't feel 15% is acceptable either.

      Ryzen 7 1700 already have higher multi-core performance. Add an OS slow-down on Intel and a process gain on AMD and the Ryzen 7 2700 will become much faster in multi-core tasks and maybe catch up in single-core ones.

    7. Re:What about games? by aliquis · · Score: 1

      1) First post mention PUBG.
      2) Reply mention ads.

      By now PUBG of course market itself but how much of a marketing budget did it have originally?

      Was it marketing which brought it to the top?

    8. Re:What about games? by Agripa · · Score: 1

      or heck if you've just got a low end laptop?

      Then your low end laptop is now lower end.

  14. More info on the subject by trybywrench · · Score: 4, Informative

    some of my sys admin friends posted this on a slack channel i'm in, apparently it's a big deal

    http://pythonsweetness.tumblr.com/post/169166980422/the-mysterious-case-of-the-linux-page-table

    --
    I came to the datacenter drunk with a fake ID, don't you want to be just like me?
  15. Re:tanenbaum's revenge? by mikael · · Score: 3, Insightful

    And this comment. Someone could feel the storm coming.

    KAISER: hiding the kernel from user space

    Posted Nov 16, 2017 7:21 UTC (Thu) by alkbyby (subscriber, #61687) [Link]
    Looks like something bad is coming. Such as mega-hole maybe in hardware that can be mitigated by hiding kernel addresses.

    Otherwise I cannot see why simply hiding kernel addresses better, suddenly becomes important enough to spend massive amount of cpu on it.

    - This isn't the first time. There was a problem a decade ago with Intel CPU's, when separate process threads could access each others data through cache memory.

    --
    Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
  16. Re:Will this fix the kswapd0 100% CPU bug? by sl3xd · · Score: 1

    Nah, GP didn't configure the kernel's settings properly.

    There's more to running without swap than not enabling a swap file/partition. You have to configure swappiness, the oom_adj_score for what to kill when memory runs out, and so on.

    --
    -- Sometimes you have to turn the lights off in order to see.
  17. Deja Vu by WhoBeDaPlaya · · Score: 1

    Anyone remember the TLB bug that also resulted in huge performance penalties in the first generation Phenoms? Guess it's Intel's turn.

    1. Re:Deja Vu by Artem+S.+Tashkinov · · Score: 3, Informative

      Results varied. Some workflows experienced a very significant performance loss however, e.g. Firefox became twice as slow, WinRAR four times as slow.

  18. Older (non-paywalled) LWN Link by sl3xd · · Score: 1
    --
    -- Sometimes you have to turn the lights off in order to see.
  19. Caching is what makes CPUs fast by Anonymous Coward · · Score: 1

    The fix separates the memory layout in kernel mode from the memory layout in user mode. The page tables used to be the same, but there appears to be an access method that bypasses the CPU protections, so the kernel no longer keeps the kernel pages mapped when a process leaves kernel mode. This means that every time a program calls into the kernel (to read a file, send a packet, etc.), the memory layout changes and the CPU has to flush the Translation Lookaside Buffer twice per syscall, once when the process enters kernel mode and once when it leaves kernel mode. This is what causes the slowdown. It is more severe for loads that use many system calls, but unless you have highly computationally intensive loads that rarely use system calls, you will see significant slowdowns.

    1. Re:Caching is what makes CPUs fast by spitzak · · Score: 1

      Probably only needs to clear the TLB when leaving kernel mode. I don't think it is a problem if the kernel can read user pages using this bug.

    2. Re:Caching is what makes CPUs fast by grimr · · Score: 1

      The TLB maps the virtual to physical addresses. Leaving stale ones is a bad idea which can lead to memory corruption.

      Take this example. User mode page table maps virtual address 0x1000 to physical 0x500000. Switch to kernel mode and the kernel mode page table maps 0x1000 to physical 0x600000 for either it's own data or maybe another processes data. So the kernel goes to write to 0x1000 and the processor goes "hey, I have that cached" and proceeds to overwrite 0x500000 instead of the 0x600000 the page tables say it should.

      Now there is a feature called PCID where not all the TLB entries need to be flushed. That can reduce the performance hit of the fix.

    3. Re:Caching is what makes CPUs fast by TheRaven64 · · Score: 4, Interesting

      Leaving stale ones is often fine. FreeBSD does this intentionally in the transparent superpage promotion. When it condenses adjacent pages into a single superpage in the page tables, it doesn't invalidate the TLB entries. The exact behaviour of this varies between CPUs. When you get a TLB miss in an adjacent address range, it's filled from the superpage entry and now you have two TLB entries for the same virtual address[1]. Intel will just discard the smaller one, Centaur will note the mismatch, invalidate both, and refill from the page table, gem5 will crash (I think we've upstreamed the fix for this), and I'm not sure what AMD does.

      Your example is highly unlikely, because the kernel typically reserves the top half of the address space for itself and an attempt by userspace to map anything in this range will fail. On x86 chips, there's a huge gap in the middle of the address space (it actually makes more sense to think of virtual addresses as signed values, with userspace ones being positive, kernel ones being negative, and the size of the number somewhat less than 64 bits [microarchitecture specific]). The kernel map, by default, will include the entire userspace portion of the address space for the current process, so that copies between kernel and userspace are cheap.

      This kind of TLB invalidate is actually cheap on AMD, because they implement a tagged TLB with the cr3 value as the tag, so swapping cr3 values implicitly invalidates the TLB, but the entries become valid again when you reset the entry. The PCID feature, which is apparently the cause of this vulnerability, is largely a result of the fact that AMD patented this technique and so Intel doesn't use it.

      [1] Some old SPARC chips would literally catch fire if you did this: the TCAMs would run hot enough to burn.

      --
      I am TheRaven on Soylent News
    4. Re:Caching is what makes CPUs fast by TheRaven64 · · Score: 1

      It will incur overhead, because you'll still use two TLB entries for every address that's accessed by both kernel and userspace. I believe (though I'm not 100% sure) that a cr3 modification involves a complete pipeline flush on AMD, so will have a high overhead for cheap system calls. The GrSecurity benchmarks had very high overhead on AMD, but I don't know what the root cause was.

      --
      I am TheRaven on Soylent News
    5. Re:Caching is what makes CPUs fast by grimr · · Score: 1

      My example is not highly unlikely. It happens all the time with interrupts. If a disk read completes for another process the kernel has to flush the lower address space TLBs. But I think you're right in that it doesn't need to happen on entry to a syscall but it might need PCID to selectively flush eficiently.

      I know about the virtual address space layout and the hole in the middle. It's probably on of the factors in the AMD IRET bug I ran into on Ryzen.

      I don't believe the PCID feature is the cause of the bug. The cause was that Intel check privileges at instruction retirement and not at the start of the speculative operration. PCID would mitigate the performance penalty of the fix as the kernel wouldn't have to flush all TLBs.

    6. Re:Caching is what makes CPUs fast by Agripa · · Score: 1

      This kind of TLB invalidate is actually cheap on AMD, because they implement a tagged TLB with the cr3 value as the tag, so swapping cr3 values implicitly invalidates the TLB, but the entries become valid again when you reset the entry. The PCID feature, which is apparently the cause of this vulnerability, is largely a result of the fact that AMD patented this technique and so Intel doesn't use it.

      Wouldn't the cross licensing agreements between Intel and AMD cover Intel using AMD's patented technique?

      I would sooner believe that AMD saw a problem and implemented a fix and patented it while Intel decided it was too expensive to bother fixing.

  20. The future by Artem+S.+Tashkinov · · Score: 4, Interesting

    I'm curious how much Cannon Lake and Ice Lake CPU architectures are going to be delayed. Since Cannon Lake is basically SkyLake on a 10nm node, Intel cannot release it with such a glaring hole which causes such a significant performance loss.

    I've been running a Sandy Bridge CPU for seven years now, and now I'm really looking forward to the second gen Zen CPUs. Viva, competition. I'm really glad AMD is still around.

    1. Re:The future by sl3xd · · Score: 2

      I'm curious how much Cannon Lake and Ice Lake CPU architectures are going to be delayed.

      I'm going to go out on a limb and say "not at all"

      CPU design pipelines are pretty long; generally requiring at least a year to go from "Tape Out" to fabrication.

      Releasing no chip (and staying with an even slower current generation) is just not an option.

      Cannon Lake and Ice lake are still an improvement on Intel's current offering, and can still compete against AMD's offering.

      Intel managed to move on after the (even more dire) disasterous NetBurst architecture; there's no reason to believe they won't get past this issue.

      It's nice to see that AMD is finally back in the race.

      --
      -- Sometimes you have to turn the lights off in order to see.
  21. Intel CEO Sold a lot of stock... by Nos. · · Score: 5, Interesting

    https://www.fool.com/investing...

    Less than a month before we know the linux kernel was being patched for this bug.

    1. Re:Intel CEO Sold a lot of stock... by sl3xd · · Score: 5, Informative

      This bug has been known and reported about since early November; the original paper was presented in July of 2017, and code has been in Github since Feburary.

      Motley Fool is just noting that the Intel CEO isn't holding any more stock than he needs to.

      And there are good reasons:

      * AMD is back from the dead.
      * Intel's GPU hasn't been that successful -- they've even teamed up with AMD to put Radeon GPU's in the same die as an Intel CPU.
      * PC sales are declining as consumers shift from Intel PC's to using ARM-powered tablets & phones instead.
      * ARM is making inroads into the "desktop and laptop computer" marketplace.
      * ARM is powering most consumer electronics as well (TV's, Blu-ray players, Smart Speakers, etc)
      * Intel is absolutely nowhere in the mobile world. Mobile has one ARM to rule them all.
      * Intel missed the boat for the current generation of XBOX and PlayStation consoles.

      Intel is looking more and more like a one trick pony, and its competitors are beginning to do that one trick better too.

      --
      -- Sometimes you have to turn the lights off in order to see.
    2. Re:Intel CEO Sold a lot of stock... by mentil · · Score: 1

      The stock sale likely has more to do with Intel taking more risks, which investors tend not to like when they see you as a blue-chip stock.

      --
      Corruption is convincing someone that the selfless ideal is the same as their selfish ideal.
    3. Re:Intel CEO Sold a lot of stock... by MSG · · Score: 1

      This bug has been known and reported about since early November

      November, nothing. Theo de Raadt called Intel "a nasty x86 architecture which barely has correct page protection" in 2007. He was right.

      https://marc.info/?l=openbsd-m...

      https://www.theregister.co.uk/...

    4. Re:Intel CEO Sold a lot of stock... by thegarbz · · Score: 1

      Not relevant. Selling of lots of stock in CEO levels isn't something that happens quickly. Heck most such sales happen at pre-set intervals and are declared MANY months in advance.

      Resist the urge to be human, finding patterns that don't actually exist isn't healthy.

  22. Re: AMD stock? Intel Stock? by Monster_user · · Score: 1

    Does Intel still have shares of AMD stock?

  23. ... and this is why ... by nbvb · · Score: 5, Interesting

    This is why we run our mission critical workloads on SPARC and Power along side Linux. Solaris and AIX. Diversity -- in operating system, in processor, in manufacturer - is healthy. The SPARC T8's are blazing faster, secure, and don't have this nonsense. Neither do our POWER8's. Having all your eggs in the Intel+Linux basket could be a major shitshow here... meanwhile, we'll keep chugging along.

    1. Re:... and this is why ... by Anne+Thwacks · · Score: 1
      If you'e on SPARC you've already taken the performance hit many, many times over!

      Depends on what your workload is.

      --
      Sent from my ASR33 using ASCII
    2. Re:... and this is why ... by nbvb · · Score: 1

      Completely NOT unrelated. We've made a very deliberate decision to keep these platforms around - and continue to invest in them - as a hedge against monoculture.

      Doesn't matter if Oracle has another SPARC chip coming or not -- Fujitsu does in the ~2020 timeframe.

      Solaris 11.4 coming in 2018. Have you installed the weekly builds? I have. Will be supported till at least 2034.

      Brought SPARC M8's to production? I have.

      POWER - same kind of thing. POWER9 just launching, starting with AI.

      Sure, this stuff isn't mainstream, but neither are our workloads. People would (literally) die if our systems went down hard. Same reason we use multiple databases - Oracle, DB2, Postgres, mySQL all have a role to play, as well as some other more esoteric ones. Same reason we use multiple network vendors, multiple power suppliers, etc. All about avoiding monoculture.

      So yes -- some people actually DO think ahead of events like this.

    3. Re:... and this is why ... by nbvb · · Score: 1

      ... yes. At scale, yes.

  24. MacOS? by e432776 · · Score: 1

    Have to ask, does this also affect Intel-Macs? I infer "yes", but have not read many of the detailed articles yet...

    1. Re:MacOS? by Artem+S.+Tashkinov · · Score: 1

      With 99.99% certainty unless the Mach kernel does something no other OS does in order to secure kernel memory pages.

    2. Re:MacOS? by Misagon · · Score: 1

      Yes. I understand it, this Intel flaw concerns the kernel being mapped into all processes' address space at the same addresses. The kernel's memory pages are marked "Global" (present for all processes) and "Ring 0" (Kernel access only). This means that a system call does not require a context switch - only a flip of a bit inside the CPU.
      Both Linux, MS Windows and macOS do/did this before the recent patches.

      While macOS uses the Mach microkernel which (because it is a microkernel) had been designed to be small(ish) and run alone in Ring 0, Apple has broken the kernel's protection model and put a whole lot of other stuff in global Ring 0 pages as well to increase performance.
      This makes their "kernel" almost as large as MS Windows and Linux, providing just as much memory that can be attacked through memory/timing-based attacks.
      So, in effect, macOS would be just as vulnerable.

      --
      "We mustn't be caught by surprise by our own advancing technology" -- Aldous Huxley
    3. Re:MacOS? by bruce_the_moose · · Score: 2

      Cue the lawyers to initiate class action lawsuits against Apple once they release their patches to deliberately slow down older machines in the face of a hardware limitation.

      --
      To reduce crime, make fewer things against the law.
  25. Go ARM Go by smist08 · · Score: 1, Interesting

    Glad my latest computer is a Raspberry Pi. Glad to be on an ARM processor. Perhaps this will help more ARM based computers become more mainstream this year.

    1. Re:Go ARM Go by andydread · · Score: 5, Informative

      really sorry to bust your ARM bubble. https://lwn.net/Articles/74039...

  26. We'll just live with the slowdown, pretty much. by OFnow · · Score: 1

    The notion that Intel even has the capability of producing new fixed CPUs to match other than the latest packaging/pin requirements seems fanciful. In which case we'll just have to live with any slowdown. As buying all new systems is just too expensive.

    1. Re:We'll just live with the slowdown, pretty much. by CanadianMacFan · · Score: 1

      No, but this would be one of the few times I'd love to see a class action lawsuit. Intel has been selling us CPUs with a specified amount of processing speed and for all of these years because of this bug those CPUs will no longer be able to match those specs.

      Rebates should be given out automatically based on the cost of the CPU on systems and an average slowdown for the market that they used the machine for (home use, corporate desktop, server, etc).. Large companies such as Apple, Dell, etc have records of who they sold computers to and it would be a quick first step to get money to people. Others who bought from smaller shops, couldn't be reached by the big companies, or bought parts would have to submit receipts.

      Intel keeps doing this and keeps getting away with this. They will still do this unless there is a huge financial penalty for them. With this they could slow down a large proportion of the world's computers and have nothing happen to them.

    2. Re:We'll just live with the slowdown, pretty much. by Xenx · · Score: 1

      From what I can tell, this bug and fix greatly affects businesses. If Intel wants to keep a place in the server market, they pretty much have to fix the issue. As to the whole lawsuit, it'll be tough. Their warranty doesn't cover design defects. I would venture there is likely wording elsewhere protecting them from legal action. It'll be an uphill battle.

    3. Re:We'll just live with the slowdown, pretty much. by CanadianMacFan · · Score: 1

      I didn't saw sue them to fix it under warranty. The lawsuit would be for false advertising. In order to fix the bug and have a CPU the operates properly then their products no longer meet the specifications that were promised. This impacts everyone. Just because home users may not see, some will. But they bought computers based on the speed of the processor. Plus don't forget that Intel charges based on the speed that the processor is able to give businesses and users.

    4. Re:We'll just live with the slowdown, pretty much. by Xenx · · Score: 1

      I never said to sue them to fix it under warranty. I pointed out that they already have provisions in the warranty covering them if there is a design defect. If they took the time to add a line there, I would venture there is wording else were to protect them in this type of situation. As to your idea of false advertisement, it wasn't. An unknown flaw in the product was found. There might be some other course for a lawsuit, but not false advertisement.

  27. Make sure smugness doesn't bite you in the ass by mykepredko · · Score: 1

    Just because ARM processors don't have this security bug it doesn't mean that there aren't any Broadcom ARM processor hardware (or its kernel) security issues lurking out there that are as bad or worse.

    1. Re:Make sure smugness doesn't bite you in the ass by andydread · · Score: 1

      But....https://lwn.net/Articles/740393/

    2. Re:Make sure smugness doesn't bite you in the ass by mykepredko · · Score: 1

      Thanx for the link - it looks like there is some performance impact on the ARM64s. Noted here: http://lists.infradead.org/pip...

      Never think what you are using is perfect.

  28. Is this always worth fixing? by lucasnate1 · · Score: 1

    Won't there be people who decide that fixing this is not worth the slowdown? After all, if it is ran on an internal machine where users can't cause a buffer overflow or provide code, why should there be a risk?

  29. Speculative Memory References and Page Faults by bill_mcgonigle · · Score: 5, Interesting

    From the AMD commit:

    AMD processors are not subject to the types of attacks that the kernel
    page table isolation feature protects against. The AMD microarchitecture
    does not allow memory references, including speculative references, that
    access higher privileged data when running in a lesser privileged mode
    when that access would result in a page fault.

    this can probably be rewritten in the inverse like:

    Intel processors ... allow memory references, including speculative references, that
    access higher privileged data when running in a lesser privileged mode, [including]
    when that access would result in a page fault.

    So it seems like: set up a speculative memory reference to a kernel memory structure, cause a page fault, and then get a bit of kernel memory out (and back in?). That could get you root before long. Some people have been saying this can be leveraged to get a guest into its hypervisor too.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    1. Re:Speculative Memory References and Page Faults by Qzukk · · Score: 1

      That's exactly what happens.

      cause a page fault, and then

      Write a short little helloworld.c that causes a page fault and then prints "Hello World". Let me know what happens to "and then" when you run it as a non-root user.

      There's another piece of the puzzle that is still missing/not being talked about. I suspect that this exploit *only* works meaningfully when done in a virtualized guest with a hostile admin/root exploit. My suspicion could work with a root exploit without a VM, but you're already root so why?

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    2. Re:Speculative Memory References and Page Faults by iamacat · · Score: 1

      The paper actually talks about instructions that are speculatively executed and then discarded, so they don't actually cause page fault. And how, as a result, content of fetched addresses can be potentially discovered by carefully measuring timing of subsequent instructions.

    3. Re:Speculative Memory References and Page Faults by Qzukk · · Score: 1

      mov rax, kerneladdr is the instruction that page used as the exception, which is a page fault and a memory access violation that should segfault. What I was missing is that non-root users can actually trap SIGSEGV (which I should have realized, otherwise SIGSEGV would terminate debuggers too), though the stack overflow pages on this definitely demonstrate it's not simple to come up with a trap that isn't "crash into debugger" or "exit".

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
  30. FUCKWIT by goombah99 · · Score: 2

    not you. thats's what the Linux team wanted to call this bug.

    I read the El Reg article but I still don't understand what it is saying. At all levels. I don't understand if this means all intel processors or just the new ones. I don't understand if the 20% slowdown is for a tiny fraction of operations in the OS or if it means that things like e-mail, firefox or general python programming will be slowed down 20% overall. The latter would be a disaster. (could I ask intel to refund 20% of my computer costs?). And what's the consequences of not patching? Is the OS unstable or not use memory efficiently or "just" a security hole?

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:FUCKWIT by XanC · · Score: 1

      My understanding is that there's a boot-time kernel parameter you can set that will disable the fix.

    2. Re:FUCKWIT by Motherfucking+Shit · · Score: 1

      I haven't yet looked at whatever bits of patch are public, but since this problem only applies to a subset of chips, there will almost certainly be an ifdef in kernel/cpu/intel.c to toggle the fix. At the very least, that means it'll be optional if you compile your own kernel.

      --
      "BSD: Free as in speech. Linux: Free as in beer. Windows 10: Free as in herpes." --Man On Pink Corner in #52607549.
    3. Re:FUCKWIT by AmiMoJo · · Score: 1

      It's optional if you plan to never run newer kernels, or build your own with a patch to disable this fix.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    4. Re:FUCKWIT by Waffle+Iron · · Score: 4, Insightful

      I'm not in the habit of running random binaries downloaded from the Internet

      As TFS implies, given that Javascript required to do almost anything on the web, you are most likely downloading and running random code from the internet that could potentially exploit this bug hundreds of times every day.

    5. Re:FUCKWIT by squiggleslash · · Score: 1

      That's... not how Javascript works. It's only possible to run "binaries" using Javascript if there's a major flaw in the interpreter, but this is true of non-programming language parsers like HTML and even JPEG too.

      Yes, I'm sure you can point at some example of a specific browser's Javascript engine that allowed someone to execute their own x86 code. Likewise I can point at similar bugs in JPEG parsers. It has nothing to do with Javascript itself. Javascript's security issues aren't related to the occasional buffer overflow in an implementation of the string class, they're more due to Javascript's ability to access browser data and send it to places you wouldn't necessarily want it sent.

      And to be clear: if a browser has a Javascript, HTML, or JPEG parsing bug right now that means an attacker can download and execute binary code, that's a major security issue REGARDLESS OF THIS INTEL BUG. Period. The Intel bug isn't going to add a whole lot of insecurity.

      --
      You are not alone. This is not normal. None of this is normal.
    6. Re:FUCKWIT by Waffle+Iron · · Score: 1

      I don't know the particulars of this vulnerability, but in many similar cases they use a timing attack to infer memory contents that they can't directly access.

      You don't need to have a "binary" for that to work. But as I pointed out, the article summary at the top of this page said that the issue was vulnerable to Javascript in browsers, so don't get overconfident.

    7. Re: FUCKWIT by mspohr · · Score: 1

      Yes, just tell the kernel it's running on AMD which doesn't have the problem

      --
      I don't read your sig. Why are you reading mine?
    8. Re:FUCKWIT by Waffle+Iron · · Score: 2

      It still requires dereferencing kernel address space. How do you pull that off otherwise?

      With a timing attack, you don't need to dereference anything. From the Wikipedia article:

      Likewise, if an application is trusted, but its paging/caching is affected by branching logic, it may be possible for a second application to determine the values of the data compared to the branch condition by monitoring access time changes; in extreme examples, this can allow recovery of cryptographic key bits.

    9. Re:FUCKWIT by squiggleslash · · Score: 1

      The only way this could remotely work is if you know absolutely everything about the machine state ahead of time. It might work if you've imaged your victim's PC (in which case, why bother?), or I guess if you have a huge amount of the general state information about the browser, but it's certainly not going to distribute any useful information done as a distributed attack to fish for information to random strangers.

      This is paranoia several levels deep and it's going to cause more harm than good if we let it continue. Realistic attacks on people using Javascript are impossible. It's not credible that anyone is going to get an SSH private key or other critical piece of information via this hack via Javascript, or other successfully sandboxed system, except if there's a genuine flaw in the implementation. And those flaws would be significantly more worrying than this kernel memory issue is to 99% of computer users.

      I can see good reasons to be concerned about this on my VPSes, and on my private server-of-servers, but it's hard to see a realistic attack on my desktops.

      Irony: if your suggestion that timing attacks could work is true, then the one desktop system I can see being vulnerable would be Chromebooks.

      --
      You are not alone. This is not normal. None of this is normal.
    10. Re:FUCKWIT by Waffle+Iron · · Score: 2

      Since large fractions of all systems run the exact same OS images, people DO know much of the system state ahead of time.

      You also don't need to know much about leaked kernel information to make use of it. In a scattershot approach, you try whatever bits you infer to decrypt data. If you're lucky, you find a match. If you attack thousands of systems, you're likely to get lucky.

      In summary, you're just way too overconfident. It only takes one really smart person to package up a hard-to-execute attack and make it conveniently available to everyone else.

    11. Re:FUCKWIT by higuita · · Score: 1

      on linux, you can disable it, if you want (at boot time)... but you do run code from internet all the time, you have javascript in browsers, you install updates and several other "minor" actions that actually run something in your machine

      So if you want to be safe and still keep your performance, buy AMD ;)

      --
      Higuita
    12. Re:FUCKWIT by squiggleslash · · Score: 1

      Since large fractions of all systems run the exact same OS images, people DO know much of the system state ahead of time.

      I'm trying to think of any situation where that might happen. Even in corporate Windows environments, they moved away from identical images a long time ago (not through choice either.)

      The exception, like I said, are Chromebooks, one of the few cases where you can realistically say that almost everyone with a certain User agent string will be running an almost identical environment.

      You also don't need to know much about leaked kernel information to make use of it. In a scattershot approach, you try whatever bits you infer to decrypt data. If you're lucky, you find a match. If you attack thousands of systems, you're likely to get lucky.

      Honestly, I think you're looking at more than thousands, I think this is a tens of millions thing (even if you know 90% of this stuff ahead of time, you're talking about timing attacks, those aren't easy, and you don't know 90% of this stuff ahead of time)

      We're also looking at an attack that hasn't been done before. Most of the exploitable information that hackers are interested in has nothing to do with stuff only available via the kernel. Why have we not seen these kinds of attacks before? [Because they're f---ing almost impossible, that's why!]

      That said, let's address this:

      In summary, you're just way too overconfident. It only takes one really smart person to package up a hard-to-execute attack and make it conveniently available to everyone else.

      I think it's reasonable to be confident that my own environment is highly unlikely to be breached by an insane timing based system that requires full knowledge of exactly what versions of everything I'm running, and has Linux's kernel address randomization to deal with too.

      And that's what I was asking about. I want to know if it's possible to disable this because making web browsers or games run 30% more slowly because of an almost impossible to exploit bug is absurd.

      Over confident? No. The amount of hoops someone has to jump through to create a useful Javascript-based exploit is absurd for this. There are easier ways of getting someone's SSH keys. Hollywood's magic USB drives are more realistic and practical than anything described here. It'd be a whole lot easier to send something as a .exe that downloads automatically and wait for 1% of users to click on it, than try to craft a timing attack that only affects 0.00001% of desktops.

      --
      You are not alone. This is not normal. None of this is normal.
    13. Re:FUCKWIT by Waffle+Iron · · Score: 1

      Think whatever you want. Just don't forget that a whole bunch of smarter people than you have determined that a 30% performance hit is a justifiable price to pay in order to avert this vulnerability.

    14. Re:FUCKWIT by lsatenstein · · Score: 1

      What does one have to do to exploit the bug. Is it something that requires a kernel patch so that the patch can do it's thing? Is the bug so esoteric, that to make use of it would take hours or days of processing and trapping 64bit tlb values, in the hope that the hacking software catches enough info to break through?

      In other words, are we using a sledge hammer to kill an ant.

      --
      Leslie Satenstein Montreal Quebec Canada
  31. It's serious as it affects all Intel cpus by hcs_$reboot · · Score: 1

    From TFA "It is understood the bug is present in modern Intel processors produced in the past decade. It allows normal user programs – from database applications to JavaScript in web browsers – to discern to some extent the contents of protected kernel memory.".

    It could explain why Intel did put the brakes on CPUs production, and some of the 2017 are very hard to find.

    --
    Slashdot, fix the reply notifications... You won't get away with it...
    1. Re:It's serious as it affects all Intel cpus by Anonymous Coward · · Score: 1

      Massive performance hit or absolute security nightmare. This is quite catastrophic. To what extent does this problem go to? Arm as well?

    2. Re:It's serious as it affects all Intel cpus by Z00L00K · · Score: 1

      It all depends on your application if this is going to be a real issue or not. For massive calculation computers already isolated from external influence this is a non-issue but for most computers used for home, office and gaming this is a considerable issue.

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    3. Re:It's serious as it affects all Intel cpus by Nabeel_co · · Score: 1

      I'm guessing that this bug is in the code morphing software that's on all modern CPUs that intel stole from Transmeta.

      As I underetand it, the speed bump in x86 CPUs that's happened in the last decade was by Intel going to RISC processors and running Transmetas code morphing software on their CPUs that dynamically combines multiple x86 CISC operations into fewer, larger RISC ones.

      Intel stole the idea from Transmeta back in the mid '00s and got caught and successfully sued for it. They then licenced the technology and used it in every processor since the Core line of processors.

    4. Re:It's serious as it affects all Intel cpus by Nabeel_co · · Score: 1

      The article states the flaw dates back a decade, not 20 years.

    5. Re:It's serious as it affects all Intel cpus by blackpaw · · Score: 1

      For massive calculation computers already isolated from external influence this is a non-issue

      Theres a proof of concept exploit that allows a VM to access the host and other VM's. A classic breakout exploit.

      Cloud providers will be shitting themselves over this.

  32. Hope the SEC is paying attention by MTEK · · Score: 1

    Intel CEO, Brian Krzanich, apparently sold a bunch of shares on Nov. 29. While that's not unusual in and of itself, apparently Intel corporate bylaws require its CEO to maintain a minimum number 250,000 shares, and that's exactly how many shares Mr. Krzanich has left. Despite predicting future market growth, the guy dumped his stock for some reason.

    https://www.fool.com/investing...

  33. Welp, time to get a hold of a class action lawyer by jtrainor · · Score: 1

    Design failure caused by negligence? Check.

    The 'fix' massively reduces the utility and value of your hardware? Check.

    Millions and millions of people nailed by it? Check.

  34. Temporary slow-down? by Tablizer · · Score: 1

    It may be that over time, more efficient work-arounds will be devised. The first pass mostly just focuses on plugging the hole, while later patches may be more efficient because they can take time to study and test more efficient fixes.

  35. "Memory leak" has a specific meaning. by nyet · · Score: 1

    That is not a memory leak.

  36. Keep this off my Steam machine! by iamacat · · Score: 1

    I don't want a 30% slowdown to my workloads and I don't care if games hack each other to death.

  37. Re:TO BIG TO FAILle. by mschwanke97402 · · Score: 1

    Intel has really blown it with this bug. No argument from me there. On the other hand, Apple has not produced a defective product. Everyone’s batteries wear out. It is physics pure and simple. In Apple’s case they’ve done the riight thing by offering a very inexpensive battery replacement.

  38. amd ryzen gen 2 will crush intel now! by Joe_Dragon · · Score: 1

    amd ryzen gen 2 will crush intel now!

  39. not patching? = no other updates as well unless by Joe_Dragon · · Score: 1

    not patching? = no other updates as well. unless you compile your own Kernel

  40. In related news by Iamthecheese · · Score: 1
    --
    If video games influenced behavior the Pac Man generation would be eating pills and running away from their problems.
  41. Class-Action Lawsuit? by jgheld · · Score: 1

    Forgive me if I am being naive, but won't this mean we are now going to have a slower processor than we paid for, making Intel owners eligible for participation in a class-action lawsuit involving not getting what we paid for or false advertising or something like that? If I bought a car with X horsepower, and suddenly something was found wrong with it and it had to be modified to work, and was suddenly X - 10%, I'd expect compensation. Their flaw is essentially going to make it so people will have to upgrade to keep up with current tasks. How is this at all fair? They can be lazy, then expect more sales?

    1. Re:Class-Action Lawsuit? by Chrisq · · Score: 2

      If I bought a car with X horsepower, and suddenly something was found wrong with it and it had to be modified to work, and was suddenly X - 10%, I'd expect compensation.

      Funnily enough people are bringing a class action lawsuit for exactly this against Volkswagen after a fix to the emissions cheat reduced the power of their cars.

    2. Re:Class-Action Lawsuit? by stinkydog · · Score: 1

      It's the Volkswagon of CPUs!

      SD

      --
      âoeWho knew something as harmless as willful ignorance could end up having real consequences?â
    3. Re:Class-Action Lawsuit? by darkain · · Score: 1

      However, due to this requiring more cycles to accomplish the same task, this in effect increases battery consumption due to how long the CPU needs to stay in a higher clock cycle state.

    4. Re:Class-Action Lawsuit? by sl3xd · · Score: 1

      The CPUs will run just as fast as the day you bought them -- they're not changing at all, and they remain functional.

      Third-party software (the Linux Kernel and Microsoft Windows) will give the CPU more work to do, not slowing down the processor.

      The car analogy would be suing a car manufacturer because its performance driving uphill isn't the same as on level ground. Nothing has changed on the car -- it's the road that changed.

      It's not a slam-dunk case to litigate.

      --
      -- Sometimes you have to turn the lights off in order to see.
  42. Re:TO BIG TO FAIL by slashrio · · Score: 1

    Yes, shouldn't they issue a new CPU for free?

    --
    "Trump!!", the new Godwin.
  43. Re: TO BIG TO FAILle. by Anonymous Coward · · Score: 1

    For a year. Because they've fixed the battery problem right?

    It's like the 4's rubber bumper thing. Band and it for a ridiculously short time for cheap or free and people like you eat it all up

    I sincerely hope the last time you bought their device was over 2 years ago, so you can actually take advantage of this... Otherwise, you'll still be throttled and battery replacement will still cost you 90+

  44. Re:idiots by Chrisq · · Score: 1

    I have an idea, Intel. Stop putting stupid shit INSIDE the chips.

    Wasn't that the idea of Itanium ... put pipelining, etc in the compiler rather than the chip?

  45. HPC cluster by DrYak · · Score: 2

    I don't know, but maybe he runs an high performance computing (HPC ) cluster.

    With compute nodes segregated on a separate network that might not even have internet access,
    and certainly not running random javascripts downloaded from random websites.

    And in these context, performance matters a lot,
    while security is handled in a "perimeter" fashion.

    In those cases, it makes sense to have an option to disable the fix.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re: HPC cluster by Anonymous Coward · · Score: 1

      I don't know about him but I run an HPC cluster and the problem won't be drive-by downloads off the internet. The problem is that I have several hundred of users with she'll access on all of my systems. All it takes is one of them messing around for fun or profit to really ruin my day. Many of them also have terrible security hygiene so their accounts are easy targets themselves.

      This is going to be tough for us to decide on the security vs performance tradeoff.

  46. not the *only* by DrYak · · Score: 1

    The OS devs patching a security hole in the CPU should not leave them open to a lawsuit when the only way to patch it slows down the performance of the system.

    Well, not exactly the only way.
    One way is to run the upgraded kernel, which will use the fix to circumvent the big CPU flaw, but will take a massive performance hit.
    The other way, is to give "nopti" boot param to this new kernel, which will run it as-as with no fixes, which will leave the performance untouched but which is something you would definitely only do on machine that never ever run foreign untrusted code (which according to TFS, also includes javascript).

    OS devs just give you a possibility to circumvent the CPU flaw and are cautious as usual to enable the fix by default (for security purpose) and give an option to disable.
    It' still something which is optional, up to the choice of the user (even if by default the devs have sided on the security aspect).

    On the other hand, Intel are the one who have delivered a pieces of hardware which doesn't work as advertised. (Or could be made sort-of working if you use a performance-killing circumvention).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  47. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  48. Bang goes the ... by RabidStoat · · Score: 1

    accreditation of those high security systems that are left. Most of the ones i worked on relied on Intel's x86 ring mechanisms to protect trusted processes from untrusted processes at the hardware level. Of course that wasn't the only means they used to ensure process isolation, but it was always part of their repertoire.

  49. Capability Based Security - N/A by ka9dgx · · Score: 1

    For once, this has nothing to do with the current lack of capability based security....

    whew

  50. Fix the processor by MoarSauce123 · · Score: 1

    It is rather clear that Intel screwed up. Intel should recall and replace all processors at no cost to the customers. I sure hope Microsoft and the Linux organisation send a bill to Intel for the damages caused.

  51. Feeling pretty good about my AMD CPU. by sabbede · · Score: 1

    Now I can say, "Hah!" in addition to, "I don't have Intel money".

  52. Re:Welp, time to get a hold of a class action lawy by Ash-Fox · · Score: 1

    Design failure caused by negligence? Check.

    Could you explain the exact negligence that occurred here and why it took over ten years for 3rd parties to discover and which 3rd parties should we also hold responsible for negligence?

    --
    Change is certain; progress is not obligatory.
  53. Re: Cryptomining is it effected? by reanjr · · Score: 1

    Probably not as bad as most apps. Crypto mining is all calculation and little I/O. You don't need to enter kernelspace. Since the fix's performance impact occurs during these context switches, one can assume crypto mining is largely unaffected.

  54. Will the CPU bug affect hypervisors? by slashcross · · Score: 1

    Is there a chance that people running Linux in a VM will end up getting hit twice as hard due to fixes in both the Linux kernel and the hypervisor?

    --
    Slashdot your i and slashcross your t.
  55. Re: TO BIG TO FAILle. by Pyramid · · Score: 1

    There is no, "battery problem". It's simply the nature of battery chemistry that they degrade with age. All rechargeable batteries do this, just in different ways depending on the chemistry. Apple's "slow down" was an effort to make devices with marginal batteries *last longer* which is something you'd think the consumer would want. Their failing was not keeping people informed.

    --
    ~Any apparent grammatical or typographic errors are caused by defects in your display device.
  56. Thankfully the CEO sold all his stock right before by paulpach · · Score: 1

    I am relieved for Brian Krzanich, Intel's CEO. He was lucky enough to sell all the stock he could right before this made the news:

    https://www.fool.com/investing...

    Otherwise God forbid, he would have lost a lot of money.

  57. Re: TO BIG TO FAILle. by Hamsterdan · · Score: 1

    Takes 2 minutes to change an iPhone battery, and they don't cost 90$.

    --
    I've got better things to do tonight than die.
  58. Re:tanenbaum's revenge? by Sloppy · · Score: 1

    What if the microkernel doesn't share the same address space as the userspace processes? My understanding is that Linux shares the space to make lots of kernel services convenient (e.g. they can do things to userspace memory, as part of their job). But on a microkernel there's less incentive to do that (whoever is doing things for you, is more likely to be doing things in its own userspace). And if you're not doing that, then there's less to defend against.

    I'm probably missing something.

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  59. Why don't CPU chips have two contexts by presidenteloco · · Score: 1

    One for kernel-privilege code and one for user code, and a lightning fast way (use of a bit) that each instruction selects which of the two contexts it is using. I guess that would mean two separate caches etc.

    This would enable efficient execution of true micro-kernel OSes wouldn't it?

    Not sure if what I said there actually makes sense, in context of current chip architectures.

    Basic idea is one particular kind of context switch, from kernel back and forth to user is not context caching/replacing but is just context selection from two.

    Comments? Cure my ignorance?

    --

    Where are we going and why are we in a handbasket?
  60. Re:Ha ha Apple by Megane · · Score: 1

    Great, now fit one of those into a laptop. Oops. That's why Apple went with Intel, because the only low-power PPC CPUs were embedded CPUs from Motorola/Freescale, with low performance. And the only high-power PPC CPUs were server-class from IBM, when they really needed desktop-class.

    --
    #naabhaprzrag, #sverubfr-000, #agi-fcbafberq, negvpyr[pynff*=' negvpyr-ary-'] { qvfcynl: abar !vzcbegnag; }
  61. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  62. this is like NSA bug by strstr · · Score: 1

    lets them have access to us secretly whenever they want.. kind of like hidden AMD passwords, and NSA Key's, and holes put in things deliberately..

    the only reason to know why this happened is if you did psychic warfare probing on the bastards that designed all these components.

    DO NOT TRUST ANY AMERICAN MADE PIECES OF SHIT.

    https://www.trumpsweapon.com/

  63. Re:tanenbaum's revenge? by Pseudonym · · Score: 1

    What if the microkernel doesn't share the same address space as the userspace processes?

    Before PCID (and in a sense, before 64-bit), microkernel OSes on x86 pretty much had to. L4 famously mapped commonly-used servers into everyone's address space for performance reasons.

    My understanding is that Linux shares the space to make lots of kernel services convenient (e.g. they can do things to userspace memory, as part of their job).

    Yes. There is always a tradeoff between security and programmer convenience. And by that I mean kernel programmer convenience, not user-space programmer convenience.

    Microkernels certainly do have to mess with user space to implement anything interesting with virtual memory, for example. The difference is that microkernels only typically have to implement this once.

    For example, consider the case where a user program needs a large block of data from somewhere else. The kernel could copy this into user space, or if it really cares about performance, it could just memory-map it and save having to copy it. Memory-mapped files are one common example; the kernel is maintaining a buffer cache anyway, so why not just map it into the address space of anyone who needs it?

    Now suppose you had a microkernel that did this with IPC. It carefully looks at an IPC request, and if it seems more efficient and just as safe to do so, it could share pages between a server and a client instead of copying data.

    Now you also have memory-mapped pipe I/O, and memory-mapped networking... all for essentially free.

    --
    sub f{($f)=@_;print"$f(q{$f});";}f(q{sub f{($f)=@_;print"$f(q{$f});";}f});
  64. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion