miod [Mon, 11 Aug 2014 19:16:56 +0000 (19:16 +0000)]
Do not pmap_update(pmap_kernel()) within the `create mappings' loop, but only
once after it is over.
miod [Mon, 11 Aug 2014 19:00:50 +0000 (19:00 +0000)]
Do not extern octeon_boot_info, <machine/octeonvar.h> declares it for you.
miod [Mon, 11 Aug 2014 18:56:49 +0000 (18:56 +0000)]
Do not use CKSEG0 to quickly map physical addresses, but XKPHYS, for we are
not limited to 512MB physmem.
miod [Mon, 11 Aug 2014 18:52:54 +0000 (18:52 +0000)]
Get rid of the `quirks' member, which is never initialized (but by zero at
softc creation) anyway. Sorry, we are not trying to support SEIL-specific
hardware at this point.
tobias [Mon, 11 Aug 2014 18:41:13 +0000 (18:41 +0000)]
When parsing 32 bit values, verify that we received 4 bytes.
ok krw@
tobias [Mon, 11 Aug 2014 18:39:41 +0000 (18:39 +0000)]
validate len field for proper length, not just "not zero."
ok krw@
miod [Mon, 11 Aug 2014 18:33:36 +0000 (18:33 +0000)]
-current dammit
miod [Mon, 11 Aug 2014 18:29:56 +0000 (18:29 +0000)]
Remove evcnt and %b format strings relying upon SEIL extensions. This gives
OCTEON_ETH_DEBUG kernels a chance to build. No functional change for regular
kernels.
miod [Mon, 11 Aug 2014 18:08:17 +0000 (18:08 +0000)]
De-static so that my ddb backtrace get closer to reality.
miod [Mon, 11 Aug 2014 16:54:20 +0000 (16:54 +0000)]
Add option USER_PCICONF for pcidump(8) to be able to do its magic.
deraadt [Mon, 11 Aug 2014 15:26:33 +0000 (15:26 +0000)]
make a few variables more local
mpi [Mon, 11 Aug 2014 13:51:07 +0000 (13:51 +0000)]
Use the RTF_LOCAL flag instead of abusing the RTF_LLINFO flag when
adding local route entries.
This hack made sense when we didn't have the RTF_LOCAL flag, but since
some months it is set on every local route.
dlg [Mon, 11 Aug 2014 13:31:42 +0000 (13:31 +0000)]
bring back r1.132:
provide a pool_count global so we can figure out how many pools there are
active without having to walk the global pool_list.
bcook [Mon, 11 Aug 2014 13:29:43 +0000 (13:29 +0000)]
Guard RSA / RC4-5 ASM when NO_ASM is not defined
Most assembly blocks remain inactive if OPENSSL_NO_ASM is not defined,
only enabling inline assembly, but the RSA / RC4-5 blocks (used only in
amd64 systems) turn on implicitly. Guard these two as well.
This simplifies enabling just inline ASM in portable, no effective
change in OpenBSD.
ajacoutot [Mon, 11 Aug 2014 13:25:23 +0000 (13:25 +0000)]
Make it possible to pass arguments to _rc_parse_conf().
ok robert@
jmc [Mon, 11 Aug 2014 12:57:14 +0000 (12:57 +0000)]
document "tc";
From: Edward
ok millert
mpi [Mon, 11 Aug 2014 12:45:45 +0000 (12:45 +0000)]
Fewer <netinet/in_systm.h>
dlg [Mon, 11 Aug 2014 12:37:36 +0000 (12:37 +0000)]
bring back r1.131:
take the pools mutex when copying stats out of it in the sysctl
path so we are guaranteed a consistent snapshot.
mpi [Mon, 11 Aug 2014 11:59:05 +0000 (11:59 +0000)]
Put back the checks about RTF_LOCAL routes now that userland tools are
aware of them.
Original commit message was:
Reserve the highest route priority for kernel-managed routes and prevent
userland from playing with the local and broadcast flags.
ok claudio@
mpi [Mon, 11 Aug 2014 11:50:41 +0000 (11:50 +0000)]
Convert ARP llinfo allocation to pool(9).
ok henning@, dlg@
jsing [Mon, 11 Aug 2014 10:46:19 +0000 (10:46 +0000)]
Check the return value of sk_SSL_CIPHER_new_null(), since it allocates
memory and can return NULL.
ok miod@
gilles [Mon, 11 Aug 2014 09:50:51 +0000 (09:50 +0000)]
missing memset in table_api.c (currently only used by pluggable tables)
diff from Martijn van Duren
mpi [Mon, 11 Aug 2014 09:47:56 +0000 (09:47 +0000)]
Do not try to delete RTF_LOCAL entries. Such routes are automatically
created /deleted by the kernel when an IP address is added/removed
on/from an interface and should not be manipulated by userland tools.
ok henning@, jca@
ajacoutot [Mon, 11 Aug 2014 09:03:27 +0000 (09:03 +0000)]
Steal stripcom() from /etc/rc to parse sysmerge.ignore.
jmc [Mon, 11 Aug 2014 08:21:55 +0000 (08:21 +0000)]
add a caveat about databases;
From: Matthew Weigel
ok gilles
ajacoutot [Mon, 11 Aug 2014 06:30:39 +0000 (06:30 +0000)]
Move a sentence to the corresponding option description.
from jmc@
miod [Mon, 11 Aug 2014 04:46:42 +0000 (04:46 +0000)]
Unchecked memory allocation and potential leak upon error in
ssl3_get_cert_verify().
ok guenther@ jsing@
miod [Mon, 11 Aug 2014 04:45:19 +0000 (04:45 +0000)]
Remove now-unused SSL2_STATE as well as ssl2-specific state machine values.
ok guenther@ jsing@
schwarze [Mon, 11 Aug 2014 04:18:18 +0000 (04:18 +0000)]
start catching up with recent code changes, but no new files yet
jsing [Mon, 11 Aug 2014 01:10:42 +0000 (01:10 +0000)]
Currently, ssl3_put_char_by_bytes(NULL, NULL) is just a long handed way
of writing "2". Add a define for the SSL3_CIPHER_VALUE_SIZE (rather than
using a less-readable hardcoded constant everywhere) and replace the
ssl3_put_char_by_bytes(NULL, NULL) calls with it.
ok bcook@ miod@
jsing [Mon, 11 Aug 2014 01:06:22 +0000 (01:06 +0000)]
Provide a ssl3_get_cipher_by_id() function that allows ciphers to be looked
up by their ID. For one, this avoids an ugly mess in ssl_sess.c, where the
cipher value is manually written into a buffer, just so the cipher can be
located using ssl3_get_cipher_by_char().
ok bcook@ miod@
bluhm [Sun, 10 Aug 2014 23:44:20 +0000 (23:44 +0000)]
Write the core file of a non-suid process into the current directory
even if sysctl kern.nosuidcoredump has been set to 2 or 3. This
allows a regular user to debug his programs again.
OK guenther@ deraadt@
bluhm [Sun, 10 Aug 2014 21:55:17 +0000 (21:55 +0000)]
There was a race in relayd that caused connections to hang. It
happend with non-persistent PUT connections that had a very short
body. If the whole body was read from the client before the
connection to the server was set up, the event callback was not
called. Do the regular checks after relay_connect() succeeded.
OK reyk@
zhuk [Sun, 10 Aug 2014 21:09:26 +0000 (21:09 +0000)]
Improve variables listing in x11/kde4 module description.
rpe [Sun, 10 Aug 2014 20:54:17 +0000 (20:54 +0000)]
[] -> [[]]
OK krw@
"well ok" halex@
jmc [Sun, 10 Aug 2014 17:15:18 +0000 (17:15 +0000)]
- add -p to SYNOPSIS
- the argument to -s is not optional
ok ajacoutot
tedu [Sun, 10 Aug 2014 16:36:13 +0000 (16:36 +0000)]
guenther wants a copyright
rpe [Sun, 10 Aug 2014 16:32:28 +0000 (16:32 +0000)]
Convert if foo; then bar; fi blocks to foo && bar but leave out enable_network()
because it shares code&style with /etc/netstart. No functional change.
with feedback and OK krw@ halex@
jsing [Sun, 10 Aug 2014 15:06:15 +0000 (15:06 +0000)]
Tweak cipher list comments and add missing cipher value comments.
rpe [Sun, 10 Aug 2014 14:59:22 +0000 (14:59 +0000)]
{ foo ; bar ; } -> { foo; bar; }
OK krw@
jsing [Sun, 10 Aug 2014 14:57:04 +0000 (14:57 +0000)]
Remove disabled (weakened export and non-ephemeral DH) cipher suites from
the cipher list. This reduces code size, saves data segment space and
prevents them from being turned back on at runtime by flipping a bit in
memory.
ok guenther@
jsing [Sun, 10 Aug 2014 14:42:55 +0000 (14:42 +0000)]
Since we no longer need to support SSLv2-style cipher lists, start
unravelling the maze of function pointers and callbacks by directly
calling ssl3_{get,put}_cipher_by_char() and removing the
ssl_{get,put}_cipher_by_char macros.
Prompted by similar changes in boringssl.
ok guenther.
mpi [Sun, 10 Aug 2014 13:32:14 +0000 (13:32 +0000)]
Ask for the descriptor size corresponding to the number of ports present
in the hub, not from some random value from the stack.
mpi [Sun, 10 Aug 2014 12:58:49 +0000 (12:58 +0000)]
Do not allocate space for the whole structure when we just want to store
a pointer, found by clang.
mpi [Sun, 10 Aug 2014 12:48:43 +0000 (12:48 +0000)]
sizeof() a pointer of the right struct to appease clang.
sf [Sun, 10 Aug 2014 12:28:09 +0000 (12:28 +0000)]
Note that qemu 1.7.2 has the VLAN bug fix, too
jasper [Sun, 10 Aug 2014 11:26:07 +0000 (11:26 +0000)]
zap trailing whitespace
jmc [Sun, 10 Aug 2014 11:23:02 +0000 (11:23 +0000)]
some Ev fixes;
mpi [Sun, 10 Aug 2014 11:21:49 +0000 (11:21 +0000)]
Merge xhci_device_setup() into xhci_pipe_init() there's no reason to
have a separate function anymore, it is just a wrapper around the "set
address" command.
mpi [Sun, 10 Aug 2014 11:18:57 +0000 (11:18 +0000)]
Since USB xfer pools are accessed in interrupt context, initialize them
with the correct ipl to prevent your CPU from locking against itself.
mpi [Sun, 10 Aug 2014 11:00:35 +0000 (11:00 +0000)]
Set and check for XFER_BUSY in the common methods instead of doing it
in every HC driver.
ratchov [Sun, 10 Aug 2014 10:25:35 +0000 (10:25 +0000)]
typo in debug message
ratchov [Sun, 10 Aug 2014 10:25:04 +0000 (10:25 +0000)]
initialize mmcpos, found by guenther
espie [Sun, 10 Aug 2014 10:10:21 +0000 (10:10 +0000)]
Document SUBST_*
espie [Sun, 10 Aug 2014 10:04:39 +0000 (10:04 +0000)]
comment what's going on
espie [Sun, 10 Aug 2014 10:03:46 +0000 (10:03 +0000)]
Ouch... fuck cvs
espie [Sun, 10 Aug 2014 10:01:03 +0000 (10:01 +0000)]
if pkg_create is run as non-root, restory correct group/owner to root/bin.
also, remove write permissions without explicit modes. Allows fake installs
to keep directories/files writable while producing correct package.
jsg [Sun, 10 Aug 2014 09:23:06 +0000 (09:23 +0000)]
fix kqueue read/write filters for msdosfs and fusefs
ok tedu@
matthieu [Sun, 10 Aug 2014 09:15:39 +0000 (09:15 +0000)]
Typo. ok deraadt@ jmc@
jsg [Sun, 10 Aug 2014 09:11:07 +0000 (09:11 +0000)]
debug level test for clock_gettime() calls should match
ok ratchov@
guenther [Sun, 10 Aug 2014 07:31:58 +0000 (07:31 +0000)]
AF_IMPLINK and AF_BLUETOOTH are gone, but add printing of SOCK_SEQPACKET
guenther [Sun, 10 Aug 2014 07:29:45 +0000 (07:29 +0000)]
Don't need to know how to format bluetooth socket info here
guenther [Sun, 10 Aug 2014 07:28:32 +0000 (07:28 +0000)]
No more bluetooth in netintr(), so delete NETISR_BT. Zap the declaration
for btintr(), as well as the also gone atintr() and clnlintr()
guenther [Sun, 10 Aug 2014 07:23:59 +0000 (07:23 +0000)]
AF_BLUETOOTH is gone. AF_LOCAL isn't involved pipe (and portals are gone).
guenther [Sun, 10 Aug 2014 07:19:08 +0000 (07:19 +0000)]
AF_IMPLINK and AF_BLUETOOTH are gone
guenther [Sun, 10 Aug 2014 05:09:31 +0000 (05:09 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 05:08:31 +0000 (05:08 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 05:06:38 +0000 (05:06 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 05:00:25 +0000 (05:00 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 04:57:33 +0000 (04:57 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here
lteo [Sun, 10 Aug 2014 03:26:20 +0000 (03:26 +0000)]
Fix the length check for reinjected ICMP packets: sizeof(struct icmp) is
28 but an ICMP packet can be as small as 8 bytes (e.g. an ICMP echo
request packet with no payload), so check against ICMP_MINLEN instead.
Prior to this fix, divert(4) would erroneously discard valid ICMP
packets that are shorter than 20 bytes.
ICMPv6 is not affected, so this change applies to ICMP over IPv4 only.
ok florian@ henning@
guenther [Sun, 10 Aug 2014 03:25:39 +0000 (03:25 +0000)]
Format time_t with %lld after casting to long long
lteo [Sun, 10 Aug 2014 03:24:51 +0000 (03:24 +0000)]
Rename p_hdrlen to min_hdrlen to better reflect its purpose.
No object file change
ok florian@ henning@
guenther [Sun, 10 Aug 2014 02:49:24 +0000 (02:49 +0000)]
Delete duplicate conditional
diff from frantisek holop (minusf (at) obiit.org)
guenther [Sun, 10 Aug 2014 02:44:26 +0000 (02:44 +0000)]
Replace F_DUPFD followed by setting FD_CLOEXEC with just F_DUPFD_CLOEXEC
ok matthew@ millert@
guenther [Sun, 10 Aug 2014 02:41:41 +0000 (02:41 +0000)]
Add Xr to skey and stty
guenther [Sun, 10 Aug 2014 02:38:24 +0000 (02:38 +0000)]
Delete extern declarations for variables that don't exist (anymore?)
guenther [Sun, 10 Aug 2014 02:15:18 +0000 (02:15 +0000)]
Only need <stdint.h> and not all of <inttypes.h> here
guenther [Sun, 10 Aug 2014 02:09:35 +0000 (02:09 +0000)]
msts(4) appears to support TIOCSTSTAMP
From Maurice Janssen (maurice (at) z74.net)
guenther [Sun, 10 Aug 2014 00:21:49 +0000 (00:21 +0000)]
Add F_DUPFD_CLOEXEC handling
guenther [Sun, 10 Aug 2014 00:20:55 +0000 (00:20 +0000)]
Add newer errnos
guenther [Sat, 9 Aug 2014 22:44:15 +0000 (22:44 +0000)]
Switch from calloc() to reallocarray() where the zeroing isn't needed
guenther [Sat, 9 Aug 2014 22:42:13 +0000 (22:42 +0000)]
Use time_t for storing times
guenther [Sat, 9 Aug 2014 22:40:16 +0000 (22:40 +0000)]
Parse times with strtoll() instead of strtol()
guenther [Sat, 9 Aug 2014 22:39:08 +0000 (22:39 +0000)]
Regenerate to pick up time_t changes
guenther [Sat, 9 Aug 2014 22:37:29 +0000 (22:37 +0000)]
bfd-in2.h is generated from this; merge back a change that was made there
guenther [Sat, 9 Aug 2014 22:34:35 +0000 (22:34 +0000)]
Store timestamps in time_t
guenther [Sat, 9 Aug 2014 22:32:08 +0000 (22:32 +0000)]
bfd-in2.h is generated from this; merge back a change that was made there
halex [Sat, 9 Aug 2014 21:51:29 +0000 (21:51 +0000)]
After a cleanup by deraadt I noticed the four-space-indent had started
infesting the scripts. As we generally use a single tab for line
continuation indent in the scripts, let's reclaim 30 precious bytes!
ok rpe@ krw@
guenther [Sat, 9 Aug 2014 20:08:44 +0000 (20:08 +0000)]
Fix readelf --debug-dump=frames-interp output: once a register is given
a column, it needs to included in all rows, even after the register is
restored.
ok jsg@
jmc [Sat, 9 Aug 2014 16:39:25 +0000 (16:39 +0000)]
less chatty; ok ajacoutot
schwarze [Sat, 9 Aug 2014 14:24:49 +0000 (14:24 +0000)]
mmap(2) requires MAP_PRIVATE ^ MAP_SHARED for flags;
found by kristaps@ on Mac OS X
ajacoutot [Sat, 9 Aug 2014 12:46:51 +0000 (12:46 +0000)]
Extend comment.
ajacoutot [Sat, 9 Aug 2014 12:45:03 +0000 (12:45 +0000)]
Initial support for handling configuration files from packages
(aka @sample) -- `sysmerge -p`
Worked done at g2k14.
Committing early so we have plenty of time for testing.
with help from espie@
thanks to landry@ for feedback on initial testing
ajacoutot [Sat, 9 Aug 2014 12:34:05 +0000 (12:34 +0000)]
sysctl.conf is an example.
Tweak error output.
Mention that `-S' has no effect when sets aren't used.
mpi [Sat, 9 Aug 2014 10:32:36 +0000 (10:32 +0000)]
Add support for non-root hubs now that uhub(4) can deal with them. For
the moment only Super and High Speed devices are properly recognized.
Some TT love is required for Full and Low speed devices.
mpi [Sat, 9 Aug 2014 09:58:11 +0000 (09:58 +0000)]
Correctly recognize Super Speed devices, this is part of the work to
be able to use USB 3.0 devices behind an external hub.
This is a bit tricky because the SS status use a different power bit
that maps to the Low speed one. So no longer accept devices without
power bit and fallback to the parent hub's speed in case the status
does not report any particular speed.
Note that xhci(4) root hubs still set the traditionnal UPS_PORT_POWER
bit with the correct device speed.
mpi [Sat, 9 Aug 2014 09:48:32 +0000 (09:48 +0000)]
Handle super speed hub descriptors.
mpi [Sat, 9 Aug 2014 09:45:14 +0000 (09:45 +0000)]
Do not store the whole USB hub descriptor in the "struct usbd_hub"
to help integrating super speed hubs that use a different descriptor.
jmc [Sat, 9 Aug 2014 09:07:14 +0000 (09:07 +0000)]
some minor tweaks;