diff options
author | Catalin Marinas <[email protected]> | 2020-10-28 14:55:24 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2020-10-28 17:50:39 +0000 |
commit | ef5dd6a0c828b6fbd9d595e5772fcb51ff86697e (patch) | |
tree | a6ffc55d94c20666a7551b9b8a5132872ff39c4d /drivers/gpu/drm/amd/amdgpu | |
parent | 13150bc5416f45234c955e5bed91623d178c6117 (diff) |
arm64: mte: Document that user PSTATE.TCO is ignored by kernel uaccess
On exception entry, the kernel explicitly resets the PSTATE.TCO (tag
check override) so that any kernel memory accesses will be checked (the
bit is restored on exception return). This has the side-effect that the
uaccess routines will not honour the PSTATE.TCO that may have been set
by the user prior to a syscall.
There is no issue in practice since PSTATE.TCO is expected to be used
only for brief periods in specific routines (e.g. garbage collection).
To control the tag checking mode of the uaccess routines, the user will
have to invoke a corresponding prctl() call.
Document the kernel behaviour w.r.t. PSTATE.TCO accordingly.
Signed-off-by: Catalin Marinas <[email protected]>
Fixes: df9d7a22dd21 ("arm64: mte: Add Memory Tagging Extension documentation")
Reviewed-by: Vincenzo Frascino <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Szabolcs Nagy <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions