{"id":142529,"date":"2019-05-03T11:47:53","date_gmt":"2019-05-03T03:47:53","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=142529"},"modified":"2019-04-15T15:49:44","modified_gmt":"2019-04-15T07:49:44","slug":"kernel-spectre-meltdown","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/kernel-spectre-meltdown.html","title":{"rendered":"Linux\u5185\u6838\u53ef\u80fd\u4f1a\u5305\u542b\u6539\u8fdb\u7684Spectre\/Meltdown\u5f00\u5173"},"content":{"rendered":"
\u5f53\u4e0b\u4e00\u4e2aLinux\u5185\u6838\u53d1\u5e03\u65f6\uff0c\u81ea\u4eceSpectre\u548cMeltdown CPU\u63a8\u6d4b\u6267\u884c\u6f0f\u6d1e\u516c\u5f00\u5e76\u4e14\u7f13\u89e3\u5f00\u59cb\u51fa\u73b0\u5728\u5185\u6838\u4e2d\u4e4b\u540e\uff0c\u5927\u7ea6\u9700\u8981\u4e00\u5e74\u534a\u7684\u65f6\u95f4\u3002\u6700\u540e\uff0c\u73b0\u5728\u4e0a\u6e38\u5f00\u53d1\u4eba\u5458\u6b63\u5728\u8ba8\u8bba\u5982\u4f55\u6539\u8fdb\u5f00\u5173\/\u53ef\u8c03\u8282\u65cb\u94ae\uff0c\u4ee5\u4fbf\u8f7b\u677e\u914d\u7f6e\u8fd9\u4e9b\u964d\u4f4e\u6027\u80fd\u7684\u7f13\u89e3\u63aa\u65bd\u3002<\/p>\n
\u4ece\u4e00\u5f00\u59cb\u5c31\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u7981\u7528\u5927\u90e8\u5206\u8fd9\u4e9b\u7f13\u89e3\u63aa\u65bd\uff08\u5bf9\u4e8eSpectre V1\u7684 __user\u6307\u9488\u6e05\u7406\u6ca1\u6709\u8fd9\u79cd\u7f13\u89e3\uff09\u4f46\u662f\u4f7f\u7528\u7684\u5185\u6838\u547d\u4ee4\u884c\u53c2\u6570\u5e76\u4e0d\u662f\u6700\u7b80\u5355\u6216\u5bb9\u6613\u8bb0\u4f4f\u7684......\u5728\u4e00\u4e2a\u6613\u4e8e\u6dfb\u52a0\u7684\u9009\u9879\u4e2d\uff0c\u6ca1\u6709\u5168\u5c40\u5207\u6362\u6765\u6740\u6b7bSpectre\/Meltdown\u7f13\u89e3\u3002\u5728\u6b64\u9636\u6bb5\u7981\u7528\u5927\u591a\u6570\u4fee\u8865\u7684Linux\u5185\u6838\u7248\u672c\u7684\u7f13\u89e3\u63aa\u65bd\uff0c\u5b83\u5f52\u7ed3\u4e3a\u5fc5\u987b\u8bb0\u4f4f\u5e76\u6dfb\u52a0\u201cpti=off spectre_v2=off l1tf=off nospec_store_bypass_disable\u201d\u3002\u7c7b\u4f3c\u5730\uff0c\u5982\u679c\u60f3\u8981\u901a\u8fc7\u201c\u6700\u5927\u7f13\u89e3\u201d\u6765\u589e\u5f3a\u7cfb\u7edf\u7684\u5b89\u5168\u6027\uff0c\u90a3\u4e48\u201cl1tf=full spec_store_bypass_disable=on spectre_v2_user=on\u201d\u53ef\u4ee5\u66f4\u597d\u5730\u4fdd\u62a4\u7cfb\u7edf\u514d\u53d7\u8fd9\u4e9b\u6f0f\u6d1e\u7684\u5f71\u54cd\uff0c\u4f46\u540c\u65f6\u4e5f\u4f1a\u4f7f\u6027\u80fd\u66f4\u9ad8\u4e25\u91cd\u5730\u7531\u4e8eHT\/SMT\u88ab\u7981\u7528\u4ee5\u53ca\u5176\u4ed6\u63aa\u65bd\u3002<\/p>\n
<\/p>\n
Red Hat\u5f00\u53d1\u4eba\u5458Josh Poimboeuf\u91cd\u65b0\u542f\u52a8\u4e86\u4e0a\u6e38\u8ba8\u8bba\uff0c\u63d0\u51fa\u4e86\u4e00\u4e9b\u66f4\u7b80\u5355\u7684\u547d\u4ee4\u884c\u53ef\u8c03\u53c2\u6570\uff0c\u7528\u4e8e\u7981\u7528\u8fd9\u4e9bCPU\u63a8\u6d4b\u7f13\u89e3\u6216\u63d0\u5347\u4fdd\u62a4\uff0c\u800c\u4e0d\u662f\u5fc5\u987b\u8bb0\u4f4f\u6240\u6709\u8fd9\u4e9b\u591a\u9009\u9879\u3002 Poimboeuf\u7684\u521d\u59cb\u63d0\u6848\u5f52\u7ed3\u4e3acpu_spec_mitigations= kernel\u9009\u9879\uff0c\u5176\u503c\u4e3aoff\/auto\/nosmt\u3002<\/p>\n
\u201ccpu_spec_mitigations=\u201d\u540d\u79f0\u672c\u8eab\u6709\u4e00\u4e9b\u963b\u529b\uff0c\u56e0\u4e3a\u5b83\u6709\u70b9\u957f\uff0c\u4f46\u6ca1\u6709\u51b3\u5b9a\u66f4\u77ed\u548c\u66f4\u597d\u5730\u8bb0\u4f4f\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u201cspec_mitigations=\u201d\u3002\u5efa\u8bae\u7684\u8865\u4e01\u4e0d\u4ec5\u5305\u62ecx86_64\uff0c\u8fd8\u5305\u62ec\u5f71\u54cdARM\uff0cs390\u7b49\u7684CPU\u89c4\u8303\u6f0f\u6d1e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5f53\u4e0b\u4e00\u4e2aLinux\u5185\u6838\u53d1\u5e03\u65f6\uff0c\u81ea\u4eceSpectre\u548cMeltdown CPU\u63a8\u6d4b\u6267\u884c\u6f0f\u6d1e\u516c\u5f00\u5e76\u4e14\u7f13\u89e3\u5f00\u59cb\u51fa\u73b0\u5728\u5185 […]<\/p>\n","protected":false},"author":317,"featured_media":142531,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-142529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/142529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=142529"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/142529\/revisions"}],"predecessor-version":[{"id":142604,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/142529\/revisions\/142604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/142531"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=142529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=142529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=142529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}