summaryrefslogtreecommitdiffstats
path: root/sys/dev/pv/files.pv
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2016-07-13 17:52:37 +0000
committerkettenis <kettenis@openbsd.org>2016-07-13 17:52:37 +0000
commit99232cbaa222c3c4476222674bbeb72a7fbe7dfd (patch)
treed7f65fa118932820f24b68f1d25b5f1486f578e9 /sys/dev/pv/files.pv
parentRevert previous; the __MAP_NOFAULT test is inverted and the commit message is (diff)
downloadwireguard-openbsd-99232cbaa222c3c4476222674bbeb72a7fbe7dfd.tar.xz
wireguard-openbsd-99232cbaa222c3c4476222674bbeb72a7fbe7dfd.zip
Since mappings established using __MAP_NOFAULT will be converted into anonymous
memory if the file backing the mapping is truncated, we should check resource limits. This prevents callers from triggering a kernel panic and a potential integer overflow in the amap code by forcing the allocation of too many slots. Based on an analysis from Jesse Hertz and Tim Newsham. ok deraadt@
Diffstat (limited to 'sys/dev/pv/files.pv')
0 files changed, 0 insertions, 0 deletions