Re: [PATCH v7 4/8] bpftool: Ensure task comm is always NUL-terminated

2024-08-18 Thread Alejandro Colomar
Hi Yafang, On Sun, Aug 18, 2024 at 10:27:01AM GMT, Yafang Shao wrote: > On Sat, Aug 17, 2024 at 4:39 PM Alejandro Colomar wrote: > > > > Hi Yafang, > > > > On Sat, Aug 17, 2024 at 10:56:20AM GMT, Yafang Shao wrote: > > > Let's explicitly ensure the destination string is NUL-terminated. This > >

Re: [PATCH v7 4/8] bpftool: Ensure task comm is always NUL-terminated

2024-08-17 Thread Yafang Shao
On Sat, Aug 17, 2024 at 4:39 PM Alejandro Colomar wrote: > > Hi Yafang, > > On Sat, Aug 17, 2024 at 10:56:20AM GMT, Yafang Shao wrote: > > Let's explicitly ensure the destination string is NUL-terminated. This way, > > it won't be affected by changes to the source string. > > > > Signed-off-by: Ya

Re: [PATCH v7 4/8] bpftool: Ensure task comm is always NUL-terminated

2024-08-17 Thread Alejandro Colomar
Hi Yafang, On Sat, Aug 17, 2024 at 10:56:20AM GMT, Yafang Shao wrote: > Let's explicitly ensure the destination string is NUL-terminated. This way, > it won't be affected by changes to the source string. > > Signed-off-by: Yafang Shao > Reviewed-by: Quentin Monnet > --- > tools/bpf/bpftool/pid

[PATCH v7 4/8] bpftool: Ensure task comm is always NUL-terminated

2024-08-16 Thread Yafang Shao
Let's explicitly ensure the destination string is NUL-terminated. This way, it won't be affected by changes to the source string. Signed-off-by: Yafang Shao Reviewed-by: Quentin Monnet --- tools/bpf/bpftool/pids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/bpf/bpftool/pids.c b/