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 (3h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 18:00:12 UTC Now

2016-12-03 01:41:15 UTC MAIN commitmail json YAML

Define new tests for CPU Debug Registers in t_ptrace_wait{,3,4,6,id,pid}

Rename dbregs1 to dbregs_print
Rename dbregs[2345] to dbregs_preserve_dr[0123]

Add new tests dbregs_preserve_dr[0123]_yield.

dbregs_preserve_dr0_yield:
    Verify that setting DR0 is preserved across ptrace(2) calls with
    scheduler yield

dbregs_preserve_dr1_yield:
    Verify that setting DR1 is preserved across ptrace(2) calls with
    scheduler yield

dbregs_preserve_dr2_yield:
    Verify that setting DR2 is preserved across ptrace(2) calls with
    scheduler yield

dbregs_preserve_dr3_yield:
    Verify that setting DR3 is preserved across ptrace(2) calls with
    scheduler yield

Add new tests dbregs_preserve_dr[0123]_continued.

dbregs_preserve_dr0_continued:
    Verify that setting DR0 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr1_continued:
    Verify that setting DR1 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr2_continued:
    Verify that setting DR2 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr3_continued:
    Verify that setting DR3 is preserved across ptrace(2) calls and with
    continued child

Use more meaningful names for these tests as they are MD specific and
testing precise functionality. Also there will be a growing number of
tests in this category and prefixing everything with plain dbregs and
trailing with a number cannot be verbose.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-03 00:41:07 UTC MAIN commitmail json YAML

2016-12-03 00:40:48 UTC MAIN commitmail json YAML

src/external/gpl3/binutils/lib/libbfd/arch/mips64eb/bfd.h@1.8 / diff / nxr@1.8
src/external/gpl3/binutils/lib/libbfd/arch/mips64eb/bfdver.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/lib/libbfd/arch/mips64eb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/lib/libbfd/arch/mips64eb/defs.mk@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/lib/libbfd/arch/mips64el/bfd.h@1.9 / diff / nxr@1.9
src/external/gpl3/binutils/lib/libbfd/arch/mips64el/bfdver.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/lib/libbfd/arch/mips64el/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/lib/libbfd/arch/mips64el/defs.mk@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/lib/libopcodes/arch/mips64eb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/lib/libopcodes/arch/mips64el/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/common/arch/mips64eb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/common/arch/mips64eb/defs.mk@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/common/arch/mips64el/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/common/arch/mips64el/defs.mk@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/gas/arch/mips64eb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/gas/arch/mips64el/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/gprof/arch/mips64eb/gconfig.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/gprof/arch/mips64el/gconfig.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/ld/arch/mips64eb/config.h@1.7 / diff / nxr@1.7
src/external/gpl3/binutils/usr.bin/ld/arch/mips64el/config.h@1.7 / diff / nxr@1.7

regen mips64

(christos)

2016-12-02 23:16:07 UTC MAIN commitmail json YAML

change license since much of the actual acceleration code was adapted from
pm3_accel.c

(macallan)

2016-12-02 22:59:17 UTC MAIN commitmail json YAML

2016-12-02 22:58:26 UTC MAIN commitmail json YAML

2016-12-02 21:59:03 UTC MAIN commitmail json YAML

2016-12-02 20:53:37 UTC MAIN commitmail json YAML

fix test lib/librumphijack/t_sh/runscript
(handle F_DUPFD_CLOEXEC that the shell is now using)

(christos)

2016-12-02 19:25:19 UTC MAIN commitmail json YAML

Add unwind action type and constants

(christos)

2016-12-02 17:54:35 UTC MAIN commitmail json YAML

switch m68k to new binutils and gdb

(christos)

2016-12-02 17:53:51 UTC MAIN commitmail json YAML

2016-12-02 17:51:07 UTC MAIN commitmail json YAML

2016-12-02 12:43:07 UTC MAIN commitmail json YAML

Fix crashdump on machines with EXTENDED_MEMORY.

PR port-x68k/51663 from Rin Okuyama.

(tsutsui)

2016-12-02 12:14:37 UTC MAIN commitmail json YAML

Update ixg(4) and ixv(4) up to FreeBSD r294578:
- Fixup SFP module insertion on the 82599 when insertion happens after
  the system is booted and running. Add PHY detection logic to
  ixgbe_handle_mod() and add locking to ixgbe_handle_msf() as well.
  FreeBSD r293334.
- Fix ix advertise value after media change. When ifconfig sets media then the
  values displayed by the advertise_speed value are invalidated.
  Fix this by setting the bits correctly including setting advertise to 0 for
  media = auto. FreeBSD r294578.
- Some others (e.g. LRO(not used by NetBSD)).

(msaitoh)

2016-12-02 11:56:55 UTC MAIN commitmail json YAML

2016-12-02 10:48:11 UTC MAIN commitmail json YAML

2016-12-02 10:46:58 UTC MAIN commitmail json YAML

- Add missing pmf_device_deregister() in ixgbe_detach()
- Remove extra newline from an sysctl description.
- Fix dmesg output when the number of PCIe lane can't get.

(msaitoh)

2016-12-02 10:42:04 UTC MAIN commitmail json YAML

2016-12-02 10:34:23 UTC MAIN commitmail json YAML

Update ixg(4) and ixv(4) up to FreeBSD r289238:
- Add support for sysctl knobs to live tune the per interrupt rx/tx packet
  processing limits in ixgbe(4)
- Some others (netmap, etc.)

(msaitoh)

2016-12-02 10:24:31 UTC MAIN commitmail json YAML

Update ixg(4) and ixv(4) up to FreeBSD r285590:
- Fix igxbe SRIOV VF (if_ixv) initialization bugs.  The MAC address for
  an if_ixv instance can now set at creation time, and the receive ring
  tail pointer is correctly initialized (previously, things still worked
  because the receive ring tail pointer was being fixed up as a side
  effect of other activity).

(msaitoh)

2016-12-02 10:21:43 UTC MAIN commitmail json YAML

2016-12-02 06:49:00 UTC MAIN commitmail json YAML

Add new tests dbregs[2345] in MD arch/amd64/ t_ptrace_wait{,3,4,6,id,pid}

dbregs2:
    Verify that setting DR0 is preserved across ptrace(2) calls

dbregs3:
    Verify that setting DR1 is preserved across ptrace(2) calls

dbregs4:
    Verify that setting DR2 is preserved across ptrace(2) calls

dbregs5:
    Verify that setting DR3 is preserved across ptrace(2) calls

These tests are deliberately fine-grained as they are expected to penetrate
precisely each functional aspect of CPU Debug Registers on amd64 one after
another.

These tests (and MI ones) might be generated or merged with helper
functions, however in order to copy-and-paste them out of a test-suite and
quickly port to other platform (in order to compare results) it's useful to
keep them as stand-alone as they are.

Code from these tests might be shared with other ports in future, for the
same reason keep them currently as they are.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-02 06:19:50 UTC MAIN commitmail json YAML

fix typo. ping6 deadline option is not "-w" but "-X".

(knakahara)

2016-12-02 05:54:15 UTC MAIN commitmail json YAML

Refactor location of amd64-specific ATF tests to new dir kernel/arch/amd64

Rename
- tests/kernel/t_ptrace_amd64_wait.c
to
- tests/kernel/arch/amd64/t_ptrace_wait.c
and adapt appropriate files accordingly.

New directory will be used for more amd64-specific tests, verifying the
MD parts of the kernel.

Remove old entries from distrib/sets/lists as they were added a while ago.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-02 05:28:27 UTC MAIN commitmail json YAML

fix accidentally if_pppoe atf failure depends on cpu workload.

(knakahara)

2016-12-02 02:41:54 UTC MAIN commitmail json YAML

2016-12-02 02:30:47 UTC MAIN commitmail json YAML

Mark lvm and npf shlibs as such.

(riastradh)

2016-12-02 02:29:54 UTC MAIN commitmail json YAML

cvslatest(1) is unconditional, doesn't use cvs(1).

(riastradh)

2016-12-02 02:14:03 UTC MAIN commitmail json YAML

print-ip6.c is needed even with MKINET6=no.

Provides print_ip6 used by various other objects, with different
definitions depending on #ifdef INET6.

(riastradh)

2016-12-02 01:48:44 UTC MAIN commitmail json YAML

fix: ifp->if_obytes and ifp->if_omcasts are not counted up for packets which is sent later.

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

(knakahara)

2016-12-02 00:50:09 UTC MAIN commitmail json YAML

Fix !amd64 sets

Sponsored by <The NetBS Foundation>

(kamil)

2016-12-02 00:19:54 UTC MAIN commitmail json YAML

CID 1396598, CID 1396634: Fix null pointer dereferences

(ozaki-r)

2016-12-01 20:23:11 UTC MAIN commitmail json YAML

Add t_ptrace_amd64_wait{,3,4,6,id,pid} tests

Sponsored by <The NetBSD Foundation>

(kamil)

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

Add new test file t_ptrace_amd64_wait.c and refactor t_ptrace_*wait* tests

Clone t_ptrace_wait.c to t_ptrace_amd64_wait.c and put common parts to
t_ptrace_wait.h.

The t_ptrace_amd64_wait.c file is dedicated to hold amd64-specific tests
for the ptrace(2) interface.

Add new basic test dbreg1 in t_ptrace_amd64_wait{,3,4,6,id,pid}:
    Verify plain PT_GETDBREGS with printing Debug Registers

Fix evbarm64-aarch64 issue pointed by <christos>, kill1 and kill2 tests
must be defined without PT_STEP guards.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-12-01 18:21:39 UTC MAIN commitmail json YAML

n dl_iterate_phdr return the path not the name.

(christos)

2016-12-01 18:20:25 UTC MAIN commitmail json YAML

on NetBSD we don't have llvm_symbolizer, so try addr2line...

(christos)

2016-12-01 18:19:19 UTC MAIN commitmail json YAML

use the right sysctl to find the main binary name. We don't really need
this since our dl_iterate_phdr DTRT's for objmain, but...

(christos)

2016-12-01 15:39:03 UTC MAIN commitmail json YAML

CID 1396620: Null pointer dereferences

(mlelstv)

2016-12-01 14:49:04 UTC MAIN commitmail json YAML

- Change vcache_reclaim() to always call VOP_INACTIVE() before VOP_RECLAIM().
  When called from vrecycle() or vgone() there is a window where the refcount
  is greater than zero and another thread could get and release a reference
  that would miss VOP_INACTIVE() as the refcount doesn't drop to zero.

  Adjust test fs/puffs/t_basic:  test VOP_INACTIVE count being greater zero.

- Make vrecycle() more robust by checking v_usecount first and preventing
  further references across vn_lock().  Fixes a deadlock where one thread
  starts unmount, second thread locks a directory and allocates a vnode
  and first thread tries to vrecycle() the directory.
  First thread holds vfs_busy and wants vnode, second thread holds vnode
  and wants vfs_busy.

- With these fixes in place change cleanvnode() to use vget()/vrecycle()
  to reclaim the vnode.

(hannken)

2016-12-01 14:29:15 UTC MAIN commitmail json YAML

Instead of using a function to resolve symbols that should be supplied by
the dynamic linker itself, use a version script that exposes them. From joerg@

(christos)

2016-12-01 09:04:38 UTC MAIN commitmail json YAML

2016-12-01 09:04:03 UTC MAIN commitmail json YAML

- Add more Intel 10G devices
- indent

(msaitoh)

2016-12-01 07:44:58 UTC MAIN commitmail json YAML

2016-12-01 06:56:28 UTC MAIN commitmail json YAML

Update ixg(4) and ixv(4) up to FreeBSD r282299:
- Add support for X55x.
- ADD EEE support (not tested).
- Add WOL support (not tested).
- Add suspend/resume support (not testd).
- Add LPLU support (not tested).
- Add DMA Coalescing (note verified).
- Not tested well for sysctls.
- Fix ixgbe_set_advertise() a bit. At least, FreeBSD r294578 is required
  to work hw.ixg0.advertise_speed sysctl correctly.

(msaitoh)

2016-12-01 06:29:39 UTC MAIN commitmail json YAML

ixv.h is no more.

(msaitoh)

2016-12-01 06:27:18 UTC MAIN commitmail json YAML

2016-12-01 05:07:27 UTC MAIN commitmail json YAML

s/netbds32_copyout_statvfs/netbsd32_copyout_statvfs/

(mrg)

2016-12-01 02:36:50 UTC MAIN commitmail json YAML

support Tx multiqueue for 82574(aka e1000e for VMware and QEMU).

(knakahara)

2016-12-01 02:30:54 UTC MAIN commitmail json YAML

fix two races between set_ip_addrs and clear_ip_addrs race.

    (1) if set_ip_addrs and clear_ip_addrs run parallel, they can parallel call
        IN_ADDRHASH_WRITER_REMOVE to the same ifa.
    (2) if set_ip_addrs's workqueue is separated from clear_ip_addrs's one,
        the workers can run in reverse order of enqueued.

(knakahara)

2016-12-01 02:15:20 UTC MAIN commitmail json YAML

fix CID 1396600: Null pointer dereferences

(knakahara)

2016-12-01 02:15:08 UTC MAIN commitmail json YAML

extend the pmap_activate/pmap_deactivate UVMHIST logs to include the
pid, lid, and either l_name or p_comm.

(mrg)

2016-12-01 02:12:21 UTC MAIN commitmail json YAML

document new UVMHIST_MAPHIST_SIZE and UVMHIST_PDHIST_SIZE options.

(mrg)

2016-12-01 02:09:03 UTC MAIN commitmail json YAML

allow the sizes of the maphist and pdhist to be set in the config
file via UVMHIST_MAPHIST_SIZE and UVMHIST_PDHIST_SIZE.

(mrg)

2016-12-01 01:59:17 UTC MAIN commitmail json YAML

fix the output of ddb's "show uvmexp" and also print the
reserve_pagedaemon, reserve_kernel, and zeropages values.

(mrg)

2016-12-01 01:06:12 UTC MAIN commitmail json YAML

orrect the text for fileassoc_table_run() - it takes two parameters.

(pgoyette)

2016-11-30 21:12:53 UTC MAIN commitmail json YAML

Add new tests kill[12] in t_ptrace_wait{,3,4,6,id,pid}

New tests verify that PT_CONTINUE with SIGKILL is equivalent to PT_KILL.

kill1:
    Verify that PT_CONTINUE with SIGKILL terminates child

kill2:
    Verify that PT_KILL terminates child

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-30 20:25:23 UTC MAIN commitmail json YAML

add missing newline in comment

(christos)

2016-11-30 19:43:32 UTC MAIN commitmail json YAML

Emulate the standard symbol search order in dlsym() i.e. resolve weak or
not found symbols that are in the dynamic linker list of exported symbols
from the dynamic linker itself.

(christos)

2016-11-30 17:23:16 UTC MAIN commitmail json YAML

2016-11-30 05:30:28 UTC MAIN commitmail json YAML

Extra "buf->map = NULL;"s in ixgbe_txeof() were removed in FreeBSD r282299.
This was fixed in NetBSD's ixgbe.c rev. 1.28. Remove our comment.

(msaitoh)

2016-11-30 02:08:57 UTC MAIN commitmail json YAML

Fix panic on destroying an interface with IPv6 addresses obtained with RA

nd6_purge depends on that IPv6 addresses are purged. If addresses remain,
pfxlist_onlink_check called from nd6_purge dereferences a dangling pointer
(ia->ia6_ndpr) that is freed before calling pfxlist_onlink_check. Fix it by
removing addresses before calling nd6_purge, which is the original behavior
that was changed by in6.c,v 1.203 and in6_ifattach.c,v 1.99.

Note that it seems the issue occurs because of a hack that forcibly destroys
prefix list entries of a given interface in nd6_purge. We should tackle the
hack in the future.

Fix PR kern/51467

(ozaki-r)

2016-11-30 01:36:38 UTC MAIN commitmail json YAML

Don't call virtio_enqueue_abort when virtio_enqueue_reserve fails.
Pointed out by uwe@

(christos)

2016-11-29 23:17:22 UTC MAIN commitmail json YAML

Build gallium with -pthread if we're building the radeon driver. It uses a
thread, so without this the driver doesn't load and nothing works. ok mrg

(dholland)

2016-11-29 22:27:09 UTC MAIN commitmail json YAML

PR 51672 David Binderman: M_CSUM_TCPv6, not 2x M_CSUM_TCPv4.
(from context it's quite clear that's what's supposed to be here)

(dholland)

2016-11-29 22:04:42 UTC MAIN commitmail json YAML

Fix the "typical usage" example for enqueuing a request - if
bus_dmamap_load(9) fails, we shouldn't call bus_dmamap_unload(9).

(uwe)

2016-11-29 21:58:14 UTC MAIN commitmail json YAML

Add new tests dbregs[12] in t_ptrace_wait{,3,4,6,id,pid}

dbregs1:
    Verify plain PT_GETDBREGS call without further steps

dbregs2:
    Verify PT_GETDBREGS and PT_SETDBREGS calls without changing regs

These tests are to be used to verify CPU Debug Register accessors in the
ptrace(2) interface.

Additionally fix also fpregs2 test to really call PT_SETFPREGS.

Sponsored by <The NetBSD Foundation>

(kamil)

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

vioif_start() - do not call virtio_enqueue_abort() after error from
virtio_enqueue_reserve(), as it's already done by the latter, so we
ended up with a kind of "double free" that messed up out free list of
vq_entry's.

This is even documented in a "typical usage" comment in virtio.c (and
those quotes are not intended to be sarcastic).

PR 51132 - virtio net device stuck for UDP burst transmission

(uwe)

2016-11-29 21:31:45 UTC MAIN commitmail json YAML

Add more tests for PT_STEP step[234] in t_ptrace_wait{,3,4,6,id,pid}

step2:
    Verify PT_STEP called twice

step3:
    Verify PT_STEP called three times

step4:
    Verify PT_STEP called four times

The purpose of these tests is to assert that PT_STEP can be called more
than once and it sill works.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-29 17:33:48 UTC MAIN commitmail json YAML

PR/51673: Carsten Kunze: curses: standend() does not turn off A_BOLD;
according the X/Open it needs to turn off all attributes.

(christos)

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

sqlite3-3.15.2 out.

(wiz)

2016-11-29 07:28:16 UTC netbsd-7-nhusb commitmail json YAML

2016-11-29 07:26:53 UTC MAIN commitmail json YAML

Ensure the softc lock is not held in ucom_shutdown as the call to ucom_dtr
can sleep.

(skrll)

2016-11-29 03:23:01 UTC MAIN commitmail json YAML

reference count adapter mutex possibly shared by multiple channels.

fix error in atapibusdetach, when a child device cannot be detached,
keep atapibus instance alive.

(mlelstv)

2016-11-28 21:37:00 UTC MAIN commitmail json YAML

Add new test step1 in t_prace_wait{,3,4,6,id,pid} under PT_STEP guards

step1:
  Verify single PT_STEP call.

This function is calculating happy numbers just to consume CPU cycles for
the test purpose.

PT_STEP raises SIGTRAP to by caught by a debugger.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-28 20:12:42 UTC MAIN commitmail json YAML

Mark a variable __diagused as it is only ever used in a KASSERT

(martin)

2016-11-28 18:25:26 UTC MAIN commitmail json YAML

If we are inserting spaces to account for a tab, move the x position of the
cursor, otherwise this is a no-op (Carsten Kunze)

(christos)

2016-11-28 11:54:18 UTC MAIN commitmail json YAML

New sentence, new line.
Use more/better formatting.
Fix a typo.

(wiz)

2016-11-28 11:00:24 UTC MAIN commitmail json YAML

2016-11-28 08:42:20 UTC MAIN commitmail json YAML

Extend dkdriver interface with a d_firstopen function. This is called
by dk_open() for the first opener and mirrors the use of the d_lastclose
callback.

Bump kernel version for the interface change.

(mlelstv)

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

Fix vlan check bug in ixv_setup_vlan_support().

(msaitoh)

2016-11-28 08:21:10 UTC MAIN commitmail json YAML

Calculate CPU usage (pcpu) once per process if it is required. This change
significantly improves performance for slow machines when output is sorted
by pcpu.

ok martin

(rin)

2016-11-28 08:19:23 UTC MAIN commitmail json YAML

for donlist{,_sysctl}:
- obtain log_ccpu = log(ccpu) rather than ccpu itself
- use common default values and warn users appropriately when errors occur
ok martin

(rin)

2016-11-28 08:18:27 UTC MAIN commitmail json YAML

KNF
ok martin

(rin)

2016-11-28 07:29:56 UTC MAIN commitmail json YAML

Use redirection instead of pipeline

This is a workaround for PR bin/51667.

(ozaki-r)

2016-11-28 06:09:19 UTC MAIN commitmail json YAML

fix build of ixv enabled NO_PCI_MSI_MSIX option.

(knakahara)

2016-11-28 05:00:41 UTC MAIN commitmail json YAML

2016-11-28 04:18:08 UTC MAIN commitmail json YAML

2016-11-28 02:23:33 UTC MAIN commitmail json YAML

FreeBSD r280181 made new file ix_txrx.c and moved ixgbe.c and ixv's common
code into it. Before sync with whole of them, just move ixgbe.c and ixv.c's
common code into ix_txrx.c from ixgbe.c. In this commit, only ixgbe.c is split
into the device dependent part and the common part. ixv.c isn't change to make
this commit no functional change. To use ixv.c with ix_txrx.c, it's required
to modify the common part's API and functions themselves.

This commit is done to make the next change easy to understand.

(msaitoh)

2016-11-28 00:39:03 UTC MAIN commitmail json YAML

Don't check parent capabilities when a parent interface hasn't been
assigned.

(joerg)

2016-11-27 19:04:41 UTC MAIN commitmail json YAML

Do not attempt to pass -llinfo to route.

llinfo was removed, and the command fails because of it.

(maya)

2016-11-27 18:53:05 UTC MAIN commitmail json YAML

switch vax to new binutils and gdb.

(christos)

2016-11-27 18:52:19 UTC MAIN commitmail json YAML

2016-11-27 18:52:05 UTC MAIN commitmail json YAML

2016-11-27 17:06:09 UTC MAIN commitmail json YAML

2016-11-27 14:49:21 UTC MAIN commitmail json YAML

Add accessors for available x86 Debug Registers

There are 8 Debug Registers on i386 (available at least since 80386) and 16
on AMD64. Currently DR4 and DR5 are reserved on both cpu-families and
DR9-DR15 are still reserved on AMD64. Therefore add accessors for DR0-DR3,
DR6-DR7 for all ports.

Debug Registers x86:
* DR0-DR3  Debug Address Registers
* DR4-DR5  Reserved
* DR6      Debug Status Register
* DR7      Debug Control Register
* DR8-DR15 Reserved

Access the registers is available only from a kernel (ring 0) as there is
needed top protected access. For this reason there is need to use special
XEN functions to get and set the registers in the XEN3 kernels.

XEN specific functions as defined in NetBSD:
- HYPERVISOR_get_debugreg()
- HYPERVISOR_set_debugreg()

This code extends the existing rdr6() and ldr6() accessor for additional:
- rdr0() & ldr0()
- rdr1() & ldr1()
- rdr2() & ldr2()
- rdr3() & ldr3()
- rdr7() & ldr7()

Traditionally accessors for DR6 were passing vaddr_t argument, while it's
appropriate type for DR0-DR3, DR6-DR7 should be using u_long, however it's
not a big deal. The resulting functionality should be equivalent so stick
to this convention and use the vaddr_t type for all DR accessors.

There was already a function defined for rdr6() in XEN, but it had a nit on
AMD64 as it was casting HYPERVISOR_get_debugreg() to u_int (32-bit on
AMD64), truncating result. It still works for DR6, but for the sake of
simplicity always return full 64-bit value.

New accessors duplicate functionality of the dr0() function available on
i386 within the KSTACK_CHECK_DR0 option. dr0() is a specialized layer with
logic to set appropriate types of interrupts, now accessors are designed to
pass verbatim values from user-land (with simple sanity checks in the
kernel). At the moment there are no plans to make possible to coexist
KSTACK_CHECK_DR0 with debug registers for user applications (debuggers).

    options KSTACK_CHECK_DR0
    Detect kernel stack overflow using DR0 register.  This option uses DR0
    register exclusively so you can't use DR0 register for other purpose
    (e.g., hardware breakpoint) if you turn this on.

The KSTACK_CHECK_DR0 functionality was designed for i386 and never ported
to amd64.

Code tested on i386 and amd64 with kernels: GENERIC, XEN3_DOMU, XEN3_DOM0.

Sponsored by <The NetBSD Foundation>

(kamil)

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

Fix rdr6() function on amd64

According to the AMD64 SysV ABI the first returned value is passed in RAX,
not in RDI. Actually RDI is used for the first argument passed to a
function.

So far this function was dead code, it will be used for a ptrace(2)
feature to support CPU watchpoints.

The rdr6() function reads state of the DR6 register and returns its value.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-27 00:21:43 UTC MAIN commitmail json YAML

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

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

fix comment about initialization-time calls; ok joerg

(dholland)

2016-11-26 15:03:23 UTC MAIN commitmail json YAML

PCI MSI/MSI-X manipulation stub functions are not provided as weak alias.

(nonaka)

2016-11-26 13:59:46 UTC MAIN commitmail json YAML

2016-11-26 13:54:34 UTC MAIN commitmail json YAML

Mention fileassoc dependencies

(christos)

2016-11-26 12:32:03 UTC MAIN commitmail json YAML

size routine returns -1 on error, not an error code.

(mlelstv)

2016-11-26 11:36:38 UTC MAIN commitmail json YAML

+librumpnet_vlan.so.0.0.debug

(njoly)

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

Fix NetBSD keyword expansion.

(njoly)

2016-11-26 09:37:40 UTC MAIN commitmail json YAML

2016-11-26 09:36:43 UTC MAIN commitmail json YAML

Add an axe(4) from FreeBSD

(skrll)

2016-11-26 09:35:30 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2016-11-26 03:33:34 UTC MAIN commitmail json YAML

Add: PCB process control block

(kamil)

2016-11-26 03:20:42 UTC MAIN commitmail json YAML

Skip dumping if no bus is used

(ozaki-r)

2016-11-26 03:19:49 UTC MAIN commitmail json YAML

2016-11-26 03:17:58 UTC MAIN commitmail json YAML

2016-11-26 02:34:50 UTC MAIN commitmail json YAML

Print integers as hex with %#x rather than with plain %x

# if used with o, x or X specifiers the value is preceeded with 0, 0x or 0X
respectively for values different than zero.

Noted by <christos>

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-26 02:12:18 UTC MAIN commitmail json YAML

Set path for includes_HEADERS.  Change suggested by christos@.

(jnemeth)

2016-11-26 01:09:33 UTC MAIN commitmail json YAML

1.6 was the first amd64 release. (although it didn't really work too well
before -5)

(dholland)

2016-11-26 00:34:01 UTC MAIN commitmail json YAML

Note that really old compat is only useful for running 32-bit binaries.

XXX: someone please indicate what the oldest possible extant x86_64
binaries are; I can't find an authoritative source.

(dholland)

2016-11-25 23:33:46 UTC MAIN commitmail json YAML

fileassoc is used by PaX as well as veriexec - update note accordingly.

(dholland)

2016-11-25 23:15:28 UTC MAIN commitmail json YAML

2016-11-25 23:06:58 UTC MAIN commitmail json YAML

The compat options should all be in one block.

(dholland)

2016-11-25 23:02:45 UTC MAIN commitmail json YAML

PR/51652: Sevan Janiyan: makefs dies due to segmentation fault
Don't dereference NULL when running out of nodes during rename.

(christos)

2016-11-25 20:01:05 UTC MAIN commitmail json YAML

Fix several printf(3)-like functions usage with printing integers

Integers as hex shall no be printed with PRIx8, but with plain "x".

Pointed by <christos>

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-25 17:37:04 UTC MAIN commitmail json YAML

Add a missing newline in help message.

(tsutsui)

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

2016-11-25 15:35:35 UTC MAIN commitmail json YAML

Add an axe(4) device from OpenBSD

(skrll)

2016-11-25 14:26:53 UTC MAIN commitmail json YAML

Remove this comment and allow the beginning of .data to be mapped with
large pages. The issue is fixed, the lapic va is dynamically allocated
now.

(maxv)

2016-11-25 14:12:56 UTC MAIN commitmail json YAML

Move the virtual address of the LAPIC page out of the data segment on amd64
and i386. The old design was error-prone, and it didn't allow us to map the
data segment with large pages.

Now, the VA is allocated dynamically in the pmap bootstrap code, and entered
manually later. We go from using &local_apic to using *local_apic_va, and we
therefore need one more level of indirection in the asm code.

Discussed on tech-kern.

(maxv)

2016-11-25 14:10:31 UTC MAIN commitmail json YAML

cast to register_t because not all 'struct reg' members are the right type.

(christos)

2016-11-25 13:33:24 UTC MAIN commitmail json YAML

Remove #ifdef NETBSD_MSI_OR_MSIX to be simple. ixv(4) isn't attached if
__HAVE_PCI_MSI_MSIX isn't set because MSI-X must be used.

(msaitoh)

2016-11-25 12:56:29 UTC MAIN commitmail json YAML

2016-11-25 12:53:45 UTC MAIN commitmail json YAML

+__KERNEL_RCSID

(skrll)

2016-11-25 12:51:59 UTC MAIN commitmail json YAML

Don't always define UGENSA_DEBUG

(skrll)

2016-11-25 12:50:14 UTC MAIN commitmail json YAML

Sort opt_* #includes

(skrll)

2016-11-25 12:45:28 UTC MAIN commitmail json YAML

Remove UZCOM_DEBUG

(skrll)

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

2016-11-25 12:14:49 UTC MAIN commitmail json YAML

"#ifdef __HAVE_PCI_MSI_MSIX" workaround is not required any more.

see sys/dev/pci/pci_stub.c r1.6

(knakahara)

2016-11-25 12:10:59 UTC MAIN commitmail json YAML

provide all PCI MSI/MSI-X manipulation stub functions.

"#ifdef __HAVE_PCI_MSI_MSIX" workaround such as nvme_pci(4) is not required
any more.
    http://mail-index.netbsd.org/source-changes/2016/09/17/msg077799.html

(knakahara)

2016-11-25 11:57:36 UTC MAIN commitmail json YAML

Initialize the module map limits in amd64, not x86.

For the record: normally we could enable this code on Xen, since the
bootstrap layout is globally the same. But there appears to be an issue
in xen_locore, since any kenter in the area after kern_end triggers a
KASSERT because the va is already busy.

(maxv)

2016-11-25 08:51:17 UTC MAIN commitmail json YAML

2016-11-25 08:10:50 UTC MAIN commitmail json YAML

Add $DEBUG and remove a unused function

(ozaki-r)

2016-11-25 08:10:12 UTC MAIN commitmail json YAML

Add missing head functions

(ozaki-r)

2016-11-25 06:48:37 UTC MAIN commitmail json YAML

Add missing bpf_mtap.

(hikaru)

2016-11-25 05:29:55 UTC MAIN commitmail json YAML

Sync code with FreeBSD to support RSS

- Use MSI/MSI-X if it is available.
- Support TSO.

co-authored by k-nakahara

(hikaru)

2016-11-25 05:03:36 UTC MAIN commitmail json YAML

* Fix compile error.
* typo

(hkenken)

2016-11-25 05:03:12 UTC MAIN commitmail json YAML

make workqueue sppp_{set,clear}_ip_addrs to be able to call pserialize_perform.

(knakahara)

2016-11-25 05:00:29 UTC MAIN commitmail json YAML

refactor sppp_{set,clear}_ip_addrs(). reduce iterating if_addr_pslist.

(knakahara)

2016-11-25 02:27:43 UTC MAIN commitmail json YAML

2016-11-25 02:23:14 UTC MAIN commitmail json YAML

Move the #endif down to include other kernel only routines.

(christos)

2016-11-25 02:19:19 UTC MAIN commitmail json YAML

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

Add fpregs[12] in t_ptrace_wait{,3,4,6,id,pid}

fpregs1:
    Verify plain PT_GETFPREGS call without further steps

fpregs2:
    Verify PT_GETFPREGS and PT_SETFPREGS calls without changing regs

Sponsored by <The NetBSD Foundation>

(kamil)

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

Switch to CHECK_LIBC for writing.

(alnsn)

2016-11-24 19:26:32 UTC MAIN commitmail json YAML

2016-11-24 17:12:23 UTC MAIN commitmail json YAML

2016-11-24 17:09:55 UTC MAIN commitmail json YAML

off-by-one in memcpy. Found by ASAN (Carsten Kunze)
XXX: pullup 7.

(christos)

2016-11-24 14:49:08 UTC MAIN commitmail json YAML

don't coredump if we call endwin when initscr fails.

(christos)

2016-11-24 12:38:32 UTC MAIN commitmail json YAML

New sentence, new line. Sort SEE ALSO. Fix typo.

(wiz)

2016-11-24 12:32:47 UTC MAIN commitmail json YAML

bus_dmamap_sync() is required for ICT table read/write.
Tested by arm platform.

(hkenken)

2016-11-24 12:19:28 UTC MAIN commitmail json YAML

Bump date for previous.

(wiz)

2016-11-24 12:18:02 UTC MAIN commitmail json YAML

2016-11-24 12:06:44 UTC MAIN commitmail json YAML

2016-11-24 11:54:57 UTC MAIN commitmail json YAML

2016-11-24 11:34:51 UTC MAIN commitmail json YAML

Add missing bus argument for extract_new_packets

(ozaki-r)

2016-11-24 09:07:10 UTC MAIN commitmail json YAML

2016-11-24 09:06:09 UTC MAIN commitmail json YAML

2016-11-24 09:05:17 UTC MAIN commitmail json YAML

2016-11-24 09:03:54 UTC MAIN commitmail json YAML

2016-11-24 08:52:20 UTC MAIN commitmail json YAML

Reduce duplicate codes

Introduce net_common.sh that is to share common functions used in tests
for networking. This commit commonizes extract_new_packets. Other duplicate
codes will be moved to the file in further commits.

(ozaki-r)

2016-11-24 08:41:20 UTC MAIN commitmail json YAML

2016-11-24 07:32:20 UTC MAIN commitmail json YAML

Make tests strict

Connected routes have 'C' flag.

(ozaki-r)

2016-11-24 07:31:14 UTC MAIN commitmail json YAML

Add missing $NetBSD$ tag

(ozaki-r)

2016-11-24 05:50:15 UTC MAIN commitmail json YAML

Note update to tzdata2016j

(kre)

2016-11-24 05:47:33 UTC MAIN commitmail json YAML

Added TZ zone files Europe/Saratov and Asia/Aqtau for tzdata2016j

(kre)

2016-11-24 05:43:58 UTC MAIN commitmail json YAML

2016-11-24 04:20:11 UTC MAIN commitmail json YAML

2016-11-24 04:11:16 UTC MAIN commitmail json YAML

Drop unwanted printf(3) call in regs5 in t_ptrace

This call is reserved for other test.

Sponsored by <The NetBSD Foundation>

(kamil)

2016-11-24 04:08:37 UTC MAIN commitmail json YAML

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>

(kamil)

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

2016-11-24 00:37:29 UTC MAIN commitmail json YAML

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.

(dholland)

2016-11-24 00:12:52 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-24 00:05:13 UTC MAIN commitmail json YAML

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.

(dholland)

2016-11-23 23:30:50 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-23 21:18:12 UTC MAIN commitmail json YAML

support WSDISPLAYIO_GET_FBINFO
also, use _PREFETCHABLE for rasops

(macallan)

2016-11-23 21:14:23 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-23 20:56:47 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-23 19:46:51 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-23 17:25:12 UTC MAIN commitmail json YAML

2016-11-23 17:22:44 UTC MAIN commitmail json YAML

- protect against node not found SEGV
- fix reversed logic; if we find it in the cache we return it, otherwise
  we create it.

(christos)

2016-11-23 16:11:35 UTC MAIN commitmail json YAML

2016-11-23 16:10:59 UTC MAIN commitmail json YAML

one more atheros device

(christos)

2016-11-23 14:33:29 UTC MAIN commitmail json YAML

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

(pho)

2016-11-23 09:50:53 UTC MAIN commitmail json YAML

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.

(snj)

2016-11-23 09:31:32 UTC MAIN commitmail json YAML

2016-11-23 05:00:20 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-23 03:30:53 UTC MAIN commitmail json YAML

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.

(mrg)

2016-11-23 03:02:56 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-23 01:49:05 UTC MAIN commitmail json YAML

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>

(kamil)

2016-11-22 22:53:09 UTC MAIN commitmail json YAML

For ski, break into debugger instead of exiting

(scole)

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

For ski, break into debugger instead of exiting

(scole)

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

For ski, break into debugger instead of exiting

(scole)

2016-11-22 22:50:32 UTC MAIN commitmail json YAML

2016-11-22 21:59:32 UTC MAIN commitmail json YAML

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>

(kamil)