Fix: event notification capture: validate buffer length
[lttng-modules.git] / src / lttng-context-vsgid.c
index 09c5c139af1756c569148ca16ea12d29b2aac20c..e9b18b670319b618ec8d9da8de557325aa7f099d 100644 (file)
@@ -36,8 +36,7 @@ void vsgid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
        gid_t vsgid;
 
        vsgid = lttng_current_vsgid();
-       lib_ring_buffer_align_ctx(ctx, lttng_alignof(vsgid));
-       chan->ops->event_write(ctx, &vsgid, sizeof(vsgid));
+       chan->ops->event_write(ctx, &vsgid, sizeof(vsgid), lttng_alignof(vsgid));
 }
 
 static
@@ -51,7 +50,7 @@ void vsgid_get_value(void *priv,
 static const struct lttng_kernel_ctx_field *ctx_field = lttng_kernel_static_ctx_field(
        lttng_kernel_static_event_field("vsgid",
                lttng_kernel_static_type_integer_from_type(gid_t, __BYTE_ORDER, 10),
-               false, false, false),
+               false, false),
        vsgid_get_size,
        vsgid_record,
        vsgid_get_value,
This page took 0.02382 seconds and 4 git commands to generate.