248842 Commits

Author SHA1 Message Date
ozaki-r
b7100b390b Reinit a pslist entry before inserting it to a pslist again
Fix PR kern/51984
Tested by nonaka@
2017-02-20 03:08:38 +00:00
kamil
6a2fda314b Add new tests dbregs_dr[0123]_trap_code in arch/amd64
Add new tests:
 - dbregs_dr0_trap_code
 - dbregs_dr1_trap_code
 - dbregs_dr2_trap_code
 - dbregs_dr3_trap_code

This is the final set of tests for trap types that are supposed to be
supported by all amd64 CPUs.

Traps for code (instruction) execution must be set to 1 byte, otherwise
they are undefined. x86 code traps must point to the first byte of an
instruction.

Sponsored by <The NetBSD Foundation>
2017-02-20 02:56:03 +00:00
khorben
b4c0f63794 Remove a useless loop around getpass()
According to getpass(3), this library function cannot return NULL.
Verified with a source code inspection.
2017-02-20 01:38:28 +00:00
kamil
29b683511e Add new tests dbregs_dr*_trap_variable_readwrite_read_*byte* in arch/amd64
Add new tests:
 - dbregs_dr0_trap_variable_readwrite_read_byte
 - dbregs_dr1_trap_variable_readwrite_read_byte
 - dbregs_dr2_trap_variable_readwrite_read_byte
 - dbregs_dr3_trap_variable_readwrite_read_byte
 - dbregs_dr0_trap_variable_readwrite_read_2bytes
 - dbregs_dr1_trap_variable_readwrite_read_2bytes
 - dbregs_dr2_trap_variable_readwrite_read_2bytes
 - dbregs_dr3_trap_variable_readwrite_read_2bytes
 - dbregs_dr0_trap_variable_readwrite_read_4bytes
 - dbregs_dr1_trap_variable_readwrite_read_4bytes
 - dbregs_dr2_trap_variable_readwrite_read_4bytes
 - dbregs_dr3_trap_variable_readwrite_read_4bytes

Sponsored by <The NetBSD Foundation>
2017-02-20 01:34:53 +00:00
khorben
b07e8011d2 Remove a useless loop around getpass()
According to getpass(3), this library function cannot return NULL.
Verified with a source code inspection.
2017-02-20 01:33:28 +00:00
kamil
6b2b7082a4 Add new tests dbregs_dr*_trap_variable_readwrite_write_*byte* in arch/amd64
Add new tests:
 - dbregs_dr0_trap_variable_readwrite_write_byte
 - dbregs_dr1_trap_variable_readwrite_write_byte
 - dbregs_dr2_trap_variable_readwrite_write_byte
 - dbregs_dr3_trap_variable_readwrite_write_byte
 - dbregs_dr0_trap_variable_readwrite_write_2bytes
 - dbregs_dr1_trap_variable_readwrite_write_2bytes
 - dbregs_dr2_trap_variable_readwrite_write_2bytes
 - dbregs_dr3_trap_variable_readwrite_write_2bytes
 - dbregs_dr0_trap_variable_readwrite_write_4bytes
 - dbregs_dr1_trap_variable_readwrite_write_4bytes
 - dbregs_dr2_trap_variable_readwrite_write_4bytes
 - dbregs_dr3_trap_variable_readwrite_write_4bytes

Sponsored by <The NetBSD Foundation>
2017-02-20 01:21:47 +00:00
khorben
86dea4ede5 Do not crash when listing keys without a keyring
To test: (with an empty ~/.gnupg)
$ netpgpkeys --import-key /dev/null

Submitted on tech-pkg@ as:
[PATCH 01/11] Do not crash when listing keys without a keyring

Different patch for the same issue.
2017-02-20 00:51:08 +00:00
pgoyette
72c3d8d573 Add /etc/rc.d/unbound per christos@
XXX should we move the /etc/sasl/ entries to their proper place in
XXX sort order?  as of now they're sitting in the middle of /etc/rc.d !
2017-02-20 00:33:53 +00:00
pgoyette
2b301e390b Mark the entry for /etc/rc.d/nsd optional - it's not included in every
system.
2017-02-20 00:29:37 +00:00
kamil
ef053d8fe1 Extend dbregs_dr*_trap_variable tests to 1-2-4 byte traps in arch/amd64
Replace the following tests:
 - dbregs_dr0_trap_variable
 - dbregs_dr1_trap_variable
 - dbregs_dr2_trap_variable
 - dbregs_dr3_trap_variable

With new ones:
 - dbregs_dr0_trap_variable_writeonly_byte
 - dbregs_dr1_trap_variable_writeonly_byte
 - dbregs_dr2_trap_variable_writeonly_byte
 - dbregs_dr3_trap_variable_writeonly_byte
 - dbregs_dr0_trap_variable_writeonly_2bytes
 - dbregs_dr1_trap_variable_writeonly_2bytes
 - dbregs_dr2_trap_variable_writeonly_2bytes
 - dbregs_dr3_trap_variable_writeonly_2bytes
 - dbregs_dr0_trap_variable_writeonly_4bytes
 - dbregs_dr1_trap_variable_writeonly_4bytes
 - dbregs_dr2_trap_variable_writeonly_4bytes
 - dbregs_dr3_trap_variable_writeonly_4bytes

All tests pass with my local implementation of debug registers. Once the
interface will be verified, I will prepare it for commit to HEAD.

Sponsored by <The NetBSD Foundation>
2017-02-19 23:58:30 +00:00
kamil
ca883d3170 Add checks for si_code in dbregs_dr[0123]_trap_variable in ATF arch/amd64
Validate that debug register traps generate appropriate SIGTRAP signal with
TRAP_DBREG property in si_code.

Sponsored by <The NetBSD Foundation>
2017-02-19 22:09:29 +00:00
christos
b16498773e Don't reassemble ipv6 fragments, instead treat the first fragment as a regular
packet (subject to filtering rules), and pass subsequent fragments in the
same group unconditionally.
2017-02-19 20:27:22 +00:00
palle
1253c8ab5f sun4v: Update TODO with the status of the sun4v work so far 2017-02-19 18:30:05 +00:00
palle
13a84fab9f sun4v: Note that the code recently added to locore.s rft_user may not be enough to make things work properly 2017-02-19 18:27:12 +00:00
palle
3a2a7cbdd8 sun4v: rft_user needs special handling (a manual fill) since the restore instruction may cause the number of trap levels to exceed the maximum for sun4v - inspired by code from the the openbsd rft_user code path - verified using qemu for both sun4u and sun4v 2017-02-19 18:25:45 +00:00
palle
89d8ea40a5 sun4v: Note that prom_getprop() leaks memory in vbus.c 2017-02-19 18:07:12 +00:00
jakllsch
778ff6f5ae Filter configuration space at and above PCI_CONF_SIZE, instead of KASSERTing. 2017-02-19 14:34:40 +00:00
christos
290ad1f61f typo 2017-02-19 13:58:42 +00:00
wiz
0b0b7ebbf7 Sort. 2017-02-19 11:54:59 +00:00
wiz
58bb7552a1 Add some articles. 2017-02-19 11:16:45 +00:00
rin
fbdb0b50ac Add DISKLABEL_EI. 2017-02-19 07:48:07 +00:00
rin
913d426efd PR kern/51208
Add DISKLABEL_EI option (and also FFS_EI if missing), commented out except for
ALL on amd64 and i386.
2017-02-19 07:46:59 +00:00
rin
ede747a0c4 PR kern/51208
Add DISKLABEL_EI (``Endian-Independent'' disklabel) kernel option to machines
that support Master Boot Record (MBR)
2017-02-19 07:43:42 +00:00
christos
15b3afa8c3 forgot to commit this (new prototype) 2017-02-19 02:11:19 +00:00
christos
a5d49e2a90 provide a copy function used for logging that does not lock, but can return
trash.
2017-02-18 23:27:32 +00:00
wiz
370b757da0 Fix xrefs, sort. 2017-02-18 22:39:00 +00:00
christos
afddf109f4 remove extra / 2017-02-18 21:51:36 +00:00
wiz
99f13c162d Fix xrefs, sort. 2017-02-18 21:39:53 +00:00
christos
33768028cc l2tp is a module 2017-02-18 19:28:44 +00:00
mlelstv
c910290e61 npf_ifmap_getname requires the config to be locked. For now, just prevent the
crash.
2017-02-18 18:08:16 +00:00
maxv
03b4ea3bfc KNF, and make it less i386-specific. 2017-02-18 16:48:38 +00:00
maxv
f02b31de26 Add the AMD 10h family PMC values. Some values depend on the CPU revision,
they are commented out. Several other values are common with K7, we could
merge them later.

This family of CPUs has a 12bit event selector, contrary to K7 (8bit). The
thing is, i386's PMC interface takes as argument a uint8_t from userland,
so these counters are not accessible (yet).
2017-02-18 16:15:51 +00:00
maxv
0dd46217ea Fix a bug I introduced yesterday. The arguments are 8-bit ints, so the unit
gets truncated. By luck, the counters I was testing could accept a null
unit.
2017-02-18 15:56:03 +00:00
christos
727a2265b0 Establish a softint for legacy, otherwise BOOM! 2017-02-18 14:48:43 +00:00
maxv
bae2aa765e PERFCTRS -> PMC (not implemented anyway) 2017-02-18 14:43:34 +00:00
maxv
69776f0910 There is currently an ugly mix between the PERFCTRS subsystem (MI), and
i386's own PMC interface (MD). Stop using PERFCTRS and use PMC instead.
While here remove some unused flags, which are wrong on the latest CPUs
anyway.
2017-02-18 14:36:32 +00:00
flxd
4c571cc5d8 Let vlpci attach instead of ofbus. OK jakllsch@ 2017-02-18 13:56:29 +00:00
nonaka
bc3efd94ca zlib-1.2.11 is out. 2017-02-18 07:20:56 +00:00
nonaka
c92e6a079b add gnu-efi. 2017-02-18 07:20:21 +00:00
riastradh
2a63a35f64 Suggest `service xyz start/stop/...' instead of /etc/rc.d/xyz.
From cfkoch.
2017-02-18 05:38:40 +00:00
rin
025d29d5ce Factorize kern/subr_disk_mbr.c into files.evbppc, and make EVBPPC_HAS_MBR
more like a normal option. No functional changes.
2017-02-18 05:08:47 +00:00
kamil
59fed38a43 Synchronize struct dbreg with FreeBSD - rename field member .dbregs to .dr
Currently this code is disabled in HEAD and the dbreg struct has to be
committed first in order to be used. Before enabling it I'm working on
reducing needless differences with FreeBSD and Linux.

Sponsored by <The NetBSD Foundation>
2017-02-18 04:30:34 +00:00
kamil
38578ed3f8 Fix dbregs_dr[0123]_trap_variable in arch/amd64/t_ptrace_wait*
Add missing PT_CONTINUE between two wait(2)-like calls.

Sponsored by <The NetBSD Foundation>
2017-02-18 02:28:21 +00:00
chs
006dc29ca6 obey the executable's ELF alignment constraints for PIE.
this fixes gdb of PIE binaries on mac68k (and other platforms
which use an ELF alignment that is larger than PAGE_SIZE).
2017-02-18 01:29:09 +00:00
christos
dae91fde36 more debugging from Kurt Lidl 2017-02-18 00:26:16 +00:00
christos
53476e5361 Fix cross references 2017-02-17 22:31:08 +00:00
christos
3af2acdca3 fix crossrefs 2017-02-17 22:30:27 +00:00
christos
633f3639db fix cross references 2017-02-17 22:19:00 +00:00
christos
7b91b98467 Fix .Xr 2017-02-17 22:10:47 +00:00
kre
cbd8e77b18 Copy maxv's files.i386 change to files.xen ... this might fix the i386
xen kernel builds (I am doing a test build in parallel with this commit,
this shouldn't make things worse ... I will make further changes if
needed after my build finishes.)

Note: I am not currently in a position to test a Xen3 DomU kernel
(let alone Dom0) so I have no way of knowing whether a Xen kernel
with PMC included will actually work correctly or not.

If this results in a system that builds, I'd appreciate it if someone
who can test the Xen3_DOMU kernel could do so.
2017-02-17 21:51:47 +00:00