diff options
| author | Minsoo Choo <mchoo@FreeBSD.org> | 2026-09-16 00:14:45 +0000 |
|---|---|---|
| committer | Minsoo Choo <mchoo@FreeBSD.org> | 2026-09-28 15:48:47 +0000 |
| commit | 4cb357c61c004f4cf27ca12e702b44a81f2752ab (patch) | |
| tree | f0a7e20798a8488166b06c28c11d82ed831e7092 /tests/sys/capsicum/fexecve.cc | |
| parent | 61f98a98250da7bd2c80c6d93d0032961d7f2fad (diff) | |
libkvm locates the sparse page array after the page-rounded PTE table
size, but the ARM minidump writer emitted only the unrounded size. When
the table size was not page-aligned, libkvm therefore read every dumped
physical page at the wrong offset.
The mismatch was introduced when libkvm began rounding ptesize. It has
affected ARM minidumps since ffdeef323449 ("libkvm: Improve physical
address lookup scaling."). It is exposed when the dumped KVA span is not
a multiple of 4 MiB.
Zero-pad the final PTE page and include the padding in the dump size.
Reviewed by: jhb
Approved by: jhb (mentor)
Fixes: ffdeef323449 ("libkvm: Improve physical address lookup scaling.")
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59716
Diffstat (limited to 'tests/sys/capsicum/fexecve.cc')
0 files changed, 0 insertions, 0 deletions
