Fix: adapt to kernel relative references
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Oct 2018 18:47:53 +0000 (14:47 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 18 Oct 2018 14:31:31 +0000 (10:31 -0400)
commitf083002c25bb222c2e07bbffb17f77afab96b765
tree466f44db9d3496a36a38f18c9521d66f9c90e597
parentb1ddb9416fae4adb1e74d5218cecc4d152e36468
Fix: adapt to kernel relative references

Upstream Linux commit 46e0c9be20 introduces relative references in the
struct tracepoint array of pointers.

Up to (including) v4.19-rc7, the upstream kernel has a type mismatch bug
that allows it to pass an out-of-bound end of array to modules
coming/going notifiers.

The fix for upstream Linux is to introduce a new type: tracepoint_ptr_t,
which can be used to adequately iterate on the array. It is introduced
prior to v4.19 as commit 9c0be3f6b5d77 "tracepoint: Fix tracepoint array
element size mismatch".

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-tracepoint.c
wrapper/tracepoint.h
This page took 0.0286 seconds and 4 git commands to generate.