X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fchannel.c;h=ae53c672c6c2a5792ba981324f37097e7f596f6d;hp=d07e1d901fa3ba10170cb259411c105689a6a4a4;hb=95e047ff8e01767e2e18b892f7a1ba9bf28abcbe;hpb=321d0ee36e3c7f9d38647cb171f5760f4278c784 diff --git a/src/bin/lttng-sessiond/channel.c b/src/bin/lttng-sessiond/channel.c index d07e1d901..ae53c672c 100644 --- a/src/bin/lttng-sessiond/channel.c +++ b/src/bin/lttng-sessiond/channel.c @@ -240,6 +240,11 @@ int channel_ust_create(struct ltt_ust_session *usess, int domain, attr = defattr; } + if (attr->attr.subbuf_size < DEFAULT_UST_CHANNEL_SUBBUF_SIZE) { + ret = LTTNG_ERR_INVALID; + goto error; + } + /* * Validate UST buffer size and number of buffers: must both be * power of 2 and nonzero. We validate right here for UST,