Commit Graph

242615 Commits

Author SHA1 Message Date
christos f2f81db6f6 Hook to clamp the random value for mmap for machies that don't have enough
VA bits.
2016-05-17 00:38:50 +00:00
christos bb32bde822 Adjust to new freetype-2.6.3 2016-05-16 22:20:10 +00:00
christos 5d3395496d Adjust to new freetype structure. 2016-05-16 22:19:41 +00:00
christos 5b57c7ffa3 Adjust to 2.6.3. 2016-05-16 22:19:10 +00:00
palle ef44ed55df Avoid assembler-specific defines by using the export keyword in genassym.cf instead 2016-05-16 20:03:07 +00:00
pooka 3bc931a0af Add workaround for PR kern/51135
If the rnd component is present, load extra initial entropy to avoid
/dev/random not being able to request it on demand.  The extra initial
entropy will allow a few instances of /dev/random, but will eventually
go into the failure mode described in the PR.
2016-05-16 16:31:07 +00:00
skrll 35ca377c08 Simplify and fixup roothub interrupt transfers to work as well as before
nick-nhusb.
2016-05-16 15:09:29 +00:00
ozaki-r cef59834c4 Use M_GETCTX and M_SETCTX instead of open-coding rcvif
No functional change.
2016-05-16 09:53:59 +00:00
skrll 5da2f1cee0 Update comment 2016-05-16 08:00:25 +00:00
skrll e0f98e3455 Really fix comment 2016-05-16 07:59:42 +00:00
maxv 9c4befc9b2 Update kern.ldscript.4MB. It is the same as kern.ldscript, but with a large
page alignment before rodata.
2016-05-16 07:52:31 +00:00
maxv 683c80c88e Mention fine-grained permissions and large pages on x86. 2016-05-16 07:37:45 +00:00
nonaka dd98b35fce Fix format 2016-05-16 04:20:13 +00:00
ozaki-r 2ccabb7fd7 Apply if_get and if_put to bridge(4) 2016-05-16 01:23:51 +00:00
ozaki-r fd97b511fe Replace ifnet_lock with if_get and if_put
ifnet_lock is a dedicated method to safely destroy an interface over running
ioctl operations. Replace it with a more generic mechanism using psref(9).
2016-05-16 01:16:24 +00:00
ozaki-r b59e9a736b Introduce if_get, if_get_byindex and if_put
The new API enables to obtain an ifnet object with protected by psref(9).
It is intended to be used where an obtained ifnet object is used over
sleepable operations.
2016-05-16 01:06:31 +00:00
nakayama 49bc961c13 %g1 is not preserved across function call, so load it before
return_from_trap.
2016-05-15 23:54:58 +00:00
jnemeth 936489bc66 PR/51028 - Nikolai Lifanov -- add RPKI, BGPSEC 2016-05-15 23:54:19 +00:00
jnemeth 27b3875271 PR/51023 - Nikolai Lifanov -- add more acronyms 2016-05-15 23:40:46 +00:00
dholland f73cfd4294 add:
config(1)  (cube)
        error(1)   (christos)
        inetd(8)   (me)
        mail(1)    (christos)
        sh(1)      (add kre)

and take out entries compat_irix, compat_darwin, and compat_mach as
these were removed from the kernel some time back.
2016-05-15 22:57:31 +00:00
kamil c5cd6fc399 Remove redundant entry for pmax 2016-05-15 22:47:12 +00:00
christos 91e51ad49a remove stray debugging. 2016-05-15 20:37:48 +00:00
christos 6a4222698f Bail out if the string does not look like a timezone (is empty or does not
start with a letter or a number). tzparse("") or tzparse(".45") don't fail.
2016-05-15 20:36:42 +00:00
kre b752c81378 Add a new test case to validate N>&N redirect disables close-on-exec.
OK christos@
2016-05-15 15:44:43 +00:00
reinoud 9abd791ba2 Use _align(2) workaround for PR kern/51141. This fixes odd CD length
reporting.
2016-05-15 15:37:38 +00:00
chs 6ee802c24a define ALTENTRY(), needed by dtrace. 2016-05-15 15:26:04 +00:00
skrll d670b71791 Fix comment 2016-05-15 14:00:08 +00:00
skrll 35c5dc9d9b Typo in comment 2016-05-15 13:59:36 +00:00
maxv 9aca421dba Explicitly mention MP_TRAMPOLINE in these comments, so that NXR links them. 2016-05-15 10:35:54 +00:00
maxv 4c1aaf9dc6 Split the PRELOADED_MODULES+BOOTSTRAP_TABLES chunk into two separate
chunks mapped independently with RWX and RW, on both amd64 and i386.

This way the BOOTSTRAP TABLES are non-executable.
2016-05-15 07:17:53 +00:00
maxv 0d0621d260 Reduce the diff between amd64 and i386. We invert two instructions on
amd64, but it makes no difference since PDE_SIZE = 8.
2016-05-15 07:01:36 +00:00
mlelstv d9e725b220 updated nvme entry 2016-05-14 21:32:50 +00:00
chs 760a7ed1e9 apply the ustack() parts of freebsd r211608:
r211608 | rpaulo | 2010-08-22 03:53:32 -0700 (Sun, 22 Aug 2010) | 8 lines

	Kernel DTrace support for:
	o uregs  (sson@)
	o ustack (sson@)
	o /dev/dtrace/helper device (needed for USDT probes)

	The work done by me was:
	Sponsored by:   The FreeBSD Foundation

plus a few netbsd-specific tweaks from me.
fixes PR 50790.
2016-05-14 21:19:05 +00:00
christos 931302e025 Turn on MPROTECT on GENERIC and both MPROTECT and ASLR on XEN* 2016-05-14 17:11:30 +00:00
christos 2a096139aa only print debugging info if we are actually going to change the permission. 2016-05-14 17:04:09 +00:00
spz cb08e2756f .. and don't forget to update doc/3RDPARTY when updating external/* stuff 2016-05-14 14:46:55 +00:00
spz 67c3041c33 merge conflicts, bump shlib version, add expat.pc 2016-05-14 14:39:39 +00:00
spz 8a91d82a35 Import of a new expat version. Upstream Changes:
Release 2.1.1 Sat March 12 2016
        Security fixes:
            #582: CVE-2015-1283 - Multiple integer overflows in XML_GetBuffer

        Bug fixes:
            #502: Fix potential null pointer dereference
            #520: Symbol XML_SetHashSalt was not exported
            Output of "xmlwf -h" was incomplete

        Other changes
            #503: Document behavior of calling XML_SetHashSalt with salt 0
            Minor improvements to man page xmlwf(1)
            Improvements to the experimental CMake build system
            libtool now invoked with --verbose
2016-05-14 14:30:18 +00:00
mlelstv f3c013cf09 In station mode filter packets that or not for us in case the
interface is in promiscous mode or doesn't filter packets itself.
2016-05-14 13:35:40 +00:00
maxv b561cb98a5 KNF so it appears aligned on NXR, and fix a comment. 2016-05-14 12:48:31 +00:00
mlelstv 1956fdfb7c All com devices have an issue that they sleep in the final close
when they signal a hangup while still using the device. This allows
a concurrent open to succeed without proper locking because it
only checks the state of the tty layer.

This issue triggers an assertion in ucom due to a reused USB xfer,
but it can also cause misbehaviour in other com devices.

For now in ucom:
- make open block while close is in progress
- also serialize close operations
2016-05-14 10:52:29 +00:00
skrll 2835d51bba #if 0 an assert around rootintr that's no longer correct. root hub
interrupt transfers could do with reworking.
2016-05-14 10:07:52 +00:00
maxv 8f728b8ede Actually, put the NOX identification above. Old CPUs do not support the
cpuid instruction.
2016-05-14 09:51:56 +00:00
maxv 15756d7e09 The NOX bit on large pages does not need to be amd64-specific anymore.
The i386 secondary CPUs can now properly handle it.
2016-05-14 09:37:21 +00:00
skrll 9bdeadfc6e Another locking fix in slhci_roothub_ctrl 2016-05-14 08:52:20 +00:00
maxv f63de3d1a3 Map rodata and data+bss independently, and give them R and RW with
fillkpt_nox. The code is exactly the same as amd64's.
2016-05-14 08:49:16 +00:00
maxv e39b2c82ed Define fillkpt_nox on i386, same as amd64.
But there is a difference in the way it is done here. If PAE is not enabled,
PDE_SIZE = 4, so there is no NOX bit set. If PAE is enabled, PDE_SIZE = 8,
so the NOX bit is set.

This works exactly as intended, since NOX does not exist in the non-PAE
case.
2016-05-14 08:39:41 +00:00
maxv 9d6cfafacd Fix the secondary CPUs bug in i386. Same as amd64. 2016-05-14 08:34:00 +00:00
maxv 3b5965adb8 Align the segments on i386. We're going to map them independently. 2016-05-14 08:19:42 +00:00
skrll b8319f9aea Only set QH CMASK for FS/LS interrupt transfers 2016-05-14 07:14:31 +00:00