Article View: alt.privacy.anon-server
Article #296856Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign
From: Alan Browne
Date: Sat, 06 Jan 2018 15:27
Date: Sat, 06 Jan 2018 15:27
75 lines
5231 bytes
5231 bytes
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. > sounds simple, but I'm betting it isn't. I recall when pipelining came to simple microprocessors and we were in the lab swapping processors and measuring the performance gains and salivating over not much... or IIRC a competitor to the 8088 came out with some cycles saved on some instructions and we were doing the same thing. Then pre-fetching came - then predictive decoding and so on ... What they do these days in processors in mind-boggling layers of complexity before you even get close to privilege management. To me though, multicore processing is the best achievement. Certainly makes OS's and apps very smooth in operation. -- โ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:
<puydnboIF7Npd83HnZ2dnUU7-XnNnZ2d@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>Show Full Headers
Complete Article Headers
Message-ID: <puydnboIF7Npd83HnZ2dnUU7-XnNnZ2d@giganews.com> Subject: Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign Date: Sat, 6 Jan 2018 10:27:48 -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> 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 09:27:48 -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: <p2op29$v81$1@dont-email.me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Lines: 75 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-AVKhWdalQEzYuIx76jFYhoHC+nAyZ2Sd4V7eJBAUyRLFUJ5Dwb9LO8hPBlX17aV/LwiPE0Sgi4i7NCa!idsyUHLCbAFQ6sjf46HoXXl6WPl9eneHBS1nvY9WBDqjgQ7S8kv3J/0lcYvjh7APFKvrVEZuW+E= 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: 4880 X-Received-Body-CRC: 3930888724 X-Received-Bytes: 5092