Commit Graph

8418 Commits

Author SHA1 Message Date
kamil
97a670fdb7 Remove tests/kernel/t_ptrace* from the tree
ptrace(2) tests have been moved to tests/lib/libc/sys

Sponsored by <The NetBSD Foundation>
2017-04-03 05:06:28 +00:00
kamil
24e714f435 Import ptrace(2) tests into appropriate directory tests/lib/libc/sys/
This is the correct directory documented in tests/README for such tests.

Discussed with <martin>

Sponsored by <The NetBSD Foundation>
2017-04-02 21:44:00 +00:00
kamil
cc4260326d Remove kernel/arch/{amd64,i386,x86} tests
These files were merged with kernel/t_ptrace_wait*

This removes MD test files.

Sponsored by <The NetBSD Foundation>
2017-04-02 01:49:51 +00:00
abhinav
9f9499a40c Add man page links for:
EV_SET to kqueue(2)
   getmntoptstr, getmntoptnum, freemntopts to getmntopts(3)

Reviewed by wiz@
2017-04-01 14:31:05 +00:00
ozaki-r
efe433dcf1 Add t_ping_opts 2017-03-31 09:40:15 +00:00
nat
e5d1b604d5 ABI of libossaudio did not change, so there was no need to bump the version
number.

Pointed out by mrg@
2017-03-24 11:46:52 +00:00
nat
dab5456581 Calculate GETISPACE/GETOSPACE properly.
Bump version.

Addresses PR kern/51999.
2017-03-23 15:50:48 +00:00
htodd
8291af55d0 Fix build. 2017-03-23 03:14:57 +00:00
jdolecek
1e4f0c4e55 add tests for the mount update from rw to rw+log, which used to case the panic
reported in PR kern/52056
2017-03-22 21:33:06 +00:00
nonaka
dd5512aafe iwm(4): update firmware to maintained core release.
firmware from https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware.git/tree/?id=4b9559fb0565f582a21a4070a81a3b6a7d77610b
2017-03-14 23:59:24 +00:00
christos
a045fb09a6 bump libsqlite3 2017-03-11 16:36:01 +00:00
christos
40820bb7ef new sqlite man pages 2017-03-11 16:34:34 +00:00
ozaki-r
ccc1fa9d34 Separate tests for learning table of bridge 2017-03-11 04:24:52 +00:00
martin
e20ae6cdb8 PR misc/52058: proc_trampoline became lwp_trampoline.
Sort.
2017-03-10 09:12:46 +00:00
tsutsui
9184265ae6 Add a driver for LUNA's front panel LCD. Ported from OpenBSD/luna88k.
Reviewed by enami@.  Tested by Naruaki Etomi and me.

A 68k LUNA with this driver will be demonstrated at AsiaBSDCon NetBSD booth
by Etomi-san, with LUNA-88K2 running OpenBSD/luna88k by Kenji Aoyama.
2017-03-09 14:05:58 +00:00
kre
b8b755e016 Do it properly. Thanks wiz. 2017-03-08 22:55:20 +00:00
kre
5d74cf5159 /usr/include/pmc.h is installed on i386 iff src/lib/libpmc/pmc_i386.c exists
(which it no longer does - only arm has a similar .c file so only arm
builds install pmc.h in /usr/include now)

This should unbreak the i386 build.
2017-03-08 21:56:05 +00:00
maxv
98b12bdd4b Mark as obsolete instead of removing (from Thomas Klausner). 2017-03-08 16:52:17 +00:00
maxv
a2375778e5 Remove i386 from libpmc; it has its own interface (sysarch), and we won't
maintain compatibility.

Verily, I cannot build a distribution now, so I'm committing this rather
blindly. This being said, it looks correct enough.
2017-03-08 15:53:00 +00:00
christos
c4a6b55a3c more lint tests 2017-03-06 21:03:56 +00:00
maya
1f03a55a41 fix set lists for pxaip(4). it's not a pmax man page. 2017-03-06 13:14:25 +00:00
christos
e48eb2f9af add new lint test 2017-03-06 12:01:47 +00:00
pgoyette
70c41dc1bb Add pxaip(4) man page to the sets list. 2017-03-06 09:06:23 +00:00
nakayama
f5eb5f1bab Fix previous.
- xevie.pc is for libXevie, not for libxcb-xevie.
- obsolete lint file.
2017-03-06 05:58:00 +00:00
htodd
3ffd56c5a6 Fix build for debug. 2017-03-05 22:24:29 +00:00
mrg
ba6321fe7f build fixes and updates for libxcb / xcb-proto 1.12. 2017-03-05 09:27:52 +00:00
mrg
d279eec2b8 install libsync.h. new in libdrm 2.4.75. 2017-03-04 23:24:50 +00:00
kre
f1844639ad tzdata2017a: new timezone America/Punta_Arenas 2017-03-01 03:02:48 +00:00
ozaki-r
9e51ae8639 Add tests for loopback interface 2017-02-28 03:32:11 +00:00
chs
4be80cf347 add glint driver debuginfo file. 2017-02-27 07:11:06 +00:00
macallan
f2149cbd66 add MIPS-specific clang header file 2017-02-23 19:51:46 +00:00
christos
c78ee482d4 add accept4 2017-02-23 15:18:36 +00:00
kamil
988eb7ed71 Introduce PT_GETDBREGS and PT_SETDBREGS in ptrace(2) on i386 and amd64
This interface is modeled after FreeBSD API with the usage.

This replaced previous watchpoint API. The previous one was introduced
recently in NetBSD-current and remove its spurs without any
backward-compatibility.

Design choices for Debug Register accessors:
 - exec() (TRAP_EXEC event) must remove debug registers from LWP
 - debug registers are only per-LWP, not per-process globally
 - debug registers must not be inherited after (v)forking a process
 - debug registers must not be inherited after forking a thread
 - a debugger is responsible to set global watchpoints/breakpoints with the
   debug registers, to achieve this PTRACE_LWP_CREATE/PTRACE_LWP_EXIT event
   monitoring function is designed to be used
 - debug register traps must generate SIGTRAP with si_code TRAP_DBREG
 - debugger is responsible to retrieve debug register state to distinguish
   the exact debug register trap (DR6 is Status Register on x86)
 - kernel must not remove debug register traps after triggering a trap event
   a debugger is responsible to detach this trap with appropriate PT_SETDBREGS
   call (DR7 is Control Register on x86)
 - debug registers must not be exposed in mcontext
 - userland must not be allowed to set a trap on the kernel

Implementation notes on i386 and amd64:
 - the initial state of debug register is retrieved on boot and this value is
   stored in a local copy (initdbregs), this value is used to initialize dbreg
   context after PT_GETDBREGS
 - struct dbregs is stored in pcb as a pointer and by default not initialized
 - reserved registers (DR4-DR5, DR9-DR15) are ignored

Further ideas:
 - restrict this interface with securelevel

Tested on real hardware i386 (Intel Pentium IV) and amd64 (Intel i7).

This commit enables 390 debug register ATF tests in kernel/arch/x86.
All tests are passing.

This commit does not cover netbsd32 compat code. Currently other interface
PT_GET_SIGINFO/PT_SET_SIGINFO is required in netbsd32 compat code in order to
validate reliably PT_GETDBREGS/PT_SETDBREGS.

This implementation does not cover FreeBSD specific defines in their
<x86/reg.h>: DBREG_DR7_LOCAL_ENABLE, DBREG_DR7_GLOBAL_ENABLE, DBREG_DR7_LEN_1
etc. These values tend to be reinvented by each tracer on its own. GNU
Debugger (GDB) works with NetBSD debug registers after adding this patch:

--- gdb/amd64bsd-nat.c.orig	2016-02-10 03:19:39.000000000 +0000
+++ gdb/amd64bsd-nat.c
@@ -167,6 +167,10 @@ amd64bsd_target (void)

 #ifdef HAVE_PT_GETDBREGS

+#ifndef DBREG_DRX
+#define	DBREG_DRX(d,x)	((d)->dr[(x)])
+#endif
+
 static unsigned long
 amd64bsd_dr_get (ptid_t ptid, int regnum)
 {


Another reason to stop introducing unpopular defines covering machine
specific register macros is that these value varies across generations of
the same CPU family.

GDB demo:
  (gdb) c
  Continuing.

  Watchpoint 2: traceme

  Old value = 0
  New value = 16
  main (argc=1, argv=0x7f7fff79fe30) at test.c:8
  8               printf("traceme=%d\n", traceme);

(Currently the GDB interface is not reliable due to NetBSD support bugs)

Sponsored by <The NetBSD Foundation>
2017-02-23 03:34:22 +00:00
scole
b7d844764d Add fenv.h for ia64, imported from FreeBSD, compile tested only. 2017-02-23 02:03:27 +00:00
msaitoh
b55e058419 Add links for kmem_intr_alloc.9, kmem_intr_free.9 and kmem_intr_zalloc.9. 2017-02-22 09:20:39 +00:00
kamil
61c1b37132 Fix build of !x86 ports
Mark debug/usr/tests/kernel/arch/x86 as MI directory.

Sponsored by <The NetBSD Foundation>
2017-02-22 09:09:49 +00:00
kamil
b4bf2c1aa5 Add kernel/arch/x86 ATF tests for CPU Debug Registers for amd64 and i386
This moves kernel/arch/amd64 tests, the ones to be shared between amd64 and
i386, into kernel/arch/x86. This covers all Debug Register tests.

kernel/arch/amd64 is reduced to regs1
kernel/arch/i386 is reduced to regs1

kernel/arch/x86 tests:
 - dbregs_print
 - dbregs_preserve_dr0
 - dbregs_preserve_dr1
 - dbregs_preserve_dr2
 - dbregs_preserve_dr3
 - dbregs_preserve_dr0_yield
 - dbregs_preserve_dr1_yield
 - dbregs_preserve_dr2_yield
 - dbregs_preserve_dr3_yield
 - dbregs_preserve_dr0_continued
 - dbregs_preserve_dr1_continued
 - dbregs_preserve_dr2_continued
 - dbregs_preserve_dr3_continued
 - 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
 - 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
 - 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
 - dbregs_dr0_trap_code
 - dbregs_dr1_trap_code
 - dbregs_dr2_trap_code
 - dbregs_dr3_trap_code
 - dbregs_dr0_dont_inherit_lwp
 - dbregs_dr1_dont_inherit_lwp
 - dbregs_dr2_dont_inherit_lwp
 - dbregs_dr3_dont_inherit_lwp
 - dbregs_dr6_dont_inherit_lwp
 - dbregs_dr7_dont_inherit_lwp
 - dbregs_dr0_dont_inherit_execve
 - dbregs_dr1_dont_inherit_execve
 - dbregs_dr2_dont_inherit_execve
 - dbregs_dr3_dont_inherit_execve
 - dbregs_dr6_dont_inherit_execve
 - dbregs_dr7_dont_inherit_execve

Sponsored by <The NetBSD Foundation>
2017-02-22 01:07:13 +00:00
kre
67cef682dd PR bin/50934
Add a test program for the bug described in this PR.
This is the first pkill/pgrep/prenice test (more would be good!)

This test has been confirmed to work once the bug described in the PR
has been fixed, so the test is not marked "expected to fail" even
though initially that is what should happen.

Note: the test cana also fail if the system running the tests happens
to be running processes with names that match the patterns searched for
by the test, other than the test program itself.  This is expected to be
unlikely.
2017-02-21 10:40:30 +00:00
kamil
8b8807ec7c Remove tests/lib/libc/gen/exect paths from mtree and sets
The exect tests have been removed from the distribution.

Requested by Thomas Klausner.
2017-02-20 03:14:42 +00:00
knakahara
abf7aa227e add l2tp(4) basic test. 2017-02-16 08:44:47 +00:00
knakahara
7881c6ebb7 l2tp(4) support rump. 2017-02-16 08:39:10 +00:00
knakahara
f8f075dfc2 add man for l2tp(4). 2017-02-16 08:32:21 +00:00
knakahara
939a415a7d add l2tp(4) L2TPv3 interface.
originally implemented by IIJ SEIL team.
2017-02-16 08:12:43 +00:00
christos
7d343bc869 Add postfix .so dir 2017-02-14 01:12:02 +00:00
snj
ae59a55318 catch up with 2012 xkeyboard-config and stop generating *.dir 2017-02-13 06:11:01 +00:00
snj
c370717c80 prune /usr/X11R7/lib/X11/xkb/torture, a ghost from the days of xkbdata 2017-02-13 04:23:19 +00:00
snj
7259ddf83f update for xkeyboard-config 2.20 2017-02-13 02:34:11 +00:00
nakayama
6d771be8e7 Redo rev.1.718, remove trash in line end. 2017-02-11 18:47:36 +00:00
christos
c2a172a450 bump libmagic 2017-02-10 18:11:56 +00:00
christos
e52216c27e put back exect directory; we try to remove it before the files inside it and
we fail.
2017-02-09 13:59:02 +00:00