日期范围
113
全部讨论数
Bugfix重要分析 success作者:Tejun Heo2026/08/15 02:523 封邮件

[PATCH sched_ext/for-7.3] sched_ext: Set up ops.sub_ecaps_updated() dispatch context on the executing CPU

Tejun Heo 修复 scx_process_sync_ecaps() 在 core scheduling 下使用错误 dsp_ctx 的 bug。改动把 dispatch 上下文从目标 CPU 的 pcpu 改为执行 CPU 的 pcpu,与 scx_dispatch_sched() 对齐,确保 sub_ecaps_updated() 的 kfunc 在 sibling rq 路径下拿到正确的 rq 和 dispatch buffer。补丁已被 Applied 到 sched_ext/for-7.3 分支。

lore
其它分析 success作者:Ziyang Men2026/08/15 01:2111 封邮件

[PATCH v3 0/4] selftests: shared lib.bpf.mk for building BPF progs and skeletons

Ziyang Men 发送 v3 系列,把 selftests/{bpf,sched_ext,hid} 中重复的 libbpf/bpftool/vmlinux.h/骨架构建脚本统一抽取到 tools/testing/selftests/lib.bpf.mk;同时新增 memcg_stat_cross_cpu 正确性测试,弥补既有 cgroup_iter_memcg 只判非零的不足。三个消费者切换后净增共享代码约 900 行、删除重复约 270 行,公开 API 不变。

lore
其它重要分析 success作者:Tejun Heo2026/08/14 01:125 封邮件

[PATCHSET sched_ext/for-7.3-arena-args] sched_ext: Convert arena-pointer interfaces to __arena arguments

Tejun Heo 借助 bpf-next 刚落地的 kfunc/struct_ops __arena 参数支持,把 sched_ext cid-form 的 set_cmask、sub_caps_updated、scx_bpf_sub_grant/revoke/caps 与 scx_bpf_cid_override 等跨边界接口统一迁到 __arena 参数,删除手工 scx_kaddr_to_arena() rebase 与 BPF 端 (void *)(long) cast。3 个 patch,+148/-148 行,覆盖 11 个文件;同时把 cid_override 的 __sz 拆...

lore
讨论重要分析 success作者:David Carlier2026/08/13 12:591 封邮件

[BUG] sched_ext: ops.sub_ecaps_updated() dispatch context is set up on the wrong CPU under core scheduling

David Carlier 报告 sched_ext 在 core scheduling 下,scx_process_sync_ecaps() 把 dispatch context 错绑到目标 CPU 的 pcpu,导致执行 sibling CPU 上的 dsp_ctx.rq 为 NULL。该 bug 与 commit 3dd52416e44a 同类但被遗漏:若 ops.sub_ecaps_updated() 回调里调用 scx_bpf_dsq_move_to_local(),会走进 cpu_of(NULL) 触发 oops。作者建议改用 this_cpu_ptr(pcpu->sch->pcp...

lore
Bugfix分析 success作者:Qiurong Fang2026/08/13 03:203 封邮件

[PATCH] sched_ext: Gate cid kfuncs behind the SCX struct_ops check

scx_bpf_cid_to_cpu/cpu_to_cid/cid_topo 三个 kfunc 归在 scx_kfunc_ids_cid 里,但 scx_kfunc_context_filter() 漏检这个集合,导致任意 struct_ops 程序(包括 TCP 拥塞控制)都能调用它们。补丁把 scx_kfunc_ids_cid 加入 filter 的已知集合,与 in_any / in_idle 并列处理。Tejun 已 apply 到 sched_ext/for-7.3。

lore
每页
上一页10 / 23下一页