🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #296828

Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign

#296828
From: Jan-Erik Soderholm
Date: Fri, 05 Jan 2018 14:22
62 lines
4544 bytes
Den 2018-01-05 kl. 15:15, skrev DaveFroble:
> Jan-Erik Soderholm wrote:
>> Den 2018-01-04 kl. 23:04, skrev Tim Streater:
>>> In article <p2m3kt$vnk$1@dont-email.me>, DaveFroble
>>> <davef@tsoft-inc.com> wrote:
>>>
>>>> chrisv wrote:
>>>>> Designed By India H1B Engineers wrote:
>>>>>
>>>>>> 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.
>>>>>
>>>>> This is ugly.  Think of the large computing centers, for example
>>>>> Google's data centers.  Suddenly, they will need significantly more
>>>>> CPU time, and thus electricity (and thus carbon), to get the job done?
>>>>>
>>>>
>>>> And once all the spanners are tossed into the works, which will slow 
>>>> things down, what happens when new CPUs without the issues are 
>>>> available?  Will computers forever be artificially slowed down?
>>>>
>>>> A whole bunch of someones has seriously dropped the ball on this. 
>>>> Protected memory should be just that, protected, with no way to avoid 
>>>> the protection.
>>>
>>> But AIUI, the protection isn't applied when the CPU does speculative
>>> instruction execution. It's unclear why, though.
>>>
>>
>> Becuse the designers, for performance reasons, has mapped kernel memory
>> into the user process address space and relies on the OS to check
>> protection before any kernel memory (or code) is accessed.
>>
>> The issue with the current issues is that the hardware (the CPU) does
>> these accesses in hardware "under the hood" without control by the OS.
>>
>> If you map your kernel memory in another way that uses the hardware
>> protection facilities, you are (as I understand) safe, at the cost
>> of worse performance to switch between user and kernel mode.
>>
>>
> 
> As I wrote, someone dropped the ball on this one.
> 
> Speculative execution is part of the HW, not software.  It appears the HW 
> doesn't follow it's own rules.  Or, perhaps I don't actually understand the 
> problem?
> 

As I understand, as in Linux, the kernel memeory is mapped into each user
process memory space (for performance reasons). The speculative fetch done
by the hardware can read kernel memory directly. And when the protection
schemas detects this, the data is already in the internal CPU cache.

The solution seems to be to separate kernel and user memoery into separate
virtual memory areas. So a re-mapp of the memory mapping is needed each
time the process needs to read kernel memory, and that adds a perf cost.

And yes, it looks like different "levels" in the hardware are bit
out of sync...
Technical Details
Message-ID: <p2o1mh$gvh$2@news.albasani.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mail
References: <7db9888b131268038007398919a05b86@dizum.com> <jmhs4d1khine5frfj09mahpksmclbsa88q@4ax.com> <p2m3kt$vnk$1@dont-email.me> <040120182204575400%timstreater@greenbee.net> <p2m8t9$efm$4@news.albasani.net> <p2o19j$e88$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <p2o1mh$gvh$2@news.albasani.net>
Subject: Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign
Date: Fri, 5 Jan 2018 15:22:06 +0100
From: Jan-Erik Soderholm <jan-erik.soderholm@telia.com>
References: <7db9888b131268038007398919a05b86@dizum.com> <jmhs4d1khine5frfj09mahpksmclbsa88q@4ax.com> <p2m3kt$vnk$1@dont-email.me> <040120182204575400%timstreater@greenbee.net> <p2m8t9$efm$4@news.albasani.net> <p2o19j$e88$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.advocacy.(1483839).mbox.7z!not-for-mail
Newsgroups: alt.privacy.anon-server,alt.comp.os.windows-10,comp.os.linux.advocacy,comp.sys.mac.system,comp.os.vms
Organization: albasani.net
Lines: 67
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net VP96lhP/6bGL56LXJORjalXlA1UF8xOjDF27oTEsR1IklpjaFYKX4w97ct/ZP9eR6R7vzxAgv0b9JS85pN8KgA==
NNTP-Posting-Date: Fri, 5 Jan 2018 14:22:10 +0000 (UTC)
Injection-Info: news.albasani.net; logging-data="TVwQLwKGJBJfC1/Fc3BEHZbLzRWmjBvEcvFlz+6k5RJG2FQAl8Axjvu860iFLRDeMJAMjluKYuX70LvNf9PB8P/1hbWbTwIGP8KPcX1DwgyWhOM37ozrnY2CIVgc5xmh"; mail-complaints-to="abuse@albasani.net"
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.5.2
In-Reply-To: <p2o19j$e88$1@dont-email.me>
Content-Language: sv
Cancel-Lock: sha1:YihA0uYi5disrk4EPtJdbt/6AKM=
X-Received-Body-CRC: 421045202