{"id":93059,"date":"2024-04-07T18:49:12","date_gmt":"2024-04-07T10:49:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=93059"},"modified":"2024-04-07T18:49:12","modified_gmt":"2024-04-07T10:49:12","slug":"check-your-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/check-your-linux.html","title":{"rendered":"\u600e\u6837\u68c0\u67e5\u7535\u8111\u4ee5\u9632Meltdown\u548cSpectre"},"content":{"rendered":"
<\/p>\n
\u5bfc\u8bfb<\/td>\n | Meltdown\u548cSpectre\u5b83\u4eec\u5f71\u54cd\u5230\u6211\u4eec\u6240\u6709\u4eba\uff0c\u6240\u4ee5\u6211\u4eec\u4e3aLinux\u7528\u6237\u7f16\u5199\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6559\u7a0b\uff0c\u770b\u770b\u4ed6\u4eec\u7684PC\u662f\u5426\u53d7\u5230\u4fdd\u62a4\uff0c\u514d\u53d7Meltdown\u548cSpectre\u5b89\u5168\u6f0f\u6d1e\u7684\u5f71\u54cd\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u672c\u6708\u65e9\u4e9b\u65f6\u5019\u516c\u5f00\u900f\u9732\uff0cMeltdown\u548cSpectre\u662f\u4e24\u4e2a\u5b89\u5168\u6f0f\u6d1e\u7684\u540d\u79f0\uff0c\u8fd9\u4e9b\u6f0f\u6d1e\u5f71\u54cd\u4e86Intel\uff0cAMD\u548cARM\u73b0\u4ee3\u5904\u7406\u5668\u6240\u652f\u6301\u7684\u6570\u5341\u4ebf\u8bbe\u5907\u3002\u5b83\u4eec\u5141\u8bb8\u975e\u7279\u6743\u7684\u653b\u51fb\u8005\u4f7f\u7528\u672c\u5730\u5b89\u88c5\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u7b80\u5355\u7684Web\u811a\u672c\u4ece\u5185\u5b58\u4e2d\u7a83\u53d6\u5305\u62ec\u5185\u6838\u5185\u5b58\u5728\u5185\u7684\u654f\u611f\u4fe1\u606f\uff0c\u5982\u5bc6\u7801\u6216\u52a0\u5bc6\u5bc6\u94a5\u3002<\/p>\n <\/p>\n \u51e0\u4e2a\u6708\u6765\uff0c\u4e1a\u754c\u4e00\u76f4\u5728\u52aa\u529b\u4fee\u8865\u8fd9\u4e9b\u5f71\u54cdCPU\u5728\u8fc7\u53bb\u4e8c\u5341\u5e74\u4e2d\u6240\u9020\u6210\u7684\u4e25\u91cd\u6f0f\u6d1e\uff0c\u4f46\u662f\uff0c\u5c3d\u7ba1\u8bb8\u591a\u4f9b\u5e94\u5546\u4ecd\u5728\u66f4\u65b0\u4ed6\u4eec\u7684\u8f6f\u4ef6\u548c\u64cd\u4f5c\u7cfb\u7edf\uff0c\u800c\u4e0d\u662fMeltdown\u548cSpectre\uff0c\u4f46\u6211\u4eec\u4ecd\u7136\u6ca1\u6709\u8d1f\u8d23\u53d1\u73b0\u8fd9\u4e9b\u786c\u4ef6\u6f0f\u6d1e\u7684\u5b89\u5168\u7814\u7a76\u4eba\u5458\u4e4b\u4e00\u8bf4\uff1a\u201cSpecter\u5c06\u4f1a\u5f71\u54cd\u6211\u4eec\u597d\u591a\u5e74\u201d\u3002<\/p>\n \u5728\u8fc7\u53bb\u4e24\u5468\u91cc\uff0cUbuntu\uff0cDebian\uff0cArch Linux\uff0copenSUSE\uff0cLinux Mint\uff0cFedora\uff0cRed Hat\uff0cCentOS\uff0cCoreOS\u548c\u8bb8\u591a\u5176\u4ed6\u6d41\u884c\u7684GNU\/Linux\u53d1\u884c\u7248\u53d1\u5e03\u4e86\u5185\u6838\u548c\u8f6f\u4ef6\u66f4\u65b0\uff0c\u4ee5\u7f13\u89e3Meltdown\u548c\u6076\u610f\u653b\u51fb\u3002\u82f1\u7279\u5c14\u548cAMD\u8fd8\u63a8\u52a8\u4e86\u5fae\u7801\u56fa\u4ef6\u66f4\u65b0\uff0c\u4ee5\u90e8\u5206\u4fdd\u62a4\u7528\u6237\u514d\u53d7\u6bd4Meltdown\u56f0\u96be\u7684Spectre\u6f0f\u6d1e\u7684\u56f0\u6270\u3002<\/p>\n \u4ee5\u4e0b\u662f\u5982\u4f55\u68c0\u67e5\u60a8\u7684Linux PC\u662f\u5426\u53d7\u5230\u4fdd\u62a4<\/strong><\/div>\n \u5f00\u53d1\u4eba\u5458St\u00e9phaneLesimple\u4e3aLinux\u7cfb\u7edf\u521b\u5efa\u4e86\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684Spectre\u548cMeltdown\u6f0f\u6d1e\/\u7f13\u89e3\u68c0\u67e5\u5668\uff0c\u4ed6\u5728GitHub\u4e0a\u514d\u8d39\u53d1\u5e03\u3002\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u4e0b\u8f7d\u5b83\u6765\u68c0\u67e5\u4ed6\u4eec\u6700\u559c\u6b22\u7684GNU\/Linux\u53d1\u884c\u7248\u662f\u5426\u53d7\u5230\u4fdd\u62a4\uff0c\u4ee5\u9632\u6b62Meltdown\u548cSpectre\u9519\u8bef\u3002\u60a8\u73b0\u5728\u53ef\u4ee5\u4ecehttps:\/\/github.com\/speed47\/spectre-meltdown-checker\/releases<\/a>\u6700\u65b0\u7248\u672c\u7684\u5de5\u5177\u3002<\/p>\n \u5c06\u5b58\u6863\u4fdd\u5b58\u5728\u60a8\u7684\u4e3b\u6587\u4ef6\u5939\u4e2d\u5e76\u89e3\u538b\u7f29\u3002\u6253\u5f00\u7ec8\u7aef\u5e76\u5bfc\u822a\u5230\u89e3\u538b\u7f29\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u5728\u90a3\u91cc\uff0c\u4ee5root\u7528\u6237\u8eab\u4efd\u8fd0\u884csh .\/spectre-meltdown-checker.sh\u547d\u4ee4\uff08\u89c1\u672c\u6587\u4e0a\u9762\u622a\u56fe\uff09\uff0c\u4ee5\u67e5\u770b\u60a8\u7684\u8ba1\u7b97\u673a\u662f\u5426\u53d7\u5230\u4fdd\u62a4\uff0c\u4ee5\u9632\u6b62Meltdown\u548cSpectre\u653b\u51fb\u3002\u4f7f\u7528\u8d77\u6765\u76f8\u5f53\u7b80\u5355\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u7528\u6237\u8f93\u5165\u4efb\u4f55\u4fe1\u606f\u3002\u5b83\u4f1a\u7acb\u5373\u5217\u51fa\u5fc5\u8981\u7684\u4fe1\u606f\u3002<\/p>\n \u5982\u679c\u60a8\u53d1\u73b0\u60a8\u7684Linux\u8ba1\u7b97\u673a\u6613\u53d7\u8fd9\u4e24\u79cdSpectre\u653b\u51fb\u7684\u5f71\u54cd\uff0c\u8bf7\u786e\u4fdd\u4e3a\u60a8\u7684Intel\u6216AMD CPU\u5b89\u88c5\u5fae\u7801\u56fa\u4ef6\uff0c\u5e76\u4e14\u4f7f\u7528\u901a\u8fc7retpoline\u9009\u9879\u7f16\u8bd1\u7684\u5185\u6838\u4ee5\u53ca\u652f\u6301retpoline\u7684\u7f16\u8bd1\u5668\u3002\u68c0\u67e5\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u4f9b\u5e94\u5546\uff0c\u770b\u4ed6\u4eec\u662f\u5426\u6709\u8fd9\u6837\u7684\u5185\u6838\u5305\u53ef\u7528\u4e8e\u4f60\u7684\u53d1\u884c\u7248\u3002<\/p>\n \u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u7edd\u5927\u591a\u6570\u53d1\u884c\u7248\u90fd\u5e94\u8be5\u9488\u5bf9Meltdown\u6f0f\u6d1e\u8fdb\u884c\u4fee\u8865\uff0c\u4f46\u662f\u7531\u4e8eSpecter\u662f\u8981\u4fee\u590d\u7684\u786c\u4ef6\uff0c\u56e0\u6b64\u5728\u672a\u6765\u51e0\u5929\u5185\u5c06\u4f1a\u53d1\u5e03\u5185\u6838\u66f4\u65b0\u548c\u5fae\u7801\u56fa\u4ef6\u4fee\u8865\u7a0b\u5e8f\uff0c\u56e0\u6b64\u8bf7\u786e\u4fdd\u60a8\u7684\u8ba1\u7b97\u673a\u4fdd\u6301\u6700\u65b0\u4e00\u76f4\u3002\u5982\u679c\u4f60\u613f\u610f\uff0cMake\u662f\u4e00\u79cd\u65e5\u5e38\u4e60\u60ef\uff0c\u4f46\u662f\u4e00\u65e6\u6709\u65b0\u7684\u8f6f\u4ef6\u66f4\u65b0\uff0c\u5c31\u5c3d\u5feb\u5b89\u88c5\u3002<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.linuxidc.com\/Linux\/2018-01\/150299.htm<\/a><\/p>\n |