SNIA-SDC23-Hindborg-Multi-Queue-Linux-Block.pdf

编号:148895 PDF 35页 768.80KB 下载积分:VIP专享
下载报告请您先登录!

SNIA-SDC23-Hindborg-Multi-Queue-Linux-Block.pdf

1、MULTI QUEUE LINUX BLOCK DEVICEDRIVERS IN RUSTStorage Developer Conference 2023Andreas HindborgSamsung GOST1AGENDAWhy Memory Safety in the Linux Kernel in General is ImportantMemory Safety in RustThe Rust for Linux Communityblk-mq Rust APInull_blknvme2WHY CARE ABOUT MEMORY SAFETYMicroso?:70%of all se

2、curity bugs are memory safety issues Chrome:70%of all security bugs are memory safety issues 20%of bugs fixed in stable Linux Kernel branches for drivers are memory safety issues 65%of recent Linux kernel vulnerabilities are memory safety issues ASOP:Memory safety vulnerabilities disproportionately

3、represent our most severe vulnerabilities 41%of fixes submitted to C null_blk are fixes for memory safety issues 1243763GOAL:PREVENT MEMORY SAFETY RELATEDBUGS IN LINUX4WHY RUST INSTEAD OF Rust is Much Like C:Ahead of time compiledFocus on maximum programmer control and zero runtime overheadWorks wel

4、l for bare metal workStatically typedPerformance on par with C/C+Easy to link with C programsBasic control flow structures are the same(no throwing of exceptions)5DIFFERENCES BETWEEN RUST AND CStrong type systemModule system(no include files)All statements including blocks evaluate to valuesAll valu

5、es have move semantics by defaultReferences-One mutable or many immutableStatic lifetime analysisGeneric TypesMacros(Simple expansion and AST Transforms)RAII is encouragedAsync/Await primitivesSafe subset without UB through static analysis6MEMORY SAFETY7MEMORY SAFETY IN RUSTRust has a safe subsetMem

6、ory safeType safeThread safeIn safe RustNo buffer overflowsNo use a?er freeNo dereferencing null or invalid pointersNo double freeNo pointer aliasingNo type errorsNo data races8THIS IS NOT UNSAFE BEHAVIOR IN RUSTDeadlocksRace conditionsMemory leaksFailing to call destructorsInteger overflows(checked

友情提示

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

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

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