| Summary: | copystr(9) man page incorrectly describes it as copying from kernel-space to kernel-space | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Anatoly Karp <karp> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
Hello. The manual page is correct and in agreement with how the function is implemented and used: copying of a NUL-terminated string in kernel space. ciao, -robert State Changed From-To: open->closed As Robert mentioned, the manual page is in agreement. I have checked this with it's usage in the kernel sources. |
man 9 copystr says: copystr() Copies a NUL-terminated string, at most len bytes long, from kernel-space address kfaddr to kernel-space address kdaddr. I believe this is incorrect since the destination address is in user space Fix: Replace the mentioned piece with: copystr() Copies a NUL-terminated string, at most len bytes long, from kernel-space address kfaddr to user-space address kdaddr. How-To-Repeat: man 9 copystr