作者jeff40108 (死得腥羶豔油劑是他)
看板PC_Shopping
標題Re: [情報] Intel嚴重漏洞 OS更新將會降低效能
時間Thu Jan 4 21:58:52 2018
※ 引述《bf000777966 (joe)》之銘言:
: LINUS 本人證實蘇媽的說法,在新的核心補丁裡面排除了AMD的CPU
: "Exclude AMD from the PTI enforcement. Not necessarily a fix, but if AMD is so c
: onfident that they are not affected, then we should not burden users with the ov
: erhead - x86/cpu, x86/pti: Do not enable PTI on AMD processors"
: "AMD processors are not subject to the types of attacks that the kernel page tab
: le isolation feature protects against. The AMD microarchitecture does not allow
: memory references, including speculative references, that access higher privileg
: ed data when running in a lesser privileged mode when that access would result i
: n a page fault."
: Linus Torvalds Trusts Lisa Su's Commitment to AMD CPU Security
: http://go.newsfusion.com/security/item/1108590
Meltdown的原文(PDF論文):
https://meltdownattack.com/meltdown.pdf
原理就是利用speculative execution跟out-of-order execution的特性
在產生exception之前趕快把資料讀走
論文裡還有用intel的TSX隱藏住exception,不讓系統發現
6.4 Limitations on ARM and AMD
論文說在AMD跟ARM上雖然也能跑,但是讀不出結果
蘇媽的說法是他家的CPU禁止任何違法的reference
可信度其實很高(跟論文說的一致)
另一個漏洞叫 Spectre
比meltdown更不直觀,也很難patch掉
不過攻擊原理很類似(改用機率統計判讀)
目前任何有speculative execution的CPU都會中獎
而且要patch的也許不僅是OS而已
一般軟體有資安顧慮的都要修改
結論:
Meltdown是重大的漏洞一定要修(至少從第一代的core i就有的)
Spectre也是很大的洞,連手機都會中,不過比較難利用,也很難Patch掉QQ
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.240.176.133
※ 文章網址: https://webptt.com/m.aspx?n=bbs/PC_Shopping/M.1515074334.A.BB3.html
1F:推 orze04 : Spectre還是得面對 01/04 22:15
2F:推 wahaha99 : 對不起我實在沒時間精神讀整篇英文QQ有沒有人能說一 01/04 22:15
3F:→ wahaha99 : 下 exception 前讀走是從哪邊讀? 01/04 22:15
4F:→ wahaha99 : 我以為是L1/L2 Cache? 01/04 22:16
5F:推 orze04 : 看5.1 Attack Description 01/04 22:19
6F:→ jeff40108 : exception後趁cache還在,可以判斷出條件式指令的 01/04 22:28
7F:→ jeff40108 : 結果 01/04 22:28
8F:→ a2935373 : 其實我搞不懂Spectre要怎麼有意義的針對特定資料 01/04 22:29
9F:→ a2935373 : 還是就大海撈針 總有一天會讓你等到? 01/04 22:29
10F:→ jeff40108 : 要對目標程式有一定了解,偷密碼之類的似乎不難 01/04 22:39
11F:→ a2935373 : 就我的理解 他撈資料有機率性? 01/04 22:40
12F:→ jeff40108 : 不是,是要跑幾輪才能確定 01/04 22:43
13F:→ jeff40108 : 像是猜密碼 01/04 22:43
14F:→ a2935373 : 我再重看一次文件好了QQ 01/04 22:53
15F:→ greg7575 : 所以效能越好的系統撈越快嗎QQ 01/04 22:57
16F:→ jeff40108 : 我也沒很懂,懂一部份而已QQ 01/04 23:38
17F:→ F04E : Spectre目前是還好,因為只能在本地端執行,而且 01/05 12:11
18F:→ F04E : 只能看到同行程裡的東西 01/05 12:12