Messages in this thread | | | Subject | Re: [PATCH net-next] bpf: avoid copying junk bytes in bpf_get_current_comm() | From | Alexei Starovoitov <> | Date | Fri, 11 Mar 2016 10:35:10 -0800 |
| |
On 3/11/16 10:02 AM, Daniel Borkmann wrote: > Would strscpy() help in this case (see 30035e45753b ("string: provide > strscpy()"))?
I've looked at it too, but 990486c8af04 scared me a little, it's not easily backport-able and mainly I don't think it's faster than strlcpy for small strings like comm. memcpy going to be faster for sure.
| |