Linux之父對CPU漏洞門爆粗口:修復補丁一 - 3C
By Elizabeth
at 2018-01-24T16:59
at 2018-01-24T16:59
Table of Contents
http://xiaoliniess.space/index.php/2018/01/07/spectre-meltdown-and
-cpu-speculative-execution-issues/
這邊有解釋Google的Retpoline機制是怎麼運作的
簡單的說 就是利用ret取代了jmp 透過對編譯器的修改
去愚弄CPU的預測載入機制 這篇也提到了 由於AMD的運作機制不一樣
一樣的code Intel展開以後的asm會比AMD的複雜 也因此AMD理論上會受到比較低的懲罰
那回到這次的問題 為什麼Intel會這麼急著推出更複雜的機制
而不是單純靠引入Retpoline機制呢?
https://lwn.net/Articles/745111/
All relevant CPUs have the ability to speculate on RET using the return stack
buffer (RSB)—that's what makes retpolines work in the first place. The
problem with Skylake (and presumably also Kaby Lake and later) is that if the
RSB is empty, it can speculate RETs using the normal branch predictor
mechanisms, which are vulnerable to Spectre.
Forcing an empty RSB is not trivial—it can happen on IRQs (including SMM
interrupts), or if the call stack gets more than 16 entries deep (old entries
get popped off on CALL, and then on the 17th RET, you've forgotten where you
originally came from). The question is how to weigh the risk of such
nontrivial attacks versus the cost of enabling IBRS.
LWN這邊的討論給了個可能的答案:
由於Skylake (甚至是以後的CPU? 看LKML的討論沒說不過可以合理懷疑7/8代都有?)
即使套用了Retpoline機制 也會因為更"先進"的分支預測技術
跳過了Retpoline的保護 也就是說 6代(以後?)的Intel CPU單靠Retpoline依然受到威脅
現在問題就是 為了完善保護開啟IBRS機制 vs 極嚴重的性能懲罰
到底你要選哪一個
----
居然是更新世代的CPU漏洞更大....
--
Tags:
3C
All Comments
By Carol
at 2018-01-29T03:06
at 2018-01-29T03:06
By Sandy
at 2018-01-29T08:03
at 2018-01-29T08:03
By Bethany
at 2018-01-31T11:10
at 2018-01-31T11:10
By Catherine
at 2018-02-01T22:03
at 2018-02-01T22:03
By Jessica
at 2018-02-06T11:36
at 2018-02-06T11:36
By Kama
at 2018-02-09T12:45
at 2018-02-09T12:45
By Aaliyah
at 2018-02-12T09:23
at 2018-02-12T09:23
By Edith
at 2018-02-13T15:59
at 2018-02-13T15:59
By Olive
at 2018-02-14T11:06
at 2018-02-14T11:06
By Zora
at 2018-02-18T13:03
at 2018-02-18T13:03
By Damian
at 2018-02-19T11:50
at 2018-02-19T11:50
By Andy
at 2018-02-22T20:28
at 2018-02-22T20:28
By Dora
at 2018-02-27T16:56
at 2018-02-27T16:56
By Kama
at 2018-02-28T09:52
at 2018-02-28T09:52
By Faithe
at 2018-03-02T01:02
at 2018-03-02T01:02
By Rachel
at 2018-03-03T16:49
at 2018-03-03T16:49
By Dorothy
at 2018-03-04T23:29
at 2018-03-04T23:29
By Ophelia
at 2018-03-08T00:26
at 2018-03-08T00:26
By Necoo
at 2018-03-11T11:28
at 2018-03-11T11:28
By Mia
at 2018-03-13T15:19
at 2018-03-13T15:19
By Ida
at 2018-03-13T22:26
at 2018-03-13T22:26
By Tracy
at 2018-03-14T01:54
at 2018-03-14T01:54
By Emma
at 2018-03-16T18:47
at 2018-03-16T18:47
By Kyle
at 2018-03-19T10:50
at 2018-03-19T10:50
By Robert
at 2018-03-24T06:59
at 2018-03-24T06:59
By Brianna
at 2018-03-27T16:29
at 2018-03-27T16:29
By Doris
at 2018-03-28T01:58
at 2018-03-28T01:58
By Zora
at 2018-03-29T15:32
at 2018-03-29T15:32
By David
at 2018-04-03T10:41
at 2018-04-03T10:41
By Robert
at 2018-04-06T02:40
at 2018-04-06T02:40
By Skylar Davis
at 2018-04-06T13:27
at 2018-04-06T13:27
By Kelly
at 2018-04-07T23:18
at 2018-04-07T23:18
By Leila
at 2018-04-12T14:48
at 2018-04-12T14:48
By Madame
at 2018-04-15T23:43
at 2018-04-15T23:43
By Vanessa
at 2018-04-20T00:40
at 2018-04-20T00:40
By Frederica
at 2018-04-24T12:52
at 2018-04-24T12:52
By Jack
at 2018-04-27T20:09
at 2018-04-27T20:09
By Catherine
at 2018-04-30T19:49
at 2018-04-30T19:49
By Blanche
at 2018-05-04T08:01
at 2018-05-04T08:01
By Doris
at 2018-05-07T23:34
at 2018-05-07T23:34
By Anthony
at 2018-05-08T00:42
at 2018-05-08T00:42
By Doris
at 2018-05-08T23:02
at 2018-05-08T23:02
By Charlotte
at 2018-05-13T18:42
at 2018-05-13T18:42
By Jacky
at 2018-05-15T23:43
at 2018-05-15T23:43
By Jacob
at 2018-05-18T22:19
at 2018-05-18T22:19
By Enid
at 2018-05-21T05:04
at 2018-05-21T05:04
By Doris
at 2018-05-24T12:17
at 2018-05-24T12:17
By Lily
at 2018-05-24T18:43
at 2018-05-24T18:43
By Suhail Hany
at 2018-05-28T16:15
at 2018-05-28T16:15
By Hazel
at 2018-05-30T16:30
at 2018-05-30T16:30
By Elvira
at 2018-05-30T21:56
at 2018-05-30T21:56
By Suhail Hany
at 2018-06-01T08:48
at 2018-06-01T08:48
By Dora
at 2018-06-05T05:36
at 2018-06-05T05:36
By Irma
at 2018-06-06T02:26
at 2018-06-06T02:26
By Mia
at 2018-06-10T16:21
at 2018-06-10T16:21
By Ula
at 2018-06-14T23:45
at 2018-06-14T23:45
By Emma
at 2018-06-18T00:05
at 2018-06-18T00:05
By Zanna
at 2018-06-21T06:55
at 2018-06-21T06:55
By Carol
at 2018-06-25T06:55
at 2018-06-25T06:55
By Frederica
at 2018-06-27T15:00
at 2018-06-27T15:00
By Joseph
at 2018-06-27T16:35
at 2018-06-27T16:35
By Iris
at 2018-07-02T02:37
at 2018-07-02T02:37
By Ula
at 2018-07-03T20:10
at 2018-07-03T20:10
By Erin
at 2018-07-06T17:52
at 2018-07-06T17:52
By Eartha
at 2018-07-11T07:47
at 2018-07-11T07:47
By Dora
at 2018-07-12T02:45
at 2018-07-12T02:45
By Puput
at 2018-07-12T09:29
at 2018-07-12T09:29
By Olivia
at 2018-07-13T22:04
at 2018-07-13T22:04
By Edward Lewis
at 2018-07-18T05:11
at 2018-07-18T05:11
By Christine
at 2018-07-23T05:11
at 2018-07-23T05:11
By Daniel
at 2018-07-26T01:48
at 2018-07-26T01:48
By Ingrid
at 2018-07-26T10:56
at 2018-07-26T10:56
By Candice
at 2018-07-28T21:16
at 2018-07-28T21:16
By Olivia
at 2018-07-29T16:47
at 2018-07-29T16:47
By John
at 2018-08-03T15:00
at 2018-08-03T15:00
By Heather
at 2018-08-05T14:20
at 2018-08-05T14:20
By Valerie
at 2018-08-07T08:51
at 2018-08-07T08:51
By Dinah
at 2018-08-08T02:49
at 2018-08-08T02:49
By Valerie
at 2018-08-11T22:21
at 2018-08-11T22:21
By Quanna
at 2018-08-13T01:14
at 2018-08-13T01:14
By Lucy
at 2018-08-16T23:48
at 2018-08-16T23:48
By Valerie
at 2018-08-19T15:15
at 2018-08-19T15:15
By Kristin
at 2018-08-22T12:24
at 2018-08-22T12:24
By Caroline
at 2018-08-23T17:53
at 2018-08-23T17:53
By Jake
at 2018-08-28T12:46
at 2018-08-28T12:46
By Gary
at 2018-08-31T18:37
at 2018-08-31T18:37
By Linda
at 2018-09-02T08:42
at 2018-09-02T08:42
By Rachel
at 2018-09-03T15:35
at 2018-09-03T15:35
By Elizabeth
at 2018-09-08T13:28
at 2018-09-08T13:28
By Christine
at 2018-09-13T08:20
at 2018-09-13T08:20
By Elma
at 2018-09-13T16:52
at 2018-09-13T16:52
By Poppy
at 2018-09-16T02:09
at 2018-09-16T02:09
By Daniel
at 2018-09-19T05:10
at 2018-09-19T05:10
By Kyle
at 2018-09-21T20:21
at 2018-09-21T20:21
By Rachel
at 2018-09-22T04:57
at 2018-09-22T04:57
By Ina
at 2018-09-22T06:29
at 2018-09-22T06:29
By Erin
at 2018-09-24T20:11
at 2018-09-24T20:11
By Anthony
at 2018-09-27T21:57
at 2018-09-27T21:57
By Ula
at 2018-09-30T05:30
at 2018-09-30T05:30
By Annie
at 2018-10-02T08:29
at 2018-10-02T08:29
By Franklin
at 2018-10-05T16:39
at 2018-10-05T16:39
By Kyle
at 2018-10-07T16:54
at 2018-10-07T16:54
By Yuri
at 2018-10-12T02:18
at 2018-10-12T02:18
Related Posts
技嘉:顯示卡3月前不會跌
By David
at 2018-01-24T16:50
at 2018-01-24T16:50
模擬器至少四開 配備升級請教
By Barb Cronin
at 2018-01-24T14:51
at 2018-01-24T14:51
家中長輩用的文書機
By Sandy
at 2018-01-24T14:41
at 2018-01-24T14:41
Apacer AS340 240G 1880元
By Sarah
at 2018-01-24T14:17
at 2018-01-24T14:17
1299元的3D MLC SSD Liton MU3 128G
By Ina
at 2018-01-24T13:58
at 2018-01-24T13:58