summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorhannken <hannken@NetBSD.org>2022-03-27 20:18:05 +0000
committerhannken <hannken@NetBSD.org>2022-03-27 20:18:05 +0000
commit77838db5baada9ce86b5bc40efe37a28bd82d0e4 (patch)
tree2bc6e8b1020bb1d4fe177f865855d968e3508f34 /sys/dev/raidframe
parentbe0a6c9ba60d9b43a3cb1adc26351ea81aa01e6e (diff)
Make mmap() with "len == 0" an error if not MAP_ANON. We should return
an error for MAP_ANON too but unfortunately our /libexec/ld.elf_so sometimes creates an empty anon mapping for the bss of a shared library. At least FreeBSD and Solaris return this error too and according to POSIX "If len is zero, mmap() shall fail and no mapping shall be established". Fixes PR pkg/56338 Installing qt5-qtdeclarative leaves a dangling reference The dangling reference here originates from vn_mmap() taking a vnode reference for this empty mapping that will never be released.
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions