{"id":77079,"date":"2023-09-01T10:11:45","date_gmt":"2023-09-01T02:11:45","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=77079"},"modified":"2023-09-01T10:11:45","modified_gmt":"2023-09-01T02:11:45","slug":"openbsd-karl-kernel","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/openbsd-karl-kernel.html","title":{"rendered":"OpenBSD\u65b0\u7248\u5c06\u589e\u52a0KARL\u529f\u80fd\uff1a\u91cd\u542f\u6362\u5185\u6838"},"content":{"rendered":"
\u5728 OpenBSD \u7684\u6d4b\u8bd5\u5feb\u7167\u4e2d\u52a0\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u529f\u80fd\uff0c\u6bcf\u6b21\u5f53 OpenBSD \u7528\u6237\u91cd\u542f\u6216\u5347\u7ea7\u8ba1\u7b97\u673a\u65f6\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a\u72ec\u7279\u7684\u5185\u6838\u3002\u8be5\u529f\u80fd\u88ab\u79f0\u4e4b\u4e3a KARL\uff08\u5185\u6838\u5730\u5740\u968f\u673a\u5316\u94fe\u63a5Kernel Address Randomized Link\uff09\uff0c\u5373\u4ee5\u968f\u673a\u7684\u987a\u5e8f\u91cd\u65b0\u94fe\u63a5\u5176\u5185\u90e8\u7684\u5185\u6838\u6587\u4ef6\uff0c\u4ece\u800c\u6bcf\u6b21\u751f\u6210\u4e00\u4e2a\u72ec\u7279\u7684\u5185\u6838\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u5f53\u524d\u7684\u7a33\u5b9a\u7248\u4e2d\uff0cOpenBSD \u5185\u6838\u4f7f\u7528\u9884\u5148\u5b9a\u4e49\u597d\u7684\u987a\u5e8f\u6765\u94fe\u63a5\u548c\u52a0\u8f7d\u5185\u6838\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u7684\u5185\u90e8\u6587\u4ef6\uff0c\u8fd9\u5bfc\u81f4\u6240\u6709\u7528\u6237\u7684\u5185\u6838\u90fd\u662f\u4e00\u6837\u7684\u3002
\n<\/p>\n
KARL \u7531 Theo de Raadt \u5f00\u53d1\u3002KARL \u4f1a\u5728\u5b89\u88c5\u3001\u5347\u7ea7\u548c\u91cd\u542f\u65f6\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5185\u6838\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u5f53\u7528\u6237\u542f\u52a8\u3001\u5347\u7ea7\u548c\u91cd\u542f\u673a\u5668\u65f6\uff0c\u6700\u65b0\u751f\u6210\u7684\u5185\u6838\u4f1a\u66ff\u6362\u5df2\u6709\u7684\u5185\u6838\u4e8c\u8fdb\u5236\uff0c\u800c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5185\u6838\uff0c\u5176\u5c06\u7528\u4e8e\u4e0b\u6b21\u542f\u52a8\u3001\u5347\u7ea7\u548c\u91cd\u542f\uff0c\u5468\u800c\u590d\u59cb\u3002<\/p>\n
\u4e0d\u8981\u5c06 KARL \u548c ASLR\uff08\u5730\u5740\u7a7a\u95f4\u5e03\u5c40\u968f\u673a\u5316Address Space Layout Randomization\uff09\u76f8\u6df7\u6dc6\uff0cASLR \u662f\u4e00\u79cd\u7528\u4e8e\u968f\u673a\u5316\u5e94\u7528\u4ee3\u7801\u6267\u884c\u7684\u5185\u5b58\u5730\u5740\u7684\u6280\u672f\uff0c\u4ee5\u9632\u6b62\u77e5\u9053\u5e94\u7528\u6216\u5185\u6838\u8fd0\u884c\u7684\u7279\u5b9a\u533a\u57df\u800c\u88ab\u9488\u5bf9\u6027\u5229\u7528\u3002<\/p>\n
de Raadt \u8bf4\uff0c\u201c\u5b83\u4ecd\u7136\u88c5\u8f7d\u5728 KVA\uff08\u5185\u6838\u865a\u62df\u5730\u5740\u7a7a\u95f4Kernel Virtual Address Space\uff09\u4e2d\u7684\u540c\u6837\u4f4d\u7f6e\uff0c\u8fd9\u4e0d\u662f\u5185\u6838\u7684 ASLR\uff01\u201d<\/p>\n
\u76f8\u53cd\uff0cKARL \u4ee5\u968f\u673a\u7684\u5185\u90e8\u7ed3\u6784\u751f\u6210\u5185\u6838\u4e8c\u8fdb\u5236\uff0c\u8fd9\u6837\u6f0f\u6d1e\u5229\u7528\u7a0b\u5e8f\u5c31\u4e0d\u80fd\u6cc4\u9732\u6216\u653b\u51fb\u5185\u6838\u5185\u90e8\u51fd\u6570\u3001\u6307\u9488\u6216\u5bf9\u8c61\u3002\u6280\u672f\u6027\u7684\u89e3\u91ca\u53c2\u89c1\u4e0b\u9762\u5185\u5bb9\u3002<\/p>\n
\u4e00\u4e2a\u72ec\u7279\u7684\u5185\u6838\u662f\u8fd9\u6837\u94fe\u63a5\u7684\uff0c\u542f\u52a8\u6c47\u7f16\u4ee3\u7801\u4ecd\u653e\u5728\u539f\u5904\uff0c\u63a5\u7740\u662f\u968f\u673a\u5927\u5c0f\u7684\u7a7a\u9699\uff0c\u7136\u540e\u662f\u968f\u673a\u91cd\u7ec4\u7684\u5176\u5b83 .o \u6587\u4ef6\u3002\u8fd9\u6837\u7684\u7ed3\u679c\u5c31\u662f\u51fd\u6570\u548c\u53d8\u91cf\u4e4b\u95f4\u7684\u8ddd\u79bb\u662f\u5168\u65b0\u7684\u3002\u4e00\u4e2a\u6307\u9488\u7684\u4fe1\u606f\u6cc4\u9732\u5c06\u4e0d\u4f1a\u66b4\u9732\u5176\u5b83\u6307\u9488\u6216\u5bf9\u8c61\u3002\u8fd9\u6216\u8bb8\u4f1a\u51cf\u5c11\u53ef\u53d8\u4f53\u7cfb\u67b6\u6784\u7684\u7ec4\u4ef6\uff0c\u56e0\u4e3a\u6307\u4ee4\u6d41\u7684\u591a\u6001\u6027\u88ab\u5d4c\u5957\u504f\u79fb\u7684\u6539\u53d8\u6240\u7834\u574f\u3002<\/p>\n
\u201c\u56e0\u6b64\uff0c\u6bcf\u6b21\u7684\u65b0\u5185\u6838\u90fd\u662f\u72ec\u7279\u7684\u3002\u201dde Raadt \u8bf4\u3002<\/p>\n
\u8be5\u529f\u80fd\u7684\u5f00\u53d1\u59cb\u4e8e\u4e94\u6708\u4efd\uff0c\u9996\u6b21\u8ba8\u8bba\u51fa\u73b0\u4e8e\u516d\u6708\u4e2d\u65ec\u7684 OpenBSD \u6280\u672f\u90ae\u4ef6\u5217\u8868\u4e2d\uff0cKARL \u6700\u8fd1\u51fa\u73b0\u4e8e OpenBSD 6.1 \u7684\u5feb\u7167\u7248\u672c\u4e2d\u3002<\/p>\n
\u201c\u5f53\u4eca\u7684\u60c5\u51b5\u662f\u8bb8\u591a\u4eba\u4ece OpenBSD \u5b89\u88c5\u5185\u6838\u4e8c\u8fdb\u5236\uff0c\u7136\u540e\u8fd9\u4e2a\u76f8\u540c\u7684\u5185\u6838\u4e8c\u8fdb\u5236\u5c06\u8fd0\u884c\u516d\u4e2a\u6708\u4ee5\u4e0a\u3002\u5f53\u7136\uff0c\u5982\u679c\u4f60\u91cd\u590d\u5730\u5f15\u5bfc\u8fd9\u4e2a\u76f8\u540c\u7684\u5185\u6838\u4e8c\u8fdb\u5236\uff0c\u5176\u5185\u5b58\u5e03\u5c40\u4e5f\u662f\u4e00\u6837\u7684\u3002\u8fd9\u5c31\u662f\u73b0\u5728\u6211\u4eec\u6240\u63d0\u4ea4\u7684\u4ee3\u7801\u89e3\u51b3\u7684\u95ee\u9898\u3002\u201dde Raadt \u8bf4\uff0c\u201c\u7136\u800c\uff0c -current \u5feb\u7167\u5305\u542b\u4e86\u4e00\u4e9b\u6211\u6b63\u5728\u548c Robert Peichaer \u5f00\u53d1\u7684\u5c06\u6765\u7684\u53d8\u5316\u3002\u90a3\u4e2a\u53d8\u5316\u5c06\u53ef\u4ee5\u4f7f\u4f60\u6bcf\u6b21\u91cd\u542f\u90fd\u542f\u52a8\u5230\u4e00\u4e2a\u65b0\u94fe\u63a5\u7684\u5185\u6838\u4e0a\u3002\u201d<\/p>\n
\u4e00\u4e2a\u9500\u552e\u9488\u5bf9\u9690\u79c1\u7684\u786c\u4ef6\u4ea7\u54c1\u7684\u521d\u521b\u4f01\u4e1a Technoethical \u7684\u521b\u59cb\u4eba Tiberiu C. Turbureanu \u5bf9 Bleeping Computer \u8bf4\uff0c\u8fd9\u662f\u4e00\u4e2a OpenBSD \u72ec\u6709\u7684\u529f\u80fd\u3002<\/p>\n
\u201c\u5728 Linux \u4e2d\u6ca1\u6709\u5b9e\u73b0\u5b83\uff0c\u201dTurbureanu \u8bf4\uff0c\u201c\u770b\u8d77\u6765\u5f88\u68d2\u7684\u60f3\u6cd5\u201d\uff0c\u4f30\u8ba1\u6709\u53ef\u80fd\u8be5\u529f\u80fd\u4f1a\u79fb\u690d\u5230 Linux \u5185\u6838\u4e2d\u3002<\/p>\n
\u4e0d\u8fc7\uff0cLinux \u521a\u521a\u589e\u52a0\u4e86\u5bf9 KASLR\uff08\u5185\u6838\u5730\u5740\u7a7a\u95f4\u5e03\u5c40\u968f\u673a\u5316Kernel Address Space Layout Randomization\uff09\u7684\u652f\u6301\uff0c\u8be5\u529f\u80fd\u662f\u5c06 KSLR \u79fb\u690d\u5230\u4e86\u5185\u6838\u672c\u8eab\uff0c\u5b83\u4f1a\u5c06\u5185\u6838\u52a0\u8f7d\u5230\u968f\u673a\u7684\u5185\u5b58\u5730\u5740\u3002<\/p>\n
\u8be5\u529f\u80fd\u5728\u4e0a\u5468\u53d1\u5e03\u7684 Linux 4.12 \u4e2d\u9ed8\u8ba4\u542f\u7528\u3002\u8fd9\u4e24\u8005\u7684\u4e0d\u540c\u662f KARL \u662f\u88c5\u8f7d\u4e0d\u540c\u7684\u5185\u6838\u5230\u540c\u4e00\u4e2a\u4f4d\u7f6e\uff0c\u800c KASLR \u5219\u662f\u88c5\u8f7d\u76f8\u540c\u7684\u4e8c\u8fdb\u5236\u5230\u968f\u673a\u7684\u4f4d\u7f6e\u3002\u76ee\u6807\u76f8\u540c\uff0c\u505a\u6cd5\u4e0d\u540c\u3002<\/p>\n
\u5728 Windows \u4e2d\u6ca1\u6709\u652f\u6301 KARL\uff0c\u4f46\u662f\u5fae\u8f6f\u4f7f\u7528 KASLR \u5df2\u7ecf\u5f88\u591a\u5e74\u4e86\u3002\u53cd\u75c5\u6bd2\u521b\u5ba2\u516c\u53f8 Emsisoft \u7684 CTO Fabian Wosar \u6b63\u5728\u5168\u529b\u5c06 KARL \u589e\u52a0\u5230 Windows \u5185\u6838\u4e2d\u3002<\/p>\n
\u201cOpenBSD \u7684\u8fd9\u4e2a\u601d\u8def\u9700\u8981\u8fdb\u4e00\u6b65\u53d1\u626c\u5230\uff08\u5f53\u524d\u7684 Windows \u5185\u6838\u9632\u62a4\u4e2d\uff09\uff0c\u8fd9\u6837\u5927\u5bb6\u90fd\u53ef\u4ee5\u6709\u4e00\u4e2a\u72ec\u7279\u5185\u6838\u4e8c\u8fdb\u5236\u4e86\uff0c\u201dWosar \u5728\u548c Bleeping Computer \u7684\u79c1\u4eba\u8c08\u8bdd\u4e2d\u8bf4\u5230\u3002<\/p>\n
\u201c\u5373\u4fbf\u662f\u4f60\u77e5\u9053\u4e86\uff08\u968f\u673a\u7684\uff09\u5185\u6838\u8d77\u59cb\u70b9\uff0c\u4f60\u4e5f\u4e0d\u80fd\u7528\u5b83\u6765\u627e\u5230\u8981\u5b9a\u4f4d\u7684\u7279\u5b9a\u51fd\u6570\uff0c\u51fd\u6570\u76f8\u5bf9\u4e8e\u5185\u6838\u8d77\u59cb\u70b9\u7684\u4f4d\u7f6e\u662f\u968f\u7cfb\u7edf\u4e0d\u540c\u800c\u4e0d\u540c\u7684\uff0c\u201dWosar \u8865\u5145\u8bf4\u3002<\/p>\n
\u5176\u5b83\u7684\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\uff0c\u5982 Windows \u548c Linux \uff0c\u5982\u679c\u62e5\u6709 KARL \u5c06\u6781\u5927\u7684\u6539\u5584\u5176\u7528\u6237\u7684\u5b89\u5168\u6027\u3002<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-8679-1.html<\/a><\/p>\n