On Thu, 16 Nov 2023 11:15:10 -0800 Kees Cook <keesc...@chromium.org> wrote:
> diff --git a/samples/trace_events/trace-events-sample.h > b/samples/trace_events/trace-events-sample.h > index 1c6b843b8c4e..23f923ccd529 100644 > --- a/samples/trace_events/trace-events-sample.h > +++ b/samples/trace_events/trace-events-sample.h > @@ -305,7 +305,7 @@ TRACE_EVENT(foo_bar, > ), > > TP_fast_assign( > - strlcpy(__entry->foo, foo, 10); > + strscpy(__entry->foo, foo, 10); > __entry->bar = bar; > memcpy(__get_dynamic_array(list), lst, > __length_of(lst) * sizeof(int)); Acked-by: Steven Rostedt (Google) <rost...@goodmis.org> -- Steve