Trying to capture fields for kprobe, kretprobe, 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: If86b0602351fb42047b184608b28108e9de0d183
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;
}
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;
}