mpi [Sat, 12 Jul 2014 14:26:00 +0000 (14:26 +0000)]
Always create a local route for every configured IPv4 address on the
machine and restore the original behavior of RTM_ADD and RTM_DELETE
by always generating one message per locally configured address.
This time, make sure the local route is removed during an address change,
since at least pppoe(4) do some funky magics with wildcard addresses that
might corrupt the routing tree, as found by naddy@
Also do not add a local route if the specified address is 0.0.0.0, to
prevent a tree corruption, as found by guenther@.
Putting this in now so that it gets tested, claudio@ agrees. Please
contact me if you find any route-related regression caused by this
change.
jsg [Sat, 12 Jul 2014 14:18:06 +0000 (14:18 +0000)]
remove ifdef'd out valleyview/baytrail device lists
on linux versions before 3.11 i915_pci_probe() doesn't match valleyview
unless i915_preliminary_hw_support is specified as a module parameter.
our drm code is currently based on linux 3.8, so it seems unlikely
that the valleyview support we have works.
jasper [Sat, 12 Jul 2014 14:15:06 +0000 (14:15 +0000)]
fix annoying bug where the first character would be eaten, cnischar() was
wreaking havoc.
from miod@
reyk [Sat, 12 Jul 2014 14:15:04 +0000 (14:15 +0000)]
Sync msgbuf_write() changes from relayd.
Please note that proc.c should be kept identical in relayd, iked and
snmpd (currently without the includes).
ok benno@
jasper [Sat, 12 Jul 2014 14:12:53 +0000 (14:12 +0000)]
- fill in cninit to enable rts
uebayasi [Sat, 12 Jul 2014 14:12:44 +0000 (14:12 +0000)]
boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)
I have found that some ports call boot(9) from machine-dependent code to
reboot system. These should be changed to either:
- Sending signal to init(8) to trigger it to shutdown system cleanly, like
acpi(4) does, in cases where found problems don't prevent system from working
immediately, or
- Just doing panic(9) if the situation is severely broken.
For now, just rewrite boot() to reboot(). Actual fixes follow.
Discussed with & OK from kettenis@
yasuoka [Sat, 12 Jul 2014 14:04:18 +0000 (14:04 +0000)]
Use imsg(3) for the IPC between the privileged process and the
non-privileged process to be unify the way. Also fix style.
schwarze [Sat, 12 Jul 2014 13:59:54 +0000 (13:59 +0000)]
Fix whatis(1) to correctly match words instead of any substrings.
While here, also provide an internal mode (MANSEARCH_MAN) to match
complete names, to be used by man.cgi(8).
mpi [Sat, 12 Jul 2014 13:43:08 +0000 (13:43 +0000)]
Change config_deactivate(9) to always unset the DVF_ACTIVE flag so
that drivers can check for this flag to know they have to stop doing
any hardware access and release their reference.
While here makes the ca_activate() function optional and propagates
DVACT_DEACTIVATE to the children of a device that do not implement this
interface like it is done during suspend/resume.
ok uebayasi@, deraadt@
deraadt [Sat, 12 Jul 2014 13:24:54 +0000 (13:24 +0000)]
Split arc4random_uniform into it's own file, to assist other projects
now using this as upstream code. The particular problem is systems
that contain older arc4random derivations lacking arc4random_uniform().
ok tedu miod
pelikan [Sat, 12 Jul 2014 13:23:59 +0000 (13:23 +0000)]
fix a type error on BE architectures
beck [Sat, 12 Jul 2014 13:19:44 +0000 (13:19 +0000)]
Solaris uses a symbolic link for /dev/urandom which harms best practice of
using O_NOFOLLOW - cope with it as best as possible by trying two
different paths. - written by deraadt@ and kettenis@
jsing [Sat, 12 Jul 2014 13:11:53 +0000 (13:11 +0000)]
Remove remnants from PSK, KRB5 and SRP.
ok beck@ miod@
jmc [Sat, 12 Jul 2014 12:46:28 +0000 (12:46 +0000)]
tweak previous;
jasper [Sat, 12 Jul 2014 12:16:36 +0000 (12:16 +0000)]
- rewrite register reading/writing to use octeon_xkphys_{read,write}_8 which
is the right approach
- write into _THR instead of _RBR for cnputc() as per miod's suggestion
this doesn't fix the first character that gets eaten, but it's the right way
to move forward.
with pirofti@
jsg [Sat, 12 Jul 2014 11:33:13 +0000 (11:33 +0000)]
Remove the qli driver for QLogic 4010 & 4022 iSCSI.
It was never enabled and is apparently unfinished.
ok deraadt@ krw@ claudio@ kettenis@
henning [Sat, 12 Jul 2014 11:27:45 +0000 (11:27 +0000)]
sizeof(afh), afh being uint32, is cooler than literal "4"
spotted by Kent R. Spillner <kspillner acm org>
miod [Sat, 12 Jul 2014 11:25:25 +0000 (11:25 +0000)]
typos
pelikan [Sat, 12 Jul 2014 11:03:11 +0000 (11:03 +0000)]
in-memory superblock was being filled in two places -> merge them
ok tedu
pelikan [Sat, 12 Jul 2014 10:55:33 +0000 (10:55 +0000)]
pull dirblock search code from ext2fs_lookup() like FreeBSD has done
ok tedu
tedu [Sat, 12 Jul 2014 10:51:35 +0000 (10:51 +0000)]
remove bluetooth types
tedu [Sat, 12 Jul 2014 10:47:21 +0000 (10:47 +0000)]
remove bluetooth malloc types
robert [Sat, 12 Jul 2014 10:14:03 +0000 (10:14 +0000)]
Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.
discussed with and help from deraadt@ and halex@
jsg [Sat, 12 Jul 2014 10:10:14 +0000 (10:10 +0000)]
regen
jsg [Sat, 12 Jul 2014 10:08:53 +0000 (10:08 +0000)]
add some more matrox devices found in servers
jsing [Sat, 12 Jul 2014 10:06:04 +0000 (10:06 +0000)]
Place comments in a block above the if statement, rather than attempting
to interleave them within the conditions. Also fix wrapping and
indentation.
miod [Sat, 12 Jul 2014 09:47:05 +0000 (09:47 +0000)]
Pull in more atomic functions to avoid <sys/atomic.h> trying to use gcc4
built-ins which aren't available on vax. (A similar diff for m88k is in the
pipeline as well)
espie [Sat, 12 Jul 2014 09:38:39 +0000 (09:38 +0000)]
a bit more detail
yuo [Sat, 12 Jul 2014 09:33:48 +0000 (09:33 +0000)]
regen
yuo [Sat, 12 Jul 2014 09:32:47 +0000 (09:32 +0000)]
fix location of 7 Series xHCI entry
no side effect
pelikan [Sat, 12 Jul 2014 09:30:02 +0000 (09:30 +0000)]
print more useful information on wrong superblocks.
Function renames for consistency and readability. No functional change.
robert [Sat, 12 Jul 2014 09:26:27 +0000 (09:26 +0000)]
document the GitHub support in bsd.port.mk
pelikan [Sat, 12 Jul 2014 09:04:35 +0000 (09:04 +0000)]
revert previous unwanted commit. sorry!
krw [Sat, 12 Jul 2014 09:04:21 +0000 (09:04 +0000)]
Bring back resolv.conf write reduction. Race was something else.
kettenis [Sat, 12 Jul 2014 09:02:24 +0000 (09:02 +0000)]
Add a function to drop all clean pages on the page daemon queues and call
it when we hibernate.
ok mlarkin@, miod@, deraadt@
pelikan [Sat, 12 Jul 2014 08:53:38 +0000 (08:53 +0000)]
*** empty log message ***
mpi [Sat, 12 Jul 2014 08:48:19 +0000 (08:48 +0000)]
Improve the definition of USBD_FORCE_SHORT_XFER, prompted by a question
from stsp@.
tedu [Sat, 12 Jul 2014 08:29:56 +0000 (08:29 +0000)]
mlarkin found disabled code to print a battleship. improve it and enable.
ok mlarkin
mpi [Sat, 12 Jul 2014 08:21:10 +0000 (08:21 +0000)]
Use the correct poll interval for HS root hub before it gets copied, no
real impact since this descriptor is not used in the kernel. From NetBSD.
ajacoutot [Sat, 12 Jul 2014 08:01:47 +0000 (08:01 +0000)]
Move things around (no change):
- some unofficial services became official
- move kerberos next to afs
mpi [Sat, 12 Jul 2014 07:59:23 +0000 (07:59 +0000)]
Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were to
set the 'dying' flag of a device. Such handlers are useless now that
usbd_detach() already set this flag.
Even if the purpose of this flag is questionnable on OpenBSD because
DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small
step towards the simplification of the autoconf(9) device states.
This cleaning is now possible thanks to the work of pirofti@ to convert
all the USB drivers to properly use usbd_is_dying().
Discussed many times with deraadt@
guenther [Sat, 12 Jul 2014 07:52:36 +0000 (07:52 +0000)]
Make disabling last cipher work.
From Thijs Alkemade via OpenSSL trunk
ok miod@
blambert [Sat, 12 Jul 2014 07:39:11 +0000 (07:39 +0000)]
essentially mechanical conversion of softraid rebuild from
workq to taskq
ok jsing@
blambert [Sat, 12 Jul 2014 07:20:00 +0000 (07:20 +0000)]
move macppc abtn(4) driver from workq to taskq
thanks to Fred Crowson (fred () crowsons ! net) who was able
to make sure his cd would still eject when the button was pushed,
and stsp@ who lent me his macppc laptop
mpi [Sat, 12 Jul 2014 07:18:16 +0000 (07:18 +0000)]
Remove incorrect comment about how autoconf(9) works and document
that usbd_detach() should only be called by the thread doing USB
bus exploration to prevent attach/detach races.
mpi [Sat, 12 Jul 2014 07:11:17 +0000 (07:11 +0000)]
Only detach the USB device you disconnected, fix a regression reported
by guenther@.
While here set the dying flag of the disconnected device so that most of
the DVACT_ACTIVATE handlers can go.
deraadt [Sat, 12 Jul 2014 03:54:25 +0000 (03:54 +0000)]
sync
deraadt [Sat, 12 Jul 2014 03:52:39 +0000 (03:52 +0000)]
move exports, ftpchroot, hosts.lpd, printcap, and remote to the examples
directory.
ok robert
guenther [Sat, 12 Jul 2014 03:48:04 +0000 (03:48 +0000)]
The statdb code has never been complete here
guenther [Sat, 12 Jul 2014 03:46:42 +0000 (03:46 +0000)]
Kill never enabled #ifdefs
deraadt [Sat, 12 Jul 2014 03:41:04 +0000 (03:41 +0000)]
Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42
code that catches lots of signals, and then re-enters curses... before
exiting.
guenther [Sat, 12 Jul 2014 03:40:16 +0000 (03:40 +0000)]
config-def.h is now unnecessary; merge config-data.h into defs.h
guenther [Sat, 12 Jul 2014 03:32:00 +0000 (03:32 +0000)]
Kill os-openbsd.h: we have <paths.h>, _PATH_RSH, and utimes()
deraadt [Sat, 12 Jul 2014 03:27:23 +0000 (03:27 +0000)]
-DOPENSSL_NO_KRB5 is no longer needed
ok guenther
lteo [Sat, 12 Jul 2014 03:27:00 +0000 (03:27 +0000)]
Implement checksum offload for divert(4): simply set the checksum flag
and let the stack take care of the checksums for reinjected outbound
packets.
Reinjected inbound packets will continue to have their checksums
calculated manually but we can now take advantage of in_proto_cksum_out
and in6_proto_cksum_out to streamline the way their checksums are done.
help from florian@ and henning@, feedback from naddy@
ok florian@ henning@
guenther [Sat, 12 Jul 2014 03:25:03 +0000 (03:25 +0000)]
SETARGS and NEED_HASMNTOPT paths are dead; rshrcmd() and libz stuff are
no longer (were never?) used
guenther [Sat, 12 Jul 2014 03:19:43 +0000 (03:19 +0000)]
Deleted unused local prototypes for systems stuff
guenther [Sat, 12 Jul 2014 03:13:12 +0000 (03:13 +0000)]
No really, assume POSIX: errno is declared for us and sys/stat.h has
S_IX{USR,GRP,OTH}
guenther [Sat, 12 Jul 2014 03:10:03 +0000 (03:10 +0000)]
Rename 'link' parameter to eliminate shadow warnings
guenther [Sat, 12 Jul 2014 03:09:29 +0000 (03:09 +0000)]
Delete unused global
guenther [Sat, 12 Jul 2014 03:07:22 +0000 (03:07 +0000)]
Eliminate some annoying variable shadowing
guenther [Sat, 12 Jul 2014 03:02:27 +0000 (03:02 +0000)]
Yes, we have setproctitle(). Delete that and several unused HAVE_* #defines
guenther [Sat, 12 Jul 2014 02:58:18 +0000 (02:58 +0000)]
Unused variable from oldrdist cleanup
deraadt [Sat, 12 Jul 2014 02:56:01 +0000 (02:56 +0000)]
The hosts.lpd file must exist, or no permission is granted. Change the
the log messages to clarify the reason for the failure to clarify the
condition.
ok guenther
guenther [Sat, 12 Jul 2014 02:51:52 +0000 (02:51 +0000)]
Welcome to 1989: assume the compiler support const
guenther [Sat, 12 Jul 2014 02:48:33 +0000 (02:48 +0000)]
Per C99, wchar.h has to forward declare struct tm
guenther [Sat, 12 Jul 2014 02:47:51 +0000 (02:47 +0000)]
If a constant string needs a name, use a static const array instead
of a pointer or non-const array, as that minimizes the symbols,
maximizes the placement into read-only memory, and avoids warnings
from gcc -Wformat=2 when they're used as format strings.
deraadt [Sat, 12 Jul 2014 02:47:45 +0000 (02:47 +0000)]
odds are that some ABI change occured today, no matter how careful everyone
is
deraadt [Sat, 12 Jul 2014 02:44:54 +0000 (02:44 +0000)]
enough churn, a crank is advised by guenther..
mlarkin [Sat, 12 Jul 2014 02:44:49 +0000 (02:44 +0000)]
Preread the thermal zone trip points before reading the temperature value.
This is needed on some (specifically HP) machines to avoid _TMP reporting
a bogus temperature value (temperatures > 4,000 degC), which causes acpitz
to automatically shut down the machine because it thinks it's floating in
lava.
Also ensure that we can accept a temperature reading of 0 degC - we were
previously interpreting 0 degC as "bad temperature data" and not attaching
the thermal zone device. Some machines have ephemeral temperature sensors
that come and go (eg in docks) and we want to make sure we attach those
even if they report back 0 degC on initialization. Fixes some machines
with "failed to read _TMP" errors.
ok deraadt, tested and verified by a few folks on tech@ who were seeing
the thermal zone shutdown isue.
deraadt [Sat, 12 Jul 2014 02:38:24 +0000 (02:38 +0000)]
sync
deraadt [Sat, 12 Jul 2014 02:28:56 +0000 (02:28 +0000)]
document sendsyslog(2); ok guenther tedu matthew
schwarze [Sat, 12 Jul 2014 01:52:57 +0000 (01:52 +0000)]
fix the two links on the start page
schwarze [Sat, 12 Jul 2014 01:31:11 +0000 (01:31 +0000)]
indent as suggested by deraadt, no functional change
ok sthen@ deraadt@
jsing [Sat, 12 Jul 2014 01:20:24 +0000 (01:20 +0000)]
Initial version of libressl - a library that provides a clean, simple,
consistent and secure-by-default API for SSL clients (and soon servers).
This is a long way from complete and the interface will likely change
substantially - committing now so that further work can happen in the tree.
Initiated by tedu@ and inspired by discussions with tedu@, beck@ and
other developers.
reyk [Sat, 12 Jul 2014 00:34:03 +0000 (00:34 +0000)]
Test filtering by method
ok bluhm@ benno@
deraadt [Sat, 12 Jul 2014 00:27:42 +0000 (00:27 +0000)]
sync
jsg [Fri, 11 Jul 2014 23:23:28 +0000 (23:23 +0000)]
use CC when running configure
matches the behaviour of the other Makefile.bsd-wrapper files
ok miod@
bluhm [Fri, 11 Jul 2014 23:20:57 +0000 (23:20 +0000)]
Put a license file into the test directories with multiple argument
files. We do not want to put a license header into each subtest.
suggested by reyk@
benno [Fri, 11 Jul 2014 23:11:54 +0000 (23:11 +0000)]
optimize a FALLTHROUGH
implicit ok reyk
miod [Fri, 11 Jul 2014 22:57:25 +0000 (22:57 +0000)]
As reported by David Ramos, most consumer of ssl_get_message() perform late
bounds check, after reading the 2-, 3- or 4-byte size of the next chunk to
process. But the size fields themselves are not checked for being entirely
contained in the buffer.
Since reading past your bounds is bad practice, and may not possible if you
are using a secure memory allocator, we need to add the necessary bounds check,
at the expense of some readability.
As a bonus, a wrong size GOST session key will now trigger an error instead of
a printf to stderr and it being handled as if it had the correct size.
Creating this diff made my eyes bleed (in the real sense); reviewing it
made guenther@'s and beck@'s eyes bleed too (in the literal sense).
ok guenther@ beck@
bluhm [Fri, 11 Jul 2014 22:28:51 +0000 (22:28 +0000)]
Add OpenBSD RCS id.
reyk [Fri, 11 Jul 2014 22:28:44 +0000 (22:28 +0000)]
Limit HTTP header length to about 8K (based on the default of 4-8K in
common web servers). Add a related regress test.
OK benno@
uebayasi [Fri, 11 Jul 2014 22:28:05 +0000 (22:28 +0000)]
boot(9): Undo curproc-overriding hacks
Some (not all) boot(9) implementations have ancient hacks which overrides if
(curproc == NULL). This was probably made in a hope to forcibly proceed
various clean-shutdown related code, including VFS shutdown. Let's clarify
that clean-shutdown needs process context; it is impossible to cleanly shutdown
VFS from within e.g. a panic in SPL_HIGH.
OK kettenis@
miod [Fri, 11 Jul 2014 22:23:20 +0000 (22:23 +0000)]
Fix on big-endian arches after the inode change.
bluhm [Fri, 11 Jul 2014 22:18:03 +0000 (22:18 +0000)]
Add a test framework for the ospfd routing daemon. For each test
one fresh daemon is started with an individual config. It is talking
OSPF via a tun interface. At the process side of the tun device a
client is running. This test programm is parsing the OSPF packets
and generates new ones. It simulates other OSPF daemons.
For now only hello packets are tested. Each test has a task list
which drives the ospfd through its interface state machine. The
plan is to extend the framework for the other OSPF packet types and
state machines. Eventualy the generated kernel routing messages
could also be checked.
I have developed this test suite together with Florian Riehm.
tedu [Fri, 11 Jul 2014 22:16:11 +0000 (22:16 +0000)]
make http decode linear time. also remove a redundant null check.
ok schwarze
tedu [Fri, 11 Jul 2014 22:14:39 +0000 (22:14 +0000)]
http headers must end lines with CRLF. ok schwarze
tedu [Fri, 11 Jul 2014 22:10:51 +0000 (22:10 +0000)]
Let us hurry. There is nothing to fear here.
That's what scares me.
tedu [Fri, 11 Jul 2014 22:04:51 +0000 (22:04 +0000)]
regen
tedu [Fri, 11 Jul 2014 22:04:09 +0000 (22:04 +0000)]
no bthub
tedu [Fri, 11 Jul 2014 21:58:32 +0000 (21:58 +0000)]
remove bluetooth bits
tedu [Fri, 11 Jul 2014 21:58:08 +0000 (21:58 +0000)]
remove bthub remnants
tedu [Fri, 11 Jul 2014 21:54:37 +0000 (21:54 +0000)]
"It's not the years, honey; it's the mileage."
bluetooth support doesn't work and isn't going anywhere. the current
design is a dead end, and should not be the basis for any future support.
general consensus says to whack it so as to not mislead the unwary.
deraadt [Fri, 11 Jul 2014 21:54:16 +0000 (21:54 +0000)]
sync
tedu [Fri, 11 Jul 2014 21:50:28 +0000 (21:50 +0000)]
stop installing netbt headers
tedu [Fri, 11 Jul 2014 21:49:13 +0000 (21:49 +0000)]
remove (commented) bluetooth reference
deraadt [Fri, 11 Jul 2014 21:40:31 +0000 (21:40 +0000)]
nsd.conf is not ready to be an example
deraadt [Fri, 11 Jul 2014 21:30:21 +0000 (21:30 +0000)]
oops, nsd.conf cannot be an example... yet
beck [Fri, 11 Jul 2014 21:21:59 +0000 (21:21 +0000)]
Provide LIBRESSL_VERSION_NUMBER for people who use such things to
detect versions distinct from OPENSSL_BLAH_WOOF..
ok jsing@ tedu@ deraadt@