Article View: alt.privacy.anon-server
Article #296833Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign
From: Tim Streater
Date: Fri, 05 Jan 2018 16:57
Date: Fri, 05 Jan 2018 16:57
46 lines
3344 bytes
3344 bytes
In article <s2F3C.66300$Xx7.43925@fx16.iad>, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: >On 2018-01-04 17:04, Tim Streater wrote: > >> But AIUI, the protection isn't applied when the CPU does speculative >> instruction execution. It's unclear why, though. > > >The protection IS applied. But... > > >Here is how it works: > >-read 1 byte from memory location Y (for which your process does NOT >have access) into register x. > >-move "1" to my_array[x] > >So normally, you'd read a value from memory, and then use that value as >an index into a 256 byte array where you then move a "1". (the rest of >the array is all zeros). >Here is the trick: a second process keeps flushing the CPU's cache and >checking for changes. When process 1 changes the array, even though it >doesn't go to RAM, it is visivble in the cache and second process sees >that the 57th byte in array has been modified with a "1". This means >that the value read fron kernel memory was 57. > >You need to repeat that for every byte read. OK, so now I have two questions. 1) Process 2, you say, keeps flushing the CPU cache. How does it do this without root priv? And if it has that priv, there must be easier ways to get access to vital info without doing what you describe. 2) Process 1 reads from protected memory and will get an exception for each byte it tries to read. One supposes it has arranged recovery from these exceptions so it can try another byte-read. Wouldn't a prudent OS terminate any process that accumulates more than, say, 10 exceptions of this nature? -- "That excessive bail ought not to be required, nor excessive fines imposed, nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
Technical Details
Message-ID:
<050120181657413271%timstreater@greenbee.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-mailReferences:
<7db9888b131268038007398919a05b86@dizum.com> <jmhs4d1khine5frfj09mahpksmclbsa88q@4ax.com> <p2m3kt$vnk$1@dont-email.me> <040120182204575400%timstreater@greenbee.net> <s2F3C.66300$Xx7.43925@fx16.iad>Show Full Headers
Complete Article Headers
Message-ID: <050120181657413271%timstreater@greenbee.net>
Subject: Re: Intel junk...Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign
Date: Fri, 05 Jan 2018 16:57:41 +0000
From: Tim Streater <timstreater@greenbee.net>
References: <7db9888b131268038007398919a05b86@dizum.com> <jmhs4d1khine5frfj09mahpksmclbsa88q@4ax.com> <p2m3kt$vnk$1@dont-email.me> <040120182204575400%timstreater@greenbee.net> <s2F3C.66300$Xx7.43925@fx16.iad>
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
Lines: 46
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 6Nnqbf2PMxqVMQOwsY0LBwsboP1Npuvx0AEMwlWjOGxLQRJkIL
X-Orig-Path: timstreater
Cancel-Lock: sha1:HCpmciUqo3z3bifMrrQ0RO+2QrM=
Mail-Copies-To: nobody
User-Agent: Thoth/1.9.1 (Mac OS X)
X-No-Trace: yes
X-No-Archive: yes
X-Face: "[^yYK92E9|LVD+Av;Fa,giW>Pb"sKU%_`r0#U!ev`>CN2z}$mY(LO@{)-Mo1
)]#\pO1*O.$hdJl67V?e*J6`nb]cCpJ5<<e&qJ+e+,TI|2/F\d`C#*a*9d^?WOq'H.*%
V?'C+Fi^W-l)f"Ru5V("V~M:yU/Y"W3F[O!t|M1+Q&_.LEV>ZRWNth$Kw0j3f8lz:H9T
N5[T'*t:]%pcYSZM
X-Received-Body-CRC: 1563805571
X-Received-Bytes: 3138