8b8cf4ece6
This also fixes a minor issue that was missed in the initial review; the layout of the MFD_HUGE_* flags is actually not 1:1 bit:flag -- it instead borrowed the Linux convention of how this is laid out since it was originally implemented on Linux, the top 6 bits represent the shift required for the requested page size. This allows us to remove the flag <-> pgsize mapping table and simplify the logic just prior to validation of the requested page size. While we're here, fix two small nits: - HUGETLB memfd shouldn't exhibit the SHM_GROW_ON_WRITE behavior. We can only grow largepage shm by appropriately aligned (i.e. requested pagesize) sizes, so it can't work in the typical/sane fashion. Furthermore, Linux does the same, so let's be compatible. - We don't allow MFD_HUGETLB without specifying a pagesize, so no need to check for that later. Reviewed by: kib (slightly earlier version) |
||
---|---|---|
.. | ||
atf | ||
clang | ||
csu | ||
geom | ||
googletest | ||
kyua | ||
lib80211 | ||
libalias | ||
libarchive | ||
libauditd | ||
libbe | ||
libbearssl | ||
libbegemot | ||
libblacklist | ||
libblocksruntime | ||
libbluetooth | ||
libbsdstat | ||
libbsm | ||
libbsnmp | ||
libbz2 | ||
libc | ||
libc_nonshared | ||
libc++ | ||
libc++experimental | ||
libcalendar | ||
libcam | ||
libcapsicum | ||
libcasper | ||
libclang_rt | ||
libcom_err | ||
libcompat | ||
libcompiler_rt | ||
libcrypt | ||
libcuse | ||
libcxxrt | ||
libdevctl | ||
libdevdctl | ||
libdevinfo | ||
libdevstat | ||
libdl | ||
libdpv | ||
libdwarf | ||
libedit | ||
libefivar | ||
libelf | ||
libelftc | ||
libevent1 | ||
libexecinfo | ||
libexpat | ||
libfetch | ||
libfigpar | ||
libgcc_eh | ||
libgcc_s | ||
libgeom | ||
libgpio | ||
libgssapi | ||
libiconv_modules | ||
libifconfig | ||
libipsec | ||
libipt | ||
libjail | ||
libkiconv | ||
libkvm | ||
libldns | ||
liblua | ||
liblutok | ||
liblzma | ||
libmagic | ||
libmd | ||
libmemstat | ||
libmilter | ||
libmp | ||
libmt | ||
libnetbsd | ||
libnetgraph | ||
libnetmap | ||
libngatm | ||
libnv | ||
libomp | ||
libopenbsd | ||
libopencsd | ||
libopie | ||
libpam | ||
libpathconv | ||
libpcap | ||
libpe | ||
libpjdlog | ||
libpmc | ||
libpmcstat | ||
libproc | ||
libprocstat | ||
libradius | ||
libregex | ||
librpcsec_gss | ||
librpcsvc | ||
librss | ||
librt | ||
librtld_db | ||
libsbuf | ||
libsdp | ||
libsecureboot | ||
libsm | ||
libsmb | ||
libsmdb | ||
libsmutil | ||
libsqlite3 | ||
libssp | ||
libssp_nonshared | ||
libstats | ||
libstdbuf | ||
libstdthreads | ||
libsysdecode | ||
libtacplus | ||
libtelnet | ||
libthr | ||
libthread_db | ||
libucl | ||
libufs | ||
libugidfw | ||
libulog | ||
libunbound | ||
libusb | ||
libusbhid | ||
libutil | ||
libveriexec | ||
libvgl | ||
libvmmapi | ||
libwrap | ||
libxo | ||
liby | ||
libypclnt | ||
libz | ||
libzstd | ||
msun | ||
ncurses | ||
ofed | ||
tests | ||
Makefile | ||
Makefile.inc |