254410 Commits

Author SHA1 Message Date
martin
f9a6d7be3b Also mark ppi.html as obsolete 2017-10-31 11:46:45 +00:00
maxv
8f45ca38ab Always use x86_fpu_save, clearer. 2017-10-31 11:37:05 +00:00
martin
4908bc3fd9 PR port-sparc64/52622: mark the parent device as TS_KERN_ONLY,
so userland will not touch it (and change serial params w/o our
controll).
2017-10-31 10:46:47 +00:00
martin
6e7b93fc42 As discussed on tech-kern: define a new tty internal state flag: TS_KERN_ONLY
Implement it in a few tty drivers. If this flag is set, the underlying
hardware is used by another driver and userland has no right to open
it. A few uses will appear soon in sys/dev/sun/sun{kbd,ms}.c.
2017-10-31 10:45:19 +00:00
maxv
5905ff7f42 Add xsh_xcomp_bv and fx_zero, and use uint8_t instead. 2017-10-31 10:39:13 +00:00
maxv
6b9665b5d3 Remove comments that are more misleading than anything else. While here
make sure we zero out the FPU area entirely, and not just its legacy
region.
2017-10-31 10:35:58 +00:00
abhinav
b0184879c2 Casting variable of type int * to size_t *, may cause
alignment issues on some platforms (e.g. Sparc64)
So, Use a temporary variable to avoid the cast.

Thanks to Martin@ for noticing the issue and also suggesting the issue.
Fixes PR bin/52678
2017-10-31 10:14:27 +00:00
jdolecek
e894f8c16f remove ppi(9) manpage, the actual subsystem got never implemented
PR kern/52665 by Kamil Rytarowski
2017-10-31 08:10:11 +00:00
khorben
4228541099 Also attach the RTL8192EU from TP-LINK 2017-10-31 00:57:14 +00:00
khorben
7d62c8416a Re-generate 2017-10-31 00:30:07 +00:00
khorben
04d5c90239 Add the TP-LINK TL-WN823N (version 2) 2017-10-31 00:20:51 +00:00
macallan
5738d83547 add load & store instructions for channel data type
mostly for Xorg
2017-10-30 21:41:39 +00:00
maxv
2e01a9a26d Add END(). 2017-10-30 17:13:39 +00:00
maxv
e37d33aa4a Always use END() markers when declaring functions in assembly, so that ld
can compute the size of the functions. A few remain.

While here, fix a bug in the INTRSTUB macro: we are falling through
resume_, but it is aligned, so it looks like we're executing the inter-
function padding - which probably happens to contain NOPs, but that's
still bad.
2017-10-30 17:06:42 +00:00
ozaki-r
7010c5b04d Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use if_link_state_change 2017-10-30 16:01:19 +00:00
ozaki-r
0de7b04927 Add test cases of NAT-T (transport mode)
A small C program is added to make a special socket (UDP_ENCAP_ESPINUDP)
and keep it to handle UDP-encapsulated ESP packets.
2017-10-30 15:59:23 +00:00
wiz
71dfed8bdc Whitespace fix. Give Bl tag table a width. Fix Xr. 2017-10-30 15:55:53 +00:00
wiz
09540068ad Bump date for previous. Remove superfluous Pp. 2017-10-30 15:53:51 +00:00
wiz
d384cdf944 Remove references to non-existing ifconfig(4). Use Mt. 2017-10-30 15:50:48 +00:00
wiz
a853e07e30 Remove Tn 2017-10-30 15:49:24 +00:00
wiz
5ab4936e8f Sort errors. 2017-10-30 15:48:38 +00:00
wiz
918f9ea9bf Fix Bl argument. 2017-10-30 15:46:38 +00:00
wiz
e347d4a2bc Remove Tn. Do not split on An lines. 2017-10-30 15:44:29 +00:00
wiz
356694b084 Remove empty Fd. Use minus for return value. End list. Sort SEE ALSO. 2017-10-30 15:43:21 +00:00
wiz
7a66d2e690 Remove Tn. 2017-10-30 15:38:52 +00:00
wiz
ee76eb57bf Minor spellchecking changes. 2017-10-30 15:37:41 +00:00
knakahara
a90a862765 If if_attach() failed in the attach function, return. Add comments about if_initialize().
suggested by ozaki-r@n.o.
2017-10-30 11:24:04 +00:00
ozaki-r
2acd285552 Fix showing translated port (ntohs-ed twice wrongly) 2017-10-30 04:53:43 +00:00
pgoyette
8c42a6afbc Remove unneeded casts to (uintptr_t). This is already taken care of in
the xxxHIST_LOG() macros.

No need to pull-up to -8 - the extra cast really won't hurt anything.
2017-10-30 03:25:14 +00:00
ozaki-r
80ccc52108 Fix npfclt reload on rump kernels
It fails because npfctl cannot get an errno when it calls ioctl to the (rump)
kernel; npfctl (libnpf) expects that an errno is returned via proplib,
however, the rump library of npf doesn't so. It happens because of mishandlings
of complicate npf kernel options.

PR kern/52643
2017-10-30 03:02:35 +00:00
sevan
a38c93c330 regen 2017-10-30 01:25:27 +00:00
sevan
f73382f4e2 Add Areca ARC1214 & ARC1880.
From OpenBSD.
2017-10-30 01:24:47 +00:00
pgoyette
7fb159dd6a And replace an instance of "%p" conversion with "%#jx" 2017-10-30 01:19:46 +00:00
kre
cf610eb9fd Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
2017-10-30 00:55:42 +00:00
riastradh
e33bbc1b18 Provisionally return to declaring midi_cd unconditionally.
Apparently this breaks compiling some kernels, although how they ever
managed to link if midi_cd is not declared in ioconf.h, and therefore
presumably not defined in ioconf.c, is beyond me.

Maybe someone who knows how sequencer is supposed to work, and/or
someone who knows how arm kernels are linked, can figure this out...
2017-10-29 17:57:21 +00:00
maxv
d528efcd77 Mmh, we don't map the CTF section on kaslr kernels, so disable
KDTRACE_HOOKS for now.
2017-10-29 17:19:14 +00:00
jmcneill
cb3c403d7f Create a custom bus space tag and use it to remap registers instead of
relying on options MOTG_ALLWINNER.
2017-10-29 16:02:46 +00:00
christos
925cb01a3f PR/52671: Ralph Geier: The ignorecase option is not handeled correctly in vi
for unicode characters
2017-10-29 15:29:34 +00:00
jmcneill
f7148f3c1a sunxi_twi: provide custom read/write reg callbacks and remove the
GTTWSI_ALLWINNER option from the kernel config
2017-10-29 15:00:00 +00:00
jmcneill
36a27f76f7 Allow drivers to provide their own read/write register functions. While
here, sprinkle KASSERTs to verify that the i2c lock is held where it
should be.
2017-10-29 14:59:05 +00:00
jmcneill
7274112a01 remove options COM_AWIN and set COM_TYPE_SUNXI in the bus driver instead 2017-10-29 14:07:11 +00:00
jmcneill
1d72c7e24d Make all of the COM_xxx type options runtime selectable. Kernel configs
with the existing options (COM_16650, COM_16750, COM_AWIN, COM_HAYESP, and
COM_PXA2X0) will select the correct type in com_attach_subr. New code
should specify the com type by passing COM_TYPE_xxx to comcnattach and/or
setting sc_type.
2017-10-29 14:06:08 +00:00
maxv
2247cb6b7f Fix a few error messages, and be a little more verbose. 2017-10-29 11:38:43 +00:00
maxv
569f0c08bf Randomize the kernel segments independently. That is to say, put text,
rodata and data at different addresses (and in a random order).

To achieve that, the mapping order in the prekern is changed. Until now,
we were creating the kernel map the following way:
	-> choose a random VA
	-> map [kernpa_start; kernpa_end[ at this VA
	-> parse the ELF structures from there
	-> determine where exactly the kernel segments are located
	-> relocate etc
Now, we are doing:
	-> create a read-only view of [kernpa_start; kernpa_end[
	-> from this view, compute the size of the "head" region
	-> choose a random VA in the HEAD window, and map the head there
	-> for each region in (text, rodata, data, boot)
		-> compute the size of the region from the RO view
		-> choose a random VA in the KASLR window
		-> map the region there
	-> relocate etc

Each time we map a region, we initialize its bootspace fields right away.

The "head" region must be put before the other regions in memory, because
the kernel uses (headva + sh_offset) to get the addresses of the symbols,
and the offset is unsigned.

Given that the head does not have an mcmodel constraint, its location is
randomized in a window located below the KASLR window.

The rest of the regions being in the same window, we need to detect
collisions.

Note that the module map is embedded in the "boot" region, and that
therefore its location is randomized too.
2017-10-29 11:28:30 +00:00
maxv
fa107cc435 Use bootspace.head.va instead of the direct map. Otherwise there's the
assumption that the offsets contained in sh_offset in physical memory are
equal to the offsets in virtual memory, which won't be true in the future.
2017-10-29 10:25:28 +00:00
maxv
2649694796 Add three functions and start using them; will be more useful soon. 2017-10-29 10:07:08 +00:00
maxv
54636b7777 Add a fifth region, called "head". On kaslr kernels it contains the ELF
Header and the ELF Section Headers. On normal kernels it is empty (the
headers are in the "boot" region).

Note: if you're using GENERIC_KASLR, you also need to rebuild the prekern.
2017-10-29 10:01:21 +00:00
pgoyette
e1928330e9 More improvements in grammar and readability. 2017-10-29 09:51:42 +00:00
mlelstv
0e8cd33553 Use driver specific label code as fallback. This fixes the UDF label for CDs. 2017-10-29 09:44:17 +00:00
pgoyette
1fa0f4a0ee Use correct mark-up for NetBSD version. 2017-10-29 09:17:42 +00:00