freebsd-nq/sys/i386
Konstantin Belousov 00d37313f9 Change i386_get_ldt() to return 'EOF' when the requested range of
descriptors does not fit into currently allocated LDT, or trim the
return if the range fits partially.  Before, the function returned
EINVAL.

Fix two bugs in r324366: use capped num counter for malloc size, and
do not leak allocated buffer on EINVAL (by handling EINVAL case as
normal, see above).

Reviewed by:	bde
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2017-10-09 16:19:26 +00:00
..
acpica
bios Remove Micro Channel Architecture support. Of the commonly available 2017-02-15 23:04:25 +00:00
cloudabi32 Move struct syscall_args syscall arguments parameters container into 2017-06-12 21:03:23 +00:00
conf Fix indentation for r323068 2017-09-19 20:40:05 +00:00
i386 Change i386_get_ldt() to return 'EOF' when the requested range of 2017-10-09 16:19:26 +00:00
ibcs2 Remove register keyword from sys/ and ANSIfy prototypes 2017-05-17 00:34:34 +00:00
include Reset the fs and gs bases on exec(2). 2017-10-09 15:39:43 +00:00
isa Revert r323722. A better fix will be committed shortly, as well as 2017-09-28 08:38:24 +00:00
linux Avoid using [LINUX_]SHAREDPAGE constant directly in the vdso code. 2017-07-30 21:24:20 +00:00
pci Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
xbox
Makefile