freebsd-dev/sys
Warner Losh 42ec4f05a3 Make mqueue objects work across a fork again.
In r110908 (2003) alfred added DFLAG_PASSABLE to tag those types of FD
that can be passed via unix pipes, but mqueuefs didn't exist
yet. Later, in r152825 (2005) davidxu neglected to include
DFLAG_PASSABLE since people don't normally pass these things via unix
sockets (it's a FreeBSD implementation detail that it's a file
descriptor, nobody noticed). Then r223866 (2011) by jonathan used the
new flag in fdcopy, which fork uses. Due to that, mqueuefs actually
broke mqueue objects being propagated by fork. No mention of mqueuefs
was made in r223866, so I think it was an unintended consequence.

Fix this by tagging mqueuefs as passable as well. They were prior to
alfred's change (and it's clear there's no intent in his change to
change this behavior), and POSIX requires this to be the case as well.

PR: 243103
Reviewed by: kib@, jiles@
Differential Revision: https://reviews.freebsd.org/D23038
2020-01-27 22:36:54 +00:00
..
amd64 Regen. 2020-01-21 17:28:36 +00:00
arm Create a convenince wrapper to fill in a CAM_PATH_INQ request for MMC sims. Pass 2020-01-27 22:19:55 +00:00
arm64 Print missing ID_AA64PFR{0,1}_EL1 register fields. 2020-01-23 16:10:38 +00:00
bsm
cam Create a convenince wrapper to fill in a CAM_PATH_INQ request for MMC sims. Pass 2020-01-27 22:19:55 +00:00
cddl Map ECKSUM and EFRAGS from ZFS onto real errnos. 2020-01-13 22:06:16 +00:00
compat Implement mmget_not_zero() in the LinuxKPI. 2020-01-24 13:05:53 +00:00
conf Compile hack.c with normal CFLAGS + -shared -nostdlib. 2020-01-26 14:19:08 +00:00
contrib
crypto
ddb Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
dev No need to have an extra layer of indirection here. Call the sdhci_cam_requiest 2020-01-27 22:20:02 +00:00
dts zilinx/zy7_qspi: Add a qspi driver for Zynq platforms. 2020-01-19 20:04:44 +00:00
fs Allow bootstrapping makefs on older FreeBSD hosts and Linux/macOS 2020-01-27 12:02:41 +00:00
gdb Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
geom Fix aggregating geoms for BIO_SPEEDUP. 2020-01-27 13:15:16 +00:00
gnu
i386 Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers. 2020-01-21 17:28:22 +00:00
isa
kern Make mqueue objects work across a fork again. 2020-01-27 22:36:54 +00:00
kgssapi
libkern
mips Introduce flag IFF_NEEDSEPOCH that marks Ethernet interfaces that 2020-01-23 01:41:09 +00:00
modules vmxnet3: add support for RSS kernel option 2020-01-23 11:05:03 +00:00
net Since now drivers that support pfil run their interrupts in the network 2020-01-23 01:49:22 +00:00
net80211 net80211: Move rate printing in amrr_node_stats() to a separate method 2020-01-17 22:04:11 +00:00
netgraph ng_nat: Pass IPv6 packets through. 2020-01-23 16:45:48 +00:00
netinet Fix NOINET6 build after r357038. 2020-01-26 11:54:21 +00:00
netinet6 Enter network epoch when calling in_pcbconnect() for IPv6 mapped to IPv4 2020-01-22 17:06:55 +00:00
netipsec
netpfil pf: Apply kif flags to new group members 2020-01-23 22:13:41 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc This is Ethernet driver so mark the interrupt appropriately. 2020-01-23 01:46:05 +00:00
riscv Include the PCI stack to the riscv GENERIC kernel. 2020-01-24 17:10:21 +00:00
rpc
security
sparc64 sparc64: Busy the TSB page before freeing it in pmap_release(). 2020-01-23 17:18:58 +00:00
sys Correct the use of RB_AUGMENT in the RB_TREE macros so that is invoked 2020-01-27 15:09:13 +00:00
teken
tests
tools vfs: stop null checking routines in vop wrappers 2020-01-26 00:41:38 +00:00
ufs ufs: add vgone calls for unconstructed vnodes in the error path 2020-01-26 00:38:06 +00:00
vm Handle a race of collapse with a retrying fault. 2020-01-24 19:42:53 +00:00
x86 Correct the use of RB_AUGMENT in the RB_TREE macros so that is invoked 2020-01-27 15:09:13 +00:00
xdr
xen
Makefile