Re: [PATCH v2] kyber: fix wrong strlcpy() size in trace_kyber_latency()

2018-11-12 Thread Jens Axboe
On 11/12/18 1:08 AM, Omar Sandoval wrote: > From: Omar Sandoval > > When copying to the latency type, we should be passing LATENCY_TYPE_LEN, > not DOMAIN_LEN (this isn't a problem in practice because we only pass > "total" or "I/O"). Fix it by changing all of the strlcpy() calls to use >

[PATCH v2] kyber: fix wrong strlcpy() size in trace_kyber_latency()

2018-11-12 Thread Omar Sandoval
From: Omar Sandoval When copying to the latency type, we should be passing LATENCY_TYPE_LEN, not DOMAIN_LEN (this isn't a problem in practice because we only pass "total" or "I/O"). Fix it by changing all of the strlcpy() calls to use sizeof(). Fixes: 6c3b7af1c975 ("kyber: add tracepoints")