[RFC PATCH] um: replace deprecated strncpy with strscpy

2025-06-07 Thread Brahmajit Das
.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings Signed-off-by: Brahmajit Das --- arch/um/kernel/skas/uaccess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c index 198269e384c

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