]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/ukvmem: Return ENOMEM for invalid addresses
authorMarco Schlumpp <marco@unikraft.io>
Tue, 28 Nov 2023 08:50:36 +0000 (09:50 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 10:56:53 +0000 (10:56 +0000)
commit11350dfe656bb4850e21467846111d0a2915e10d
tree7507b248b54914c8e3c1fb4d6f01d42dd7b314b4
parent65d6cc10c91e004475261f90e0bf7232feeff559
lib/ukvmem: Return ENOMEM for invalid addresses

`mmap` which calls this function can be called with non-canonical
addresses. In this case, it should indicate an ENOMEM error. mozjs
uses this to detect the amount of address bits.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
GitHub-Closes: #1638
lib/ukvmem/vmem.c