summaryrefslogtreecommitdiff
path: root/sys/netmpls
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2024-01-21 16:57:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2024-01-21 16:57:07 +0000
commitbe146c0d7880a81b39d42a4995bcef1b8b541158 (patch)
tree9f492d184bc77980a096a71c64c9a1adfb576bed /sys/netmpls
parent77c4c1515c8d0890ab9eb073614a7cb91335eec9 (diff)
madvise(2) and msync(2) have some memory/mapping destructive ops which should
not be allowed upon immutable memory, instead return EPERM. Some of these ops are not destructive in OpenBSD, but they are destructive on other systems, so we take the "all ops" are illegal approach. Related to this, it should not be allowed to minherit(MAP_INHERIT_ZERO) immutable regions, or vice versa, calling mimmutable() upon MAP_INHERIT_ZERO regions, because such a range will be zero'd post-fork in the child. These now also return EPERM. Adjusting the madvise / msync behaviour upon immutable memory brings us closer to the behaviour of the mimmutable clone "mseal" being proposed by google for inclusion in Linux. ok kettenis
Diffstat (limited to 'sys/netmpls')
0 files changed, 0 insertions, 0 deletions