]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Remove __access_ok_vsyscall()
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 28 Oct 2025 09:15:43 +0000 (10:15 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Nov 2025 12:02:34 +0000 (13:02 +0100)
FIXADDR_USER_START and FIXADDR_USER_END are now always zero.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20251028-uml-remove-32bit-pseudo-vdso-v1-8-e930063eff5f@weissschuh.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/asm/uaccess.h

index 3770bdeee100d8d8bfb84c83f8f98e42b97fc4d0..0df9ea4abda8305df46517648b170d0c9d47a95d 100644 (file)
        (((unsigned long) (addr) < TASK_SIZE) && \
         (((unsigned long) (addr) + (size)) < TASK_SIZE))
 
-#define __access_ok_vsyscall(addr, size) \
-         (((unsigned long) (addr) >= FIXADDR_USER_START) && \
-         ((unsigned long) (addr) + (size) <= FIXADDR_USER_END))
-
 #define __addr_range_nowrap(addr, size) \
        ((unsigned long) (addr) <= ((unsigned long) (addr) + (size)))
 
@@ -39,9 +35,7 @@ static inline int __access_ok(const void __user *ptr, unsigned long size);
 static inline int __access_ok(const void __user *ptr, unsigned long size)
 {
        unsigned long addr = (unsigned long)ptr;
-       return __addr_range_nowrap(addr, size) &&
-               (__under_task_size(addr, size) ||
-                __access_ok_vsyscall(addr, size));
+       return __addr_range_nowrap(addr, size) && __under_task_size(addr, size);
 }
 
 #define __get_kernel_nofault(dst, src, type, err_label)                        \