Home | History | Annotate | Download | only in netbsd32
History log of /src/sys/compat/netbsd32/netbsd32_compat_14_sysv.c
RevisionDateAuthorComments
 1.4  19-Jan-2021  simonb KNF consistency: No parentheses are needed around the return value.
 1.3  21-Feb-2019  mrg branches: 1.3.4; 1.3.14;
for sysv ipc stat operations, explicitly copy the exported parts
instead of the whole ds structure.

besides triggering a recently added assert in netbsd32, this stops
exposing kernel addresses.

copy the mode clamping to 0777 from sem to shm and msg.


while here, make sure that the compat callers to sysv_ipc clear
the contents of the compat structure before setting the result
members to ensure padding bytes are cleared.

don't set/copy _sem_base, _msg_first, _msg_last or _shm_internal.
even if used, which seems very dodgy, they leak KVAs as well.
possibly this may affect linux binaries, in particular, the
comments around _shm_internal ("XXX Oh well.") may mean apps
rely upon these but hopefully not -- the comments date back to
rev 1.1 in 1995.

the _key, _seq and _msg_cbytes members are exported as before as
i found multiple consumers of these (no less than ipcs(1), and
they appear to be useful for debugging and more.


XXX: the naming of compat functions have too many styles. there
are at least 3 different ones changed here.
 1.2  27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.1  12-Sep-2018  pgoyette branches: 1.1.2;
file netbsd32_compat_14_sysv.c was initially added on branch pgoyette-compat.
 1.1.2.2  03-Jan-2019  pgoyette Bring in some more changes from HEAD.
 1.1.2.1  12-Sep-2018  pgoyette Split compat_netbsd32_sysvipc into version-specific modules
 1.3.14.1  03-Apr-2021  thorpej Sync with HEAD.
 1.3.4.2  10-Jun-2019  christos Sync with HEAD
 1.3.4.1  21-Feb-2019  christos file netbsd32_compat_14_sysv.c was added on branch phil-wifi on 2019-06-10 22:07:01 +0000

RSS XML Feed