git: nvmm(4): Fix hmapping leak on HVA mapping failure

Aaron LI aly at crater.dragonflybsd.org
Tue Sep 1 06:09:03 PDT 2026


commit 064dc45e4d2ffe5b8bdb8530772805a9d0b4f78d
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Aug 30 23:25:40 2026 +0800

    nvmm(4): Fix hmapping leak on HVA mapping failure
    
    Free the hmapping if the HVA mapping fails. Otherwise, after
    NVMM_MAX_HMAPPINGS (32) failures no hmappings are available anymore. The
    emulator can't establish additional mappings and has to destroy the
    machine (which releases the hmappings).
    
    Obtained-from: NVMM Reference Implementation

Summary of changes:
 sys/dev/virtual/nvmm/nvmm.c | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/064dc45e4d2ffe5b8bdb8530772805a9d0b4f78d


-- 
DragonFly BSD source repository


More information about the Commits mailing list