贾晓宇-Building Linux Distribution from Scratch with Rust.pdf

编号:132085 PDF 19页 723.62KB 下载积分:VIP专享
下载报告请您先登录!

贾晓宇-Building Linux Distribution from Scratch with Rust.pdf

1、第三届中国Rust开发者大会Building Linux Distribution from Scratch with RustSpeaker:Jia XiaoyuCONTENTSWhy choose rust?Using Rust and LFS build linux distroO2What rkos brings us?Why do we choose Rust?Why do we choose Rust?PhoTto/image/chartWhy do we want to use Rust to build most of the things in the Operating s

2、ystem?1.If you have a very large(millions of lines of code)codebase,written in a memory-unsafe programming language(such as C or C+),you can expect at least 65%of your security vulnerabilities to be caused by memory unsafety.2.Security issues can happen not only in the kernel,but also in the whole s

3、ystem,which includes the kernel and the system software.Why do we choose rust?The number of vulnerabilities by type in the GNU since 1999(data from:CVE Details)What rust-related things have happened in the kernel since the release of kernel 6.1?Linux 6.1:Officially Adds Support for Rust in the Kerne

4、lKernel internals(kallsyms expansion for Rust symbols,%pA format)Kbuild infrastructure(Rust build rules and support scripts)Rust crates and bindings for initial minimum viable buildRust kernel documentation and samplesPossible to create hello world moduleWhy do we choose rust?Linux 6.1Linux 6.4:What

5、 are the important updates?Linux 6.2:New:#vtable,declare_err!(),dbg!Linux 6.3:New:Some new type,new trait and alloc crate remove borrow moduleLinux 6.4:New :pin-init APIWhy do we choose rust?Using Rust and LFS build linux distroHow to build rust support Kernel?Require:rustc,rust-src(cross-compile co

6、re and alloc),rust-bindgenllvm(clang)make LLVM=1 rustavailablemake CC=clang rustavailableCompile kernelmake LLVM=1(CC=clang)rustavailableenbale Rust support in the General setupOther thinggccrs in developmentHapping HackingUsing Rust and LFS build linux distroBenefits of using LFS to build linuxdist

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(贾晓宇-Building Linux Distribution from Scratch with Rust.pdf)为本站 (2200) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠