Trying to capture fields for kprobe and uprobe, event notifications
will end up dereferencing NULL pointers. Prevent execution of capture
code in those cases.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I7ee7e33b9d12986d79aabefcbd5ef91ed2c6d690
container_of(event, struct lttng_kernel_event_notifier, parent);
struct lttng_kernel_notification_ctx notif_ctx;
- notif_ctx.eval_capture = LTTNG_READ_ONCE(event_notifier->eval_capture);
+ notif_ctx.eval_capture = false;
event_notifier->notification_send(event_notifier, NULL, NULL, ¬if_ctx);
break;
}
container_of(event, struct lttng_kernel_event_notifier, parent);
struct lttng_kernel_notification_ctx notif_ctx;
- notif_ctx.eval_capture = LTTNG_READ_ONCE(event_notifier->eval_capture);
+ notif_ctx.eval_capture = false;
event_notifier->notification_send(event_notifier, NULL, NULL, ¬if_ctx);
break;
}