mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Assert that the mapping loop makes progress.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
cb552e880d
commit
a3d78402d2
1 changed files with 1 additions and 0 deletions
|
|
@ -465,6 +465,7 @@ ctx_map_buf_locked(struct dmar_ctx *ctx, dmar_gaddr_t base, dmar_gaddr_t size,
|
|||
KASSERT(size >= pg_sz,
|
||||
("mapping loop overflow %p %jx %jx %jx", ctx,
|
||||
(uintmax_t)base, (uintmax_t)size, (uintmax_t)pg_sz));
|
||||
KASSERT(pg_sz > 0, ("pg_sz 0 lvl %d", lvl));
|
||||
pte = ctx_pgtbl_map_pte(ctx, base, lvl, flags, &idx, &sf);
|
||||
if (pte == NULL) {
|
||||
KASSERT((flags & DMAR_PGF_WAITOK) == 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue