Commit Graph

11943 Commits

Author SHA1 Message Date
martin
6275343145 Avoid undefined behaviour, pointed out by maxv 2018-12-13 12:28:25 +00:00
wiz
40e56fc8f4 Use \(en. 2018-12-13 07:34:03 +00:00
dholland
f71c1f4842 Fix naming inconsistency; PR 53769 from silas. 2018-12-13 03:18:18 +00:00
maxv
7bc6869364 Retire the LMC driver, and its associated lmcconfig tool. LMC has been
mentioned repeatedly as a non-MP-safe driver that is hard to maintain,
and no one is taking care of it.

LMC was removed from OpenBSD three years ago, and from FreeBSD a few
months ago.
2018-12-12 07:04:05 +00:00
plunky
6de10e4ba8 rc.d/isdnd is obsolete 2018-12-04 16:53:44 +00:00
maxv
e5fadd7f81 Introduce KLEAK, a new feature that can detect kernel information leaks.
It works by tainting memory sources with marker values, letting the data
travel through the kernel, and scanning the kernel<->user frontier for
these marker values. Combined with compiler instrumentation and rotation
of the markers, it is able to yield relevant results with little effort.

We taint the pools and the stack, and scan copyout/copyoutstr. KLEAK is
supported on amd64 only for now, but it is not complicated to add more
architectures (just a matter of having the address of .text, and a stack
unwinder).

A userland tool is provided, that allows to execute a command in rounds
and monitor the leaks generated all the while.

KLEAK already detected directly 12 kernel info leaks, and prompted changes
that in total fixed 25+ leaks.

Based on an idea developed jointly with Thomas Barabosch (of Fraunhofer
FKIE).
2018-12-02 21:00:13 +00:00
msaitoh
c0f969c5d5 Decode IO Remapping Table. 2018-12-02 10:51:07 +00:00
kre
fbb3329fd3 Divide GIG by 512 (DEV_BLKSIZE) so we don't overflow 32 bit u_long
when multiplying by 128 (in 32 bits, 128 * GIG == 0)

Should fix i386 build )and other 32 bit ports).

An alternative would be to use ULL rather than UL for the numbers,
but that would mean needlessly doing 64 bit arith for data that is
resticted to 32 bit results anyway.
2018-11-28 00:44:08 +00:00
martin
72cf5c53dc Cosmetics: consistently use MEG and GIG defines for size calculations 2018-11-27 17:13:41 +00:00
knakahara
4ed6c77e42 tprof: Add goldmont plus support. Tested by msaitoh@n.o, thanks. 2018-11-26 23:20:56 +00:00
ryo
8a4107013c Add ThunderX IDs 2018-11-26 18:08:41 +00:00
knakahara
4fd01caa16 tprof: Add goldmont support.
I tested on Atom C3558 (Denverton).
2018-11-26 07:45:47 +00:00
msaitoh
942ff4944d Print Intel CPUID Architectural Performance Monitoring leaf Fn0000000a. 2018-11-26 04:45:13 +00:00
msaitoh
ee702c097f Decode Intel/AMD MONITOR/MWAIT leaf. 2018-11-22 06:15:06 +00:00
martin
87f081f95f A few hints that sets may come in .tar.xz format (instead of .tgz) 2018-11-21 20:18:11 +00:00
martin
444da8f01d Sprinkle a few references to .tar.xz files (as alternative to .tgz files) 2018-11-21 20:13:09 +00:00
msaitoh
7c1e0af10e Decode package, core and SMT id if CPUID 0x0b is available on Intel processor.
If the value is different from the kernel value, we should fix the kernel code.

TODO: Use 0x1f if it's available.
2018-11-21 12:19:51 +00:00
msaitoh
b430389aea - AMD also reports CPUID 7's highest subleaf. Print it.
- Use macro.
2018-11-21 10:34:53 +00:00
msaitoh
ee8540f68c - Use ci_feat_val[7] as CPUID 7 %edx to match x86/cpu.h
- AMD also has CPUID 6.
- Remove unused code for coretemp.
- Consistently use descs[] instead of data[].
2018-11-21 06:10:25 +00:00
martin
39e506156f Convert all static menu struct initializiations to C99 name initializer
format - prerequisite for an upcoming evil hack (tm).
No functional change intended.
2018-11-20 19:02:07 +00:00
maxv
71256c3b0d Note support for Intel Silvermont/Airmont. 2018-11-20 06:43:26 +00:00
mrg
0e9d255287 rewrite the CPU identification on arm64:
- publish per-cpu data
- publish a whole bunch of info in struct aarch64_sysctl_cpu_id
  instead of various individual nodes (there are 16 total.)
- add MIDR extractor bits
- define ARMv8.2-A id_aa64mmfr2_el1 and id_aa64zfr0_el1 regs,
  but avoid using them until we make sure they exist.  (these
  members are added to aarch64_sysctl_cpu_id to avoid future
  compat issues.)

the arm32 and aarch32 version of these need to be adjusted as
well (and aarch32 data published at all.)  still trying to
work out how to make the same userland binary running on a
real arm32 or an aarch32 system can work sanely here.

ok ryo@.
2018-11-20 01:59:51 +00:00
martin
b978e7a9c1 Split positional argument string expansion from msg display, we can make
good use of it elsewhere too.
2018-11-19 17:17:43 +00:00
sevan
05de7c48c1 Adjust test, we only want to return the structure member if the result is not NULL.
Heads up by Sascha Wildner @ DragonFly BSD.
2018-11-18 23:03:36 +00:00
martin
379f075dc1 Yet another size estimate 2018-11-18 10:37:04 +00:00
martin
de7834a35d More size estimate fixes 2018-11-18 10:34:45 +00:00
martin
b70953c52d Add default for debug sets size 2018-11-17 19:22:48 +00:00
martin
a67ab68028 Now that size estimates are not way off anymore, only double the size
for the minimal suggested partition.
2018-11-16 19:55:18 +00:00
martin
7a2eea57bf Sync install size estimates with current reality 2018-11-16 19:54:03 +00:00
ozaki-r
4dae353ba2 rtadvd: use %u to print unsigned variables 2018-11-16 08:57:10 +00:00
martin
352a555edc Make use of the new positional parameters to better describe the first
partitioning step. Remove size limits/hints encoded in the translations
and replace them by values from the code.
2018-11-15 10:34:21 +00:00
martin
ac730b5183 Add a new helper function to show messages with positional parameters 2018-11-15 10:23:32 +00:00
knakahara
a8700cbec5 tprof: Add silvermont, airmont support.
I tested on Atom C2758 (Rangeley).
2018-11-15 07:20:31 +00:00
wiz
a1961053ec Sort sections. New sentence, new line. 2018-11-14 18:28:18 +00:00
martin
c4cf3d8d86 Slightly enhance previous: create two utility functions checking for
partitionability and boot code requirements, use a generic match helper
function for both and fully check the device name.
2018-11-14 02:30:00 +00:00
bouyer
a5c25858d1 Skip mbr for xbd and raid devices, as it was before Nov. 5 commits.
anita xen installs should work again.
2018-11-13 17:22:04 +00:00
christos
782f459947 FILES section from Dan Plassche 2018-11-12 00:50:54 +00:00
martin
57cf8237b6 Skip floopies when selecting an install target, but do not add them to
the CD list when selecting an installation source device.
2018-11-11 10:06:09 +00:00
martin
8b5066c45d Do not allow installation onto floppy disk - can be overriden by
architectures where it would make sense (none currently), and also
works around a bug in QEMU for sparc that kills our -current anita tests.
2018-11-11 09:17:10 +00:00
maya
0b54191a1c & promotes to int already, so clang warns about the hh modifier.
(and we use -Werror)

ok xtos
2018-11-11 00:24:01 +00:00
abs
5b096803d3 Install the sample slip.login to share/examples/slip/slip.login 2018-11-09 21:33:50 +00:00
martin
5864e121ba Fix test for active root partition when booting from a wedge 2018-11-09 15:20:36 +00:00
martin
1c2e5b02c0 Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).
2018-11-08 20:29:37 +00:00
martin
a48ed55e5c Untangle disk enumeration a bit more. 2018-11-08 11:56:56 +00:00
martin
4bb5c5376d Simplify CD device name matching by using fnmatch(3), suggested
by Christoph Badura.
2018-11-08 11:15:58 +00:00
martin
e80b64debe Fix CD_NAMES against concrete instances comparision - if CD_NAMES
entries have a wildcard, strip device instance number off from both
comparands.
2018-11-07 21:59:30 +00:00
martin
3b44a3d7f6 Unify handling of CDROM device names.
Skip CDs when looking for install targets (we do not support installing
onto a blueray with UDF).

Fix search for the default CDROM device and the CD we booted from
for ports with nonstandard CDROM device names.
2018-11-07 21:20:23 +00:00
plunky
7c0fdce822 add rc.d/dhcpd6 2018-11-06 06:16:00 +00:00
martin
7a39103985 Get rid of hard coded disk names and use sysctl hw.disknames
instead.
2018-11-05 19:45:56 +00:00
martin
b57ba1ec69 For "unknown" sets (should only happen for pkgsrc.tgz), always use
.tgz suffix.
2018-11-05 17:04:03 +00:00