From: Mathieu Desnoyers Date: Thu, 20 Feb 2020 14:58:42 +0000 (-0500) Subject: Fix: statedump: check task_active_pid_ns return value for NULL X-Git-Tag: v2.10.14~13 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=3e2bb820a3c3d74f5738590a9e4ca6f5580b4251;hp=3e2bb820a3c3d74f5738590a9e4ca6f5580b4251;p=lttng-modules.git Fix: statedump: check task_active_pid_ns return value for NULL The lttng-statedump checks the return value of task_active_pid_ns() before each use within trace_lttng_statedump_process_state(), but misses the NULL check before dereferencing pid_ns->parent. This race happens if a task exists in "dead" state while the statedump iterates on that task. Reported-by: Li Zhou Signed-off-by: Mathieu Desnoyers ---