]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Permit supervisor to access user VA space for certain functions only.
authorRuslan Bukin <br@FreeBSD.org>
Wed, 5 Sep 2018 11:34:58 +0000 (11:34 +0000)
committerRuslan Bukin <br@FreeBSD.org>
Wed, 5 Sep 2018 11:34:58 +0000 (11:34 +0000)
commit157654d0c494c8eb5927c32ec5b302a62b467d51
treec6b26730a616776304d244a44fc4d9bdcb2b3f11
parent93952a8b1b5ca9acb209887def36ac54fd2abc90
Permit supervisor to access user VA space for certain functions only.

This is done by setting SUM (permit Supervisor User Memory access)
bit in sstatus register.

The functions we allow access for are routines in assembly that
explicitly handle crossing the user kernel boundary.

Approved by: re (kib)
Sponsored by: DARPA, AFRL
sys/riscv/include/asm.h
sys/riscv/riscv/copyinout.S
sys/riscv/riscv/exception.S
sys/riscv/riscv/locore.S
sys/riscv/riscv/support.S
sys/riscv/riscv/vm_machdep.c