Article View: alt.privacy.anon-server
Article #296863Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign
From: Alan Browne
Date: Sat, 06 Jan 2018 16:11
Date: Sat, 06 Jan 2018 16:11
89 lines
5740 bytes
5740 bytes
On 2018-01-06 11:06, Jan-Erik Soderholm wrote: > Den 2018-01-06 kl. 16:27, skrev Alan Browne: >> On 2018-01-05 16:00, DaveFroble wrote: >>> Alan Browne wrote: >>>> On 2018-01-05 09:15, DaveFroble wrote: >>>>> Jan-Erik Soderholm wrote: >>>> >>>>>> 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? >>>> >>>> At least as well as I do. These are very complex mechanisms and >>>> complexity is usually where you're most likely to get problems. >>>> >>>> In this case the h/w implementation didn't reflect the design goal. >>>> >>>> This means intel had very poor design review and abysmal testing of >>>> security features. >>>> >>> >>> There seems a whole bunch of us "speculating" about things we >>> probably don't know enough about. >> >> I am very certain that they either did not design the testing >> correctly or didn't test per the test plan correctly. Or a bad >> scenario: they saw it and carpeted it. >> >>> >>> :-) >>> >>> It seems to me that before memory is fetched into cache, the CPU >>> should be determining whether it should indeed be fetching that >>> memory. Yeah, >> >> The CPU memory controller is (usually) the arbiter of whether a fetch >> is "legal" in the privilege scheme - so if something is allowed to be >> fetched, then it is fetched. So (hierarchically) the fetch goes to >> the decoding pipeline(s) -and- is simultaneously copied to the cache. >> At that point the MC has "allowed" the fetch. Writes to memory are >> also written to cache. The issue seems to be that post fetch from >> Kernel assigned memory, the cache makes some privileged data available >> to lower priority tasks after the context switch. That is the gist. >> > > As I understand, the CPU fetched prived data "under the hood" even before > the processor has decided that it was prived data. When the user process > get an "slap on the hand", the tracks was already in the cache. > > There was never any "context switch" involved at all, it was way below > such constructs. Everything was done from user level "under the radar" > from the point of view of the any OS (or the protection facilities in > the CPU itself, it also seems). I didn't mean OS level CS but privilege level switching. Sorry for the ambiguity. > > And it never made any priviledge data avalable at all. It used the prived > data (byte) that was pre-fetched as an index into an array in user memory > and could later identify what element of the user data that was touched. > > Clever... Interesting. -- “When it is all said and done, there are approximately 94 million full-time workers in private industry paying taxes to support 102 million non-workers and 21 million government workers. In what world does this represent a strong job market?” ..Jim Quinn
Technical Details
Message-ID:
<w9qdnQWsSamFaM3HnZ2dnUU7-d2dnZ2d@giganews.com>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-mailReferences:
<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> <t7adndjRJMgAF9LHnZ2dnUU7-QnNnZ2d@giganews.com> <p2op29$v81$1@dont-email.me> <puydnboIF7Npd83HnZ2dnUU7-XnNnZ2d@giganews.com> <p2qs6u$aul$1@news.albasani.net>Show Full Headers
Complete Article Headers
Message-ID: <w9qdnQWsSamFaM3HnZ2dnUU7-d2dnZ2d@giganews.com> Subject: Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign Date: Sat, 6 Jan 2018 11:11:04 -0500 From: Alan Browne <bitbucket@blackhole.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> <t7adndjRJMgAF9LHnZ2dnUU7-QnNnZ2d@giganews.com> <p2op29$v81$1@dont-email.me> <puydnboIF7Npd83HnZ2dnUU7-XnNnZ2d@giganews.com> <p2qs6u$aul$1@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 NNTP-Posting-Date: Sat, 06 Jan 2018 10:11:04 -0600 Newsgroups: alt.privacy.anon-server,alt.comp.os.windows-10,comp.os.linux.advocacy,comp.sys.mac.system,comp.os.vms User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <p2qs6u$aul$1@news.albasani.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Lines: 89 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-8nEOADfBQ8r5zTv7h1AAh45zLaJy7VfNee61RUowxZH7aYoBDxgX4UY4VMTs10Cp+GhN21CcK0uHbPl!isXCHT5Evc48Voq4pIvQJaCn7GavoguT6A2bWJXrEWiFagGjRbu+cNfceOdTcPSN/bsvX46f1/s= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 5393 X-Received-Bytes: 5484 X-Received-Body-CRC: 3266657920