From: Mathieu Desnoyers Date: Fri, 12 Oct 2018 18:47:53 +0000 (-0400) Subject: Fix: adapt to kernel relative references X-Git-Tag: v2.12.0-pre~109 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=c1b0a62512c0dad3c79f3eb29ed29d3a702f2274;hp=c1b0a62512c0dad3c79f3eb29ed29d3a702f2274;p=lttng-modules.git 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 ---