1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00
freebsd/sys
Patrick Kelsey 6f99ea0520 Don't acquire sysctlmemlock in userland_sysctl() when the old value
pointer is NULL, as in that case there are no userland pages that
could potentially be wired.  It is common for old to be NULL and
oldlenp to be non-NULL in calls to userland_sysctl(), as this is used
to probe for the length of a variable-length sysctl entry before
retrieving a value.  Note that it is typical for such calls to be made
with an uninitialized value in *oldlenp, so sysctlmemlock was
essentially being acquired at random (depending on the uninitialized
value in *oldlenp being > PAGE_SIZE or not) for these calls prior to
this patch.

Differential Revision: https://reviews.freebsd.org/D2987
Reviewed by: mjg, kib
Approved by: jmallett (mentor)
MFC after: 1 month
2015-07-06 16:07:21 +00:00
..
amd64 Enable IPSEC in all GENERIC kernels. 2015-07-04 17:37:00 +00:00
arm Enable ipsec by default on all armv6 platforms. 2015-07-05 14:16:31 +00:00
arm64 Add the kernel functions needed to enable threading. 2015-07-05 18:16:06 +00:00
boot Install loader.rc with ARM u-boot loader (ubldr). 2015-07-04 16:19:38 +00:00
bsm
cam Make first step toward supporting target and initiator roles same time. 2015-07-05 03:38:58 +00:00
cddl fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
compat fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
conf Merge booke and aim interrupt.c files. 2015-07-06 05:08:57 +00:00
contrib Move the nvlist source and private includes from sys/kern to seperate 2015-07-04 16:33:37 +00:00
crypto
ddb Correct the function name in catch-all error handling case. 2015-06-17 10:20:59 +00:00
dev Correct bit offsets for ahci quirks 2015-07-06 09:44:07 +00:00
fs Check suspendability on the mountpoint returned by VOP_GETWRITEMOUNT. 2015-07-05 22:37:33 +00:00
gdb
geom Properly propagate errors in metadata reading. 2015-07-02 10:57:34 +00:00
gnu
i386 Fix up tabs vs. spaces 2015-07-04 20:31:06 +00:00
isa
kern Don't acquire sysctlmemlock in userland_sysctl() when the old value 2015-07-06 16:07:21 +00:00
kgssapi
libkern Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
mips Reshuffle all of the DDR flush operations into a single switch/mux, 2015-07-04 03:05:57 +00:00
modules improve dependencies for this module a bit... not great, but at 2015-07-04 08:16:32 +00:00
net Fix if_loop so bpfwrite() can use it regardless of the state of 2015-07-06 02:12:49 +00:00
net80211 Break out the current 802.11 software scan methods into an indirect table. 2015-06-08 02:35:43 +00:00
netgraph Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00
netinet Avoid doing multiple route lookups for the same destination IP during forwarding 2015-07-02 18:10:41 +00:00
netinet6 Keep IPv6 address specified by IPV6_PKTINFO socket option in kernel 2015-07-03 19:01:38 +00:00
netipsec Fill the port and protocol information in the SADB_ACQUIRE message 2015-07-06 12:40:31 +00:00
netnatm
netpfil ALTQ FAIRQ discipline import from DragonFLY 2015-06-24 19:16:41 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Fix broken implementation of "kvasprintf()" function by adding missing 2015-07-03 11:16:20 +00:00
opencrypto change the KASSERT so it is meaningful, var is unsigned, so even 2015-06-19 22:42:26 +00:00
pc98 Fix up tabs vs. spaces 2015-07-04 20:31:06 +00:00
powerpc Merge booke and aim interrupt.c files. 2015-07-06 05:08:57 +00:00
rpc
security fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
sparc64 Fix up tabs vs. spaces 2015-07-04 20:31:06 +00:00
sys Check suspendability on the mountpoint returned by VOP_GETWRITEMOUNT. 2015-07-05 22:37:33 +00:00
teken
tools
ufs Check suspendability on the mountpoint returned by VOP_GETWRITEMOUNT. 2015-07-05 22:37:33 +00:00
vm Add a local variable initialization needed in the OBJT_DEFAULT case. 2015-07-05 22:26:19 +00:00
x86 Set the initial system time to a sane (as in: not end of 21st century) value when 2015-06-29 17:02:09 +00:00
xdr
xen Garbage collect comments which related to the pre-r284296 support for a 2015-06-21 06:05:33 +00:00
Makefile Kill EoL whitespace. 2015-05-29 14:03:07 +00:00