]> git.lttng.org Git - lttng-modules.git/commit
Fix: bytecode validator: reject specialized load field/context ref instructions
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Sep 2022 15:26:39 +0000 (11:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Sep 2022 15:33:55 +0000 (11:33 -0400)
commitce5579a716bff80aa13d4647ab98482f403cc9ef
tree6ef4ab9c743b9e110e6cf58e4de4734ba8d692f6
parent499ac8be0b08816e44bdc76ce2b8bdd0c64a2909
Fix: bytecode validator: reject specialized load field/context ref instructions

Reject specialized load field/context ref instructions so a bytecode
crafted with nefarious intent cannot:

- Read user-space memory without proper get_user accessors,
- Read a memory area larger than the memory targeted by the instrumentation.

This prevents bytecode received from a tracing group user from oopsing
the kernel or disclosing the content of kernel memory to the tracing
group

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icdf82b8ddfdde8314cdf39e3ff29505ca3397193
lttng-filter-validator.c
lttng-filter.c
lttng-filter.h
This page took 0.030934 seconds and 4 git commands to generate.