From: Thomas Weißschuh Date: Tue, 28 Oct 2025 09:15:42 +0000 (+0100) Subject: um: Remove redundant range check from __access_ok_vsyscall() X-Git-Tag: v6.19-rc1~104^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=880f615bf96eff89eab88b4f9aacf527cf55a714;p=thirdparty%2Fkernel%2Flinux.git um: Remove redundant range check from __access_ok_vsyscall() The only caller __access_ok() is already doing the same check through __addr_range_nowrap(). Remove the redundant check. Signed-off-by: Thomas Weißschuh Link: https://patch.msgid.link/20251028-uml-remove-32bit-pseudo-vdso-v1-7-e930063eff5f@weissschuh.net Signed-off-by: Johannes Berg --- diff --git a/arch/um/include/asm/uaccess.h b/arch/um/include/asm/uaccess.h index 1c6e0ae41b0c5..3770bdeee100d 100644 --- a/arch/um/include/asm/uaccess.h +++ b/arch/um/include/asm/uaccess.h @@ -17,8 +17,7 @@ #define __access_ok_vsyscall(addr, size) \ (((unsigned long) (addr) >= FIXADDR_USER_START) && \ - ((unsigned long) (addr) + (size) <= FIXADDR_USER_END) && \ - ((unsigned long) (addr) + (size) >= (unsigned long)(addr))) + ((unsigned long) (addr) + (size) <= FIXADDR_USER_END)) #define __addr_range_nowrap(addr, size) \ ((unsigned long) (addr) <= ((unsigned long) (addr) + (size)))