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

2018-11-11 Thread Bart Van Assche
On 11/11/18 9:25 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", but let's fix it. Reported-by: Jordan Glover Signed-off-by: Omar

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

2018-11-11 Thread Omar Sandoval
On Sun, Nov 11, 2018 at 09:25:27AM -0800, 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", but let's fix it. Oh, I forgot Fixes:

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

2018-11-11 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", but let's fix it. Reported-by: Jordan Glover Signed-off-by: Omar Sandoval --- include/trace/events/kyber.h | 2