]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/ukvmem: Make stack VMA guards size configurable and end-to-end
authorSergiu Moga <sergiu@unikraft.io>
Mon, 19 Feb 2024 09:24:59 +0000 (11:24 +0200)
committerSimon Kuenzer <simon@unikraft.io>
Tue, 14 May 2024 22:23:42 +0000 (00:23 +0200)
commit5587fd887be916b80236098c56d728acfb1245a9
treef095e5b3c88241800cd04a5a39a2c043d681bdbe
parent22b335dc3f612aaf316fb2a18da8d5173610c260
lib/ukvmem: Make stack VMA guards size configurable and end-to-end

Add end-to-end page guards to stack VMAs and make their size be
configurable: default 4 pages for top (to counter stack declared arrays)
and 1 page for bottom (to counter too many pop instructions).

Checkpatch-Ignore: LONG_LINE_COMMENT
Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Simon Kuenzer <simon@unikraft.io>
GitHub-Closes: #1322
lib/ukvmem/Config.uk
lib/ukvmem/include/uk/vma_types.h
lib/ukvmem/tests/test_vmem.c
lib/ukvmem/vma_stack.c