HomeFreeBSD

arm64: Fixing user space boudary checking in copyinout.S

Description

arm64: Fixing user space boudary checking in copyinout.S

Big buffer size could cause integer overflow and as a result
attempt to copy beyond VM_USERMAX_ADDRESS.

Fixing copyinstr boundary checking where compared value has been
overwritten by accident when setting fault handler.

Submitted by: Dominik Ermel <der@semihalf.com>
Obtained from: Semihalf
Sponsored by: Cavium
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D5719

Details

Provenance
wmaAuthored on
Reviewer
kib
Differential Revision
D5719: arm64: Fixing user space boudary checking in copyinout.S
Parents
rS297234: Fix compile errors after r297225:
Branches
Unknown
Tags
Unknown