]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check alignment of fp in unwind_frame
authorDapeng Gao <dapeng@dpgao.cn>
Wed, 16 Nov 2022 18:29:28 +0000 (18:29 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Wed, 16 Nov 2022 18:29:28 +0000 (18:29 +0000)
commit61b146ba43cd3886c81e79b37fdc665d6e1d74b8
tree7b7e8fe4fada7baa60b1db54a0a719a0bc4f997e
parent07853c6c9dd1c7cd5511186992846c4b9ca6d9e7
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.

This is a recommit of 40e0fa10f58d90744c2857b57adf0ddbce1a1e1c with
is_aligned() corrected to __is_aligned().

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