“144d4230fa54dd19b96dcbb6b9bf4cec2328aabe”上不存在“en/release-notes/api-diff/v3.2-beta3/js-apidiff-update.md”
未验证 提交 04d46500 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!120 Fix uprobes rbtree usage

Merge Pull Request from: @x56Jason 
 
This PR is to cherry-pick upstream fix for commit c6bc9bd06dff ("rbtree, uprobes: Use rbtree helpers")

BPFTrace Issue
#I5RUM5

== Tests

1, run bpftrace /usr/share/bpftrace/tools/bashreadline.bt without the fix, we can see the core dump

2, Apply the fix, and run bpftrace /usr/share/bpftrace/tools/bashreadline.bt, the issue disappears.

== Known Issue
N/A

== Default config change
N/A 
 
Link:https://gitee.com/openeuler/kernel/pulls/120 
Reviewed-by: Xu Kuohai <xukuohai@huawei.com> 
Reviewed-by: Zheng Zengkai <zhengzengkai@huawei.com> 
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> 
...@@ -663,7 +663,7 @@ static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset) ...@@ -663,7 +663,7 @@ static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset)
struct rb_node *node = rb_find(&key, &uprobes_tree, __uprobe_cmp_key); struct rb_node *node = rb_find(&key, &uprobes_tree, __uprobe_cmp_key);
if (node) if (node)
return __node_2_uprobe(node); return get_uprobe(__node_2_uprobe(node));
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册