Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (54m)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 13:18:19 UTC Now

2016-11-22 19:46:26 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-22 19:45:30 UTC MAIN commitmail json YAML

2016-11-22 12:04:35 UTC MAIN commitmail json YAML

Fix PR kern/51531 by using ifconfig to wait for addresses to become
valid rather than sleeping a fixed ammount of time.

(roy)

2016-11-22 11:01:51 UTC MAIN commitmail json YAML

1TB is enough UVA for anyone... plus not all cpus can support more.

(skrll)

2016-11-22 10:34:57 UTC MAIN commitmail json YAML

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

(snj)

2016-11-22 09:21:51 UTC MAIN commitmail json YAML

2016-11-22 06:51:14 UTC MAIN commitmail json YAML

2016-11-22 06:38:08 UTC MAIN commitmail json YAML

reduce diff to upstream. no functional change.

(snj)

2016-11-22 06:20:04 UTC MAIN commitmail json YAML

fix "fix merge botch"

(no functional change)

(snj)

2016-11-22 04:55:10 UTC MAIN commitmail json YAML

document NFS_BOOT_TCP option.

(mrg)

2016-11-22 04:51:06 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-22 04:17:05 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-22 03:52:02 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-22 03:21:46 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-22 03:11:16 UTC MAIN commitmail json YAML

2016-11-22 03:09:31 UTC MAIN commitmail json YAML

2016-11-22 02:06:01 UTC MAIN commitmail json YAML

Make lortrequest static and rename it to loop_rtrequest

No functional change.

(ozaki-r)

2016-11-22 01:49:36 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-22 01:20:20 UTC MAIN commitmail json YAML

NTP 4.2.8p9 has released.

(taca)

2016-11-22 00:36:49 UTC MAIN commitmail json YAML

Add entry for pthread_dbg in share/tmac/doc2html

pthread_dbg is POSIX Debug Threads Library

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-22 00:32:09 UTC MAIN commitmail json YAML

Add reference in SEE ALSO to pthread_dbg(3)

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-22 00:07:40 UTC MAIN commitmail json YAML

Document td_thr_iter(3) from libpthread_dbg(3)

td_thr_iter - iterate over the threads in the process

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-21 22:19:03 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-21 21:03:22 UTC MAIN commitmail json YAML

Lock is already taken when handling async events, don't lock again
in scsipi_lookup_periph.

Fixes PR kern/51641.

(mlelstv)

2016-11-21 20:43:25 UTC MAIN commitmail json YAML

2016-11-21 20:16:21 UTC MAIN commitmail json YAML

2016-11-21 20:15:18 UTC MAIN commitmail json YAML

2016-11-21 17:00:32 UTC MAIN commitmail json YAML

nuke xf86-video-nvxbox, as xbox support went away in 2011.

(snj)

2016-11-21 16:59:28 UTC MAIN commitmail json YAML

2016-11-21 16:34:34 UTC MAIN commitmail json YAML

missing bits for pm3fb, should have went with previous...

(macallan)

2016-11-21 16:26:16 UTC MAIN commitmail json YAML

2016-11-21 09:20:41 UTC MAIN commitmail json YAML

2016-11-21 09:14:12 UTC MAIN commitmail json YAML

2016-11-21 08:48:00 UTC MAIN commitmail json YAML

Slight tweak now that umass(4) doesn't need KERNEL_LOCK

(skrll)

2016-11-21 08:43:50 UTC MAIN commitmail json YAML

2016-11-21 08:40:30 UTC MAIN commitmail json YAML

Note scsipi and umass MP safety changes

ok skrll

(maya)

2016-11-21 08:27:30 UTC MAIN commitmail json YAML

No need to take the kernel lock in umass(4) anymore

(skrll)

2016-11-21 08:09:54 UTC MAIN commitmail json YAML

no need to define HAVE_PCI_DEVICE_IS_BOOT_VGA with xorg-server 1.18.
libpciaccess, which provides pci_device_is_boot_vga, is always present.

(snj)

2016-11-21 07:32:13 UTC netbsd-7 commitmail json YAML

2016-11-21 07:29:26 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1274):
etc/rc.d/rtadvd: revision 1.9
The config file is not required to exist (unless specified via -c).
(reported by rhialto@falu.nl)  Don't fail to start if it doesn't.
Make sure the directory for the config file exists inside the chroot before
attempting to copy into it ("confdir" was calculated, but never used...)
While here, fix getopts usage (obviously only ever previously tested when
the -c arg was the first option...) and don't use test(1)'s -o operator
(especially not when one of the other args is an unknown string).
If -c is given (and we will chroot), require filename to be full path.
Misc minor style cleanups.

(snj)

2016-11-21 07:24:40 UTC netbsd-7-0 commitmail json YAML

2016-11-21 07:22:51 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1274):
etc/rc.d/rtadvd: revision 1.9
The config file is not required to exist (unless specified via -c).
(reported by rhialto@falu.nl)  Don't fail to start if it doesn't.
Make sure the directory for the config file exists inside the chroot before
attempting to copy into it ("confdir" was calculated, but never used...)
While here, fix getopts usage (obviously only ever previously tested when
the -c arg was the first option...) and don't use test(1)'s -o operator
(especially not when one of the other args is an unknown string).
If -c is given (and we will chroot), require filename to be full path.
Misc minor style cleanups.

(snj)

2016-11-21 07:15:36 UTC MAIN commitmail json YAML

PR 51553 David Binderman: don't bother counting up backlogged classes
when not doing anything with the results.

(dholland)

2016-11-21 06:38:18 UTC MAIN commitmail json YAML

As a debugging measure for PR 49141, log what this is doing as it runs
to stdout. Hopefully this will get reported when the test fails in the
testbed rather than just causing ATF to report that it printed
unexpected output.

(dholland)

2016-11-21 06:19:26 UTC MAIN commitmail json YAML

2016-11-21 06:17:20 UTC MAIN commitmail json YAML

If pthread_create fails, report the error instead of discarding it.

(dholland)

2016-11-21 04:10:06 UTC MAIN commitmail json YAML

2016-11-21 03:57:37 UTC MAIN commitmail json YAML

Add note about kumeran registers. No functional change.

(msaitoh)

2016-11-21 03:53:59 UTC MAIN commitmail json YAML

- Return ENOTTY rather than EINVAL for invalid ioctl, suggested by
  mlelstv.
- Protect NTP stuff in COMPAT_50 codes by NTP macro.

Approved by mlelstv

(rin)

2016-11-21 03:50:50 UTC MAIN commitmail json YAML

Handle CLOCKCTL_NTP_ADJTIME32 even when compiled with !NTP;
just return ENOTTY in order to avoid possible failure when
main kernel and compat_netbsd32 module are compiled with
different NTP options in future.

Suggested and approved by mlelstv

(rin)

2016-11-21 03:02:34 UTC MAIN commitmail json YAML

Kill SA thread states (TD_STATE_*) in pthread_dbg and add TD_STATE_DEAD

Scheduler Activation types were removed in NetBSD 5.0. Old type set is not
matching the new world POSIX threads library.

Only TD_STATE_RUNNING, TD_STATE_ZOMBIE are still applicable - keep it.

Keep TD_STATE_UNKNOWN as generic unrecognized type.

Add new TD_STATE_DEAD one. The TD_STATE_DEAD type is represented by number
6 in the POSIX threads library, but for the sake of compatibility with
older software using pthread_dbg - renumber it to 7, as six was reserved
for TD_STATE_SUSPENDED.

Old removed state types are marked as reserved and unused.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-21 01:19:35 UTC MAIN commitmail json YAML

Let's try initializing the pointers *before* dereferencing them!

Oops.

(riastradh)

2016-11-21 00:54:21 UTC MAIN commitmail json YAML

Fix a race condition of low priority xcall

xc_lowpri and xc_thread are racy and xc_wait may return during/before
executing all xcall callbacks, resulting in a kernel panic at worst.

xc_lowpri serializes multiple jobs by a mutex and a cv. If all xcall
callbacks are done, xc_wait returns and also xc_lowpri accepts a next job.

The problem is that a counter that counts the number of finished xcall
callbacks is incremented *before* actually executing a xcall callback
(see xc_tailp++ in xc_thread). So xc_lowpri accepts a next job before
all xcall callbacks complete and a next job begins to run its xcall callbacks.

Even worse the counter is global and shared between jobs, so if a xcall
callback of the next job completes, the shared counter is incremented,
which confuses wc_wait of the previous job as all xcall callbacks of the
previous job are done and wc_wait of the previous job returns during/before
executing its xcall callbacks.

How to fix: there are actually two counters that count the number of finished
xcall callbacks for low priority xcall for historical reasons (I guess):
xc_tailp and xc_low_pri.xc_donep. xc_low_pri.xc_donep is incremented correctly
while xc_tailp is incremented wrongly, i.e., before executing a xcall callback.
We can fix the issue by dropping xc_tailp and using only xc_low_pri.xc_donep.

PR kern/51632

(ozaki-r)

2016-11-20 22:56:13 UTC MAIN commitmail json YAML

KASSERT(mutex_owner(...)) ---> KASSERT(mutex_owned(...))

If this is not correct, then there's something bogus in this code
anyway, so better to fail early.

Final part of PR kern/47114.

(riastradh)

2016-11-20 22:47:39 UTC MAIN commitmail json YAML

Kill some more tsleep.

And no, surrounding tsleep by mutex_exit/mutex_enter does not fix
problems even if the LOCKDEBUG panic symptom goes away...

(riastradh)

2016-11-20 22:36:45 UTC MAIN commitmail json YAML

2016-11-20 21:49:24 UTC MAIN commitmail json YAML

Always set trailing '\0' in td_thr_getname() to compose valid ASCIIZ string

This fixes threads5 in tests/lib/libpthread_dbg

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-20 21:22:14 UTC MAIN commitmail json YAML

KASSERT(mutex_owner(...)) ---> KASSERT(mutex_owned(...))

(riastradh)

2016-11-20 21:21:26 UTC MAIN commitmail json YAML

KASSERT(mutex_owner(...)) ---> KASSERT(mutex_owned(...))

Fixes part of PR kern/47114.  Tested by code inspection.

(riastradh)

2016-11-20 18:02:46 UTC MAIN commitmail json YAML

Add threads5 in tests/lib/libpthread_dbg/t_threads

Asserts that td_thr_getname() handles shorter buffer parameter and the
result is properly truncated.

Currently this test fails due to bug in pthread_dbg.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-20 17:42:56 UTC MAIN commitmail json YAML

Add threads4 in tests/lib/libpthread_dbg/t_threads.c

This test asserts that for each td_thr_iter() call td_thr_getname() is
valid.

Sponsored by <The NetBSD Foundation>.

(kamil)

2016-11-20 17:02:33 UTC MAIN commitmail json YAML

Add RCS Id. Bump date for import. Case fixes.

(wiz)

2016-11-20 16:59:11 UTC MAIN commitmail json YAML

Bump date for previous. Use more markup.

(wiz)

2016-11-20 16:55:18 UTC MAIN commitmail json YAML

2016-11-20 16:13:03 UTC MAIN commitmail json YAML

Add threads2 and threads3 in tests/lib/libpthread_dbg/t_threads.c

threads2:
Asserts that td_thr_iter() call is executed for each thread once

threads3:
Asserts that for each td_thr_iter() call td_thr_info() is valid

These tests pass correctly.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-20 15:55:31 UTC MAIN commitmail json YAML

2016-11-20 15:44:40 UTC MAIN commitmail json YAML

add WSFONT_PREFER_ALPHA - for drivers that would rather render anti-aliased
fonts

(macallan)

2016-11-20 15:37:19 UTC MAIN commitmail json YAML

Make scsipi framework MPSAFE.

Data structures are now protected by a per-adapter mutex at IPL_BIO
that is created by the scsibus or atapibus instance when the adapter
is configured.
The enable reference counter and the channel freeze counter which are
currently used by HBA code before the adapter is configured, are made
atomic.
The target drivers are now all tagged as D_MPSAFE.

Almost all HBA drivers still require the kernel lock to present,
so all callbacks into HBA code are still protected by kernel lock
unless the driver is tagged as SCSIPI_ADAPT_MPSAFE.

TODO: refactor sd and cd to use dksubr.

(mlelstv)

2016-11-20 13:28:32 UTC MAIN commitmail json YAML

fuse_main(3): Support general fuse options via fuse_parse_cmdline(3)

* Prototypes for fuse_new(3), fuse_mount(3), and fuse_unmount(3) now
  matches to the original fuse interface.

* Add fuse_daemonize(3): needs to have a different prototype,
  otherwise we can't use puffs_daemon(3).

* Remove fuse_setup(3) and fuse_teardown(3). These obsolete functions
  has already been removed from the original interface.

* fuse_main(3) now supports the following command-line options
  compatible with the original fuse:

  -h, --help      print help message
  -V, --version  print library version (currently does nothing)
  -d, -o debug    enable debug output (PUFFS_FLAG_OPDUMP), implies -f
  -f              foreground mode
  -s              single threaded mode (always enabled for now)
  -o fsname=NAME  explicitly set the name of the file system

* fuse_main(3) now daemonizes the process by default. This is for the
  compatibility with the original fuse.

(pho)

2016-11-20 13:26:28 UTC MAIN commitmail json YAML

fuse_lowlevel.h: new file, currently only contains fuse_parse_cmdline(3) and struct fuse_cmdline_opts

(pho)

2016-11-20 12:38:04 UTC MAIN commitmail json YAML

Fixed typo in name for MCP3304.

(phx)

2016-11-20 09:38:37 UTC MAIN commitmail json YAML

2016-11-20 09:38:11 UTC MAIN commitmail json YAML

Whitespace, sort.

(wiz)

2016-11-20 09:28:43 UTC MAIN commitmail json YAML

Memory leak, found by Mootja.

(maxv)

2016-11-20 07:05:20 UTC MAIN commitmail json YAML

Add crossreference to fork(2) per note in PR 9627.

(dholland)

2016-11-20 07:04:15 UTC MAIN commitmail json YAML

Add crossreference to scsi(4) per note in PR 9627.

(dholland)

2016-11-20 07:02:21 UTC MAIN commitmail json YAML

Add crossreference to scsictl per note in PR 9627.

(dholland)

2016-11-20 03:53:47 UTC MAIN commitmail json YAML

Fix pt_magic read in td_map_pth2thr()

The pt_magic field is not the first one in the pthread_t structure.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-20 03:30:12 UTC MAIN commitmail json YAML

One more move of bufq_free() to outside of critical section.

(pgoyette)

2016-11-20 03:11:32 UTC MAIN commitmail json YAML

Catch up with correct pt_magic reads in td_thr_{getname,suspend,resume}

The pt_magic field is not the first one in the pthread_t structure.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-20 02:38:24 UTC MAIN commitmail json YAML

2016-11-20 02:35:19 UTC MAIN commitmail json YAML

Avoid calling bufq_free() from critical section.

(pgoyette)

2016-11-20 02:34:27 UTC MAIN commitmail json YAML

Avoid calling bufq_free() from critical section.

(pgoyette)

2016-11-20 02:27:56 UTC MAIN commitmail json YAML

Fix pt_magic (part of pthread_t) read in td_thr_info()

The pt_magic field is not the first one in the pthread_t structure.
After this fix, this code is confirmed to work and function td_thr_info()
is functional.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-20 00:19:57 UTC MAIN commitmail json YAML

src/external/gpl3/gdb/lib/libbfd/arch/arm/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/arm/targmatch.h@1.8 / diff / nxr@1.8
src/external/gpl3/gdb/lib/libbfd/arch/coldfire/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/coldfire/targmatch.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/hppa/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/hppa/targmatch.h@1.8 / diff / nxr@1.8
src/external/gpl3/gdb/lib/libbfd/arch/i386/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/i386/targmatch.h@1.8 / diff / nxr@1.8
src/external/gpl3/gdb/lib/libbfd/arch/m68000/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/m68000/targmatch.h@1.8 / diff / nxr@1.8
src/external/gpl3/gdb/lib/libbfd/arch/m68k/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/m68k/targmatch.h@1.8 / diff / nxr@1.8
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/defs.mk@1.9 / diff / nxr@1.9
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/defs.mk@1.9 / diff / nxr@1.9
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk@1.6 / diff / nxr@1.6
src/external/gpl3/gdb/lib/libbfd/arch/mipsel/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/gdb/lib/libbfd/arch/mipsel/defs.mk@1.6 / diff / nxr@1.6
      :
(more 22 files)
regen all gdb platforms.

(mrg)

2016-11-19 23:37:33 UTC MAIN commitmail json YAML

Bump date for previous.

Use more and more appropriate markup while here.

(wiz)

2016-11-19 19:06:12 UTC MAIN commitmail json YAML

Add FALLTHROUGH commit

(christos)

2016-11-19 17:19:59 UTC MAIN commitmail json YAML

Lock the manager and not just the node for inserting/removing nodes

should fix/help PR kern/50349: radeondrmkms vt-switching crash

ok riastradh

(maya)

2016-11-19 15:13:46 UTC MAIN commitmail json YAML

Remove atf_tx_expect_fail from lib/libpthread_dbg/ tests

The following PR are now resolved and are reported to be properly fixed:
PR lib/51635 td_thr_iter in <pthread_dbg.h> seems broken
PR lib/51633 tests/lib/libpthread_dbg/t_dummy unreliable

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-19 14:44:00 UTC MAIN commitmail json YAML

Make fstat(2) work on AF_LINK socket descriptors.

(njoly)

2016-11-19 09:49:20 UTC MAIN commitmail json YAML

Pull across various locking and reference counting fixes from nick-nhusb.

(skrll)

2016-11-19 09:46:58 UTC MAIN commitmail json YAML

s/#/$/ in a $NetBSD$ so it actually expands

(mrg)

2016-11-19 09:22:04 UTC MAIN commitmail json YAML

Put a one-page redzone between userland and the PTE space on amd64 and
i386.

The PTE space is a critical region that maps the page tree, and bugs have
been found in both amd64 and i386 where the kernel would wrongly overflow
userland data on this area. This kind of bug is terrible, since it allows
userland to overwrite some entries of the page tree, which makes it easy
to patch the kernel text and get ring0 privileges.

(maxv)

2016-11-19 09:10:33 UTC MAIN commitmail json YAML

2016-11-19 09:05:50 UTC MAIN commitmail json YAML

Optimise the interrupt vector a litte.  From matt@

(skrll)

2016-11-19 08:46:04 UTC MAIN commitmail json YAML

2016-11-19 08:43:40 UTC MAIN commitmail json YAML

Add "getrealloc" and "setrealloc" commands to get/set automatic reallocation
parameters/enables for error recovery, similar to {get,set}cache.
Many old SCSI disks shipped with reallocation disabled, albeit supporting it.
Minor (cosmetic) fixup of scsi_disk_pages while there.
Based upon code in PR bin/29165 by Greg A. Woods.
OK christos@

(flxd)

2016-11-19 07:54:19 UTC MAIN commitmail json YAML

Mark the alpha options use_secureplt as false... we don't do secure plt
on alpha (yet)

(skrll)

2016-11-19 07:52:49 UTC MAIN commitmail json YAML

Add in netbsd-core.lo for all arm/mips

(skrll)

2016-11-19 02:30:54 UTC MAIN commitmail json YAML

Fix basic_proc_read in pthread_dbg functions

Source and destination were swapped. The source of this confusion was that
running these tests under gdb(1) will generate false positives as it will
initialize pthread__dbg to PID of the debugger. This means that it is
currently not possible to debug pthread_dbg code under a full-stack
debugger using NetBSD debugging library for threads.

This should address:
PR lib/51633 tests/lib/libpthread_dbg/t_dummy unreliable
PR lib/51635: td_thr_iter in <pthread_dbg.h> seems broken

After applying the fix I'm able to run all pthread_dbg tests without
indeterminism. The indeterminism was caused by overwritting source of data
with trash.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-19 01:14:58 UTC MAIN commitmail json YAML

Undo change to a comment made when I thought another change to the
script was needed ... the unnecessary script change was never committed,
but the comment that described it was...    No functional change.

(kre)

2016-11-18 23:10:05 UTC MAIN commitmail json YAML

The config file is not required to exist (unless specified via -d).
(reported by rhialto@falu.nl)  Don't fail to start if it doesn't.

Make sure the directory for the config file exists inside the chroot before
attempting to copy into it ("confdir" was calculated, but never used...)

While here, fix getopts usage (obviously only ever previously tested when
the -c arg was the first option...) and don't use test(1)'s -o operator
(especially not when one of the other args is an unknown string).
If -c is given (and we will chroot), require filename to be full path.

Misc minor style cleanups.

(kre)

2016-11-18 22:58:08 UTC MAIN commitmail json YAML

2016-11-18 22:50:20 UTC MAIN commitmail json YAML

Add new test file lib/libpthread_dbg/t_threads

This test contains threads1 test that:
    Asserts that td_thr_iter() call without extra logic works

This tests fails and is linked with gnats:
PR lib/51635: td_thr_iter in <pthread_dbg.h> seems broken

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-18 22:41:19 UTC MAIN commitmail json YAML

2016-11-18 22:37:50 UTC MAIN commitmail json YAML

2016-11-18 16:23:40 UTC MAIN commitmail json YAML

Sprinkle MFC0_HAZARD for previous and PARANOIA

(skrll)

2016-11-18 13:50:36 UTC MAIN commitmail json YAML

don't blindly zero STATUS in order to disable interrupts, instead take care
to preserve bits like KX in case we catch an interrupt between mtc0 and the
write actually taking effect
now n32 kernels on my O2 are (mostly) stable again
ok skrll@

(macallan)

2016-11-18 12:42:10 UTC MAIN commitmail json YAML

2016-11-18 12:16:48 UTC MAIN commitmail json YAML

Oops, it should be Aq Mt email@address

(Thanks again wiz :-)

(abhinav)

2016-11-18 11:46:04 UTC MAIN commitmail json YAML

Remove extra pair of braces.

(joerg)

2016-11-18 10:38:55 UTC MAIN commitmail json YAML

We must use PSLIST_ENTRY_DESTROY after PSLIST_WRITER_REMOVE and waiting all readers done.

And then, if we want to re-insert the removed pslist element, we need to
call PSLIST_ENTERY_INIT again.

advised by riastradh@n.o and reviewed by ozaki-r@n.o, thanks.

(knakahara)

2016-11-18 10:11:34 UTC MAIN commitmail json YAML

Use .An -nosplit
Also, use Mt for email addresses.

(Thanks wiz)

(abhinav)

2016-11-18 09:58:38 UTC MAIN commitmail json YAML

Clean up after the import auto-generate.

At least now it doesn't cause config(1) any problems.

(pgoyette)

2016-11-18 09:52:33 UTC MAIN commitmail json YAML

2016-11-18 09:06:35 UTC MAIN commitmail json YAML

Use more markup and complete a sentence.

(abhinav)

2016-11-18 08:31:30 UTC MAIN commitmail json YAML

2016-11-18 08:29:43 UTC MAIN commitmail json YAML

Use more markup.

(wiz)

2016-11-18 08:13:02 UTC MAIN commitmail json YAML

if_register() must be called after ifp->if_dl initialized.

There may be similar problems. I will fix step by step...

(knakahara)

2016-11-18 06:55:01 UTC MAIN commitmail json YAML

Fix WOL related setting of the WUC register for other than PCH*
in wm_enable_wakeup(). Tested with 82567V(ICH8) and 82583V.

(msaitoh)

2016-11-18 06:50:04 UTC MAIN commitmail json YAML

fix: "ifconfig destory" can stalls when "ifconfig" is done parallel.
This problem occurs only if NET_MPSAFE on.

ifconfig destroy side:
    kernel entry point is ifioctl => if_clone_destroy.
    pr_purgeif() acquires softnet_lock, and then ifa_remove() calls
    pserialize_perform() holding softnet_lock.
ifconfig side:
    kernel entry point is socreate.
    pr_attach()(udp_attach_wrapper()) calls sosetlock(). In this call path,
    sosetlock() try to acquire softnet_lock.
These can cause dead lock.

(knakahara)

2016-11-18 06:41:52 UTC MAIN commitmail json YAML

Explain why we don't touch the next pointer of the removed entry.

(riastradh)

2016-11-18 02:37:33 UTC MAIN commitmail json YAML

By popular request, don't both initializing a static pointer to NULL.

(pgoyette)

2016-11-17 23:46:52 UTC MAIN commitmail json YAML

KASSERT that MIPS_SR_KX is set when entering interrupt handler in !o32

(macallan)

2016-11-17 23:15:38 UTC MAIN commitmail json YAML

In addition to initializing the bufq subsystem, we also need to init
the individual strategy modules.

(pgoyette)

2016-11-17 17:30:22 UTC MAIN commitmail json YAML

Mark dummy2 and dummy3 in lib/libpthread_dbg/t_dummy with expected fail

The dummy2 test reports failures on i386 releng machines.

The same with dummy3, but it's also reproducible sometimes on my amd64
setup. It's not always broken, neither always functional - once a while it
reports failure. So far I have not reproduced failure in dummy2.

PR lib/51633 tests/lib/libpthread_dbg/t_dummy unreliable

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-17 16:52:53 UTC MAIN commitmail json YAML

fix misplaced conditionalized } that broke pointer detection under
vmware when running X without a config file.

(snj)

2016-11-17 16:32:06 UTC MAIN commitmail json YAML

Unmap tmpva once we are done using it, not to pollute the page tree.

(maxv)

2016-11-17 16:26:08 UTC MAIN commitmail json YAML

Remap the pages with G until kern_end, and not just the preloaded modules.
This way the bootstrap tables, proc0's stack and the I/O mem area don't get
flushed each time userland needs a TLB shootdown.

(maxv)

2016-11-17 14:20:26 UTC MAIN commitmail json YAML

Change the way how puffs_fuse_node_create() behaves.

In puffs "create" and "open" are two separate operations with
atomicity achieved by locking the parent vnode. In fuse, on the other
hand, "create" is actually a create-and-open-atomically and the open
flags (O_RDWR, O_APPEND, ...) are passed via fi.flags. So the only way
to emulate the fuse semantics is to open the file with dummy flags and
then immediately close it.

You might think that we could simply use fuse->op.mknod all the time
but no, that's not possible because most file systems nowadays expect
op.mknod to be called only for non-regular files and many don't even
support it.

(pho)

2016-11-17 09:29:01 UTC MAIN commitmail json YAML

Add couple FALLTHROUGHs CIDs: 976559, 976560, 976561

No functional change.

(shm)

2016-11-17 09:21:34 UTC MAIN commitmail json YAML

CID 978587: Removed unnecessary check against NULL.

(shm)

2016-11-17 08:06:49 UTC MAIN commitmail json YAML

Use compile-time initialization for the list head, and make sure that
the sysctllog is also initialized before being used.

(pgoyette)

2016-11-17 07:58:24 UTC MAIN commitmail json YAML

2016-11-17 07:58:09 UTC MAIN commitmail json YAML

comment out COMPILEDDEFAULTFONTPATH as in olden days, happy golden days

(snj)

2016-11-17 06:58:40 UTC MAIN commitmail json YAML

the last release of xorg-server that cared about RGB_DB was 1.4.2,
back in 2008

(snj)

2016-11-17 05:28:43 UTC MAIN commitmail json YAML

1. only xorg-server.old has xaa.h, so -DHAVE_XAA_H would make sense
  there, but it doesn't with 1.18
2. it t matter anyway.  xf86-video-nouveau removed all XAA support
  in 2007, and as such, nothing here is conditional upon HAVE_XAA_H
3. is a magic number

(snj)

2016-11-17 04:13:52 UTC MAIN commitmail json YAML

Add dummy3 in lib/libpthread_dbg/t_dummy

This test verifies that it's not possible to attach twice to the same
process with td_open() -- it asserts failure with status TD_ERR_INUSE.

This test does nothing besides initializing and deinitializing pthread_dbg
debugging instance.

Refactor code to be more reusable.

Set proper description of dummy2.

Sponsored by <The NetBSD Foundation>.

(kamil)

2016-11-17 03:40:08 UTC MAIN commitmail json YAML

8257[124] should not set WM_F_ARC_SUBSYS_VALID.

(msaitoh)

2016-11-17 03:37:23 UTC MAIN commitmail json YAML

Add new test dummy2 in lib/libpthread_dbg/t_dummy

This tests implements:
- .proc_read with memcpy(3)
- .proc_write with memcpy(3)
- .proc_lookup with dlopen(3) and dlsym(3) combination

td_open() is verified to return with success (TD_ERR_OK), followed by a
call to td_close().

This test does nothing else than initializing and deinitializing td_proc_t
structure, with appropriately implemented functions.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-17 03:36:24 UTC MAIN commitmail json YAML

Fix flag check in wm_get_wakeup()
- 8254[17]* should not set WM_F_ARC_SUBSYS_VALID.
- Add missing WM_T_82541_2 and WM_T_82547_2
- Note that the setting of both Linux's FLAG_HAS_AMT and FreeBSD's has_amt
  flag is doubtful on 8257[34] and 82583.

(msaitoh)

2016-11-17 01:22:00 UTC MAIN commitmail json YAML

Document the previously-undocument kern.bufq node.

(pgoyette)

2016-11-17 01:16:27 UTC MAIN commitmail json YAML

Update bufq man page for new functions, with appropriate cross-refs to
sysctl(7) and module(9).

(pgoyette)

2016-11-16 23:24:47 UTC MAIN commitmail json YAML

Initialize the bufq stuff for rump, too.

This should fix the large number of tests that recently started to fail.

(pgoyette)

2016-11-16 22:05:19 UTC MAIN commitmail json YAML

add more plumbing to pass a clockframe around so pwmclock can work again

Hi nick!

(macallan)

2016-11-16 21:36:23 UTC MAIN commitmail json YAML

Add new test-suite t_dummy for libpthread_dbg

At the moment this test does nothing except reports failure from td_open()
for overloaded (implemented) dummy1_proc_lookup() (.proc_lookup from
td_proc_callbacks_t) of the following form:

static int
dummy1_proc_lookup(void *arg, const char *sym, caddr_t *addr)
{
        return TD_ERR_ERR;
}

This file and directory with tests is placeholder for new ones, without
further need to alter mtree and distribution sets.

The libpthread_dbg interface and library is used by gdb(1) to handle
threads in applications.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-16 19:39:38 UTC MAIN commitmail json YAML

reenable mips1-specific dmamem_sync method
clean up a bit while there

(macallan)

2016-11-16 19:37:06 UTC MAIN commitmail json YAML

2016-11-16 18:35:00 UTC netbsd-7 commitmail json YAML

2016-11-16 18:32:07 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1272):
sys/external/bsd/drm2/dist/drm/drm_gem.c: revision 1.6
Avoid zero-size uao.
Apparently some GEM/TTM objects can be zero-size, as discovered by
Stefan Hertenberger:
https://mail-index.netbsd.org/current-users/2016/08/02/msg029891.html

(snj)

2016-11-16 18:31:23 UTC netbsd-7-0 commitmail json YAML

2016-11-16 18:30:55 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #1272):
sys/external/bsd/drm2/dist/drm/drm_gem.c: revision 1.6
Avoid zero-size uao.
Apparently some GEM/TTM objects can be zero-size, as discovered by
Stefan Hertenberger:
https://mail-index.netbsd.org/current-users/2016/08/02/msg029891.html

(snj)

2016-11-16 18:07:03 UTC netbsd-6 commitmail json YAML

2016-11-16 18:04:39 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by flxd in ticket #1416):
sys/arch/alpha/alpha/machdep.c: revision 1.347
sys/arch/alpha/alpha/prom.c: revision 1.49
sys/arch/alpha/stand/common/booted_dev.c: revision 1.4
sys/arch/alpha/stand/common/prom.c: revision 1.15
Match the two prom_getenv() and fix buffer overflow causing wrong host
controller SCSI ID for DEC 3000.
OK skrll@

(snj)

2016-11-16 17:56:42 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1414):
usr.bin/ftp/fetch.c: revision 1.225
PR/51558: ast@: ftp dumps core after usage message when IPv6 URL lacks a slash.
Initialize variable so that we don't get random behavior on cleanup.

(snj)

2016-11-16 17:53:57 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by dholland in ticket #1412):
bin/sh/exec.c: revision 1.45
bin/sh/var.c: revision 1.43
PR/48312: Dieter Roelants: According to TOG, unset should not return an error
for functions are variables that were not previously set:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html

(snj)

2016-11-16 16:11:42 UTC MAIN commitmail json YAML

Major rework of fuse_opt_parse(3) so that it supports all the functionality of the original function

(pho)

2016-11-16 12:31:33 UTC MAIN commitmail json YAML

Initialize the bufq code right before we're ready to load the strategy
modules.

(pgoyette)

2016-11-16 10:43:37 UTC MAIN commitmail json YAML

Add a description for the new MODULE_CLASS_BUFQ class.

(pgoyette)

2016-11-16 10:42:14 UTC MAIN commitmail json YAML

Define a new module class for the bufq_strategy modules.  These need to
be loaded and intialized before autoconfigure runs, since some devices
(like disks and floppy drives) want to call bufq_alloc().

(pgoyette)

2016-11-16 09:38:48 UTC MAIN commitmail json YAML

wpa_supplicant 2.6 is out.  update URLs.

(snj)

2016-11-16 09:27:49 UTC MAIN commitmail json YAML

Move the location of wm_smbustopci() call.

(msaitoh)

2016-11-16 08:56:17 UTC MAIN commitmail json YAML

Sync wm_smbustopci() with Linux and FreeBSD. This change effects PCH and
newer devices.

(msaitoh)

2016-11-16 08:37:23 UTC netbsd-7 commitmail json YAML

2016-11-16 08:37:15 UTC netbsd-7-0 commitmail json YAML

2016-11-16 08:36:32 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by snj in ticket #1273):
external/bsd/dhcp/dist/common/packet.c: revision 1.2
Check correctly the packet length (CVE-2015-8605)

(bouyer)

2016-11-16 08:36:30 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by snj in ticket #1273):
external/bsd/dhcp/dist/common/packet.c: revision 1.2
Check correctly the packet length (CVE-2015-8605)

(bouyer)

2016-11-16 08:14:39 UTC MAIN commitmail json YAML

Fix a bug that 8257[56], 82580, I35[04] and I21[01] didn't use
wm_{get,release}_hw_control() correctly.

(msaitoh)

2016-11-16 07:24:52 UTC MAIN commitmail json YAML

Add three workarounds for PCH_{LPT,SPT}.

(msaitoh)

2016-11-16 07:13:01 UTC MAIN commitmail json YAML

avoid a failure of interrupt affinity when the interrupt is pending.

pointed out and reviewed by ozaki-r@n.o, thanks.

(knakahara)

2016-11-16 02:03:30 UTC MAIN commitmail json YAML

if there is more than one : it is not an X display, it is a v6 address

(christos)

2016-11-16 00:50:13 UTC MAIN commitmail json YAML

Update sets lists for new bufq_* modules

(pgoyette)

2016-11-16 00:49:27 UTC MAIN commitmail json YAML

2016-11-16 00:46:46 UTC MAIN commitmail json YAML

2016-11-15 22:31:07 UTC MAIN commitmail json YAML

An awk file is not a directory.

(matt)

2016-11-15 22:23:09 UTC MAIN commitmail json YAML

apply a #ifdef INET6 so the previous compiles without INET6.

(mrg)

2016-11-15 21:50:38 UTC MAIN commitmail json YAML

Add vfork1 test in t_ptrace_wait* and vfork2 in t_ptrace_wait{4,6,id,pid}

These tests are exact clones for fork1 and fork2, however testing vfork(2).

vfork1:
    Verify that vfork(2) is intercepted by ptrace(2) with EVENT_MASK set to
    PTRACE_VFORK.

vfork2:
    Verify that vfork(2) is not intercepted by ptrace(2) with empty
    EVENT_MASK.

vfork1 is supposed to test currently unimplemented PTRACE_VFORK option in
EVENT_MASK, marked as failure and linked with PR kern/51630.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-15 21:17:07 UTC MAIN commitmail json YAML

nd6_dad_duplicated takes the lock itself. Move it out of the critical
section.

(mlelstv)

2016-11-15 20:59:12 UTC MAIN commitmail json YAML

Add new test fork2 in t_ptrace_wait*

Verify that fork(2) is not intercepted by ptrace(2) with empty EVENT_MASK.

This test works with all wait(2)-like functions.

Debugger receives only SIGCHLD from tracee, when its the child of tracee
exits. Tracer notes nothing about fork(2) events.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-15 20:50:29 UTC MAIN commitmail json YAML

Enforce alignment requirements that are violated in some cases.
For machines that don't need strict alignment (i386,amd64,vax,m68k) this
is a no-op.

Fixes PR kern/50766 but should be improved.

(mlelstv)

2016-11-15 19:30:28 UTC MAIN commitmail json YAML

Add new test fork1 in t_ptrace_wait{4,6,id,pid}

Verify that fork(2) is intercepted by ptrace(2) with EVENT_MASK set to
PTRACE_FORK.

In this test tracee calls fork(2) and this event is noted by tracer, both
for forker and forkee with PT_GET_PROCESS_STATE reporting pe_report_event
equal to PTRACE_FORK and pe_other_pid as forkee for forker and forker for
forkee.

The fork(2) event in the current implementation stops forker and forkee
with the SIGTRAP signal.

Exited forkee stops forker with the SIGCHLD signal.

Sponsored by <The NetBSD Foundation>.

(kamil)

2016-11-15 17:01:12 UTC MAIN commitmail json YAML

Mmh, apparently I didn't properly test my previous change since it does not
compile anymore

(maxv)

2016-11-15 15:37:20 UTC MAIN commitmail json YAML

Keep simplifying that stuff. Also, replace plX_pi(KERNTEXTOFF) by
LX_SLOT_KERNBASE: the base address is KERNBASE, and we just start mapping
from KERNTEXTOFF. For symmetry with the normal amd64, does not change
anything.

(maxv)

2016-11-15 15:26:59 UTC MAIN commitmail json YAML

I actually came across the solution to this issue in the Intel SDM for a
totally unrelated reason a few weeks ago. The reason we need a particular
module_map on amd64 is because gcc makes us use RIP-relative addressing.

The offset field of the associated opcodes is a 32bit signed displacement,
which means we can access only up to 2GB around the current instruction.
And given that kernel_map is too far away from the kernel .text, it is not
RIP-addressable. Hence the module_map embedded into the bootstrap memory,
which is right above the kernel image.

(maxv)

2016-11-15 15:00:56 UTC MAIN commitmail json YAML

2016-11-15 12:59:33 UTC MAIN commitmail json YAML

2016-11-15 10:57:57 UTC MAIN commitmail json YAML

Protect NPT stuff by "#ifdef NTP". Fix non-NTP kernel.
Approved by martin.

(rin)

2016-11-15 10:05:22 UTC MAIN commitmail json YAML

Evil hack to make register_t known and fix the build - XXX not sure this
is the proper fix.

(martin)

2016-11-15 09:04:30 UTC MAIN commitmail json YAML

Fix build of usr.sbin/puffs/rump_nfs

XXX a better fix should be to separate nfs codes and let rump_nfs link only
XXX one that doesn't depend on rt_delete_matched_entries (and rtrequest).

(ozaki-r)

2016-11-15 02:53:32 UTC MAIN commitmail json YAML

Add eventmask1 and eventmask2 in t_ptrace_wait*

Add basic tests verifying that value between PT_SET_EVENT_MASK and
PT_GET_EVENT_MASK is preserved between two ptrace(2) calls.

eventmask1: Verify that empty EVENT_MASK is preserved
eventmask2: Verify that PTRACE_FORK in EVENT_MASK is preserved

Currently the only supported event in ptrace(2) is PTRACE_FORK.

These tests are appropriate for all wait(2)-like functions.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-15 02:20:50 UTC MAIN commitmail json YAML

Clean up t_ptrace_wait.c

Remove trailing white space
Remove fflush(3) calls [previously added for debugging purposes]
Correct comment /proc/curproc/stat -> /proc/curpros/status
The status file is native for NetBSD, stat for Linux compatibility

No functional change.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-15 01:50:06 UTC MAIN commitmail json YAML

Don't use rt_walktree to delete routes

Some functions use rt_walktree to scan the routing table and delete
matched routes. However, we shouldn't use rt_walktree to delete
routes because rt_walktree is recursive to the routing table (radix
tree) and isn't friendly to MP-ification. rt_walktree allows a caller
to pass a callback function to delete an matched entry. The callback
function is called from an API of the radix tree (rn_walktree) but
also calls an API of the radix tree to delete an entry.

This change adds a new API of the radix tree, rn_search_matched,
which returns a matched entry that is selected by a callback
function passed by a caller and the caller itself deletes the
entry. By using the API, we can avoid the recursive form.

(ozaki-r)

2016-11-15 00:37:18 UTC MAIN commitmail json YAML

2016-11-15 00:34:19 UTC MAIN commitmail json YAML

fuse_opt_match(3): Support every form of templates, not just the simple strcmp case

Also it should return 1 for successful matches, not the way around.

(pho)

2016-11-15 00:32:42 UTC MAIN commitmail json YAML

2016-11-14 20:42:46 UTC MAIN commitmail json YAML

Drop remarks about AArch64 ABI being PIC following a discussion with Tim
Northover. The default code model is small and globals are expected to
be within the lower 4GB if not explicitly using -fPIC.

(joerg)

2016-11-14 19:24:23 UTC MAIN commitmail json YAML

2016-11-14 19:22:52 UTC MAIN commitmail json YAML

2016-11-14 17:48:57 UTC MAIN commitmail json YAML

Add missing macros

(pho)

2016-11-14 17:19:29 UTC MAIN commitmail json YAML