Commit Graph

265646 Commits

Author SHA1 Message Date
bad
5cdd22f811 rename module_name to strategy_module_name to avoid fatal shadowing of
module_name() when compiled with older external gcc. NFC
2019-02-17 23:17:41 +00:00
gutteridge
38c10b539d ifwatchd(8): remove lingering references to dhclient(8). In this case,
its replacement handles carrier detection itself. Addresses part of
PR misc/53669.
2019-02-17 20:50:25 +00:00
gutteridge
03f48fcb5b pf.boot.conf: remove lingering references to dhclient(8), and while
here, capitalize acronyms. Addresses part of PR misc/53669.
2019-02-17 20:45:47 +00:00
maxv
4cdf419d72 Fix handling of SIB instructions. We were jumping to the SIB node _before_
fetching the displacement, so the node would always think there was no
displacement.

This didn't alter the final GPA we would be touching - because it is
fetched from the kernel directly and not from the computation -, but it
altered the instruction length, and on some guests (like Fedora 64bit),
the VCPU would resume execution at the wrong RIP and crash.

Now these guests work.
2019-02-17 20:25:46 +00:00
rin
90b9898718 For vax, GCC 6.5 and 7.4 cannot compile lfs_inode.c with
-DDIAGNOSTIC and -O2/-O1.
2019-02-17 14:04:31 +00:00
rin
514df72f81 VM_MAXUSER_ADDRESS can be undefined when compiling module/coredump;
it varies between machines for evbppc (and possibly evbppc64).
2019-02-17 13:46:03 +00:00
rin
919fe1ff1f Set WARNS=3 to appease sign-compare warnings for mips, mips64, and sparc. 2019-02-17 13:21:55 +00:00
isaki
ecae8bc568 Add ATF tests for atomic_ops(3). 2019-02-17 12:24:17 +00:00
rin
d9fe5a835c Remove unused. 2019-02-17 09:33:19 +00:00
kamil
144442f947 Add new ATF t_ptrace_wait* vfork(2) tests
Add traceme_vfork_signalmasked_crash and traceme_vfork_signalignored_crash
tests for crash signals (SIGTRAP, SIGSEGV, SIGILL, SIGFPE, SIGBUS).

These new scenario assert that signal masked/ignored are delivered to
vfork(2)ed child.

All tests pass.
2019-02-17 09:29:35 +00:00
isaki
ec9c813c13 Add missing export of atomic_or_64 (since rev1.1). 2019-02-17 07:34:44 +00:00
mrg
9709f9a6a8 various updates for reality.
- arm64, powerpc switched
- arm, hppa, sh3 is ready to switch
- vax dynamic binaries have a problem
2019-02-17 06:22:58 +00:00
rin
bcb6ca59ac Set WARN=3 for sing-compare. 2019-02-17 05:32:35 +00:00
mrg
e5f4a8fa1d ensure that all include dirs are created before make includes runs.
separate the compat vs per-arch -ness of the mtree lists.  merge the
mips64 mtree files into a single file.
2019-02-17 05:29:08 +00:00
kamil
f3e7347b92 Remove redundant test from ATF t_ptrace_wait*
signal3 duplicates traceme_signalmasked_crash(SIGSEGV)
2019-02-17 05:21:49 +00:00
nonaka
09f7c39f08 PR/53984: Partial revert of modify lapic_calibrate_timer() in lapic.c r1.69. 2019-02-17 05:06:16 +00:00
kamil
94af723a9a Add additional assert in traceme_signalignored_crash t_ptrace_wait* tests
Check whether sigignore is not reset on a trapsignal under a debugger.
The expected behavior is to not reset it. A side effect of resetting
signal mask is noticable especially with a software/hardware breakpoint
that changes state of a process.

Mark these tests as failing.
2019-02-17 04:57:09 +00:00
kamil
f42cdc6585 Add additional assert in traceme_signalmasked_crash t_ptrace_wait* tests
Check whether signal mask is not reset on a trapsignal under a debugger.
The expected behavior is to not reset it. A side effect of resetting
signal mask is noticable especially with a software/hardware breakpoint
that changes state of a process.

Mark these tests as failing.
2019-02-17 04:19:39 +00:00
rin
fcb6b46ef6 Fix assertion failures triggered by usbdi.c,v 1.182, when devices
are detached.

This is because xfers of USBD_NOT_STARTED can be removed from queue
in an invisible way to host controller drivers.

Discussed on tech-kern.
2019-02-17 04:17:52 +00:00
rin
05f24ca45b Fix system freeze when USB NICs with multiple outstanding transfers
are detached from xhci(4) or ehci(4), that enable up_serialise for
bulk transfers.

The cause of problem is that usbd_ar_pipe() waits xfers of
USBD_NOT_STARTED to be removed, although underlying upm_abort
functions do not remove such queues, as reported by "sc dying".

Therefore, remove xfers of USBD_NOT_STARTED when pipe is closed.

Patch provided by Nick Hudson.
2019-02-17 04:17:31 +00:00
rin
2bc4fb1fcb Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
2019-02-17 04:05:41 +00:00
rin
4708abfff3 Turn on DIAGNOSTIC by default for modules in HEAD.
Make us sure that it should be commented out for release branches in
a similar manner to kernel configuration files.

Discussed on tech-kern.
2019-02-17 03:57:31 +00:00
mrg
36422d2e0c regen mknative with symver no longer disabled. 2019-02-17 00:24:15 +00:00
mrg
f1ac420a3d don't pass --disable-symver to mknative configure. this turns off
the checking for gcc 4.6 and some exception handling routines which
we need on several platforms.

this should fix missing symbol issues seen on current-users.
2019-02-17 00:22:53 +00:00
mrg
70e3d17cd2 apply -std=gnu++98 to some more files.
state that some hard coded stuff here should be pulled out with mknative.
2019-02-17 00:05:11 +00:00
tron
7becde12ff Fix cut & paste error in comment 2019-02-16 23:28:56 +00:00
martin
37df7b8973 Typo in member variable name 2019-02-16 19:09:07 +00:00
martin
c8239d06af Document return values from menu items opt_action functions, add a
new variant: -1 when functions have fundamentally changed the menu
definition on the fly and the processing functions needs to restart
without looking at the old state (or stale cached pointers).
2019-02-16 18:57:21 +00:00
kre
63ba0d5a97 PR bin/53986 from Christian Weisgerber
Skip forward to tomorrow to run a command earlier in the current
hour than now (as well as during an earlier hour of the day).
2019-02-16 17:56:57 +00:00
jmcneill
5d72569b2f Fix HDMI output; only install cursor_set/cursor_move funcs if hardware cursor is available. 2019-02-16 16:20:50 +00:00
maxv
b7adc52057 Ah no, adapt previous, on AMD RAX is in the VMCB. 2019-02-16 12:58:13 +00:00
maxv
3624fc8223 Improve the FPU detection: hide XSAVES because we're not allowing it, and
don't set CPUID2_OSXSAVE if the guest didn't first set CR4_OSXSAVE.

With these changes in place, I can boot Windows 10 on NVMM.
2019-02-16 12:40:31 +00:00
maxv
bf06ffc94d Handle MSR_MISC_ENABLE on NVMM-Intel (Intel-specific). 2019-02-16 12:05:30 +00:00
gutteridge
1c2ba908cc make(1): minor grammar fixes in BUGS section 2019-02-16 07:41:12 +00:00
wiz
75d36790ae Mark up NULL with Dv. 2019-02-16 07:00:56 +00:00
isaki
aef27bc2ab Two minor fixes.
- 0 -> NULL.
- avoid K&R and sync with reality.
2019-02-16 06:51:04 +00:00
isaki
617001bf79 Two minor fixes.
- Add missing AUDIO_PERROR (since 1996!)
- Sort AUDIO_GETFD.
2019-02-16 06:50:14 +00:00
christos
52b10dfde0 PR/53983: Jonathan Perkins: Fix types for readline compatibility 2019-02-15 23:20:35 +00:00
rmind
b46d30012f nvpair_remove_nvlist_array: revert part of the rev 1.4 change (it was applied
by mistake because the libnv upsteam code on Github has deviated from FreeBSD,
i.e. it has a different nvlist_set_array_next() logic).
2019-02-15 22:49:24 +00:00
kamil
4228275315 Avoid UB in OsdHardware.c
UBSan: Undefined Behavior in src/sys/dev/acpi/acpica/OsdHardware.c:265:17,
left shift of 255 by 24 places cannot be represented in type 'int'

This file isn't part of upstream acpica so just fix it locally.

Reported and initial patch by <Akul Pillai>
2019-02-15 20:48:57 +00:00
mgorny
f5c01693d5 Fix reporting EOF via kevent and add a test case
Fix the kernel pty driver to report closed slave via master's kevent
EVFILT_READ.  This behavior matches the behavior for pipes, is
consistent with how FreeBSD implements it and is relied upon by LLDB's
main loop implementation.

Includes feedback by kre and kamil (from tech-kern), commit approved
by kamil.
2019-02-15 18:57:15 +00:00
maxv
2fad18ce40 Remove the PSE check in the 32bit-PAE MMU. Setting CR4.PAE automatically
enables PSE regardless of whether CR4.PSE is set or not, so we should just
ignore it.

With this in place I can boot Windows 8.1 on NVMM.
2019-02-15 16:42:27 +00:00
hannken
1cc92a5ea2 Add __diagused. 2019-02-15 16:37:54 +00:00
hannken
9d3d4465f5 Add /* FALLTHROUGH */ for DEBUG kernel. 2019-02-15 16:36:33 +00:00
rjs
786ba994fc This really was a missing break.
Spotted by Rin Okuyama.
2019-02-15 14:13:32 +00:00
maxv
5152d5aa1d Initialize the guest TSC to zero at VCPU creation time, and handle guest
writes to MSR_TSC at run time.

This is imprecise, because the hardware does not provide a way to preserve
the TSC during #VMEXITs, but that's fine enough.
2019-02-15 13:17:05 +00:00
nonaka
50517e577b Added Microsoft Hyper-V support. It ported from OpenBSD and FreeBSD.
graphical console is not work on Gen.2 VM yet. To use the serial console,
enter "consdev com,0x3f8,115200" on efiboot.
2019-02-15 08:54:01 +00:00
kamil
53cc2476a7 Add new ATF tests traceme_signal{ignored,masked}_crash* in t_ptrace_wait*
New tests verify that crashes (from trap signals) are delivered to tracer
regardless of the signal masking or signal ignoring option enabled in the
traced child.

All tests pass.

In close future these tests will obtain additional asserts.
2019-02-15 05:06:38 +00:00
kamil
d5a7a3281b Add new ATF tests traceme_raisesignal_ignored in t_ptrace_wait*
Verify that ignoring (with SIG_IGN) in tracee
does not stop tracer from catching this raised signal.

Cover crash signals and already covered ones in other tests.

All tests pass.
2019-02-15 04:11:39 +00:00
macallan
6fe6c35acf move arch/iyonix into evbarm - it's got less machine specific code than most
evbarm/*...
does not quite work yet, but I don't want it to accumulate more differences
to what's in arch/iyonix
2019-02-14 21:47:52 +00:00