kernel: Use real_parent to avoid interference from ptrace.
This commit is contained in:
@@ -188,7 +188,7 @@ first_app_process:
|
||||
|
||||
struct task_struct *init_task;
|
||||
rcu_read_lock();
|
||||
init_task = rcu_dereference(current->parent);
|
||||
init_task = rcu_dereference(current->real_parent);
|
||||
if (init_task) {
|
||||
task_work_add(init_task, &on_post_fs_data_cb, TWA_RESUME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user