Skip to content

Commit

Permalink
freebsd64_getfhat: path is a userspace argument
Browse files Browse the repository at this point in the history
It appears I accidently marked the path argument to kern_getfhat as
a kernel pointer in the initial implementation (bbeb37f).

Fixes: #2278
  • Loading branch information
brooksdavis authored and bsdjhb committed Jan 4, 2025
1 parent 7b98ffe commit dcd7841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/compat/freebsd64/freebsd64_vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit dcd7841

Please sign in to comment.