--- - branch: netbsd-7-1 date: Sat Feb 23 07:04:12 UTC 2019 files: - new: 1.55.42.1 old: '1.55' path: src/sys/compat/linux/common/linux_ipc.c pathrev: src/sys/compat/linux/common/linux_ipc.c@1.55.42.1 type: modified - new: 1.11.46.1 old: '1.11' path: src/sys/compat/linux32/common/linux32_ipccall.c pathrev: src/sys/compat/linux32/common/linux32_ipccall.c@1.11.46.1 type: modified - new: 1.21.82.2 old: 1.21.82.1 path: src/sys/compat/netbsd32/netbsd32_compat_14.c pathrev: src/sys/compat/netbsd32/netbsd32_compat_14.c@1.21.82.2 type: modified - new: 1.28.4.1.4.2 old: 1.28.4.1.4.1 path: src/sys/compat/netbsd32/netbsd32_conv.h pathrev: src/sys/compat/netbsd32/netbsd32_conv.h@1.28.4.1.4.2 type: modified - new: 1.4.42.1 old: '1.4' path: src/sys/compat/sys/ipc.h pathrev: src/sys/compat/sys/ipc.h@1.4.42.1 type: modified - new: 1.4.52.2 old: 1.4.52.1 path: src/sys/compat/sys/msg.h pathrev: src/sys/compat/sys/msg.h@1.4.52.2 type: modified - new: 1.6.52.1 old: '1.6' path: src/sys/compat/sys/sem.h pathrev: src/sys/compat/sys/sem.h@1.6.52.1 type: modified - new: 1.7.50.1 old: '1.7' path: src/sys/compat/sys/shm.h pathrev: src/sys/compat/sys/shm.h@1.7.50.1 type: modified - new: 1.66.12.1 old: '1.66' path: src/sys/kern/sysv_msg.c pathrev: src/sys/kern/sysv_msg.c@1.66.12.1 type: modified - new: 1.90.10.1 old: '1.90' path: src/sys/kern/sysv_sem.c pathrev: src/sys/kern/sysv_sem.c@1.90.10.1 type: modified - new: 1.125.10.1 old: '1.125' path: src/sys/kern/sysv_shm.c pathrev: src/sys/kern/sysv_shm.c@1.125.10.1 type: modified id: 20190223T070412Z.be83cea0507a43b2d88cc60db7a17e932a737b07 log: "Pull up following revision(s) (requested by mrg in ticket #1679):\n\tsys/compat/sys/ipc.h: revision 1.6\n\tsys/compat/sys/ipc.h: revision 1.7\n\tsys/compat/sys/shm.h: revision 1.8\n\tsys/kern/sysv_shm.c: revision 1.133\n\tsys/compat/sys/sem.h: revision 1.7\n\tsys/compat/linux/common/linux_ipc.c: revision 1.56\n\tsys/compat/netbsd32/netbsd32_conv.h: revision 1.38\n\tsys/kern/sysv_sem.c: revision 1.96\n\tsys/compat/netbsd32/netbsd32_compat_14.c: revision 1.28\n\tsys/compat/netbsd32/netbsd32_compat_14.c: revision 1.29\n\tsys/compat/linux32/common/linux32_ipccall.c: revision 1.12\n\tsys/kern/sysv_msg.c: revision 1.73\n\tsys/compat/sys/msg.h: revision 1.6\n\nfor sysv ipc stat operations, explicitly copy the exported parts\ninstead of the whole ds structure.\nbesides triggering a recently added assert in netbsd32, this stops\nexposing kernel addresses.\n\ncopy the mode clamping to 0777 from sem to shm and msg.\n\nwhile here, make sure that the compat callers to sysv_ipc clear\nthe contents of the compat structure before setting the result\nmembers to ensure padding bytes are cleared.\n\ndon't set/copy _sem_base, _msg_first, _msg_last or _shm_internal.\neven if used, which seems very dodgy, they leak KVAs as well.\npossibly this may affect linux binaries, in particular, the\ncomments around _shm_internal (\"XXX Oh well.\") may mean apps\nrely upon these but hopefully not -- the comments date back to\nrev 1.1 in 1995.\n\nthe _key, _seq and _msg_cbytes members are exported as before as\ni found multiple consumers of these (no less than ipcs(1), and\nthey appear to be useful for debugging and more.\n\nXXX: the naming of compat functions have too many styles. there\n are at least 3 different ones changed here.\n\nfix naming errors in previous. (this file is no longer compiled, but\nthis fix makes the pull up more obvious, before deleting this file.)\n\ninclude libkern.h or strings.h. \ should fix i386 build issues.\n" module: src subject: 'CVS commit: [netbsd-7-1] src/sys' unixtime: '1550905452' user: martin