Fix: capture_sequence_element_{un,}signed: handle user-space input
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Sep 2022 22:19:16 +0000 (18:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Sep 2022 20:07:38 +0000 (16:07 -0400)
commit11b589f67aab69ed09a7a416b33deb4777047ff4
tree5c1fed5ef730d1fba0b98af49d01fd5dc86b5d4e
parent8915cf5e47e6dd0ba1baebdb13027b0ce4237c86
Fix: capture_sequence_element_{un,}signed: handle user-space input

The "user" attribute (copy from userspace) is not applied to
sequence/array of integer field capture within event notifications. This
could eventually lead to unsafe copy of integers from user-space.

Currently, the only array/sequence of integers which are read from
user-space are the arguments to sys_select (e.g. `readfds` field). Those
are expressed as "custom" fields, which are skipped by the filter and
capture bytecode.

This is therefore not an issue with the current instrumentation, but we
should properly handle this nevertheless.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icf0c141d333f63402d8a76051bcd53fcdd5ed8c2
src/lttng-event-notifier-notification.c
This page took 0.026884 seconds and 4 git commands to generate.