Commit Graph

268134 Commits

Author SHA1 Message Date
isaki 8ec8123f92 Add missing newline. 2019-06-14 14:17:58 +00:00
christos 33abb5d1ba select the powerd scripts from the sets 2019-06-14 14:17:45 +00:00
isaki 5c4f00f100 boot_ufs (primary bootloader) expects /boot OMAGIC a.out. 2019-06-14 14:15:53 +00:00
msaitoh 76f3d0e21d Fix compile error (s/LAPIC_PCINT/LAPIC_LVT_PCINT/) 2019-06-14 11:50:35 +00:00
hkenken c62fc3ec68 Add support "interrupts-extended".
* fdtbus_get_phandle_with_data().
  Add utility subroutine to get phandle with data.
2019-06-14 11:08:18 +00:00
msaitoh 61bd4906ee - Dump LAPIC and I/O APIC correctly.
- Don't print redirect target on LAPIC.
  - Fix DEST_MASK:
    - DEST_MASK is not 1 bit but 2 bit.
    - Add missing "\0"s to print decoded name correctly.
  - Support both LAPIC and I/O APIC correctly in apic_format_redir().
- Improve output of some bits using with snprintb()'s "F\B\1" and ":\V".
2019-06-14 09:23:42 +00:00
martin bebf19fa06 Use the generated "postinstall" in the objdir for postinstall-check
and postinstall-fix targets - we do not have a simple postinstall script
in the source tree any more.
2019-06-14 09:12:42 +00:00
skrll ff1bea7c14 Simplify the _ARM32_NEED_BUS_DMA_BOUNCE #ifdefs and rely on compiler
optimisation of the bouncing = false case.

Drain the write buf (aka DSB) in more cases

Catch all CPUs that support speculation. (thunderx isn't CPU_CORTEX)
2019-06-14 09:09:12 +00:00
roy df8c85e9d4 rtadvd: fix rdnss and dnssl lifetime assignment
Treat it the same as a prefix valid time as per the RFC.
This allows to set a zero value to remove the assignment from the node.
2019-06-14 09:06:45 +00:00
msaitoh 4e44f76f46 No functional change:
- Rename macros:
  - ICR, LVT and MSIDATA can share the bit definitions. Remove redundant
    definitions and use the common macros.
  - Consistently use LAPIC_LVT_ for all local vector table's macro names.
- Use __BITS().
- Add definition for TSC-deadline (LAPIC_LVT_TMM_TSCDLT).
2019-06-14 05:59:39 +00:00
mrg 0409251172 in nvme_attach() when creating the admin queue to probe the device info,
and also in nvme_dmamem_alloc(), allow as many DMA segment as would be
maximally needed for the size, rather than hard coding '2' for the form
and '1' for the latter.

now ld@nvme on i386 doesn't crash and i see at least 1.3GB/sec.
2019-06-14 04:48:34 +00:00
mrg 964f50a2a8 KASSERT() -> KASSERTMSG() message in _bus_dmamem_alloc_range(). 2019-06-14 03:35:31 +00:00
christos 8c46cfac74 make the script MI again (same across all archs) 2019-06-14 01:54:16 +00:00
christos 2f3cb43284 build dynamically the list of compat archsubdirs. 2019-06-14 01:06:33 +00:00
kamil 93c1a1e955 Enhance the GDB support for NetBSD
- Enable VFORK events
- Add syscall number for SCE/SCX events
- Add commented out posix_spawn(3) events
2019-06-14 01:00:52 +00:00
christos add5ce28c0 remove obsolete library files for all the "compat" subdirs not just amd64
and sparc64.
2019-06-13 21:20:05 +00:00
christos f55ccae981 make all lines look the same, and put one arch per line. 2019-06-13 21:17:54 +00:00
christos 6de0d49aae Fix aarch64 2019-06-13 20:54:04 +00:00
christos 83d91c816a Anchor the egrep search to avoid npf.conf matching pf.conf, but don't
anchor $ so that blacklistd machines blackist.
2019-06-13 20:53:33 +00:00
kamil 0937aecd4c Enable vfork(2) ATF tests in t_ptrace_wait*
The racing issues are gone in my local setup.
2019-06-13 20:26:06 +00:00
kamil ffb0dda64c Welcome to 8.99.45!
struct lwp includes now l_vforkwaiting.
2019-06-13 20:23:56 +00:00
kamil 6aa1291e37 Correct use-after-free issue in vfork(2)
In the previous behavior vforking parent was keeping pointer to a child
and checking whether it clears a PL_PPWAIT in its bitfield p_lflag. However
a child can go invalid between exec/exit event from child and waking up
vforked parent and this can cause invalid pointer read and in the worst
scenario kernel crash.

In the new behavior vforked child keeps a reference to vforked parent LWP
and sets a value l_vforkwaiting to false. This means that vforked child
can finish its work, exec/exit and be terminated and once parent will be
woken up it will read its own field whether its child is still blocking.

Add new field in struct lwp: l_vforkwaiting protected by proc_lock.
In future it should be refactored and all PL_PPWAIT users transformed to
l_vforkwaiting and next l_vforkwaiting probably transformed into a bit
field.

This is another attempt of fixing this bug after <rmind> from 2012 in
commit:

Author: rmind <rmind@NetBSD.org>
Date:   Sun Jul 22 22:40:18 2012 +0000

    fork1: fix use-after-free problems.  Addresses PR/46128 from Andrew Doran.
    Note: PL_PPWAIT should be fully replaced and modificaiton of l_pflag by
    other LWP is undesirable, but this is enough for netbsd-6.

The new version no longer performs unsafe access in l_lflag changing the
LP_VFORKWAIT bit.

Verified with ATF t_vfork and t_ptrace* tests and they are no longer
causing any issues in my local setup.

Fixes PR/46128 by Andrew Doran
2019-06-13 20:20:18 +00:00
christos 4e6ce3fb28 fix eager sed that broke xorg_glamor. 2019-06-13 19:37:36 +00:00
christos 18c3b41511 1. fix /etc/defaults/*.conf files
a. there are more rc.conf.append arch than only for x86, deal with them too.
    b. populate new /etc/defaults/rc.conf files
2. merge sed patterns
3. deal with empty exclude lists
2019-06-13 19:30:30 +00:00
martin d396d9d899 Disable debug output 2019-06-13 19:13:05 +00:00
maxv 2c0de29964 Fix the error handling in ehci_pci_attach(): if we got a USB<2 device we
won't call ehci_init(), so don't call ehci_detach() in ehci_pci_detach().

Fixes a panic seen on a recent Lenovo machine, which has an USB 1.1
controller; ehci_detach() was getting called while 'sc' had not been
completely initialized.
2019-06-13 17:33:34 +00:00
maxv ce2bdbd5cf Random style in ehci, also KM_SLEEP does not fail. 2019-06-13 17:20:25 +00:00
msaitoh 26275dcb72 Indent consistently. No functional change. 2019-06-13 15:10:27 +00:00
christos 6a99759cc6 Consistency in keyword order and contents:
debug*,xorg -> xorg,debug*
	xorg,debug*,*,obsolete	-> xorg,obsolete,*
2019-06-13 13:37:56 +00:00
jmcneill 9a376d13fb add ahcisata at pci 2019-06-13 13:35:41 +00:00
martin 9503563a02 When merging existing partitions into our install description, mark
them as to-be-mounted.
2019-06-13 12:44:20 +00:00
martin d98788035d Do not use dynamic size adjustments on install descriptions based
on existing partitions - we need to keep them fixed to not confuse
free space calculation.
2019-06-13 12:31:28 +00:00
uki 502a34f5ec Package naming to xbase md files 2019-06-13 12:01:20 +00:00
martin e11b8d25a8 In the new world order disks may come without any partitioning scheme
attached - so the user may have to select one.
2019-06-13 09:36:54 +00:00
msaitoh 8d1487086a Modify LAPIC_LVT_CMCI's comment to be consistent with other LVT's.
No functional change.
2019-06-13 07:44:27 +00:00
msaitoh 695a257f5f lapic_dump(): Print CMCI and thermal local vector table, too. 2019-06-13 07:42:45 +00:00
msaitoh 080cc7bce9 Whitespace fix. No functional change. 2019-06-13 07:28:17 +00:00
martin 16b1ab5abf Remove GPT and extended partitioning support on size restrained install
media.
2019-06-13 06:34:30 +00:00
martin 4f0c4b952e Remove GPT boot (not available for sparc64 yet) 2019-06-13 06:25:03 +00:00
martin 1f905b6121 Fix unitialized variable 2019-06-13 06:20:34 +00:00
msaitoh 733c55c1ce No functional change:
- Simplify some code for readability.
- KNF a little.
2019-06-13 05:19:40 +00:00
hkenken dc4cffcc76 Use armv6_start.S 2019-06-13 04:20:23 +00:00
mrg 0c9278a252 make this build and likely work with the new sysinst world order. 2019-06-13 03:07:24 +00:00
christos 075ea18915 Try to load swcrypto if we we did not find any software drivers. 2019-06-13 02:07:31 +00:00
christos cb94f55012 don't always panic when modunload crypto (int the pool destroy code, because
the pools are busy). XXX: this is still racy; we need to prevent creating
more sessions while destroying.
2019-06-13 02:02:45 +00:00
christos ed735e6546 make pool assertion messages consistent. 2019-06-13 01:13:12 +00:00
christos 82ef1005b5 handle $SOURCEMODE 2019-06-13 00:24:43 +00:00
kamil 293d38fbef Correct inversed condition for dying process in sigswitch()
If a process is exiting and it was not asked to relock proc_lock, do not
free the mutex as it causes panic. This bug is a timing bug as the faulty
condition is not deterministic and fires only somtimes, but is quickly
triggerable when executed in an infinite loop.

Detected and reported with LLDB test-suite by <mgorny>
2019-06-13 00:07:19 +00:00
pgoyette 960464d0fc Fix typo in comment (missing 'need') 2019-06-12 23:17:40 +00:00
jmcneill a896fd5520 Support configuring ranges where only prefetchable memory is defined 2019-06-12 22:47:03 +00:00