Fix: honor "user" attribute for array/sequence of user integers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 29 Sep 2022 18:26:27 +0000 (14:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 29 Sep 2022 18:29:56 +0000 (14:29 -0400)
commit6f185e4fc107767e1b4f5f15abe9c62d431c9d66
treead11cb4c258ce8faa2a7fc555a062dbcfebabcc0
parent2b10b359b67014f52b02595025b4d6ed738484f5
Fix: honor "user" attribute for array/sequence of user integers

The macro _lttng_kernel_static_type_integer_from_type() should map to
_lttng_kernel_static_type_integer() to pass the "_user" attribute.
Otherwise, userspace fields such as pipe2's system call fildes field (a
ctf_user_array()) can trigger NULL pointer exceptions and read arbitrary
kernel memory if the pipe2 system call receives a bogus pointer as input
while filtering/capture is accessing this field.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I44276d751b822f214804184d1ce4d9b10b47d89d
include/lttng/events.h
This page took 0.025901 seconds and 4 git commands to generate.