]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check that the frame pointer is within the current stack.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 8 Dec 2020 18:00:58 +0000 (18:00 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 8 Dec 2020 18:00:58 +0000 (18:00 +0000)
commitae953968171234bb77658c8b1072706a9b7ff2d1
treef2ce36e9317e3d574531b4a7961bc5e00571ca01
parent9b9e7f4c51abea7a0776a283d3d4f583139bea08
Check that the frame pointer is within the current stack.

This same check is used on other architectures.  Previously this would
permit a stack frame to unwind into any arbitrary kernel address
(including unmapped addresses).

Reviewed by: andrew, markj
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27362
sys/arm64/arm64/db_trace.c
sys/arm64/arm64/stack_machdep.c
sys/arm64/arm64/unwind.c
sys/arm64/include/csan.h
sys/arm64/include/stack.h
sys/cddl/dev/dtrace/aarch64/dtrace_isa.c
sys/cddl/dev/fbt/fbt.c