Revert "kernel: sucompat: increase reliability, commonize and micro-optimize tiann #2656"

This reverts commit dd1eb98963.
This commit is contained in:
ShirkNeko
2025-09-28 19:36:36 +08:00
parent 7c4334e03a
commit 3a4775306e
5 changed files with 223 additions and 84 deletions

View File

@@ -636,7 +636,7 @@ static int ksu_execve_ksud_common(const char __user *filename_user,
if (!filename_user)
return 0;
len = ksu_copy_from_user_retry(path, filename_user, 32);
len = ksu_strncpy_from_user_nofault(path, filename_user, 32);
if (len <= 0)
return 0;