Commit Graph

246893 Commits

Author SHA1 Message Date
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
maxv
663ef5ea2b Use pmap_bootstrap_valloc and simplify. By the way, I think the cache
stuff is wrong, since the pte is not necessarily aligned to 64 bytes, so
nothing guarantees there is no false sharing.
2016-12-17 13:43:33 +00:00
maya
1b6aaa82cd Fix regression introduced by myself with the addition of da_fb_linebytes
tegra_fb was not adjusted so da_fb_linebytes was used uninitialized

add tfa_fb_linebytes and match radeonfb/nouveaufb code in how we set it
switch to using an initializer to hopefully avoid future errors

this change doesn't need to be pulled up, as tegra_fb.c is absent
in netbsd-7
2016-12-17 12:11:38 +00:00
wiz
31a419311f Fix typo. 2016-12-17 10:25:49 +00:00
mlelstv
d19ac03c1e Print previously missing fields from a TCP6 PCB. 2016-12-17 09:12:22 +00:00
maya
9faa971c56 Change one more "generic DHCP client" reference to say dhcpcd rather
than dhclient
2016-12-17 07:44:59 +00:00
maya
17af23f753 Reference dhcpcd as the sole DHCP client in general man pages.
We'd rather have new users use dhcpcd. hopefully this eliminates some
unnecessary confusion about there being two clients.
2016-12-17 07:37:24 +00:00
abhinav
adaa892a13 Fix typo 2016-12-17 06:17:16 +00:00
riastradh
10e7aa0dd3 Omit needless nullmmap.
Convert the one user of it to nommap.  No functional change to the
device driver, since uvm interpreted nullmmap just like nommap.

This slightly changes the uvm ABI so that the function pointer nullop
is no longer interpreted as non-mmappable.  I do hereby declare that
I am surfing the kernel version bump from a few hours ago.
2016-12-17 03:46:52 +00:00
christos
272d6823df fix clang build. 2016-12-17 03:43:38 +00:00
uwe
1c4039c864 PR 51724 - landisk fails to reboot.
machine_reset() - instead of trying to cause an invalid data access
that gcc will optimize away, just use "trapa" instruction.

G/c assignment to EXPEVT, it will be set by the actual reset.  That
assignment has been probably cargo-culted from cpu_reset() that
manually jumps to 0xa0000000 (the reset address) instead of triggering
a reset.

TODO: This code should be SuperH generic cpu_reset().
2016-12-17 01:32:22 +00:00
uwe
677cac1588 Declare machine_cpu() __dead.
G/c the endless loop after calling it in cpu_reboot().
2016-12-17 01:10:38 +00:00
riastradh
0b9421566f Welcome to 7.99.51, courtesy replacement ABI for nommap. 2016-12-16 23:37:21 +00:00
riastradh
51beee07d0 Fix return value of nommap. 2016-12-16 23:35:04 +00:00
macallan
b02971f219 use hardware rendering for anti-aliased fonts 2016-12-16 23:34:46 +00:00
macallan
f030fde4e0 flesh out alpha operations properly 2016-12-16 23:31:16 +00:00
christos
106004c5bd fix reversed test, NULL for clarity. 2016-12-16 22:14:15 +00:00
christos
f573ca787d add sys/psref.h 2016-12-16 22:11:04 +00:00
christos
27e30c98be install psref.h now that <net/route.h> needs it. 2016-12-16 22:10:12 +00:00
christos
c439dfcc07 catch attachment fault sooner. 2016-12-16 22:03:10 +00:00
maxv
a3fb0247bf This can actually be enabled in Xen; my rev1.235 fixed the issue. Before
that kern_end was pointing to DUMMY PAGE, which was already kentered
earlier in xen_locore, causing pmap to panic.

This change adds support for kernel modules in Xen.
2016-12-16 20:16:50 +00:00
christos
83d1497cf4 hide functions from userland. 2016-12-16 20:12:11 +00:00
christos
fb7054ae79 Can't hide stuff from userland, because struct route is embedded in other
structures (like inpcb) and things like fstat stop working.
2016-12-16 20:11:52 +00:00
maxv
8a3e058bbd The way the xen dummy page is taken care of makes absolutely no sense at
all, with magic offsets here and there in different layers of the system.
It is just blind luck that everything has always worked as expected so
far.

Due to this wrong design we have a problem now: we allocate one physical
page for lapic, and it happens to overlap with the dummy page, which
causes the system to crash.

Fix this by keeping the dummy va directly in a variable instead of magic
offsets. The asm locore now increments the first pa to hide the dummy page
to machdep and pmap.
2016-12-16 19:52:22 +00:00
abhinav
e5909f155b Fix sentence. 2016-12-16 17:20:52 +00:00
christos
d5a529f19c On failed attach hw_if is NULL, so guard against it in more places. Should
avoid crashes people have been seeing recently.
2016-12-16 16:03:28 +00:00
mlelstv
203fa789e4 Make dk(4) device mpsafe. 2016-12-16 15:06:39 +00:00
mlelstv
37f6f2e866 Add locking for periph_active and flags. The operations aren't atomic. 2016-12-16 15:00:52 +00:00
mlelstv
f572c6cbcd add comment about "missing" dk_start. 2016-12-16 14:58:53 +00:00
maya
947ba5cabb Don't block suspend when uslsa(4) is attached - it works fine. 2016-12-16 14:56:34 +00:00
nonaka
416aac6b10 hdaudio(4): Use pci_intr_alloc(9)/pci_intr_release(9). 2016-12-16 11:34:52 +00:00
ozaki-r
11a1604c2d Add tests for multiple routers 2016-12-16 09:11:18 +00:00
ozaki-r
2e89e8b1dc Unify common routines 2016-12-16 09:10:37 +00:00
ozaki-r
237c29ba3d Avoid using /var/run/rump.rtadvd.pid 2016-12-16 09:10:08 +00:00