[PATCH] um: Remove strlcpy declaration

2023-07-03 Thread Azeem Shaikh
return values were used, so direct replacement is safe. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy [2] https://github.com/KSPP/linux/issues/89 Signed-off-by: Azeem Shaikh --- arch/um/include/shared/user.h |1 - arch/um/os-Linux/umid.c |6 +++--- 2

[PATCH v3] uml: Replace strlcpy with strscpy

2023-06-13 Thread Azeem Shaikh
return values were used, so direct replacement is safe. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy [2] https://github.com/KSPP/linux/issues/89 Signed-off-by: Azeem Shaikh --- v1: https://lore.kernel.org/all/20230530164004.986750-1-azeemshaik...@gmail.com/ v2: https

Re: [PATCH v2] uml: Replace strlcpy with strscpy

2023-06-06 Thread Azeem Shaikh
On Tue, Jun 6, 2023 at 4:51 PM Richard Weinberger wrote: > > - Ursprüngliche Mail - > > Von: "Azeem Shaikh" > > strlcpy() reads the entire source buffer first. > > This read may exceed the destination size limit. > > This is both inefficient and ca

[PATCH v2] uml: Replace strlcpy with strscpy

2023-06-06 Thread Azeem Shaikh
return values were used, so direct replacement is safe. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy [2] https://github.com/KSPP/linux/issues/89 Signed-off-by: Azeem Shaikh Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202305311135

Re: [PATCH] uml: Replace all non-returning strlcpy with strscpy

2023-05-31 Thread Azeem Shaikh
Thanks Geert and Richard for the review. On Wed, May 31, 2023 at 4:05 AM Geert Uytterhoeven wrote: > > On Wed, May 31, 2023 at 8:23 AM Richard Weinberger wrote: > > - Ursprüngliche Mail - > > arch/um/os-Linux/drivers/tuntap_user.c:149:17: error: implicit > > declaration of > >

[PATCH] uml: Replace all non-returning strlcpy with strscpy

2023-05-30 Thread Azeem Shaikh
return values were used, so direct replacement is safe. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy [2] https://github.com/KSPP/linux/issues/89 Signed-off-by: Azeem Shaikh --- arch/um/os-Linux/drivers/tuntap_user.c |2 +- 1 file changed, 1 insertion(+), 1