Triggers a NULL pointer exception with tracing scheduling events with
vppid context activated.
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
pid_t vppid;
/*
- * nsproxy can be NULL when scheduled out of exit.
+ * current nsproxy can be NULL when scheduled out of exit. pid_vnr uses
+ * the current thread nsproxy to perform the lookup.
*/
rcu_read_lock();
parent = rcu_dereference(current->real_parent);
- if (!parent->nsproxy)
+ if (!current->nsproxy)
vppid = 0;
else
vppid = task_tgid_vnr(parent);