分会场1_Leon Hwang_bpf:Fixed tailcall issues_报告PPT.pdf

编号:713417 PDF 28页 493.11KB 下载积分:VIP专享
下载报告请您先登录!

1、bpf:Fixed tailcall issues第三届 eBPF开发者大会Leon Hwang2025/04/19中国 西安 Author of eBPF Talk Contributor of pwru,eCapture,drgn Creator of bpfsnoop Independent bpf subsystem contributor BPF contributions:https:/bit.ly/4d9eOWa Blog:https:/ GitHub:https:/ bpfsnoop:https:/第三届eBPF开发者大会Profile1.Fixed tailcall infi

2、nite loop issue caused by trampoline2.Fixed tailcall hierarchy issue3.Fixed crash caused by freplace+prog_array4.Fixed tailcall infinite loop issue caused by freplaceTo explain each issue:How did I find it?What was it?How to fix it?第三届eBPF开发者大会Agendatailcall in bpf2bpf on x86第三届 eBPF开发者大会Prerequisit

3、e:中国 西安 How does tailcall in bpf2bpf work?bpf2bpf means a bpf prog calls another bpf prog directly.The callee bpf prog is named subprog.tailcall in bpf2bpf is the subprog has bpf_tail_call().tail_call_cnt is used to limit the total times of calling bpf_tail_call().tail_call_cnt is propagated by%rax

4、between the caller and the callee.第三届eBPF开发者大会tailcall in bpf2bpf on x860:Fixed tailcall infinite loopissue caused by trampoline第三届 eBPF开发者大会中国 西安 How did I find it?It was found when I studied the 8KiB stack space limit.-When a prog has tailcall,its stack space limits to 256B.-When there are 32 tail

5、calls,the total consumed stack space will be 8Kib+512B at most.第三届eBPF开发者大会Fixed tailcall infinite loop issue caused by trampoline How did I find it?-What if increment the consumed stack space?-What I tried:-Run tailcall in subprog.-Tail callee is the entry prog.-Trace the subprog with fexit in orde

6、r to consume more stack with trampoline.第三届eBPF开发者大会Fixed tailcall infinite loop issue caused by trampoline What was it?-What did I get?-A kernel crash at that time.-Try again?-No tailcall happens=tailcall is skipped.第三届eBPF开发者大会Fixed tailcall infinite loop issue caused by trampoline How to fix it?F

友情提示

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

本文(分会场1_Leon Hwang_bpf:Fixed tailcall issues_报告PPT.pdf)为本站 (科技新城) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

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