Commit Graph

253207 Commits

Author SHA1 Message Date
ryoon
75ae9eec4a Bump date 2017-09-06 14:43:50 +00:00
ryoon
62347f8bc6 Add uts(4) 2017-09-06 14:43:14 +00:00
ryoon
7aef114153 Bump date 2017-09-06 14:40:26 +00:00
ryoon
03ac027404 Add newline for easier reading 2017-09-06 14:39:39 +00:00
ryoon
7d71d0cef0 Add ALPS description 2017-09-06 14:38:41 +00:00
bouyer
019d8a7954 The last GDT slots are reserved for Xen, so use FIRST_RESERVED_GDT_BYTE
instead of MAXGDTSIZ for gdt_size.
Xen kernels should boot again.
2017-09-06 12:39:18 +00:00
skrll
732e83fa66 Remove useless KASSERT - we can't assert !mutex_owned() 2017-09-06 11:51:33 +00:00
msaitoh
01bfdbc214 Fixes a problem that some driver(e.g. acpitz(4) or coretemp(5)) which
use sysmon_envsys sleep waiting at "rndsrc" when "drvctl -d".
Don't call rnd_detach_source() in sme_remove_event() which is called
from sme_event_unregister_all(). Instead, call rnd_detach_source() in
sysmon_envsys_sensor_detach() and call sysmon_envsys_sensor_detach()
before sme_event_unregister_sensor(). Each sensor(envsys_data) has each
rnd_src, but some sme_events point to the same rnd_src in a sensor.
Calling rnd_detach_souce() twice with the same rnd_src brokes a reference
count in rnd_src. OK'd by pgoyette@.
2017-09-06 11:08:53 +00:00
mlelstv
809af110e7 Don't print "nan" when there is no disk activity. 2017-09-06 06:05:23 +00:00
macallan
cfa96bad98 downgrade some debug spam to aprint_debug() where it belongs 2017-09-06 03:10:09 +00:00
christos
dec6dba63c PR/52522: Piotr Meyer: Don't NUL terminate the gpt label name.
XXX: pullup-8
2017-09-05 18:30:46 +00:00
christos
b2ad969a13 For readline emulation, don't reset the tty to "sane" (cooked) mode if we
did not start this way. Also set and reset the tty on entry and exit from
readline() since this is what readline does.
2017-09-05 18:07:59 +00:00
macallan
12d26bd60a first step to clean up & bus-spacification:
- use i2c addresses with the direction bit shifted out in iic_exec and when
  attaching drivers so things attaching to iic* have a chance of working
- add an empty i2c-devices prop_array_t to keep drivers we don't want from
  attaching to iic*
- printf -> DPRINTF / aprint_*
- usa mapiodev() for now to make this work on G5
2017-09-05 17:21:09 +00:00
bsiegert
1eb43387d0 dhcp: Fix classless static routes
Assign the netwask correctly from the message.

Cherry-picked from upstream in
https://dev.marples.name/rDHC510c760cb24ef4b1b16cc14732c5ffe0fbb0d96d.

This fixes route assignments when running on Google Compute Engine,
which uses classless static routes.
2017-09-05 11:58:55 +00:00
christos
6a87a80ea4 Revert changing the byte order of fi->fi_addr. It is already correct. From
Timo Buhrmester
XXX: pullup 8.
2017-09-05 11:12:32 +00:00
skrll
959954eaf3 Add an XHCI_DISABLE_MSI option 2017-09-05 08:01:43 +00:00
mrg
75b8e95395 remove redundant checks against sc and sc->sc_dying.
check sc_dying in more places.
2017-09-05 05:03:02 +00:00
snj
5bd7acb54f disable SIT, as we've been doing in -7 since this experimental feature
popped up. it was problematic and has been obsoleted in BIND 9.11.
ok christos@ reed@
2017-09-04 19:57:53 +00:00
jmcneill
aee26b4bb9 Add console support. 2017-09-04 18:01:28 +00:00
phx
bc473197c5 Remove double device pointers. The pointer is already part of sc_wdcdev. 2017-09-04 17:26:06 +00:00
snj
7d2154ffe7 regen for xkeyboard-config 2.21 2017-09-04 16:51:11 +00:00
bacon
21b440577d Add Jason Bacon to developers list 2017-09-04 14:48:09 +00:00
phx
7b49cb0346 Set the correct device data size wdc_xsurf_softc instead of wdc_softc. 2017-09-04 14:39:00 +00:00
msaitoh
0f0f0fe40a - Space, tab and newline change for consistency output.
- Print a type number for unknown HEST sub entry ID.
2017-09-04 08:12:29 +00:00
msaitoh
084106f3ab - Calculate offset of a sub header correctly in acpi_handle_hest() to print
all of sub entries in HEST correctly.
- Print a SpaceID number for unknown ID in acpi_print_gas().
- Use PRINTFLAG() in acpi_print_hest_notify().
- Use %u instead of %d for unsgined values in acpi_print_hest_generic().
2017-09-04 08:08:41 +00:00
msaitoh
8dabdd9fc2 Fix calculation the offset of the Action Table in WDAT to print each
entries correctly.
2017-09-04 07:59:15 +00:00
nat
e68c19236b Remove references to BlueCore.
Enable XON/XOFF flowcontrol in SLIP layer depending on config response.
Send an acknowlegment packet on timeout/retry.
Compute tx{ack,seq} and rx{ack,seq} according to the specification.
2017-09-03 23:11:19 +00:00
nat
866993a422 Fix copyright error.
Ok plunky@.
2017-09-03 22:54:12 +00:00
jmcneill
4738af239e Add 'console=fb' cmdline support. 2017-09-03 13:59:17 +00:00
wiz
2168981001 Fix verb form. 2017-09-03 13:41:19 +00:00
maya
d498d301ce Use a global double to stop GCC from optimizing the test away
Better diagnostic messages
More familiar test for 'even number'
2017-09-03 13:29:55 +00:00
maxv
57b09b2fff Declare onfault_restore, and be stricter with SMEP. 2017-09-03 09:19:51 +00:00
maxv
d87dc9d77e Treat page faults from iretq/etc as fatal, otherwise we could hide kernel
stack bugs. Note that it would be good to call check_swapgs from trap0e,
but a few things need to be fixed before that.
2017-09-03 09:01:03 +00:00
maxv
e62f2ef145 Remove useless debug code, and split trap() into smaller functions, easier
to understand. NMIs take another, faster path now. No functional change
beyond that.
2017-09-03 08:52:18 +00:00
cherry
5589baa825 Remove redundant static function declaration 2017-09-03 06:24:49 +00:00
wiz
d1e94a1225 Remove reference to non-existing mac68k/bm.4. 2017-09-02 22:14:29 +00:00
scole
0ed5cf62e0 Add powermac 7200 to list of supported hardware 2017-09-02 21:27:08 +00:00
jmcneill
c2f505596f Add a simplefb node for H3 SoCs 2017-09-02 17:35:07 +00:00
isaki
05338f8c10 - Finally MI audio supports 4bit precision format without null_filter hack!
- Fix reusing play/rec argument as local variables.  It is in/out parameter.
2017-09-02 15:40:31 +00:00
isaki
afd2573085 Separete sc->sc_pr/rr (mix ring) block size and hwvc->sc_mpr/mrr (hw ring)
block size.  Now MI audio supports(revives) device with different precision
than mix ring's precision like vs(4) (4bit ADPCM).
2017-09-02 15:26:43 +00:00
isaki
eab2ddfde4 Remove duplicated code.
For hwvc, audio_calc_blksize() appears soon again.
For user vc, the userland format and HW format are separeted, so
audio_calc_blksize() here is no longer necessary.  In addition,
vc->sc_mpr.blksize is already initialized in audio_open().
2017-09-02 13:28:11 +00:00
isaki
ae42b57fad Don't assign sc->sc_pr/rr.blksize in audio_initbufs().
For hwvc, it is calculated in audiosetinfno().  And the user vc should
not change sc->sc_pr/rr.blksize.  In addition, this assignments appear twice.
2017-09-02 13:22:51 +00:00
isaki
7f22a55c63 Revert previous local conversion for vs(4). 2017-09-02 12:57:35 +00:00
maxv
5eea203ec8 Fix a subtle ring0 escalation vulnerability in amd64, and implement a
mitigation against similar bugs.

The operations on segment registers can generate a page fault if there is
an issue when touching the in-memory gdt. Theoretically, it is never
supposed to happen, since the gdt is mapped correctly. However, in the
kernel we allow the gdt to be resized, and to do that, we allocate the
maximum amount of va needed by it, but only kenter a few pages until we
need more. Moreover, to avoid reloading the gdt each time we grow it, the
'size' field of gdtr is set to the maximum value. All of this means that
if a mov or iretq is done with a segment register whose index hits a page
that has not been kentered, a page fault is sent.

Such a page fault, if received in kernel mode, does not trigger a swapgs
on amd64; in other words, the kernel would be re-entered with the userland
tls.

And there just happens to be a place in compat_linux32 where the index of
%cs is controlled by userland, making it easy to trigger the page fault
and get kernel privileges.

The mitigation simply consists in abandoning the gdt_grow mechanism and
allocating/kentering the maximum size right away, in such a way that no
page fault can be triggered because of segment registers.
2017-09-02 12:57:03 +00:00
isaki
c939a3b265 - Revert temporary local conversion introduced at rev 1.43.
- But does not revert to trigger method.  trigger method is not suitable for
  x68k ADPCM+DMA mechanism.
- Don't (re)start ADPCM when DMA is running.  This solves the noise.
  From Y.Sugahara.
- Cache dmac xfer.
2017-09-02 12:52:55 +00:00
skrll
5766248861 Perform tracking of unmanaged mappings for VIVT and call vac_me_harder
as appropriate.

PR/52102 shark: ffs_newvnode panic when unpacking sets installing -current

Thanks to Felix Deichmann for bisecting the problem and testing the fix.
2017-09-02 12:24:39 +00:00
skrll
7caa77ab68 KNF 2017-09-02 11:57:09 +00:00
skrll
4b89a6638e Remove an #ifdef PMAP_CACHE_VIVT that's inside #ifdef PMAP_CACHE_VIVT
already
2017-09-02 11:52:30 +00:00
wiz
3e39477b0a Remove trailing whitespace; convert Xr readline to Nm readline, since
we won't get a readline man page in base.
2017-09-02 06:48:10 +00:00
ryoon
58bb514de8 Support some Wacom pen tablets:
* Graphire (pen)
* Graphire2 (pen)
* Intuos2 A4 (pen)
* Intuos Art (pen, no finger touch)

Remove report descriptor override workaround for
Graphire and Graphire2.
2017-09-02 04:35:51 +00:00