Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

whack-a-mole: kill strlen_user() (again)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro a0d8d552 eecf77e0

+1 -6
-2
arch/csky/include/asm/uaccess.h
··· 397 397 */ 398 398 long strnlen_user(const char *src, long n); 399 399 400 - #define strlen_user(str) strnlen_user(str, 32767) 401 - 402 400 struct exception_table_entry { 403 401 unsigned long insn; 404 402 unsigned long nextinsn;
+1 -1
arch/csky/lib/usercopy.c
··· 116 116 EXPORT_SYMBOL(strncpy_from_user); 117 117 118 118 /* 119 - * strlen_user: - Get the size of a string in user space. 119 + * strnlen_user: - Get the size of a string in user space. 120 120 * @str: The string to measure. 121 121 * @n: The maximum valid length 122 122 *
-1
arch/nds32/include/asm/uaccess.h
··· 260 260 261 261 extern unsigned long __arch_clear_user(void __user * addr, unsigned long n); 262 262 extern long strncpy_from_user(char *dest, const char __user * src, long count); 263 - extern __must_check long strlen_user(const char __user * str); 264 263 extern __must_check long strnlen_user(const char __user * str, long n); 265 264 extern unsigned long __arch_copy_from_user(void *to, const void __user * from, 266 265 unsigned long n);
-1
arch/nios2/include/asm/uaccess.h
··· 83 83 84 84 extern long strncpy_from_user(char *__to, const char __user *__from, 85 85 long __len); 86 - extern __must_check long strlen_user(const char __user *str); 87 86 extern __must_check long strnlen_user(const char __user *s, long n); 88 87 89 88 /* Optimized macros */
-1
arch/riscv/include/asm/uaccess.h
··· 372 372 373 373 extern long strncpy_from_user(char *dest, const char __user *src, long count); 374 374 375 - extern long __must_check strlen_user(const char __user *str); 376 375 extern long __must_check strnlen_user(const char __user *str, long n); 377 376 378 377 extern