From: Mathieu Desnoyers Date: Mon, 5 Sep 2022 22:19:16 +0000 (-0400) Subject: Fix: capture_sequence_element_{un,}signed: handle user-space input X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=11b589f67aab69ed09a7a416b33deb4777047ff4;hp=11b589f67aab69ed09a7a416b33deb4777047ff4;p=lttng-modules.git 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 Change-Id: Icf0c141d333f63402d8a76051bcd53fcdd5ed8c2 ---