{"id":126978,"date":"2025-01-14T10:26:26","date_gmt":"2025-01-14T01:26:26","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=126978"},"modified":"2025-01-14T10:26:26","modified_gmt":"2025-01-14T01:26:26","slug":"microsoft-pulls-linux-cfi-patch","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/microsoft-pulls-linux-cfi-patch\/","title":{"rendered":"Microsoft\u3001\u3046\u3063\u304b\u308aLinux\u3092\u7834\u58ca\u3059\u308b\u30d1\u30c3\u30c1\u3092\u63d0\u51fa\u3057Intel\u3068AMD\u304c\u64a4\u56de\u3092\u8981\u6c42"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/04\/1588189631_ms_loves_linux_story.jpg\" alt=\"\" title=\"1588189631_ms_loves_linux_story.jpg\" border=\"0\" width=\"760\" height=\"428\" \/><\/p>\n<p>\u3053\u308c\u307e\u3067\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u305f\u3082\u306e\u304c\u7a81\u7136\u52d5\u304b\u306a\u304f\u306a\u308b\u3068\u3044\u3046\u306e\u306fWindows\u306b\u9650\u3063\u305f\u3082\u306e\u3067\u306f\u306a\u304f\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Microsoft\u304c\u63d0\u51fa\u3057\u305f\u30d1\u30c3\u30c1\u306b\u3088\u3063\u3066\u3001Linux\u30ab\u30fc\u30cd\u30eb\u306e\u4e00\u90e8\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308a\u3001Intel\u3084AMD\u306e\u958b\u767a\u8005\u304c\u64a4\u56de\u3092\u6c42\u3081\u308b\u3068\u3044\u3046\u4e8b\u614b\u304c\u767a\u751f\u3057\u3066\u3044\u305f\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f(<a href=\"https:\/\/www.neowin.net\/news\/microsoft-pulls-a-windows-as-it-breaks-linux-on-intel-cpus-and-angers-amd-in-the-process\/\">Neowin<\/a>)\u3002<\/p>\n<p>\u554f\u984c\u3068\u306a\u3063\u305f\u5909\u66f4\u306f\u3001ARCH_HAS_EXECMEM_ROX\u30ab\u30fc\u30cd\u30eb\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u95a2\u3059\u308b\u3082\u306e\u3067\u3001\u5b9f\u884c\u30e1\u30e2\u30ea(EXECMEM)\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u8aad\u307f\u53d6\u308a\u5c02\u7528\u5b9f\u884c(ROX)\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3067\u53ef\u80fd\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>Linux 6.13\u306ex86_64\/AMD64\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3001\u3059\u306a\u308f\u306164\u30d3\u30c3\u30c8\u306eAMD\u304a\u3088\u3073Intel CPU\u3092\u642d\u8f09\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u3092\u76ee\u7684\u3057\u305f\u3082\u306e\u3067\u3059\u304c\u3001x86\u30ab\u30fc\u30cd\u30eb\u306e\u30e1\u30f3\u30c6\u30ca\u304b\u3089\u306e\u627f\u8a8d(Ack)\u306f\u5f97\u3089\u308c\u3066\u304a\u3089\u305a\u3001CPU\u306eCFI(Control Flow Integrity)\u3092\u7834\u58ca\u3057\u3066\u3057\u307e\u3063\u305f\u6a21\u69d8\u3002<\/p>\n<p>Intel\u306ePeter Zijlstra\u6c0f\u306f\u3001EXECMEM_ROX\u306b\u95a2\u3059\u308b\u5909\u66f4\u3092\u7dca\u6025\u306b\u623b\u3059\u3088\u3046\u30b3\u30e1\u30f3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>x86: Disable EXECMEM_ROX support<\/p>\n<p>The whole module_writable_address() nonsense made a giant mess of alternative.c, not to mention it still contains bugs -- notable some of the CFI variants crash and burn.<\/p>\n<p>Mike has been working on patches to clean all this up again, but given the current state of things, this stuff just isn't ready.<\/p>\n<p>Disable for now, lets try again next cycle.<\/p>\n<p>x86:EXECMEM_ROX\u30b5\u30dd\u30fc\u30c8\u3092\u7121\u52b9\u5316<\/p>\n<p>module_writable_address()\u306e\u7121\u610f\u5473\u3055\u306falternative.c\u3092\u5927\u6df7\u4e71\u306b\u9665\u308c\u305f\u3002<\/p>\n<p>Mike\u306f\u3001\u3053\u308c\u3089\u3059\u3079\u3066\u3092\u518d\u3073\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u305f\u3081\u306e\u30d1\u30c3\u30c1\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u308b\u304c\u3001\u73fe\u72b6\u3092\u8003\u3048\u308b\u3068\u3001\u3053\u306e\u3088\u3046\u306a\u3082\u306e\u306f\u307e\u3060\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>\u4eca\u306f\u7121\u52b9\u306b\u3057\u3066\u3001\u6b21\u306e\u30b5\u30a4\u30af\u30eb\u3067\u518d\u6311\u6226\u3057\u3088\u3046\u3002\n<\/p><\/blockquote>\n<p>\u307e\u305fAMD\u306eBorislav Petkov\u6c0f\u3082\u3001\u3053\u306e\u4ef6\u306b\u95a2\u3057\u3066\u82db\u7acb\u3061\u3092\u8868\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>\nI just love it how this went in without a single x86 maintainer Ack, it broke a bunch of things and then it is still there instead of getting reverted. Let's not do this again please.<\/p>\n<p>x86\u306e\u30e1\u30f3\u30c6\u30ca\u30fc\u304c\u4e00\u4eba\u3082\u3044\u306a\u3044\u306a\u3093\u3066\u3001\u7d20\u6674\u3089\u3057\u3044\u3053\u3068\u3060\u3002\u3082\u3046\u3053\u3093\u306a\u3053\u3068\u306f\u3084\u3081\u3088\u3046\u3002\n<\/p><\/blockquote>\n<p>Control Flow Integrity(CFI) \u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u30d5\u30ed\u30fc\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6280\u8853\u3067\u3001\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30bf\u306e\u5206\u96e2\uff08CPS\uff09\u3001\u30b3\u30fc\u30c9\u30dd\u30a4\u30f3\u30bf\u306e\u6574\u5408\u6027\uff08CPI\uff09\u3001\u30b9\u30bf\u30c3\u30af\u30ab\u30ca\u30ea\u30a2\u3001\u30b7\u30e3\u30c9\u30a6\u30b9\u30bf\u30c3\u30af\u3001vtable\u30dd\u30a4\u30f3\u30bf\u306e\u691c\u8a3c\u306a\u3069\u306e\u6280\u8853\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3057\u3001\u30de\u30eb\u30a6\u30a7\u30a2\u653b\u6483\u304b\u3089\u30b7\u30b9\u30c6\u30e0\u3092\u5b88\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u624b\u6bb5\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u307e\u3067\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u305f\u3082\u306e\u304c\u7a81\u7136\u52d5\u304b\u306a\u304f\u306a\u308b\u3068\u3044\u3046\u306e\u306fWindows\u306b\u9650\u3063\u305f\u3082\u306e\u3067\u306f\u306a\u304f\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Microsoft\u304c\u63d0\u51fa\u3057\u305f\u30d1\u30c3\u30c1\u306b\u3088\u3063\u3066\u3001Linux\u30ab\u30fc\u30cd\u30eb\u306e\u4e00\u90e8\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308a\u3001Intel\u3084AM [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":120361,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[37,3298],"class_list":["post-126978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-linux","tag-windows"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/126978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=126978"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/126978\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/120361"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=126978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=126978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=126978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}