Commit Graph

253146 Commits

Author SHA1 Message Date
christos
77b64f0a5c PR/52516: Guy Incognito: Fix memory leak; setsymtab already calls tostring()
for the buffer, don't do it twice.
XXX: pullup-8
2017-09-01 07:01:06 +00:00
msaitoh
ff98ea4622 - Add "Performance Server" and "Tablet" for Preferred_PM_Profile.
- Don't print FADT_RESET_REG if FADT version is 1.
- Print FADT ArmBootFlags, MinorRevision, SleepControl, SleepStatus and
  HypervisorId.
- Print "{}" even if any flags aren't set.
2017-09-01 05:53:09 +00:00
maya
295a581e4c Disable MSI on DRMKMS (again).
It is causing problems on some older nvidia graphics cards:
http://mail-index.netbsd.org/netbsd-users/2017/08/02/msg020026.html
http://mail-index.netbsd.org/pkgsrc-users/2017/08/26/msg025492.html
PR kern/52440
2017-08-31 23:47:50 +00:00
christos
5106efb953 add vfp 2017-08-31 22:19:51 +00:00
jmcneill
66995669d3 Instead of a Linux keymap, convert Linux event codes to USB scan codes and
use the ukbd keymaps instead.
2017-08-31 19:55:43 +00:00
maxv
4954e9a25d check sc_eip in the ldt branch too 2017-08-31 15:41:14 +00:00
maxv
fbe5cb919d Add a layer of mitigation against the intel sysret vuln: restore %gs when
sysretq faults. Right now we try to make sure that %rip is canonical by
performing sanity checks in several places, but I've already found missing
checks two times already, and there may be others.

By performing an additional swapgs here, we are turning ring0 exploits to
simple DoSes - which are still security bugs, but of a lower impact.
2017-08-31 10:30:58 +00:00
maxv
0f82f494b2 Reorder for clarity, and style. 2017-08-31 09:33:19 +00:00
msaitoh
1c01428a98 Part of FreeBSD r323045:
- Print Valid Field in ACPI_NFIT_CONTROL_REGION with 0x%02x.
 - Fix Flags of ACPI_NFIT_CONTROL_REGION.
2017-08-31 09:27:51 +00:00
maxv
9aa3f48cc3 Construct the trap frame with interrupts disabled, for safety, just like
the rest of the interrupt entry points.
2017-08-31 09:27:28 +00:00
pgoyette
1c284673f6 When adding a new veriexec_file_entry, if an entry already exists with
all the same values (except for the filename) just ignore it.  Otherwise
report the duplicate-entry error.

This allows the user to create a signature file with veriexegen(8) and
not worry about duplicate entries (due to hard-linked files) which will
otherwise cause /etc/rc.d/veriexec to report an error.

Fixes PR kern/52512

XXX Pull-up for -8
2017-08-31 08:47:19 +00:00
msaitoh
287fff2eb1 If _ENABLED flag of ACPI_SRAT_TYPE_CPU_AFFINITY, ACPI_SRAT_TYPE_MEMORY_AFFINITY
or ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY isn't set, don't use the table.
2017-08-31 08:45:03 +00:00
wiz
1209ffc3a2 Revert probably unintentional case changes from previous.
Remove superfluous Tn.
2017-08-31 08:36:32 +00:00
pgoyette
dbfbddfd9b Add a note that some external software is available only via loadable
modules due to licensing concerns.

Also add an additional example of how to build modules only, using
build.sh
2017-08-31 07:47:59 +00:00
msaitoh
792e611dc6 - Decode ACPI_HEST_GENERIC_V2.
- Decode ACPI_MADT_GENERIC_MSI_FRAME.
- Add NMI, CMCI, MCE, GPIO-Signal, ARMv8 SEA, ARMv8 SEI and GSIV
  in acpi_print_hest_notify().
- Add ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS and ACPI_EINJ_GET_EXECUTE_TIMINGS
  in acpi_print_einj_action().
- Add ACPI_ERST_EXECUTE_TIMINGS in acpi_print_erst_action().
- Decode NFIT (NVDIMM Firmware Interface Table) from FreeBSD.
2017-08-31 06:53:58 +00:00
kre
e7beee7b61 Fix a bug noticed by Soren Jacobsen running the netbsd-6-0 build.sh which
causes a core dump in some exotic circumstances (when restoring local
variables when a function returns).  ("build.sh makewrapper" exposed it.)

This was introduced in 1.63 - not as part of the substance of that
change (addition) but as an unrelated "must be the right thing to do"
cleanup, which wasn't...
2017-08-31 05:09:38 +00:00
msaitoh
b7bbade77e Fix 2500 KX media setting in last commit. 2017-08-31 02:48:55 +00:00
jmcneill
8b884a02d6 Make opt_fdt.h available for all evbarm kernels. 2017-08-30 23:57:27 +00:00
maya
cab44f07e4 Add a short case for the alpha test failure
Now I see it's down to the choice of -mfp-trap-mode (n works, su/sui/u don't)
2017-08-30 22:55:41 +00:00
maxv
edd85c39a2 Make these pages non-executable, and style. 2017-08-30 16:01:55 +00:00
maxv
ef3449daf5 Don't test call gates, they are not supported anymore. 2017-08-30 15:46:19 +00:00
maxv
13f8366742 Don't allow userland to create 286/386 call gates anymore - they are not
used by Wine. While here, don't allow it to overwrite the static entries
either, don't allow unknown entry types, remove LDT_DEBUG, and style.
2017-08-30 15:44:01 +00:00
maxv
c6d443a60f Pfff, use %ss and not %ds. The latter is controlled by userland, the former
contains the kernel value (flat); FreeBSD fixed this too a few weeks ago.

As I said earlier, this dtrace code is complete bullshit.
2017-08-30 15:34:57 +00:00
martin
8ddffbe4bb Move sbmips -> evbmips entry to CHANGES.prev 2017-08-30 15:20:09 +00:00
maya
63a1be2348 use PRIu64 to print uint64_t, don't print sizeof
fixes build. sorry, built tested an older version for 32bit.
2017-08-30 14:24:20 +00:00
maya
ba15b3ff94 Add test case for alpha's MPFR config test failure
This assert fires with -mieee, but not without it.
2017-08-30 10:51:06 +00:00
msaitoh
bf7d56704e ixg(4), ixv(4): Add C3000 and bypass function support. 2017-08-30 08:54:43 +00:00
msaitoh
dc7f84c858 - Sync with FreeBSD r320688 (and up to r322865):
- Add C3000(Denvertion(-NS)) support.
  - Add bypass function support for bypass adapters. Sysctls are provided.
    Not tested because I have no any bypass adapter.
  - ixv(4): set RSS mapping.
  - Change EEE sysctl.
  - ixv(4): Add TSOv6.
  - ixv(4): Mailbox API 1.2 and more are implemented and comment says it
    negotiate with 1.2 but it really does 1.1...
  - Remove thermal test sysctl.
  - Fix unknown bugs.
- Print driver feature capabilities and enable bits when verbose boot.
2017-08-30 08:49:18 +00:00
msaitoh
c91dc6deb1 FreeBSD r320688 sorted a lot of functions. Merging that change by one commit
makes difficult to know what was really changed. To make change understandable,
commit only function sort and white space changes before real change.
2017-08-30 08:24:57 +00:00
wiz
41b9f7f5d8 Make all headers bold. 2017-08-30 05:47:24 +00:00
msaitoh
07cce385bc Don't limit number of queue pair to 8. Take max TX queues and max RX queues
into account. 82598 has 32 TX queue and 64 RX queues. Others has 128 TX queues
and 128 RX queues. Number of MSI-X table entries is 64, so the max queue pairs
is 63 (64 minus the Others (e.g. link status change)).
2017-08-30 01:25:07 +00:00
jmcneill
088e9f05e9 Use linux_keymap instead of pckbd keymap 2017-08-30 00:40:09 +00:00
jmcneill
fd3aded8b4 Add a keymap for converting Linux event codes to wscons keysyms. 2017-08-30 00:39:27 +00:00
pgoyette
8adafed3ce Document the keep-filename entry in the dictionary passed to VERIEXEC_LOAD.
Clean up English grammar in description of VERIEXEC_DUMP (relating to the
retention of filenames).

XXX There are several tables in this man page with column headers defined
XXX using .It Sy Col1 Col2 Col3   This causes the first header to appear
XXX as "Bold" but the remaining column headers are "Normal".  I don't know
XXX how to fix it to make all the headers "Bold".  :(
2017-08-29 23:38:50 +00:00
nisimura
1b11983af1 decouple pic_ipi_kpreempt() from DDB 2017-08-29 22:57:05 +00:00
mrg
8090e28661 update fonts.conf for fontconfig 2.12.4. removes <blank> section.
add a Makefile comment about how to regenerate it.
2017-08-29 20:53:56 +00:00
mrg
2c8b45b96d update for xkeyboard-config 2.21. 2017-08-29 20:27:54 +00:00
skrll
b0ac1e49fb Ensure all data is captured under the edata symbol for srt0.S to relocate
it correctly.

gcc 5.3 marks some data as .data.rel.local, .data.rel or .data.rel.ro

port-hppa/52484: lif images from -8 and HEAD not loadable/bootable over network
2017-08-29 19:14:04 +00:00
ryoon
c6a72218c6 Regen. 2017-08-29 18:33:15 +00:00
ryoon
6ea1e3aab6 Add Wacom Intuos2 A4 and Intuos Art pen tablets 2017-08-29 18:31:19 +00:00
ryoon
7f2014b841 xorg-server.pc should include pixman-1 dependency because
include/xorg/miscstruct.h includes pixman.h
2017-08-29 18:19:49 +00:00
maya
a52fd0a204 Don't fc-match bitmap fonts by default.
Now things using Helvetica won't look terrible, and will use the fallback
font instead.

Idea by jakllsch, thanks!
2017-08-29 15:50:57 +00:00
ryo
782b3eac39 * aarch64/memset.S didn't work! fixed some bugs.
* maximum size of DCZID_EL0:BS (2048) supported.
2017-08-29 15:00:23 +00:00
pgoyette
c31e1d979d Revert previous changes. They are wrong. The intended clean-up
is already being handled by the call to veriexec_file_free() in
the "out:" path.
2017-08-29 12:48:50 +00:00
pgoyette
f18bf91f4d One more resource to release - the filename, if we kept it. 2017-08-29 10:23:12 +00:00
pgoyette
8bdb86c1df Release any allocated resources if we take the error paths.
As posted on tech-kern and discussed on IRC.
2017-08-29 10:19:54 +00:00
jmcneill
15cd199c01 Add powerdown support and hook it in to FDT 2017-08-29 10:10:54 +00:00
jmcneill
65bd01fae4 enable axp20x 2017-08-29 09:55:25 +00:00
jmcneill
90be26ce03 Add direct configuration support. 2017-08-29 09:55:03 +00:00
christos
370397d658 disable PIE and SSP 2017-08-29 09:17:43 +00:00