Commit Graph

246334 Commits

Author SHA1 Message Date
kre
e6f7463f19 Note update to tzdata2016j 2016-11-24 05:50:15 +00:00
kre
eb5267fa9a Added TZ zone files Europe/Saratov and Asia/Aqtau for tzdata2016j 2016-11-24 05:47:33 +00:00
kre
0c2eb47280 Merge tzdata2016j 2016-11-24 05:43:58 +00:00
kre
0045e2f1d7 Import tzdata2016j from ftp://ftp.iana.org/tz/releases/tzdata2016j.tar.gz
Summary of changes in tzdata2016j (2016-11-22 23:17:13 -0800):

    Saratov, Russia switches from +03 to +04 on 2016-12-04 at 02:00.
    This creates a new zone Europe/Saratov.

    New zone Asia/Atyrau for Atyrau Region, Kazakhstan, is like
    Asia/Aqtau except it switched from +04/+05 to +05/+06 in spring
    1999, not fall 1994.

    Asia/Gaza and Asia/Hebron now use "EEST", not "EET", to denote
    summer time before 1948.  The old use of "EET" was a typo.
2016-11-24 05:43:10 +00:00
kamil
d054022201 Purge dummy Makefiles 2016-11-24 04:20:10 +00:00
kamil
3bd0170534 Drop unwanted printf(3) call in regs5 in t_ptrace
This call is reserved for other test.

Sponsored by <The NetBSD Foundation>
2016-11-24 04:11:16 +00:00
kamil
07f3b8e854 Add regs[12345] in t_ptrace_wait{,3,4,6,id,pid}
Add new ATF tests for the general purpose register calls.

These tests require platforms to export all of the following macros:
 - PT_GETREGS
 - PT_SETREGS
 - PTRACE_REG_PC
 - PTRACE_REG_SET_PC
 - PTRACE_REG_SP
 - PTRACE_REG_INTRV

This has been done for the sake of C preprocessor magic simplicity.
There are ports without covering all of the above symbols -- skip them.

Added tests
===========

regs1:
    Verify plain PT_GETREGS call without further steps

regs2:
    Verify plain PT_GETREGS call and retrieve PC

regs3:
    Verify plain PT_GETREGS call and retrieve SP

regs4:
    Verify plain PT_GETREGS call and retrieve INTRV

regs5:
    Verify PT_GETREGS and PT_SETREGS calls without changing regs

Sponsored by <The NetBSD Foundation>
2016-11-24 04:08:37 +00:00
hkenken
72d7c6b3de Modified imx6_pll_power() arguments. 2016-11-24 03:59:36 +00:00
dholland
c0590f9e77 Turn off the PR 49140 logging, because it itself makes the test fail.
As usual, ATF is actively interfering with test debugging. Almost all
runs in the past few days have failed this test with "stdout not
empty". In one run it timed out:
http://releng.netbsd.org/b5reports/i386/build/2016.11.22.06.51.14/test.html
but in this case ATF helpfully suppressed the log data.

Maybe if someone can figure out how to make the test hang reliably
then they can turn the logging on again and run it outside of ATF to
see what's happening.

In the meantime this problem is not likely to get fixed until we have
a less obstructive testing framework.
2016-11-24 00:37:29 +00:00
kamil
eedb67d83d Remove duplicated PT_DUMPCORE description in machine-specific calls section
This function is part of the general ptrace(2) interface.

Sponsored by <The NetBSD Foundation>
2016-11-24 00:12:52 +00:00
dholland
950f040fa2 Fix "sidewaysintpr", the thing that prints interface statistics in a
loop, to use signals properly. There are two copies of this code; one
uses kvm and the other uses sysctls. One copy had been updated to use
sigset_t and sigsuspend; the other was using vintage sigpause(). Sync
up the code so both use sigpause. Also, use sig_atomic_t, and block
SIGALRM when not waiting for it to avoid a small and unlikely but real
race.

Since the non-modernized copy of the code *had* for some been
modernized to use setitimer instead of just alarm(), propagate that
change to the other copy.

These copies could share more logic than they do.
2016-11-24 00:05:13 +00:00
kamil
6f188f1097 Add {,io_}read_i[1234] in t_ptrace_wait{,3,4,6,id,pid}
New tests are direct counterparts to the existing ones {,io_}read_d[1234].

PT_READ_D and PIOD_READ_D (from PT_IO) are traditionally used to transfer
data segment. New tests make use of PT_READ_I and PIOD_READ_I (from PT_IO)
in order to copy text segment from traced process.

    Traditionally, ptrace() has
    allowed for machines with distinct address spaces for
    instruction and data, which is why there are two requests:
    conceptually, PT_READ_I reads from the instruction space
    and PT_READ_D reads from the data space.  In the current
    NetBSD implementation, these two requests are completely
    identical.

    --- ptrace(2)

New tests follow the traditional convention and copy only instructions from
dummy functions.

There are no new tests copying data to .text regions from the traced
process, as this is violating mprotect restrictions. This limitation may be
addressed in future, as there are dedicated sysctl(7) handlers for
debuggers (currently mainly gdb(1)).

Tests verifying identical behavior of PT_READ_I and PT_READ_D are not
planned.

Sponsored by <The NetBSD Foundation>
2016-11-23 23:30:50 +00:00
macallan
8947b542b7 support WSDISPLAYIO_GET_FBINFO
also, use _PREFETCHABLE for rasops
2016-11-23 21:18:12 +00:00
kamil
d1ca0f5b0b Add new tests read_d_write_d_handshake[12] in t_ptrace_wait{,3,4,6,id,pid}
read_d_write_d_handshake1:
    Verify PT_READ_D with PT_WRITE_D handshake

read_d_write_d_handshake2:
    Verify PT_WRITE_D with PT_READ_D handshake

Sponsored by <The NetBSD Foundation>
2016-11-23 21:14:23 +00:00
kamil
81f61f06eb Rename read* and write* tests to read_d* and write_d*
The purpose of renaming is to make room for PT_READ_I and PT_WRITE_I type
ptrace(2) tests.

Sponsored by <The NetBSD Foundation>
2016-11-23 20:56:47 +00:00
kamil
9e97be1540 Add new test io_read_d_write_d_handshake2 in tests/kernel/t_ptrace_wait.c
Rename io_read_write_handshake to io_read_d_write_d_handshake1.

io_read_d_write_d_handshake2:
    Verify PT_IO with PIOD_WRITE_D and PIOD_READ_D handshake

This new test first writes and later reads data.
io_read_d_write_d_handshake1 first reads and later writes.

Sponsored by <The NetBSD Foundation>
2016-11-23 19:46:51 +00:00
christos
67f5543283 nothing is executable. 2016-11-23 17:25:11 +00:00
christos
07e020dd99 - protect against node not found SEGV
- fix reversed logic; if we find it in the cache we return it, otherwise
  we create it.
2016-11-23 17:22:44 +00:00
christos
b3d297ea4c regen 2016-11-23 16:11:34 +00:00
christos
2432cfb3d9 one more atheros device 2016-11-23 16:10:59 +00:00
pho
4853973201 Major rework on mount_puffs(8) so that it can actually start file servers
Now you can do
  # mount_puffs -o rdonly rot13fs#/home/foo /mnt/rot13

or in fstab
  rot13fs#/home/foo  /mnt/rot13  puffs  rdonly

to start rot13fs with arguments identical to
  # rot13fs -o rdonly /home/foo /mnt/rot13
2016-11-23 14:33:29 +00:00
snj
4d48760d83 for some reason that is currently eluding me, non-MKUPDATE builds
fail while trying to delete xkeyboard-config.7.  remove for now.  you
didn't have this man page before and you probably didn't care.
2016-11-23 09:50:52 +00:00
kamil
618a4d33b4 Add io_read_write_handshake to t_ptrace_wait{,3,4,6,id,pid}
Verify PT_IO with PIOD_READ_D and PIOD_WRITE_D handshake

Sponsored by <The NetBSD Foundation>
2016-11-23 05:00:20 +00:00
mrg
4df368747f fix the start index generation in pmap_segtab_release() to
ensure it fits in the actual array.  fixes N64 binaries from
triggering later panic.  move the panic check itself into a
common function that is called from a couple of new places too.
2016-11-23 03:30:53 +00:00
kamil
36b77035bc Add new tests read[1234] in t_ptrace_wait{,3,4,6,id,pid}
read1:
    Verify PT_READ_D called once

read2:
    Verify PT_READ_D called twice

read3:
    Verify PT_READ_D called three times

read4:
    Verify PT_READ_D called four times

Sponsored by <The NetBSD Foundation>
2016-11-23 03:02:56 +00:00
kamil
79f7742f7e Add new tests io_write_d[1234] in t_ptrace_wait{,3,4,6,id,pid}
write1:
    Verify PT_WRITE_D called once

write2:
    Verify PT_WRITE_D called twice

write3:
    Verify PT_WRITE_D called three times

write4:
    Verify PT_WRITE_D called four times

Sponsored by <The NetBSD Foundation>
2016-11-23 01:49:05 +00:00
scole
53744582f1 For ski, break into debugger instead of exiting 2016-11-22 22:50:32 +00:00
kamil
c255d6a0af Add new tests io_write_d[1234] in t_ptrace_wait{,3,4,6,id,pid}
io_write_d1:
    Verify PT_IO with PIOD_WRITE_D and len = sizeof(uint8_t)

io_write_d2:
    Verify PT_IO with PIOD_WRITE_D and len = sizeof(uint16_t)

io_write_d3:
    Verify PT_IO with PIOD_WRITE_D and len = sizeof(uint32_t)

io_write_d4:
    Verify PT_IO with PIOD_WRITE_D and len = sizeof(uint64_t)

Sponsored by <The NetBSD Foundation>
2016-11-22 21:59:32 +00:00
snj
7e075c29bc update for xkeyboard-config 2.19 2016-11-22 19:51:37 +00:00
kamil
e6698e30f0 Add new tests io_read_d[1234] in t_ptrace_wait{,3,4,6,id,pid}
io_read_d1:
    Verify PT_IO with PIOD_READ_D and len = sizeof(uint8_t)

io_read_d2:
    Verify PT_IO with PIOD_READ_D and len = sizeof(uint16_t)

io_read_d3:
    Verify PT_IO with PIOD_READ_D and len = sizeof(uint32_t)

io_read_d4:
    Verify PT_IO with PIOD_READ_D and len = sizeof(uint64_t)

Sponsored by <The NetBSD Foundation>
2016-11-22 19:46:26 +00:00
roy
bdebc53a9a Fix PR kern/51531 by using ifconfig to wait for addresses to become
valid rather than sleeping a fixed ammount of time.
2016-11-22 12:04:35 +00:00
skrll
233a0f2e96 1TB is enough UVA for anyone... plus not all cpus can support more. 2016-11-22 11:01:50 +00:00
snj
58e39575ef follow upstream change from 2009: build xf86Init.c with the rest of the
common code.

remove not-reproducible-build-friendly goop that set a build date for
the the x server.  the static date (which we've already been using) in
xf86Build.h does just fine, although all it really does is add one
useless line to the X log.

fix whitespace around OSVENDOR
2016-11-22 10:34:57 +00:00
skrll
b328ce6c89 s/COMPAT_NETBSD64/COMPAT_NETBSD32/ so userland works 2016-11-22 09:21:51 +00:00
snj
f121b93c37 remove another outdated and unused XORG_RELEASE define 2016-11-22 06:51:14 +00:00
mrg
4a00697d3d document NFS_BOOT_TCP option. 2016-11-22 04:55:10 +00:00
kamil
f54728af92 Obsolete thread_type in td_thread_info_st in <pthread_dbg.h>
The thread_type is irrelevant as all local POSIX threads are in user-space.

Keep the thread_type member in td_thread_info_st to preserve ABI
compatibility.

Later the remnants from M:N will be refactored in one go with library ABI
version bump.

Sponsored by <The NetBSD Foundation>
2016-11-22 04:51:06 +00:00
kamil
4c8a06b7ee Simplify (pthread_t)pt_magic read in td_map_pth2thr(3)
No functional change. All ATF tests for pthread_dbg(3) still pass.

Sponsored by <The NetBSD Foundation>
2016-11-22 04:17:05 +00:00
kamil
7b8609d5c0 Document td_map_pth2thr(3) from libpthread_dbg(3)
td_map_pth2thr - convert the pthread_t to a thread handle

Sponsored by <The NetBSD Foundation>
2016-11-22 03:52:01 +00:00
kamil
a5466eb716 Add new tests in lib/libpthread_dbg/t_threads: threads[6789]
These tests verifies the td_map_pth2thr().

It's rather difficult to test all aspects of pthreads_dbg(3) functions out of
context of a real application, this is the reason why these tests are
extensions of the previous ones and they test four (out of unlimited) valid
code-paths.

This function (the same as others in this class) is doing only single thing,
but its result depends on unlimited variations of the context.

The purpose of these checks is basic validation that the pthread_dbg(3) library
is still usable, but not that it's out of bugs.

threads6:
    Asserts that pthread_t can be translated with td_map_pth2thr()
    to td_thread_t -- and assert earlier that td_thr_iter() call is
    valid.

threads7:
    Asserts that pthread_t can be translated with td_map_pth2thr()
    to td_thread_t -- and assert later that td_thr_iter() call is
    valid.

threads8:
    Asserts that pthread_t can be translated with td_map_pth2thr()
    to td_thread_t -- compare thread's name of pthread_t and
    td_thread_t.

threads9:
    Asserts that pthread_t can be translated with td_map_pth2thr()
    to td_thread_t -- assert that thread is in the TD_STATE_RUNNING
    state.

All tests are passing.

Sponsored by <The NetBSD Foundation>
2016-11-22 03:21:46 +00:00
christos
066477bb9b new ntp 2016-11-22 03:11:16 +00:00
christos
03cfe0ff6f merge conflicts 2016-11-22 03:09:30 +00:00
ozaki-r
e099415fd1 Make lortrequest static and rename it to loop_rtrequest
No functional change.
2016-11-22 02:06:00 +00:00
kamil
2d6a6aff1c Document td_thr_getname(3) from libpthread_dbg(3)
td_thr_getname - get the user-assigned name of a thread

Sponsored by <The NetBSD Foundation>
2016-11-22 01:49:36 +00:00
christos
5645e8e78e (4.2.8p9) 2016/11/21 Released by Harlan Stenn <stenn@ntp.org>
* [Sec 3119] Trap crash <perlinger@ntp.org>
* [Sec 3118] Mode 6 information disclosure and DDoS vector <perlinger@ntp.org>
  - TRAP config via mode 6 packet requires AUTH now.
* [Sec 3114] Broadcast Mode Replay Prevention DoS
  - applied patches by Matthew Van Gundy. <perlinger@ntp.org>
  - with bcpollbstep, tweaks and cleanup by stenn@ntp.org
* [Sec 3113] Broadcast Mode Poll Interval Enforcement DoS <perlinger@ntp.org>
  - applied fix as suggested by Matthew Van Gundy
* [Sec 3110] Windows: ntpd DoS by oversized UDP packet
  - fixed error handling for truncated UDP packets. <perlinger@ntp.org>
* [Sec 3102] Zero origin issues.  HStenn.
* [Sec 3082] null pointer dereference in _IO_str_init_static_internal()
  - more hardening to read_mru_list(). perlinger@ntp.org
* [Sec 3072] Attack on interface selection <perlinger@ntp.org>
  - implemented Miroslav Lichvars <mlichvar@redhat.com> suggestion
    to skip interface updates based on incoming packets
* [Bug 3142] bug in netmask prefix length detection <perlinger@ntp.org>
* [Bug 3138] gpsdjson refclock should honor fudgetime1. stenn@ntp.org
* [Bug 3129] Unknown hosts can put resolver thread into a hard loop
  - moved retry decision where it belongs. <perlinger@ntp.org>
* [Bug 3125] NTPD doesn't fully start when ntp.conf entries are out of order
  using the loopback-ppsapi-provider.dll <perlinger@ntp.org>
* [Bug 3116] unit tests for NTP time stamp expansion. <perlinger@ntp.org>
* [Bug 3100] ntpq can't retrieve daemon_version <perlinger@ntp.org>
  - fixed extended sysvar lookup (bug introduced with bug 3008 fix)
* [Bug 3095] Compatibility with openssl 1.1 <perlinger@ntp.org>
  - applied patches by Kurt Roeckx <kurt@roeckx.be> to source
  - added shim layer for SSL API calls with issues (both directions)
* [Bug 3089] Serial Parser does not work anymore for hopfser like device
  - simplified / refactored hex-decoding in driver. <perlinger@ntp.org>
* [Bug 3084] update-leap mis-parses the leapfile name.  HStenn.
* [Bug 3068] Linker warnings when building on Solaris. perlinger@ntp.org
  - applied patch thanks to Andrew Stormont <andyjstormont@gmail.com>
* [Bug 3067] Root distance calculation needs improvement.  HStenn.
* [Bug 3066] NMEA clock ignores pps. perlinger@ntp.org
  - PPS-HACK works again.
* [Bug 3059] Potential buffer overrun from oversized hash <perlinger@ntp.org>
  - applied patch by Brian Utterback <brian.utterback@oracle.com>
* [Bug 3053] ntp_loopfilter.c frequency calc precedence error.  Sarah White.
* [Bug 3050]  Fix for bug #2960 causes [...] spurious error message.
  <perlinger@ntp.org>
  - patches by Reinhard Max <max@suse.com> and Havard Eidnes <he@uninett.no>
* [Bug 3047] Fix refclock_jjy C-DEX JST2000. abe@ntp.org
  - Patch provided by Kuramatsu.
* [Bug 3021] unity_fixture.c needs pragma weak <perlinger@ntp.org>
  - removed unnecessary & harmful decls of 'setUp()' & 'tearDown()'
* [Bug 3019] Windows: ERROR_HOST_UNREACHABLE block packet processing.
  DMayer and JPerlinger.
* [Bug 2998] sntp/tests/packetProcessing.c broken without openssl. JPerlinger
* [Bug 2961] sntp/tests/packetProcessing.c assumes AUTOKEY.  HStenn.
* [Bug 2959] refclock_jupiter: gps week correction <perlinger@ntp.org>
  - fixed GPS week expansion to work based on build date. Special thanks
    to Craig Leres for initial patch and testing.
* [Bug 2951] ntpd tests fail: multiple definition of `send_via_ntp_signd'
  - fixed Makefile.am <perlinger@ntp.org>
* [Bug 2689] ATOM driver processes last PPS pulse at startup,
             even if it is very old <perlinger@ntp.org>
  - make sure PPS source is alive before processing samples
  - improve stability close to the 500ms phase jump (phase gate)
* Fix typos in include/ntp.h.
* Shim X509_get_signature_nid() if needed.
* git author attribution cleanup
* bk ignore file cleanup
* remove locks in Windows IO, use rpc-like thread synchronisation instead
2016-11-22 01:34:41 +00:00
taca
d1621dde3c NTP 4.2.8p9 has released. 2016-11-22 01:20:20 +00:00
kamil
c37dd9bcb4 Add entry for pthread_dbg in share/tmac/doc2html
pthread_dbg is POSIX Debug Threads Library

Sponsored by <The NetBSD Foundation>
2016-11-22 00:36:49 +00:00
kamil
6c74bd40be Add reference in SEE ALSO to pthread_dbg(3)
Sponsored by <The NetBSD Foundation>
2016-11-22 00:32:09 +00:00
kamil
2e8fabe0b7 Document td_thr_iter(3) from libpthread_dbg(3)
td_thr_iter - iterate over the threads in the process

Sponsored by <The NetBSD Foundation>
2016-11-22 00:07:40 +00:00
kamil
7332bc9351 Document td_thr_info(3) from libpthread_dbg(3)
td_thr_info - get information on a thread

Currently a subset of td_thread_info_t is documented. This version
describes thread_addr and thread_state.

Sponsored by <The NetBSD Foundation>
2016-11-21 22:19:03 +00:00