Fix: statedump: check whether "files" is NULL, RCU semantic fix
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Jun 2014 18:52:03 +0000 (14:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Jun 2014 18:54:43 +0000 (14:54 -0400)
We need to check if p->files is NULL before passing it to
files_fdtable(). Moreover, since the fdt is now protected by RCU, we
have to assume it can change between the read from
lttng_enumerate_task_fd() and the internal in-kernel read in
iterate_fd(). Therefore, move this rcu dereference into
lttng_dump_one_fd(), and perform the appropriate checks on max fds.

Fixes #799

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.027107 seconds and 4 git commands to generate.