brad [Tue, 31 Dec 2013 20:37:38 +0000 (20:37 +0000)]
another MCP61 id
schwarze [Tue, 31 Dec 2013 19:39:09 +0000 (19:39 +0000)]
Yet another regression introduced by Kristaps when he switched from
Berkeley DB to SQLite3: In the .In parser, the logic got inverted.
The resulting NULL pointer access was found by clang;
scan log provided by Ulrich Spoerlein <uqs at FreeBSD>.
The best fix is to simply remove the whole, pointless custom
handler function for .In and let the framework do its work.
Now searching for included header files actually works.
While here, remove the similarly pointless custom .St handler,
fix the return value of the .Fd handler and disentangle the
spaghetti in the .Nm handler.
jmc [Tue, 31 Dec 2013 18:18:36 +0000 (18:18 +0000)]
zap an erroneous space in "input .sig" (should be input.sig, with .sig not
marked up;
schwarze [Tue, 31 Dec 2013 18:07:06 +0000 (18:07 +0000)]
remove assignments that will be overwritten right afterwards,
and remove pointless local variables;
found in a clang output from Ulrich Spoerlein <uqs at FreeBSD>
jmc [Tue, 31 Dec 2013 17:33:17 +0000 (17:33 +0000)]
various tweaks; ok tedu
todd [Tue, 31 Dec 2013 15:36:04 +0000 (15:36 +0000)]
sync
schwarze [Tue, 31 Dec 2013 15:15:47 +0000 (15:15 +0000)]
Oops, add missing end of block.
schwarze [Tue, 31 Dec 2013 15:13:25 +0000 (15:13 +0000)]
Add missing description of .UR/.UE.
While here, also add .EX/.EE and .PD to the MACRO SYNTAX table.
ratchov [Tue, 31 Dec 2013 12:27:49 +0000 (12:27 +0000)]
Drop blocks and instert silence immediately in the socket rx/tx code
path rather than waiting for the next device cycle. This fixes deadocks
when the slot uses the SIO_SYNC mode.
ratchov [Tue, 31 Dec 2013 12:24:55 +0000 (12:24 +0000)]
round client block size to nearest possble
espie [Tue, 31 Dec 2013 11:24:55 +0000 (11:24 +0000)]
... and rename this too
espie [Tue, 31 Dec 2013 11:21:10 +0000 (11:21 +0000)]
signify support
espie [Tue, 31 Dec 2013 11:03:53 +0000 (11:03 +0000)]
nit
matthieu [Tue, 31 Dec 2013 07:16:50 +0000 (07:16 +0000)]
Fix after struct wscons_event size change.
ok deraadt@
mcbride [Tue, 31 Dec 2013 07:15:57 +0000 (07:15 +0000)]
s/hphdr/phdr/ to fix compile with DEBUG
ok miod
guenther [Tue, 31 Dec 2013 04:07:34 +0000 (04:07 +0000)]
Don't consider ld.so to be successfully built unless a test program
using it works, because seeing "make build" fail right after it
installs a broken ld.so is *#!&%(@*)# annoying.
Presumably needs to be fixed for cross-builds.
ok matthew@ deraadt@ miod@
tedu [Tue, 31 Dec 2013 04:03:23 +0000 (04:03 +0000)]
document file format
tedu [Tue, 31 Dec 2013 03:54:05 +0000 (03:54 +0000)]
another last minute bug i introduced. found by jturner
schwarze [Tue, 31 Dec 2013 03:41:09 +0000 (03:41 +0000)]
Experimental feature to let apropos(1) show different keys than .Nd.
This really takes us beyond what grep -R /usr/*/man/ can do
because now you can search for pages by *one* criterion and then
display the contents of *another* macro from those pages, like in
$ apropos -O Ox Fa~wchar
to get an impression how long wide character handling is available.
tedu [Tue, 31 Dec 2013 03:24:44 +0000 (03:24 +0000)]
bcopy -> memcpy. reviewed with one fix from matthew
tedu [Tue, 31 Dec 2013 03:23:41 +0000 (03:23 +0000)]
update usage
tedu [Tue, 31 Dec 2013 03:08:48 +0000 (03:08 +0000)]
wha! commit a working version
tedu [Tue, 31 Dec 2013 03:03:32 +0000 (03:03 +0000)]
add signify, a tool to sign and verify signatures.
man page and error message help from espie
other feedback from deraadt djm mikeb
schwarze [Tue, 31 Dec 2013 02:42:20 +0000 (02:42 +0000)]
Split buildnames() out of mansearch(); the latter function is getting
too long and unwieldy, but will grow more code soon. No functional change.
tedu [Tue, 31 Dec 2013 02:32:56 +0000 (02:32 +0000)]
don't try writing past the end unless we have to
ok gilles millert
schwarze [Tue, 31 Dec 2013 00:40:19 +0000 (00:40 +0000)]
Replace the Berkeley-DB based mandocdb(8) by an SQLite3-based version,
aiming for more flexible development and optimization options.
Kristaps started this during the summer 2012, i did some very heavy
bugfixing during t2k13 and finally, during the last few days,
got it to a state where it is ripe for in-tree development.
Beware, neither the user interfaces nor the database formats
are expected to be stable just yet.
Will not be installed or activated until further discussion.
No functional change to mandoc(1).
"As long as it remains off until we decide the cost, fine." deraadt@
djm [Mon, 30 Dec 2013 23:52:27 +0000 (23:52 +0000)]
refuse RSA keys from old proprietary clients/servers that use the
obsolete RSA+MD5 signature scheme. it will still be possible to connect
with these clients/servers but only DSA keys will be accepted, and we'll
deprecate them entirely in a future release. ok markus@
brad [Mon, 30 Dec 2013 22:35:29 +0000 (22:35 +0000)]
Add support for newer integrated Realtek PHY.
Tested with 8168G controllers.
brad [Mon, 30 Dec 2013 22:25:25 +0000 (22:25 +0000)]
Have rgephy(4) always use RL_GMEDIASTAT to retrieve the link/media status
when attached to re(4), as was done before rev 1.25 which was intended to
fix rgephy(4) with external PHY with MACs other than re(4). This is to
fix operation with some integrated PHY on re(4) where the PHY Specific
Status register does not work properly and the link cannot be established.
From FreeBSD and matches what the Linux driver does.
Tested on a number of newer re(4) with PHYs rev 2, 4 and 5 and
newer integrated PHY with the 8168G controllers.
deraadt [Mon, 30 Dec 2013 22:01:23 +0000 (22:01 +0000)]
Do not leak symtab fd (if at fd limit might even prevent correct operation)
from Loganaden Velvindron
deraadt [Mon, 30 Dec 2013 21:58:07 +0000 (21:58 +0000)]
When a function does not obviously terminate itself, it is good practice
to clean up a bit.
deraadt [Mon, 30 Dec 2013 21:52:21 +0000 (21:52 +0000)]
memory leak, Coverity CID 1748, Loganaden Velvindron
jmc [Mon, 30 Dec 2013 19:22:08 +0000 (19:22 +0000)]
last entry in SEE ALSO should not end with a comma;
rpe [Mon, 30 Dec 2013 19:04:56 +0000 (19:04 +0000)]
- the hint to symlink to upgrade.conf belongs to the install.conf example
- zap reference to pxeboot(8), diskless(8) has all the info
ok jmc@ halex@
brad [Mon, 30 Dec 2013 18:47:45 +0000 (18:47 +0000)]
Expand the MSI support to cover most of the remaining bge(4) chipsets with the
exception being the BCM5714 family for now.
Tested on a variety of newer chipsets.
ok sthen@
schwarze [Mon, 30 Dec 2013 18:42:55 +0000 (18:42 +0000)]
Oops, missed one:
Remove duplicate const specifier from a call to mandoc_escape().
Found by Thomas Klausner <wiz at NetBSD dot org> using clang.
No functional change.
schwarze [Mon, 30 Dec 2013 18:27:15 +0000 (18:27 +0000)]
Remove duplicate const specifiers from the declaration of mandoc_escape().
Found by Thomas Klausner <wiz at NetBSD dot org> using clang.
No functional change.
espie [Mon, 30 Dec 2013 12:43:17 +0000 (12:43 +0000)]
Document SIGNING_PARAMETERS
jsg [Mon, 30 Dec 2013 10:53:30 +0000 (10:53 +0000)]
Enable snooping on Lynx Point-LP HD Audio.
Fixes audio problems on an Acer Aspire E1 572G
reported by Mark Rowland.
kettenis [Mon, 30 Dec 2013 10:30:00 +0000 (10:30 +0000)]
Recognize PT_OPENBSD_RANDOMIZE in linker scripts.
ok miod@, matthew@
schwarze [Mon, 30 Dec 2013 09:47:43 +0000 (09:47 +0000)]
Support .St -p1003.1-2013, "IEEE Std 1003.1-2008/Cor 1-2013".
Note that the POSIX-2008 standard remains in force, so please refrain
from wholesale 2008 -> 2013 replacements. Make sure to only use the
new -p1003.1-2013 argument for cases where "IEEE Std 1003.1(TM)-2008/
Cor 1-2013, IEEE Standard for Information Technology--Portable
Operating System Interface (POSIX(R)), Technical Corrigendum 1"
actually changes something in the standard with respect to the
specific function documented in the manual you touch. Otherwise,
please continue using .St -p1003.1-2008.
Triggered by a similar, but slightly incorrect patch from jmc@;
ok guenther@.
espie [Mon, 30 Dec 2013 09:14:49 +0000 (09:14 +0000)]
@vendor annotation
espie [Mon, 30 Dec 2013 09:02:37 +0000 (09:02 +0000)]
use replacing method (and not var)
espie [Mon, 30 Dec 2013 09:01:30 +0000 (09:01 +0000)]
explicitly fix the PATH to something sensible
move "replacing" to a method, so that it can be more specific later.
aoyama [Mon, 30 Dec 2013 07:33:40 +0000 (07:33 +0000)]
Correct initialization of Bt458, used in LUNA's 8bpp frame buffer.
According to the manual, the address register does not automatically
increment when we access to the control registers. Also we disable
overlay planes, because we do not use them.
This diff should be one of preliminaries for upcoming colored wscons on
luna88k.
ok miod@
miod [Mon, 30 Dec 2013 05:27:01 +0000 (05:27 +0000)]
Fix IOC4DEV_xxx numbers, so that devices besides the first two serial ports
actually handle their own interrupts. How could this get unnoticed so far?
krw [Mon, 30 Dec 2013 03:36:17 +0000 (03:36 +0000)]
Replace yet another hand-rolled list with a TAILQ. reject_list this
time.
brad [Mon, 30 Dec 2013 02:10:58 +0000 (02:10 +0000)]
Add Broadcom BCM57764, BCM57767 and BCM57787 PCI ids.
schwarze [Mon, 30 Dec 2013 00:56:40 +0000 (00:56 +0000)]
Test mdoc_macro.c rev. 1.83.
schwarze [Mon, 30 Dec 2013 00:52:18 +0000 (00:52 +0000)]
Simplify: Remove an unused argument from the mandoc_eos() function.
No functional change.
schwarze [Mon, 30 Dec 2013 00:20:18 +0000 (00:20 +0000)]
Do not trigger end-of-sentence spacing by trailing punctuation
at the end of partial implicit macros. Prodded by jmc@.
Actually, this is a revert of rev. 1.39 Sat May 15 09:20:01 2010 UTC,
which in turn is mdocml.bsd.lv rev. 1.64 Fri May 14 14:09:13 2010 UTC
by kristaps@, with this original commit message:
"Block-implicit macros now up-propogate end-of-sentence spacing.
NOTE: GROFF IS NOT SMART ENOUGH TO DO THIS."
Please speak after me: Then why the hell should we?
We already weakened this in rev. 1.55 Fri Jul 16 00:34:33 2010 UTC,
but that weakening was insufficient. Let's take it out completely.
Admittedly, there are two places in base where what Kristaps did
made the output nicer, in calloc(3) and in fish(6). But both are
atypical. There are 18 other places where this revert makes the
output nicer, the typical case being:
"Mail status is shown as ``No Mail.'' if there is no mail."
You do *not* want the EOS spacing after ``No Mail.'' in that sentence.
jmc [Sun, 29 Dec 2013 21:38:29 +0000 (21:38 +0000)]
+.Sh EXIT STATUS
jmc [Sun, 29 Dec 2013 21:19:11 +0000 (21:19 +0000)]
update sha256(1) to better reflect that it documents sha512 now too.
that led me to whack some unneccessary mark up and quoting (and phrasing),
and the changes to the other pages are really just to unify the newer
text layout;
tedu provided feedback and answers (thanks);
miod [Sun, 29 Dec 2013 21:06:37 +0000 (21:06 +0000)]
In tlbdsmiss, do not trash the tlb pointer by mistake. From NetBSD (PR #39257)
brad [Sun, 29 Dec 2013 19:09:21 +0000 (19:09 +0000)]
Remove excessive parentheses.
pmap.c:1061:13: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
ok mpi@
jmc [Sun, 29 Dec 2013 18:46:09 +0000 (18:46 +0000)]
grammar fix previous;
jmc [Sun, 29 Dec 2013 18:44:43 +0000 (18:44 +0000)]
puccini entry already appears in calendar.music;
From: frantisek holop
miod [Sun, 29 Dec 2013 18:31:50 +0000 (18:31 +0000)]
Force clock clamping after one byte received instead of three. There are still
circumstances where the pckbc code gets confused otherwise, on *some*
controllers.
krw [Sun, 29 Dec 2013 14:26:22 +0000 (14:26 +0000)]
Fix fd leaks when fd < 0 or flock() fails. Original diff from
NetBSD via Loganaden Velvindron out of cppcheck.
espie [Sun, 29 Dec 2013 13:40:54 +0000 (13:40 +0000)]
fix sign-while-creating mode
djm [Sun, 29 Dec 2013 05:57:02 +0000 (05:57 +0000)]
when showing other hostkeys, don't forget
Ed25519 keys
martynas [Sun, 29 Dec 2013 05:46:43 +0000 (05:46 +0000)]
- Verify that the FPU exception flags weren't clobbered as required by C99.
- Additionally, test _setjmp and sigsetjmp as implementations are different.
djm [Sun, 29 Dec 2013 05:42:16 +0000 (05:42 +0000)]
don't forget to load
Ed25519 certs too
djm [Sun, 29 Dec 2013 04:35:50 +0000 (04:35 +0000)]
don't refuse to load
Ed25519 certificates
djm [Sun, 29 Dec 2013 04:29:25 +0000 (04:29 +0000)]
allow deletion of
ed25519 keys from the agent
djm [Sun, 29 Dec 2013 04:20:04 +0000 (04:20 +0000)]
to make sure we don't omit any key types as valid CA keys again,
factor the valid key type check into a key_type_is_valid_ca()
function
guenther [Sun, 29 Dec 2013 03:16:42 +0000 (03:16 +0000)]
Add MLINK for db_vprintf(9)
guenther [Sun, 29 Dec 2013 03:15:03 +0000 (03:15 +0000)]
Add db_vprintf() and indicate that db_v?printf() are in <ddb/db_output.h>
djm [Sun, 29 Dec 2013 02:49:52 +0000 (02:49 +0000)]
correct comment for key_drop_cert()
djm [Sun, 29 Dec 2013 02:37:04 +0000 (02:37 +0000)]
correct comment for key_to_certified()
djm [Sun, 29 Dec 2013 02:28:10 +0000 (02:28 +0000)]
allow
ed25519 keys to appear as certificate authorities
martynas [Sun, 29 Dec 2013 01:39:44 +0000 (01:39 +0000)]
Add a regression test to verify that the FPU control word state is
preserved by setjmp. Currently under REGRESS_FULL as this fails
on certain archs.
miod [Sun, 29 Dec 2013 00:55:11 +0000 (00:55 +0000)]
regen
miod [Sun, 29 Dec 2013 00:55:06 +0000 (00:55 +0000)]
Intel NM70
miod [Sat, 28 Dec 2013 23:37:00 +0000 (23:37 +0000)]
The mips partition table in the volume header uses 512-byte logical units,
not sectors; don't multiply by the sector size to get the proper disk offsets.
This will let install.iso be built with the OpenBSD label at the expected
location, instead of within the ffs filesystem; we had been lucky enough the
area being overwritten was not in use so far.
krw [Sat, 28 Dec 2013 21:48:04 +0000 (21:48 +0000)]
Remove unused variable 'token'. Spotted by deraadt@
kettenis [Sat, 28 Dec 2013 21:00:21 +0000 (21:00 +0000)]
Try to load entropy data from disk:/etc/random.seed. Then, insert this into
the ELF openbsd.randomdata of the kernel, so that it has entropy right from
the start.
deraadt [Sat, 28 Dec 2013 20:52:48 +0000 (20:52 +0000)]
oops, the fallback stack protector code must handle 64-bit guards
spotted by kettenis
brad [Sat, 28 Dec 2013 20:32:16 +0000 (20:32 +0000)]
Always call PHY_RESET upon attaching eephy(4) so as to do PHY initialization,
to match behavior before rev 1.52.
ok deraadt@
kettenis [Sat, 28 Dec 2013 19:27:35 +0000 (19:27 +0000)]
Make sure the PT_OPENBSD_RANDOMIZE program header actually covers the data
we want to initialize with randomness. It covered exactly nothing before!
deraadt [Sat, 28 Dec 2013 19:04:35 +0000 (19:04 +0000)]
sync
deraadt [Sat, 28 Dec 2013 18:42:42 +0000 (18:42 +0000)]
Do not need __guard[] anymore since we are now relying on __guard_local
for a while already
ok miod kettenis
deraadt [Sat, 28 Dec 2013 18:41:48 +0000 (18:41 +0000)]
Do not need __guard anymore
Discussion with miod
ok kettenis
kettenis [Sat, 28 Dec 2013 18:38:42 +0000 (18:38 +0000)]
Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass the
right __dso_handle and have dlopen'ed shared objects run their atexit handlers
when they get unloaded. This is what Linux does, and several ports depend on
this behaviour (and will crash upon exit without this chang).
Based on an earlier diff from matthew@
Tested by ajacoutot@
ok deraadt@
kettenis [Sat, 28 Dec 2013 18:20:51 +0000 (18:20 +0000)]
Back out the previous commit; rodata gets merged with text by the linker.
Having a seperate rodata segment won't work anyway without significant pmap
changes.
deraadt [Sat, 28 Dec 2013 17:57:51 +0000 (17:57 +0000)]
create rodata PHDR; ok kettenis
miod [Sat, 28 Dec 2013 17:57:14 +0000 (17:57 +0000)]
Require an explicit PT_OPENBSD_RANDOMIZE program header in the kernel linker
script (note that the amd64 linker script is currently not used).
Discussed with deraadt@
deraadt [Sat, 28 Dec 2013 17:08:48 +0000 (17:08 +0000)]
i386 changes to PIE. See faq/current.html or use the snapshots to cross
this.
jsing [Sat, 28 Dec 2013 15:16:28 +0000 (15:16 +0000)]
Further clean up and unification of the amd64 and i386 boot(8) makefiles.
jsing [Sat, 28 Dec 2013 15:05:34 +0000 (15:05 +0000)]
Actually load the second-stage boot loader so that softraid can store it in
the softraid boot area.
jsing [Sat, 28 Dec 2013 15:03:47 +0000 (15:03 +0000)]
sparc64 uses /ofwboot as the second stage, not /boot.
jsing [Sat, 28 Dec 2013 14:45:57 +0000 (14:45 +0000)]
Add installboot support for sparc64.
jsing [Sat, 28 Dec 2013 13:58:15 +0000 (13:58 +0000)]
Add installboot support for the remaining `disklabel -B' architectures
(hp300, hppa64 and landisk). hp300 and landisk are untested, however they
should "just work" - hopefully someone with access to this hardware can
confirm.
jsing [Sat, 28 Dec 2013 12:03:57 +0000 (12:03 +0000)]
Add installboot support for vax.
jsing [Sat, 28 Dec 2013 12:01:33 +0000 (12:01 +0000)]
Round the size of the bootstrap up to a multiple of the disk sector size.
Some bootstraps are already built this way, however others are not.
jsing [Sat, 28 Dec 2013 11:26:57 +0000 (11:26 +0000)]
Various code clean ups - add a missing header, add a missing prototype,
add some casts, tweak some types and variable names.
jsing [Sat, 28 Dec 2013 11:00:33 +0000 (11:00 +0000)]
Tweak makefiles so that we pull in source files based on defines.
deraadt [Sat, 28 Dec 2013 03:39:16 +0000 (03:39 +0000)]
Attempt to approximate what should happen on a suspend/resume cycle.
If the driver was doing some IO, we remove the timeouts, and force the
fdc state machine into IOTIMEDOUT state with the final timeout count
before a clean retry. In theory upon resume it should freak out quietly,
and try the operation again.
Noone has stepped forward to test this yet.
deraadt [Sat, 28 Dec 2013 03:36:25 +0000 (03:36 +0000)]
Sync activate code sequnces to if_msk.c as much as possible, in case
one of these is ever found in a suspend/hibernate system.
deraadt [Sat, 28 Dec 2013 03:35:42 +0000 (03:35 +0000)]
The few network drivers that called their children's (ie. mii PHY
drivers) activate functions at DVACT_RESUME time do not need to do
so, since their PHYs are repaired by IFF_UP.
NOTE: if_msk is the one that previously relied on mii/eephy.c doing
a crazy dance.