From dcd784141b9b25d233f98f5710d3bbe8a900bbfe Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 3 Jan 2025 18:51:04 +0000 Subject: [PATCH] freebsd64_getfhat: path is a userspace argument It appears I accidently marked the path argument to kern_getfhat as a kernel pointer in the initial implementation (bbeb37ff330ab). Fixes: #2278 --- sys/compat/freebsd64/freebsd64_vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/freebsd64/freebsd64_vfs.c b/sys/compat/freebsd64/freebsd64_vfs.c index 2a4a4d2982a2..3e0ddd965970 100644 --- a/sys/compat/freebsd64/freebsd64_vfs.c +++ b/sys/compat/freebsd64/freebsd64_vfs.c @@ -1193,7 +1193,7 @@ int freebsd64_getfhat(struct thread *td, struct freebsd64_getfhat_args *uap) { return (kern_getfhat(td, uap->flags, uap->fd, - __USER_CAP_STR(uap->path), UIO_SYSSPACE, + __USER_CAP_STR(uap->path), UIO_USERSPACE, __USER_CAP_OBJ(uap->fhp), UIO_USERSPACE)); }