freebsd-skq/sys
Mark Johnston 25f4ddfb2b sbappendcontrol() needs to avoid clearing M_NOTREADY on data mbufs.
If LOCAL_CREDS is set on a unix socket and sendfile() is called,
sendfile will call uipc_send(PRUS_NOTREADY), prepending a control
message to the M_NOTREADY mbufs.  uipc_send() then calls
sbappendcontrol() instead of sbappend(), and sbappendcontrol() would
erroneously clear M_NOTREADY.

Pass send flags to sbappendcontrol(), like we do for sbappend(), to
preserve M_READY when necessary.

Reported by:	syzkaller
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D24333
2020-04-10 20:42:11 +00:00
..
amd64 Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
arm Add the Cadence GEM ethernet driver to NOTES so that it gets built with 2020-04-02 19:06:05 +00:00
arm64 Add MDIO PHY driver for NS2 ARM64 platform. 2020-04-06 05:48:58 +00:00
bsm vfs: add realpathat syscall 2020-02-20 16:58:19 +00:00
cam Now that we don't have special-case geom hacking defined in md_var.h, stop 2020-04-07 22:23:22 +00:00
cddl MFOpenZFS: ZVOLs should not be allowed to have children 2020-03-25 15:56:18 +00:00
compat Clone the RCU interface into a sleepable and a non-sleepable part 2020-04-08 17:09:45 +00:00
conf Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
contrib Merge ACPICA 20200326. 2020-03-27 00:29:33 +00:00
crypto Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
ddb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
dev hdac: show which command timed out 2020-04-10 18:38:42 +00:00
dts arm: zynq: An SPI driver for Zynq platforms 2020-02-28 10:57:23 +00:00
fs Replace mbuf macros with the code they would generate in the NFS code. 2020-04-09 23:11:19 +00:00
gdb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
geom Now that we don't have special-case geom hacking defined in md_var.h, stop 2020-04-07 22:23:22 +00:00
gnu dts: Update our copy for arm, arm64 and riscv dts to Linux 5.5 2020-02-28 15:42:51 +00:00
i386 Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
isa
kern sbappendcontrol() needs to avoid clearing M_NOTREADY on data mbufs. 2020-04-10 20:42:11 +00:00
kgssapi Set crp_ilen for crypto requests. 2020-04-01 17:09:21 +00:00
libkern Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
mips Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
modules Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
net Split rtrequest1_fib() into smaller manageable chunks. 2020-04-10 16:27:27 +00:00
net80211 Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (7 of many) 2020-02-21 16:32:17 +00:00
netgraph Fix mbuf handling in le advertize packet processing. 2020-04-02 09:15:31 +00:00
netinet Fix copyright year and eliminate the obsolete all rights reserved line. 2020-04-08 17:55:45 +00:00
netinet6 Ignore ND6 neighbor advertisement received for static link-layer entries. 2020-04-01 02:13:01 +00:00
netipsec Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
netpfil Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
netsmb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
nfsclient
nfsserver
nlm Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
ofed Fix for double unlock in ipoib. 2020-03-16 12:33:57 +00:00
opencrypto Avoid checking pointers that are never NULL. 2020-04-02 17:22:16 +00:00
powerpc powerpc/amigaone: Add CPLD driver for AmigaOne A1222 "Tabor" 2020-04-03 20:45:16 +00:00
riscv riscv: Add semicolon missing from r359672 2020-04-06 23:54:50 +00:00
rpc Change the xid for client side krpc over UDP to a global value. 2020-04-05 21:08:17 +00:00
security mac_policy: Remove mac_policy_sx 2020-04-04 04:03:10 +00:00
sys sbappendcontrol() needs to avoid clearing M_NOTREADY on data mbufs. 2020-04-10 20:42:11 +00:00
teken
tests Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tools
ufs ufs: apply suspension for non-forced rw unmounts. 2020-04-10 01:24:16 +00:00
vm Remove dead code leftover from r331018. 2020-03-31 01:12:53 +00:00
x86 x86 tsc: fall back to CPUID if calibration results looks unbelievable. 2020-04-01 16:21:11 +00:00
xdr typo: s/impelmentation/implementation/. 2020-02-07 15:14:29 +00:00
xen Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (16 of many) 2020-02-25 19:04:39 +00:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00