summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2021-04-03 15:59:08 +0000
committerpatrick <patrick@openbsd.org>2021-04-03 15:59:08 +0000
commita5eb7f55b9c1dc179deb7da5fa31c6889c73c8ca (patch)
tree1aaebdf7ef6cfad3540cacbb308660aaea1007c9 /gnu/llvm/clang/lib/Basic/Module.cpp
parentExclude the first page from I/O virtual address space, which is the NULL (diff)
downloadwireguard-openbsd-a5eb7f55b9c1dc179deb7da5fa31c6889c73c8ca.tar.xz
wireguard-openbsd-a5eb7f55b9c1dc179deb7da5fa31c6889c73c8ca.zip
Add a guard page between I/O virtual address space allocations. The idea
is that IOVA allocations always have a gap in-between which produces a fault on access. If a transfer to a given allocation runs further than expected we should be able to see it. We pre-allocate IOVA on bus DMA map creation, and as long as we don't allocate a PTE descriptor, this comes with no cost. We have plenty of address space anyway, so adding a page-sized gap does not hurt at all and can only have positive effects. Idea from kettenis@
Diffstat (limited to 'gnu/llvm/clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions