Re: [PATCH v6 1/9] Get rid of __get_task_comm()

2024-08-12 Thread Yafang Shao
On Mon, Aug 12, 2024 at 4:05 PM Alejandro Colomar wrote: > > Hi Yafang, > > On Mon, Aug 12, 2024 at 10:29:25AM GMT, Yafang Shao wrote: > > We want to eliminate the use of __get_task_comm() for the following > > reasons: > > > > - The task_lock() is unnecessary > > Quoted from Linus [0]: > > :

Re: [PATCH v6 1/9] Get rid of __get_task_comm()

2024-08-12 Thread Alejandro Colomar
Hi Yafang, On Mon, Aug 12, 2024 at 10:29:25AM GMT, Yafang Shao wrote: > We want to eliminate the use of __get_task_comm() for the following > reasons: > > - The task_lock() is unnecessary > Quoted from Linus [0]: > : Since user space can randomly change their names anyway, using locking > :

[PATCH v6 1/9] Get rid of __get_task_comm()

2024-08-11 Thread Yafang Shao
We want to eliminate the use of __get_task_comm() for the following reasons: - The task_lock() is unnecessary Quoted from Linus [0]: : Since user space can randomly change their names anyway, using locking : was always wrong for readers (for writers it probably does make sense : to have so