Re: [PATCH v7 0/8] Improve the copy of task comm

2024-08-27 Thread Andrew Morton
On Mon, 26 Aug 2024 10:30:54 +0800 Yafang Shao wrote: > Hello Andrew, > > Could you please apply this series to the mm tree ? Your comment in https://lkml.kernel.org/r/CALOAHbA5VDjRYcoMOMKcLMVR0=zwtz5fbtvqzexi6w8we9j...@mail.gmail.com led me to believe that a v8 is to be sent?

Re: [PATCH v7 0/8] Improve the copy of task comm

2024-08-25 Thread Yafang Shao
On Sat, Aug 17, 2024 at 10:56 AM Yafang Shao wrote: > > Using {memcpy,strncpy,strcpy,kstrdup} to copy the task comm relies on the > length of task comm. Changes in the task comm could result in a destination > string that is overflow. Therefore, we should explicitly ensure the > destination string

[PATCH v7 0/8] Improve the copy of task comm

2024-08-16 Thread Yafang Shao
Using {memcpy,strncpy,strcpy,kstrdup} to copy the task comm relies on the length of task comm. Changes in the task comm could result in a destination string that is overflow. Therefore, we should explicitly ensure the destination string is always NUL-terminated, regardless of the task comm. This ap