Commit Graph

247026 Commits

Author SHA1 Message Date
christos
992b578414 remove obsolete comment, flip polarity. 2016-12-19 04:54:49 +00:00
ozaki-r
834995ee17 Kill pr->ndpr_refcnt = 0
The reference counter represents the numuber of references from IPv6
addresses to a prefix entry. If all IPv6 addresses assigned to an
interface are purged, all references to a prefix for the interface are
also released. For now nd6_purge is always called after purging all IPv6
addresses, so we can get rid of clearing pr->ndpr_refcnt from nd6_purge
and instead we can assert it's 0 there.

Note that nd6_ifdetach is only called via dom_ifdetach when processing
if_detach where dom_ifdetach is called after pr_purgeif that eventually
calls in6_ifdetach. So in the call path nd6_purge in nd6_ifdetach does
nothing. That said, we should explicitly make it sure to purge all
IPv6 addresses before nd6_purge for future changes (or the case I missed
something). So if_purgeaddrs is added to nd6_ifdetach.
2016-12-19 04:52:17 +00:00
christos
66ae322aee fix reversed logic 2016-12-19 04:44:35 +00:00
christos
2cfd74dfe4 add -t to preserve timestamps. 2016-12-19 04:37:13 +00:00
ozaki-r
1ce4a727f8 Get rid of extra nd6_purge from in6_ifdetach
There were two nd6_purge in in6_ifdetach for some reason, but at least now
We don't need extra nd6_purge. Remove it and instead add assertions that
check if surely purged.
2016-12-19 03:32:54 +00:00
kamil
16960c1506 TODO.ptrace: Update notes about MD documentation
Currently all the MD interfaces are documented, remove this line from TODO.
Add new note:
    once the API for hardware watchpoints will stabilize, document it

Sponsored by <The NetBSD Foundation>
2016-12-19 03:19:37 +00:00
christos
ac78ac450b Always pass the modification time of the file to the client and let it decide
if it is going to use it to set the time. This makes update work like checkout
with respect to time setting. The time of the updated file is set to the
repository modification time of the file as opposed to the the time that the
file was checked out.
2016-12-19 03:15:31 +00:00
ozaki-r
eb8acbc1b3 Add a test case for exceeding the number of maximum prefixes
The test case pinpoints purge_detached.
2016-12-19 03:07:05 +00:00
ozaki-r
065169a5d4 Add tests for multiple routers with a single prefix 2016-12-19 02:27:02 +00:00
christos
f015338360 print only the latest entry for debugging. 2016-12-19 01:48:00 +00:00
ozaki-r
5c83990e6b Fix the description of a test 2016-12-19 01:37:30 +00:00
christos
05cc892852 arrange for .in files to be rebuilt. 2016-12-19 01:26:31 +00:00
christos
b91b113b53 flesh out _Unwind_Exception, rust needs it. 2016-12-19 01:24:40 +00:00
christos
5a5501a835 add a trailing / to force symlink resolution. 2016-12-18 19:39:05 +00:00
christos
163c34b376 Bail out on error computing the timestamp 2016-12-18 19:00:20 +00:00
riastradh
513e90a6d7 Need <stdint.h> for uintmax_t.
From debidi in #netbsd on Freenode.
2016-12-18 18:32:24 +00:00
christos
d9249b0ab0 mark old firmware obsolete. 2016-12-18 17:58:08 +00:00
christos
53f68651ba remove old microcode 2016-12-18 17:57:38 +00:00
christos
cb01aa8e82 clarify res_nclose and res_ndestroy. 2016-12-18 17:34:36 +00:00
christos
35705f18a8 Change CLOCK_THREAD_CPUTIME_ID so that it is not negative; requested by joerg
this breaks ABI compatibility, but not much should be using this yet, since
it was recently added.
2016-12-18 17:18:01 +00:00
christos
c8eabc74fc change $Mdocdate$ to a fixed date for reproducible builds. 2016-12-18 16:58:16 +00:00
christos
1b16c13ae5 Don't emit $Mdocdate$ in the next regeneration. 2016-12-18 16:56:32 +00:00
christos
aaaf8fa320 Fix repro build. 2016-12-18 16:34:19 +00:00
skrll
fe0abb10ef KNF
No functional change.
2016-12-18 15:32:36 +00:00
skrll
c48a242b69 Whitespace 2016-12-18 15:27:34 +00:00
skrll
ddd2ff1f0d mlelstv accidentaly dropped a mutex_enter 2016-12-18 15:18:40 +00:00
mlelstv
ca3a398833 The mutex passed to cv_wait must also be held when calling cv_broadcast.
Also optimizing mutex handling in completion thread.

From nick@.
2016-12-18 13:59:14 +00:00
mlelstv
f3cb6d3467 check for serial console flag also when re-using console from
primary bootstrap.
2016-12-18 12:02:37 +00:00
nonaka
19d8abb1f0 iwm(4): Add new 3160 firmware... 2016-12-18 06:56:43 +00:00
dholland
b79a953f51 typo in comment 2016-12-18 05:43:20 +00:00
dholland
2ec79be075 Whitespace. 2016-12-18 04:35:26 +00:00
rin
36532a0d5a PR port-powerpc/51366 kernel for powerpc/ibm4xx miscompiled by gcc >= 4.8.5
backport fix from upstream:

URL: https://gcc.gnu.org/viewcvs?rev=238789&root=gcc&view=rev
Log:
rs6000: Fix logic for when to emit .machine (PR71216)

The current logic determining whether to use .machine in the generated
asm code puts it there if the compiler is not configured with a default
target cpu, _or_ no -mcpu= was given on the command line.  It should
be "and" instead.

	PR target/71216
	* config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
	when to emit a ".machine" pseudo-op.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.c
2016-12-18 03:00:58 +00:00
christos
aeeab7b8af Descend into compile 2016-12-18 02:26:12 +00:00
christos
bb5b15d092 Add -P for reproducible builds based on the latest cvs timestamp. 2016-12-18 02:20:30 +00:00
nonaka
29c66ef650 iwm(4): Sync with OpenBSD.
7265 works fine.
7260 and 3160 maybe work.
7265D, 3165 and 8260 not work yet.

if_iwm.c: r1.147.
if_iwmreg.h: r1.19 without r1.16.
if_iwmvar.h: r1.24.

firmware is taken from https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
- iwlwifi-7260-ucode-16.242414.0.tgz
- iwlwifi-3160-ucode-16.242414.0.tgz
- iwlwifi-7265-ucode-16.242414.0.tgz
- iwlwifi-8000-ucode-16.242414.0.tgz
2016-12-18 02:18:28 +00:00
dholland
885f1ddec5 Merge the PR 36997 fixes into ping6. It already didn't accept too
small or wildly too large intervals, but it did allow intervals that
failed at poll(). Since that's signed integer overflow and thus UB,
better not to.
2016-12-18 01:30:54 +00:00
dholland
9275630b0c PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Reject packet intervals < 1 ns as they lead to infinite loops adding
zero timespecs.

Fix the behind-schedule behavior so it doesn't spend all its time in
that loop adding very small timespecs. Try ping -c 500 -i 0.000000001
to see this in action with the old ping.
2016-12-18 01:19:34 +00:00
dholland
e0d8c787c6 PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.

Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.

Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.
2016-12-18 00:21:33 +00:00
christos
9383f03afa XXX: Can't do PIE yet because of gp relocation in start.S 2016-12-17 18:41:13 +00:00
abhinav
e4137a4e3a Don't ignore symlinks.
There can be symlinks which are pointing to man pages not installed in
one of the _default locations mentioned in man.conf or MANPATH. For example
there are man pages in /usr/pkg/man which are symlinked to pages in
/usr/pkg/lib/perl5/man. If we ignore symlinks, we would not be able to
index such pages installed outside the default set of directories.

(Also, the symlink test was incorecct, so we never noticed this issue)

Ok christos@, wiz@
2016-12-17 17:04:38 +00:00
maya
1f22587e5d audio: don't use an uninitialized variable.
PR kern/51717: audioattach erroneously fails due to uninitialized variable
from flxd.

while here, switch to use aprint_error_dev.
2016-12-17 17:04:04 +00:00
christos
9177921045 factor out duplicated code. 2016-12-17 16:08:29 +00:00
skrll
25208de224 Call {mutex,cv}_destroy on all mutexes/condvars 2016-12-17 15:27:26 +00:00
riastradh
03fc4aab4b Simplify bcm2835, tegra, and am335x hardware RNG drivers.
Tested by nick@.
2016-12-17 15:24:35 +00:00
maxv
3a8b7cad7a Remove a wrong comment - the FPU save size should never be percpu -, and
be more explicit about Xen.
2016-12-17 15:23:08 +00:00
christos
22cb066ca7 fix broken, audio_{g,s}et_port logic. 2016-12-17 15:18:28 +00:00
maxv
6a465fb501 Add MODULAR in Xen kernels. 2016-12-17 14:49:26 +00:00
flxd
aea86e7b75 Fix typo "one the" and architecture where appropriate. 2016-12-17 14:36:29 +00:00
maxv
4e17abe277 Put a limit in the percpu segment, so we can detect overflows on %fs. 2016-12-17 14:27:53 +00:00
maxv
2cf1fa0bd5 Fix the name of the labels. I think I got confused by jne, so while here
replace it by jnz, which is more explicit.
2016-12-17 13:49:05 +00:00