]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not use pmap_kextract() to find out the physical address of a user
authortmm <tmm@FreeBSD.org>
Fri, 12 Apr 2002 19:38:41 +0000 (19:38 +0000)
committertmm <tmm@FreeBSD.org>
Fri, 12 Apr 2002 19:38:41 +0000 (19:38 +0000)
commit1720bac84c28badd43c9edcde53d951a4b27178f
treed3b3c2e31a280e8a8f82a33ecb8cc5a6ad34ff78
parent389e1779ffd7b99edf37c98d8f3d92feab749274
Do not use pmap_kextract() to find out the physical address of a user
belong to a user virtual address; while this happens to work on some
architectures, it can't on sparc64, since user and kernel virtual
address spaces overlap there (the distinction between them is done via
separate address space identifiers).

Instead, look up the page in the vm_map of the process in question.

Reviewed by: jake
sys/kern/sys_pipe.c