From: Mathieu Desnoyers Date: Wed, 7 Apr 2021 15:05:32 +0000 (-0400) Subject: Fix: event notifier: add missing parameters validation X-Git-Tag: v2.13.0-rc1~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=562376193c44ad44a9243cd880d5e424f0c25b04;p=lttng-modules.git Fix: event notifier: add missing parameters validation Signed-off-by: Mathieu Desnoyers Change-Id: Idbbbe369f64c14e7ac8914b4e7eb8e3ef75b1fb5 --- diff --git a/src/lttng-abi.c b/src/lttng-abi.c index 88c92d91..a78205c4 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -2042,6 +2042,10 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file, goto refcount_error; } + ret = lttng_abi_validate_event_param(&event_notifier_param->event); + if (ret) + goto event_notifier_error; + switch (event_notifier_param->event.instrumentation) { case LTTNG_KERNEL_TRACEPOINT: /* Fall-through */ case LTTNG_KERNEL_SYSCALL: