]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check alignment of fp in unwind_frame
authorDapeng Gao <dapeng@dpgao.cn>
Tue, 15 Nov 2022 00:21:38 +0000 (00:21 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Tue, 15 Nov 2022 00:25:46 +0000 (00:25 +0000)
commit40e0fa10f58d90744c2857b57adf0ddbce1a1e1c
treecf4b81636279b81409927b0fbd5415b7d30faa73
parentc72f25972750e9de29257165140617b307e9b662
Check alignment of fp in unwind_frame

A misaligned frame pointer is certainly not a valid frame pointer and
with strict alignment enabled (as on CHERI) can cause panics when it is
loaded from later in the code.

Reviewed By: jhb
Differential Revision: https://reviews.freebsd.org/D34646
sys/arm64/arm64/unwind.c
sys/riscv/riscv/unwind.c