We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c282b0 commit 22a34c6Copy full SHA for 22a34c6
kernel/exit.c
@@ -619,8 +619,8 @@ static void forget_original_parent(struct task_struct *father,
619
reaper = find_new_reaper(father, reaper);
620
list_for_each_entry(p, &father->children, sibling) {
621
for_each_thread(p, t) {
622
- t->real_parent = reaper;
623
- BUG_ON((!t->ptrace) != (t->parent == father));
+ RCU_INIT_POINTER(t->real_parent, reaper);
+ BUG_ON((!t->ptrace) != (rcu_access_pointer(t->parent) == father));
624
if (likely(!t->ptrace))
625
t->parent = t->real_parent;
626
if (t->pdeath_signal)
0 commit comments