v2
2026-11-03
maple树遍历与告警修复 · v2
修复RCU读者在节点死亡后重启时对空树或单entry根指针解引用NULL的问题,并让MT_WARN_ON改用WARN()以便syzbot发现。
原始补丁链接
子 Patch(3)
1/3
maple_tree: Fix rcu reader NULL dereference after the tree is emptied
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] maple_tree: race in mas_prev_slot() when root is emptied after mas_rewalk() – commit edc2da191bb
2/3
maple_tree: Test emptying tree while RCU reading
新增maple tree测试:RCU读者遍历期间清空树并触发重试,验证从索引0反向遍历不会返回新根条目,覆盖空树与RCU重启路径。
3/3
maple_tree: Update internal warning and bug_on code
On Mon, Nov 02, 2026 at 09:07:24PM -0500, Liam R. Howlett (Google) wrote: > When CONFIG_DEBUG_MAPLE_TREE is set, call WARN_ON() once per site after > the custom information is dumped about the tree.