Re: [RFC PATCH] um: replace deprecated strncpy with strscpy

2025-06-12 Thread Brahmajit Das
On 09.06.2025 21:15, Kees Cook wrote: > > I think we need wholesale fix the kernel's usage of > strncpy_from_user()... first, how is it being used? So I looked at some of the codes under driver, but it's not very clear to me how they are currently used. For example in drivers/tty/vt/vt.c there is

Re: [RFC PATCH] um: replace deprecated strncpy with strscpy

2025-06-09 Thread Kees Cook
On Sun, Jun 08, 2025 at 03:00:06AM +0530, Brahmajit Das wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > This modification is mainly due to the concerns on > https://github.com/