258347 Commits

Author SHA1 Message Date
roy
bdaa820626 Sync 2018-05-02 22:08:45 +00:00
macallan
0606122c85 don't pull in pic_u3_ht with uninorth - it's part of ibmcpc 2018-05-02 22:07:37 +00:00
roy
d1cb50ca95 Import dhcpcd-7.0.4 with the following changes:
* Routing: Fix case when cloning route changes but needs to be replaced
 * DHCP6: Transpose DHCP userclass option into DHCP6
 * DHCP6: Fix sending custom vendor class option
 * Auth: Allow zero value replay detection data
 * Auth: Allow different tokens for send and receive
 * ND6: Warn if router lifetime is set to zero
 * DHCP6: Softwire Address and Port-Mapped Clients, RFC7598
2018-05-02 22:06:41 +00:00
pgoyette
d54998bbfe Minor grammatical correction (don't end a sentence/phrase with a
preposition).
2018-05-02 21:43:38 +00:00
jmcneill
7a670be542 Add sunxinmi 2018-05-02 21:20:58 +00:00
jmcneill
bf222c0dcd Add driver for Allwinner NMI / R_INTC interrupt controller. 2018-05-02 21:20:20 +00:00
kamil
e308425ef5 Add new ATF Undefined Behavior Sanitizer tests
Add new cc and c++ tests to check whether UBSan works.
These tests are prepared for GCC (in base) and Clang (with external patches).

Enable these tests for all ports by default, just verify whether we are
using GCC/Clang or a compatible compiler.

Add five equivalent C and C++ tests:
 - Integer addition overflow
 - Integer divide by zero
 - Integer negation overflow
 - Integer subtraction overflow
 - VLA out of bounds

All tests pass on NetBSD/amd64.

Patch submitted by <Harry Pantazis>
Minor cleanup by <myself>
2018-05-02 18:46:05 +00:00
christos
3e4df0d384 Explain PROT_MPROTECT better, add references to mremap(2), document the
unimplemented flags, documented the alignment pre-defined constants.
2018-05-02 16:00:20 +00:00
christos
652623d133 Add EXAMPLE and ERRORS section. 2018-05-02 15:25:13 +00:00
martin
0cfcd47b57 Use crypto code from openssl. Fixes PR bin/53250, suggested by Christos. 2018-05-02 14:43:59 +00:00
christos
f1096f3c6c initialize addr to 0. 2018-05-02 12:12:13 +00:00
jmcneill
608a3575da Add sun50ih6rccu 2018-05-02 11:02:42 +00:00
jmcneill
e332c42270 Add driver for Allwinner H6 PRCM CCU. 2018-05-02 11:02:21 +00:00
jmcneill
fcd83095a2 add pcf8563rtc 2018-05-02 10:09:15 +00:00
jmcneill
ffef5d5343 Updated Allwinner H6 dts from https://github.com/Icenowy/linux/tree/h6-init 2018-05-02 10:06:56 +00:00
jmcneill
e2148cddf4 "Root Hub" -> "root hub" for consistency with other HC drivers 2018-05-02 09:55:22 +00:00
abhinav
b36e4c8fbf Add '*' and '[' to the list of characters which need escaping during autocompletion 2018-05-02 08:45:03 +00:00
phx
7deed15b0c Fixed non-critical typo in tlbdsmiss: %r8 -> 8. 2018-05-02 08:24:40 +00:00
pgoyette
f1de59e03f Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
pgoyette
653cac4418 Synch with HEAD 2018-05-02 07:19:58 +00:00
jmcneill
a0d2865cab arm: Add support for Allwinner H6 SoC. 2018-05-02 00:14:56 +00:00
sevan
89bb3c6008 Unbreak script for Lua 5.3.
This change breaks support for older releases of Lua.
2018-05-02 00:03:27 +00:00
jmcneill
e333b675a5 Add sunxiusb3phy 2018-05-02 00:02:15 +00:00
jmcneill
848762dd72 Add sunxiusb3phy and xhci 2018-05-02 00:02:06 +00:00
sevan
f11f7afd13 Pass the expected httpd instance when calling set_pref()
process_request() only takes a single argument.
2018-05-02 00:00:30 +00:00
jmcneill
e2b0aa1634 Add driver for Allwinner USB3 PHY. 2018-05-01 23:59:42 +00:00
jmcneill
fd706ab6bf Add DesignWare DWC3 XHCI driver. 2018-05-01 23:59:15 +00:00
sevan
babdc61a7b Enable checking arguments for validity.
Remove disabled code.
Fix function parameters.
Add support for Lua 5.3
2018-05-01 23:51:53 +00:00
kamil
ae5fc8c768 Register a missing file in the distribution sets
Add ./usr/share/man/cat3lua/netpgp.0 for cat-pages.
2018-05-01 23:41:51 +00:00
kre
925396b4ac Change return type of pm_lvm_find() from int to void.
It always returns (returned) 0 which was ignored by the one call.
2018-05-01 21:28:39 +00:00
kre
c45b0e7cfe PR install/53220
Don't call pm_lvm_find() unless have_lvm

pm_lvm_find() assumes that data structs (lvms) has been allocated
for it to use, which doesn't happen if !have_lvm

This avoids a sysinst core dump when the lvm command is not installed
(such as when installing from the embedded RAM root filesys in an
INSTALL kernel.)
2018-05-01 21:26:41 +00:00
jmcneill
02e565c617 Explicitly select external PHY on H6 2018-05-01 21:18:23 +00:00
kre
1c825c2c91 Spello. (it is "existence").
ispell also says that we should s/parseable/parsable/ but I'm
not sure about that one, so I left it.

I also left a correct spelling that no-one has bothered to mangle!
2018-05-01 21:16:02 +00:00
wiz
64f2452046 Bump date for new EXIT STATUS section. 2018-05-01 21:04:01 +00:00
wiz
32e2530e6d Sort sections. 2018-05-01 21:03:37 +00:00
christos
ed4b3b9b47 more NOMAN= removal. 2018-05-01 20:15:11 +00:00
jmcneill
71c01ead81 Enable Allwinner H6 support 2018-05-01 20:06:13 +00:00
christos
bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
jmcneill
86f4652d7f Add support for Allwinner H6 CCU. 2018-05-01 19:53:14 +00:00
christos
7351a5d259 Add the netpgp lua bindings so that the compat build can build them. 2018-05-01 19:50:34 +00:00
christos
1c314fb9c7 Apply the same fixes from the regular tools dir:
PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.
2. Centralize NOMAN handling.

XXX: pullup-8
2018-05-01 17:42:00 +00:00
kamil
385d9c8955 Implement PTRACE_VFORK
Add support for tracing vfork(2) events in the context of ptrace(2).

This API covers other frontends to fork1(9) like posix_spawn(2) or clone(2),
if they cause parent to wait for exec(2) or exit(2) of the child.

Changes:
 - Add new argument to sigswitch() determining whether we need to acquire
   the proc_lock or whether it's already held.
 - Refactor fork1(9) for fork(2) and vfork(2)-like events.
   Call sigswitch() from fork(1) for forking or vforking parent, instead of
   emitting kpsignal(9). We need to emit the signal and suspend the parent,
   returning to user and relock proc_lock.
 - Add missing prototype for proc_stop_done() in kern_sig.c.
 - Make sigswitch a public function accessible from other kernel code
   including <sys/signalvar.h>.
 - Remove an entry about unimplemented PTRACE_VFORK in the ptrace(2) man page.
 - Permin PTRACE_VFORK in the ptrace(2) frontend for userland.
 - Remove expected failure for unimplemented PTRACE_VFORK tests in the ATF
   ptrace(2) test-suite.
 - Relax signal routing constraints under a debugger for a vfork(2)ed child.
   This intended to protect from signaling a parent of a vfork(2)ed child that
   called PT_TRACE_ME, but wrongly misrouted other signals in vfork(2)
   use-cases.

Add XXX comments about still existing problems and future enhancements:
 - correct vfork(2) + PT_TRACE_ME handling.
 - fork1(2) handling of scenarios when a process is collected in valid but
   rare cases.

All ATF ptrace(2) fork[1-8] and vfork[1-8] tests pass.

Fix PR kern/51630 by Kamil Rytarowski (myself).

Sponsored by <The NetBSD Foundation>
2018-05-01 16:37:23 +00:00
maya
eddea7af1c GC private 802.11 rateset declarations, use the standard ones.
Build tested only.
2018-05-01 16:18:13 +00:00
maya
7f9869f85f Fix ALL configs following MPVERBOSE becoming a defparam
XXX i386 ALL kernel build is failing
2018-05-01 16:16:05 +00:00
kamil
b9541a3a67 Add additional hardening in PT_TRACE_ME and PT_ATTACH
Prohibit:
 - calling PT_TRACE_ME by initproc (PID1),
 - calling PT_ATTACH by initproc (PID1).

PID1 and its parent cannot become a tracer.

Sponsored by <The NetBSD Foundation>
2018-05-01 14:09:53 +00:00
kamil
ff43c343b5 Improve the proc_stoptrace() function
proc_stoptrace() is dedicated for emitting a syscall trap for a debugger,
either on entry or exit of the system function routine.

Changes:
 - Change an if() branch of an invalid condition of being traced by
   initproc (PID1) to KASSERT(9).
 - Assert that the current process has set appropriate flags (PSL_TRACED
   and PSL_SYSCALL).
 - Use ktrpoint(KTR_PSIG) and ktrpsig()/e_ktrpsig() in order to register
   the emitted signal for the ktrace(1) event debugging.

Example of the new output from kdump(1) for the syscall debugger traps,
containing SIGTRAP notification with TRAP_SCE and TRAP_SCX (around
the getpid(2) call).

$ kdump /tmp/1.dat.qemu |grep 663
   588      1 t_ptrace_waitpid RET   fork 663/0x297
   663      1 t_ptrace_waitpid EMUL  "netbsd"
   663      1 t_ptrace_waitpid RET   fork 0
   663      1 t_ptrace_waitpid CALL  ptrace(PT_TRACE_ME,0,0,0)
   663      1 t_ptrace_waitpid RET   ptrace 0
   663      1 t_ptrace_waitpid CALL  _lwp_self
   663      1 t_ptrace_waitpid RET   _lwp_self 1
   663      1 t_ptrace_waitpid CALL  _lwp_kill(1,0x11)
   663      1 t_ptrace_waitpid RET   _lwp_kill 0
   588      1 t_ptrace_waitpid RET   __wait450 663/0x297
   663      1 t_ptrace_waitpid CALL  getpid
   588      1 t_ptrace_waitpid RET   __wait450 663/0x297
   663      1 t_ptrace_waitpid PSIG  SIGTRAP SIG_DFL: code=TRAP_SCE, addr=0x0, trap=0)
   663      1 t_ptrace_waitpid RET   getpid 663/0x297, 588/0x24c
   588      1 t_ptrace_waitpid RET   __wait450 663/0x297
   663      1 t_ptrace_waitpid PSIG  SIGTRAP SIG_DFL: code=TRAP_SCX, addr=0x0, trap=0)
   663      1 t_ptrace_waitpid CALL  exit(5)
   588      1 t_ptrace_waitpid RET   __wait450 663/0x297

Sponsored by <The NetBSD Foundation>
2018-05-01 13:48:38 +00:00
christos
c0d10d8e3a Centralize NOMAN handling. 2018-05-01 12:38:39 +00:00
pgoyette
1691874436 Make MPVERBOSE a defparam rather than defflag. It has multiple
non-zero usages within mpacpi.c
2018-05-01 10:15:27 +00:00
ryo
9a660ec9ae fix define of CPU IDs
* fix incorrect CPU_ID of APM/APPLE
* add CPU_ID of SAMSUNG
* fix typo about BROADCOM
2018-05-01 10:10:31 +00:00
uwe
a04344bae9 Fix missed s/vnconfig/vndconfig/ in an example. 2018-05-01 09:03:49 +00:00