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 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 07:25:23 UTC Now

2017-02-10 10:39:36 UTC MAIN commitmail json YAML

If the segment list is full, print a warning on the console and launch the
system with the available segments.

High memory systems may have more than VM_PHYSSEG_MAX segments; it is
better to truncate the memory and allow the system to work rather than
just panicking. The user can still increase VM_PHYSSEG_MAX (or ask us to).

Fixes issues such as PR/47093.

Note: the warning is logged but does not appear in dmesg, this too needs
to be fixed for the rest of the bootstrap procedure.

(maxv)

2017-02-10 10:02:26 UTC MAIN commitmail json YAML

Use macros instead of hard-coded constants. By the way, I don't think this
code is correct, but whatever.

(maxv)

2017-02-10 09:57:04 UTC MAIN commitmail json YAML

Import iomem_ex locally.

(maxv)

2017-02-10 08:52:04 UTC MAIN commitmail json YAML

speed limit is 80 (missed this one)

(maya)

2017-02-10 08:50:27 UTC MAIN commitmail json YAML

strncpy->strlcpy. use sizeof instead of numbers.

(maya)

2017-02-10 08:48:06 UTC MAIN commitmail json YAML

ixg(4): Support TX/RX multiqueue

(msaitoh)

2017-02-10 08:41:13 UTC MAIN commitmail json YAML

Change the Interrupt Moderation flag from global variable to per device.

(msaitoh)

2017-02-10 06:35:22 UTC MAIN commitmail json YAML

- Both mbuf_defrag_failed and m_defrag_failed existed. Remove m_defrag_failed.
- rx_irq, dropped_pkts, morerx, moretx and txloops counters are uncounted, so
  remove them.
- Count handleq in ixv_handle_que().
- Detach event counters correctly.
- Set some per-queue event names correctly.

(msaitoh)

2017-02-10 06:25:28 UTC MAIN commitmail json YAML

Remove checks for cursor being in scrolling region, ncurses doesn't
do checking, rather just scrolls the scrolling region so we shall
follow suit.  SUSv2 says what is happens when scrl is called with the
cursor outside the scrolling is undefined so we should match ncurses.
This fixes PR#51819 without forcing tin to use terminfo directly.

(blymn)

2017-02-10 04:34:11 UTC MAIN commitmail json YAML

No functional change:
- Rename ixv_sysctl_attach() to ixv_add_device_sysctls().
- Move sysct and evcnt related functions to match ixgbe.c.

(msaitoh)

2017-02-10 04:00:48 UTC MAIN commitmail json YAML

kill variable stack allocation

(christos)

2017-02-10 03:59:02 UTC MAIN commitmail json YAML

Add many entries

(ozaki-r)

2017-02-09 23:30:46 UTC MAIN commitmail json YAML

detach wm(4) evcnt.

pointed out by msaitoh@n.o, thanks.

(knakahara)

2017-02-09 22:11:09 UTC MAIN commitmail json YAML

ifdef out some dead code. improves code readability.
all later users of y first assign another value.

using ifdefs to make potential future code syncs easier, as is done
elsewhere.

suggested by coverity, CID 1300929, 1300930.

(maya)

2017-02-09 22:02:14 UTC MAIN commitmail json YAML

2017-02-09 22:02:05 UTC MAIN commitmail json YAML

2017-02-09 22:01:48 UTC MAIN commitmail json YAML

2017-02-09 21:25:06 UTC MAIN commitmail json YAML

no more warnings for ld.

(christos)

2017-02-09 21:23:49 UTC MAIN commitmail json YAML

use mkstemp to prevent linker warning.

(christos)

2017-02-09 21:23:11 UTC MAIN commitmail json YAML

Appease static analyzers by making all code paths which assign
values into p,q sane. Get rid of redundant assignment. Indent
for legibility. NFC.

This doesn't create a functional difference, as all callers
test number >= 0x40000000 anyway.

To see this, note the following:
- consistently, hx is the high bits of x, lx is the low bits,
  x is the float.
- & 0x7fffffff zeroes the sign bit, as does fabs.

A case where it isn't easy to see that there's no functional
change is y1, which does:

ix = hx & 0x7fffffff (zero signbit of high bits of x)
y = fabs(x) (this has a zeroed signbit but otherwise same as x)
ix >= 0x40000000
  pone(y); qone(y)

qone(x) (also pone) do:
  ix = hx & 0x7fffffff

ix in qone and in the calling function are the same number,
and the comparison applies for both, and ix < 0x40000000 isn't
possible.

(Also, no explosions seem to happen when I feed it random numbers)

(maya)

2017-02-09 20:42:30 UTC MAIN commitmail json YAML

2017-02-09 20:39:42 UTC MAIN commitmail json YAML

Turn off fatal linker warnings for now due to mktemp.

(joerg)

2017-02-09 20:37:58 UTC MAIN commitmail json YAML

Mark help as static+dead. Don't use __attribute__.
XXX needs a lot more static love. Uses mktemp and doesn't link.

(joerg)

2017-02-09 20:32:19 UTC MAIN commitmail json YAML

make fallback to PIO actually work properly

(macallan)

2017-02-09 19:30:56 UTC MAIN commitmail json YAML

If the preloaded modules cannot be mapped with the initial amount of VA,
discard the associated bootinfo entry. Otherwise the machine faults and
reboots immediately.

I spotted this bug more than a year ago, but I recently saw that there is
already PR/42645 (7 years old), so just fix it. The size has been increased
in the meantime, so the limit is unlikely to be reached anyway.

(maxv)

2017-02-09 18:15:07 UTC MAIN commitmail json YAML

2017-02-09 17:58:57 UTC MAIN commitmail json YAML

2017-02-09 17:54:07 UTC LLVM commitmail json YAML

src/external/bsd/llvm/dist/llvm/include/llvm/Analysis/LoopPassManager.h deleted
src/external/bsd/llvm/dist/llvm/include/llvm/DebugInfo/CodeView/TypeDumper.h deleted
src/external/bsd/llvm/dist/llvm/lib/Analysis/LoopPassManager.cpp deleted
src/external/bsd/llvm/dist/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/AArch64/aarch64-interleaved-accesses-extract-user.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/AArch64/aarch64-interleaved-accesses.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/AArch64/ldst-opt-dbg-limit.mir deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/AMDGPU/ci-use-flat-for-global.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/AMDGPU/fp16_to_fp.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/ARM/arm-interleaved-accesses-extract-user.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/ARM/arm-interleaved-accesses.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/X86/atom-bypass-slow-division-64.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/X86/atom-bypass-slow-division.ll deleted
src/external/bsd/llvm/dist/llvm/test/CodeGen/X86/slow-div.ll deleted
src/external/bsd/llvm/dist/llvm/test/FileCheck/strict-whitespace-match-full-lines.txt deleted
src/external/bsd/llvm/dist/llvm/test/MC/Disassembler/Mips/mips4/valid-xfail-mips4.txt deleted
src/external/bsd/llvm/dist/llvm/test/MC/Mips/mips3/invalid-mips4-wrong-error.s deleted
src/external/bsd/llvm/dist/llvm/test/tools/llvm-xray/X86/bad-instrmap-sizes.bin deleted
src/external/bsd/llvm/dist/llvm/tools/llvm-pdbdump/BuiltinDumper.cpp deleted
src/external/bsd/llvm/dist/llvm/tools/llvm-pdbdump/BuiltinDumper.h deleted
      :
(more 17 files)
Mark files not in r294123 as dead.

(joerg)

2017-02-09 17:27:30 UTC MAIN commitmail json YAML

the tls ifdef was a bit too aggressive.

(christos)

2017-02-09 15:24:08 UTC MAIN commitmail json YAML

2017-02-09 14:00:06 UTC MAIN commitmail json YAML

2017-02-09 13:59:02 UTC MAIN commitmail json YAML

put back exect directory; we try to remove it before the files inside it and
we fail.

(christos)

2017-02-09 13:26:56 UTC MAIN commitmail json YAML

fix build (MKUNBOUND=no)

(szptvlfn)

2017-02-09 11:56:41 UTC MAIN commitmail json YAML

2017-02-09 11:43:32 UTC MAIN commitmail json YAML

PR kern/51280

This allows srt devices to work for IPv6.  srt still needs work
(particularly #ifdef INET6 but also general effeciency and similar.)

(kre)

2017-02-09 09:30:26 UTC MAIN commitmail json YAML

Make bpf MP-safe

By the change, bpf_mtap can run without any locks as long as its bpf filter
doesn't match a target packet. Pushing data to a bpf buffer still needs
a lock. Removing the lock requires big changes and it's a future work.

Another known issue is that we need to remain some obsolete variables to
avoid breaking kvm(3) users such as netstat and fstat. One problem for
MP-ification is that in order to keep statistic counters of bpf_d we need
to use atomic operations for them. Once we retire the kvm(3) users, we
should make the counters per-CPU and remove the atomic operations.

(ozaki-r)

2017-02-09 08:38:25 UTC MAIN commitmail json YAML

No, do not just copy code from i386 and expect it to work on amd64. There
are several structural differences. At least two issues here: segment
registers that could fault in kernel mode with userland TLS, and a non-
canonical %eip on iret.

Not even tested, but just obvious. By the way, I believe this function is
still buggy since we don't call cpu_fsgs_reload while %fs/%gs could have
been reloaded.

(maxv)

2017-02-09 08:23:46 UTC MAIN commitmail json YAML

Restore %ds before swapgs. Movs to segment registers are allowed to fault
in kernel mode but simply cause a signal to be sent to userland. The thing
is, in this case %gs is not restored when entering the trap routine, which
means the kernel uses userland's TLS instead of using its own. Which in
short makes it easy to escalate privileges.

Currently, this bug is triggered only in one place, which I am about to
fix too.

(maxv)

2017-02-09 06:03:29 UTC MAIN commitmail json YAML

make some locks and condvar static

(knakahara)

2017-02-09 04:42:53 UTC MAIN commitmail json YAML

Revert the part of mkfs.c 1.36 that "gutted the const" (while
retaining the part that added a different one).

That is, re-constipate makefs (well, just a bit, no real pain here.)

(kre)

2017-02-09 04:37:35 UTC MAIN commitmail json YAML

Sprinkle in a pinch of const, not too much, just enough
to add a little strength without affecting the overall balance...

(kre)

2017-02-09 03:38:01 UTC MAIN commitmail json YAML

Supress verbose message "This pci host supports neither MSI nor MSI-X."
on VMware and KVM. OK'd by k-nakahara.

(msaitoh)

2017-02-09 03:29:55 UTC MAIN commitmail json YAML

2017-02-09 03:27:07 UTC MAIN commitmail json YAML

remove exect, it will not be fixed and it will be removed.

(christos)

2017-02-09 03:24:06 UTC MAIN commitmail json YAML

2017-02-09 03:23:59 UTC MAIN commitmail json YAML

2017-02-09 02:20:33 UTC MAIN commitmail json YAML

2017-02-09 02:18:13 UTC MAIN commitmail json YAML

Add tests for several bpf ioctls

(ozaki-r)

2017-02-09 01:55:41 UTC MAIN commitmail json YAML

2017-02-09 01:53:51 UTC MAIN commitmail json YAML

2017-02-09 00:25:23 UTC MAIN commitmail json YAML

2017-02-09 00:23:27 UTC MAIN commitmail json YAML

src/external/bsd/bind/dist/CHANGES@1.25 / diff / nxr@1.25
src/external/bsd/bind/dist/README@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/bin/named/query.c@1.23 / diff / nxr@1.23
src/external/bsd/bind/dist/doc/arm/Bv9ARM.ch04.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/Bv9ARM.ch06.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/Bv9ARM.ch07.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/Bv9ARM.ch08.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/Bv9ARM.ch09.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/Bv9ARM.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/Bv9ARM.pdf@1.18 / diff / nxr@1.18
src/external/bsd/bind/dist/doc/arm/man.arpaname.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.ddns-confgen.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.delv.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.dig.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.dnssec-checkds.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.dnssec-coverage.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.dnssec-dsfromkey.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.dnssec-importkey.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.dnssec-keyfromlabel.html@1.13 / diff / nxr@1.13
src/external/bsd/bind/dist/doc/arm/man.dnssec-keygen.html@1.13 / diff / nxr@1.13
      :
(more 23 files)
Merge 9.10.4-P6
4558.  [bug]          Synthesised CNAME before matching DNAME was still
                        being cached when it should have been.  [RT #44318]

4557.  [security]      Combining dns64 and rpz can result in dereferencing
                        a NULL pointer (read).  (CVE-2017-3135) [RT#44434]

(christos)

2017-02-08 23:34:15 UTC MAIN commitmail json YAML

Cosmetic changes. No functional changes.

(rin)

2017-02-08 23:26:24 UTC MAIN commitmail json YAML

Cosmetic changes. No functional changes.

(rin)

2017-02-08 23:24:57 UTC MAIN commitmail json YAML

Replace ".PATH ${SRCDIR}" before including Makefile.common to ensure the
correct order of search path.

(rin)

2017-02-08 23:22:43 UTC MAIN commitmail json YAML

Factor out a common part in Makefile's of ifconfig and x_ifconfig.

(rin)

2017-02-08 23:16:41 UTC MAIN commitmail json YAML

Rename sbin/ifconfig/Makefile.inc to Makefile.common; the former can
potentially conflict with bsd.subdir.mk.

(rin)

2017-02-08 23:14:00 UTC MAIN commitmail json YAML

Remove ifconfig hack on m68000. I've confirmed that the problem has already
gone with TME.

(rin)

2017-02-08 23:08:28 UTC MAIN commitmail json YAML

Fix build with MKDEBUG=yes for sun2:

- libgcc_g.a, libgcov_g.a, libobjc_g.a, libstdc++_g.a, and libsupc++_g.a are
  marked "gcc" instead of "gcccmds".

- libbfd_g.a and libh_helper_*_g.a are moved from debug/mi to debug/shl.mi.
  This seems strange at first sight, but they are built only when shared
  libraries are enabled.

(rin)

2017-02-08 21:43:53 UTC MAIN commitmail json YAML

Do not use the assembler version of AES routines for m68000; they contain
instructions available for 68020 and later.

Fix sun2 build.

(rin)

2017-02-08 21:33:12 UTC MAIN commitmail json YAML

If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).

(christos)

2017-02-08 21:27:26 UTC MAIN commitmail json YAML

stampst.st_ion consistent treatment (non-zero vs zero instead of testing == 1)

(christos)

2017-02-08 20:26:27 UTC MAIN commitmail json YAML

2017-02-08 20:11:18 UTC MAIN commitmail json YAML

Shrink the ramdisk of INSTALL kernel for zaurus in order to fit within 5MB.

Now free spaces of the main kernel and ramdisk are about 62KB and 215KB for
INSTALL, respectively.

OK christos

(rin)

2017-02-08 18:53:01 UTC MAIN commitmail json YAML

Analagous fix to that just committed to the equiv amd64 sources.
Note: this one has yet to be compile tested, so anything is possible...

(kre)

2017-02-08 18:50:52 UTC MAIN commitmail json YAML

All bow down before the Great Code Compiler.

Specifically, it has been commanded that unused-functions is a warning,
and, as all should know, all warnings be errors.

Hence, since XEN kernels do not call set_sys_gdt(), that function
may not be included (and the XEN kernel  saves a few tens of bytes.)

An alternate fix would be to just remove "static" - but that would be
the equivalent to just giving the compiler the finger ...  hmm, maybe
that would have been a better fix...

(kre)

2017-02-08 18:21:23 UTC MAIN commitmail json YAML

Document sets programmatically instead of keeping a list that constantly is
out of date.

(christos)

2017-02-08 18:05:25 UTC MAIN commitmail json YAML

2017-02-08 18:03:57 UTC MAIN commitmail json YAML

oops, do not write the same file twice -- accidentally ran patch twice

(maya)

2017-02-08 18:01:24 UTC MAIN commitmail json YAML

Document accept4 in accept(2)

(maya)

2017-02-08 18:01:12 UTC MAIN commitmail json YAML

2017-02-08 18:00:37 UTC MAIN commitmail json YAML

2017-02-08 17:59:35 UTC MAIN commitmail json YAML

use __nothing instead since __empty is taken in stl_deque.h

(christos)

2017-02-08 17:58:41 UTC MAIN commitmail json YAML

Add accept4, a tiny wrapper around paccept.

accept4 is a syscall in Linux, FreeBSD and OpenBSD. It is used in
LLVM, zeromq, and probably others. paccept is a superset of it.

adding it to libc ensures it is used by programs and prevents the
need to define the same wrapper in every program.

(maya)

2017-02-08 17:51:21 UTC MAIN commitmail json YAML

2017-02-08 17:47:36 UTC MAIN commitmail json YAML

Use strncpy here because we need to be portable, and we have the +1 byte
to save us :-)

(christos)

2017-02-08 17:30:27 UTC MAIN commitmail json YAML

Make paccept a weak symbol in preparation for using it in another function

(maya)

2017-02-08 16:56:56 UTC MAIN commitmail json YAML

switch to __empty

(rin)

2017-02-08 16:26:19 UTC MAIN commitmail json YAML

remove comment in comment

(christos)

2017-02-08 16:23:24 UTC MAIN commitmail json YAML

2017-02-08 16:21:24 UTC MAIN commitmail json YAML

2017-02-08 16:14:08 UTC MAIN commitmail json YAML

2017-02-08 16:13:40 UTC MAIN commitmail json YAML

__empty is defined in <sys/cdefs.h>

(christos)

2017-02-08 16:13:04 UTC MAIN commitmail json YAML

2017-02-08 16:12:59 UTC MAIN commitmail json YAML

Switch to x_fsck_ffs and x_newfs. Fix floppy image overflow.

(rin)

2017-02-08 16:11:40 UTC MAIN commitmail json YAML

2017-02-08 16:00:30 UTC MAIN commitmail json YAML

2017-02-08 14:53:50 UTC MAIN commitmail json YAML

Add new entry in TODO.ptrace

Added:
    add PT_SET_SIGMASK and PT_GET_SIGMASK - used by checkpointing software

Example software: gdb, criu

(kamil)

2017-02-08 14:47:55 UTC MAIN commitmail json YAML

Time waro (thanks Kamil)

(kre)

2017-02-08 13:54:39 UTC MAIN commitmail json YAML

Ammend previous, mention compat/amd64/i386/lib/libc as well.

(kre)

2017-02-08 13:31:36 UTC MAIN commitmail json YAML

Omit duplicate text.

(riastradh)

2017-02-08 10:56:12 UTC MAIN commitmail json YAML

Note libc update build issue after change from arch/exect.S to exect.c
(The build system really should be able to cope with changes like this
one without obj dir fiddling or clean builds)

(kre)

2017-02-08 10:08:26 UTC MAIN commitmail json YAML

Remove gdt_reload_cpu. GDTR takes a VA as base, and in our x86
implementation this VA is per-cpu and does not change; there is therefore
no need to remotely reload GDTR.

(maxv)

2017-02-08 09:58:42 UTC MAIN commitmail json YAML

ixv(4): Add Intel 10G Ethernet virtual function driver.

(msaitoh)

2017-02-08 09:39:32 UTC MAIN commitmail json YAML

2017-02-08 09:00:37 UTC MAIN commitmail json YAML

2017-02-08 08:30:16 UTC MAIN commitmail json YAML

- Fix aprint_*()s in ixv_allocate_msix().
- Style fix. Reduce diff against ixgbe.c. No functional change.

(msaitoh)

2017-02-08 08:13:53 UTC MAIN commitmail json YAML

Call IFQ_SET_MAXLEN() even if TX multiqueue is used. ALTQ uses it.

(msaitoh)

2017-02-08 04:32:43 UTC MAIN commitmail json YAML

Enable TX multiqueue by default on both ixg(4) and ixv(4).

(msaitoh)

2017-02-08 04:28:53 UTC MAIN commitmail json YAML

2017-02-08 04:24:44 UTC MAIN commitmail json YAML

Use dmat64 if available. Same as ixgbe.c rev. 1.60.

(msaitoh)

2017-02-08 04:20:29 UTC MAIN commitmail json YAML

Fix a bug that 1Gbps is printed even if the phyiscal media is at 100Mbps.

(msaitoh)

2017-02-08 04:18:42 UTC MAIN commitmail json YAML

Don't track /etc/nsd/nsd.conf and /etc/unbound/unbound.conf

(christos)

2017-02-08 04:14:05 UTC MAIN commitmail json YAML

Fix detach path:
- Call softint_disestablish() and pci_intr_disestablish() for all queues
  correctly.
- Add missing sysctl_teardown() to delete sysctl entries.
- Call pci_intr_release(). Now NETBSD_MSI_OR_MSIX is completely deleted.

(msaitoh)

2017-02-08 04:08:53 UTC MAIN commitmail json YAML

Don't store random (from ASLR) pointers into the superblock. Should be the
last (famous last words) problem with reproducible builds!

(christos)

2017-02-08 04:05:13 UTC MAIN commitmail json YAML

2017-02-08 04:01:44 UTC MAIN commitmail json YAML

pthread_dbg(3): Removed from the base distribution.

(kamil)

2017-02-08 03:59:12 UTC MAIN commitmail json YAML

Set ifm_active to IFM_NONE when the physical interface's link is down.
Now ifconfig shows "media: Ethernet autoselect '(none)'".

(msaitoh)

2017-02-08 03:44:41 UTC MAIN commitmail json YAML

libpthread_dbg(3) deletion from the base distribution

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-08 02:23:45 UTC MAIN commitmail json YAML

no, this is wrong.

(christos)

2017-02-08 02:20:35 UTC MAIN commitmail json YAML

zero out the superblock so that it does not contain random stuff in the
spare fields.

(christos)

2017-02-08 01:32:37 UTC MAIN commitmail json YAML

Detach libpthread_dbg(3) from gdb(1) and gdbtui (gdb.old)

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-07 22:53:20 UTC MAIN commitmail json YAML

Detach libpthread_dbg(3) from gdb(1) and gdbtui

libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-07 22:37:18 UTC MAIN commitmail json YAML

add config files as examples

(christos)

2017-02-07 22:34:37 UTC MAIN commitmail json YAML

2017-02-07 22:34:09 UTC MAIN commitmail json YAML

add nsd and unbound example dirs

(christos)

2017-02-07 22:31:29 UTC MAIN commitmail json YAML

add nsd and unbound example dirs

(christos)

2017-02-07 22:25:25 UTC MAIN commitmail json YAML

PR/51958: Ngie Cooper: ESRCH error description in hcreate(3) contains typo
for action

(christos)

2017-02-07 21:19:14 UTC MAIN commitmail json YAML

Kernel build objdirs have a kernel name after the objdir. Use a regex for
that. Note that debug-prefix-map and debug-regex-map insert entries in a
linked list in reverse order.

(christos)

2017-02-07 21:18:05 UTC MAIN commitmail json YAML

Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir

(christos)

2017-02-07 21:16:31 UTC MAIN commitmail json YAML

use the logical path for -C if correct.

(christos)

2017-02-07 19:29:40 UTC MAIN commitmail json YAML

Mark exect(3) obsolete and bind it to plain execve(2) on all platforms

The original exect(2) from BSD4.2 was enabling bit for tracing
(single-step mode) and calling execve(2). The purpose of it was to generate
a signal for a tracer once the application will change its image to a new
program.

This approach no longer works as:
- exect(2) traces (single-steps) libc and it requires hundreds or
  thousands steps before entering a new image
- it's vax and x86 specific code
- this functionality has been moved to the kernel - once a process is
  traced it will generate SIGTRAP with si_code TRAP_EXEC and route it to
  its debugger
- the side effects and unportability make this interface unusable
- there are no known users of this interface
- it apparently never worked better since day0 of NetBSD ("day0 bug")

Users are requested to move to other execve(2) variants. Calling current
execve(2) as it is the most similar behavior to this one from BSD4.2.

Discussed several times on mailing lists and in PR/51700.

Add warning to exect(3) telling about marking this function obsolete.

This function is prepared to be removed in next libc major bump.

Sponsored by <The NetBSD Foundation>

(kamil)

2017-02-07 16:49:40 UTC MAIN commitmail json YAML

Define NOMAN before including bsd.own.mk to set MKMAN=no appropriately.

(rin)

2017-02-07 16:15:05 UTC MAIN commitmail json YAML

Update TODO.ptrace

Note PT_WATCHPOINT change to PT_*ETDBREGS.
Remove GDB and LLDB related entries from generic ptrace(2) TODO.
Note need for TRAP_SCE and TRAP_SCX si_codes in PT_SYSCALL*.
Note removal request of pthread_dbg(3).

Sponsord by <The NetBSD Foundation>

(kamil)

2017-02-07 16:14:48 UTC MAIN commitmail json YAML

Do not compile in progress.c when SMALLPROG is defined.

(rin)

2017-02-07 15:33:25 UTC MAIN commitmail json YAML

Document in libc's shlib_version request for exect(3) removal

This functionality has been moved long time to the kernel. Kernel exec()
emits SIGTRAP under a debugger (unless PT_SYSCALL traced).

(kamil)

2017-02-07 11:18:43 UTC MAIN commitmail json YAML

Implement m68k assembly version of AES.
It's approx 1.4 times faster than the original one.

(isaki)

2017-02-07 11:17:50 UTC MAIN commitmail json YAML

KNF and trailing whitespace.  No functional change.

(skrll)

2017-02-07 09:14:52 UTC MAIN commitmail json YAML

Fix non-DIAGNOSTIC build

(skrll)

2017-02-07 04:27:43 UTC MAIN commitmail json YAML

Set IFM_10G_T on 10G...

(msaitoh)

2017-02-07 04:26:07 UTC MAIN commitmail json YAML

Fix link status stuff:
- Set get_link_status in ixv_init_locked() to get link status correctly.
- Don't discard checked speed in ixv_config_link()...

(msaitoh)

2017-02-07 04:20:59 UTC MAIN commitmail json YAML

Fix device attach:
- Even if ixgbevf_negotiate_api_version() failed, continue attaching.
  Same as Linux. Tested on ESXi 6.0.
- Fix argument of pci_msix_alloc_exact().
- Use different intr_xname for each interrupt.
- Add missing pci_intr_release() on error.
- Add missign kcpuset_destroy().
- Calculate MSI-X vectors correctly.

(msaitoh)

2017-02-07 02:38:08 UTC MAIN commitmail json YAML

2017-02-07 02:36:48 UTC MAIN commitmail json YAML

Tweak m_get_rcvif

Call pserialize_read_exit if if_byindex returns NULL in m_get_rcvif.
By changing so, callers need to call m_put_rcvif only if m_get_rcvif
returns non-NULL.

Old m_get_rcvif/m_put_rcvif could forget to call pserialize_read_exit,
which is pointed out by maxv@. The change fixes it.

(ozaki-r)

2017-02-07 02:33:54 UTC MAIN commitmail json YAML

Use m_get_rcvif_psref instead of m_get_rcvif

Because the critical sections are now sleepable.

Reviewed by knakahara@

(ozaki-r)

2017-02-07 02:05:27 UTC MAIN commitmail json YAML

Ensure the vc block size is set before call to set defaults.

It should address PR kern/51746 Panics from audio.

(nat)

2017-02-06 23:45:49 UTC MAIN commitmail json YAML

Use ELFOSABI_LINUX instead of a magic number.

(uwe)

2017-02-06 23:12:25 UTC MAIN commitmail json YAML

Remove __DATE__! Intel really likes non-reprodible builds!

(christos)

2017-02-06 21:06:04 UTC MAIN commitmail json YAML

white space

(rin)

2017-02-06 19:45:18 UTC MAIN commitmail json YAML

+ /usr/bin/nc    (someone please check these are correct)

(kre)

2017-02-06 16:34:37 UTC MAIN commitmail json YAML

In cpu_mcontext32_validate, allow the registers to have different locations
if the LDT is user-set.

I am intentionally not allowing this in check_sigcontext32, because I don't
think Wine uses it.

(maxv)

2017-02-06 16:08:56 UTC MAIN commitmail json YAML

Use full month name in Dd.

(wiz)

2017-02-06 16:08:40 UTC MAIN commitmail json YAML

2017-02-06 16:06:38 UTC MAIN commitmail json YAML

2017-02-06 16:04:07 UTC MAIN commitmail json YAML

2017-02-06 16:03:41 UTC MAIN commitmail json YAML

- Disable crypto for now, and functionality that we don't provide.
- Fix warnings

(christos)

2017-02-06 16:02:18 UTC MAIN commitmail json YAML

Add the USER_LDT sysarch options in netbsd32. We don't translate 'desc',
since if we ever implement USER_LDT we will only allow 8-byte-sized
entries, which have the same layout on amd64 and i386.

(maxv)

2017-02-06 10:32:35 UTC MAIN commitmail json YAML

2017-02-06 10:20:01 UTC nick-nhusb commitmail json YAML

2017-02-06 09:08:48 UTC nick-nhusb commitmail json YAML

Sprinkle const and reduce scope of a couple of variables.

(skrll)

2017-02-06 09:02:38 UTC nick-nhusb commitmail json YAML

2017-02-06 07:31:50 UTC netbsd-7 commitmail json YAML

2017-02-06 07:28:39 UTC netbsd-7-0 commitmail json YAML

2017-02-06 07:27:01 UTC netbsd-7-0 commitmail json YAML

2017-02-06 07:26:15 UTC netbsd-7 commitmail json YAML

2017-02-06 02:26:44 UTC MAIN commitmail json YAML

Fix misuse of arc4random by using arc4random_uniform.
Noticed by riastradh.

(dholland)

2017-02-05 20:08:35 UTC MAIN commitmail json YAML

sun4v: update TODO list to reflect the current state - TRAP_SETUP() was adapted to handle both sun4u and sun4v systems in version 1.404 of locore.s

(palle)

2017-02-05 19:44:53 UTC bouyer-socketcan commitmail json YAML

2017-02-05 19:21:29 UTC netbsd-7 commitmail json YAML

2017-02-05 19:20:23 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1356):
sys/netinet/if_arp.c: revision 1.238, 1.239 via patch
Make sure the protocol address length equals that of IPv4. Also, make sure
the hardware address length equals that of the interface we received the
packet on. Otherwise a packet could easily set them both to zero and make
the kernel read beyond the allocated mbuf, which is terrible.
Note: for the latter we drop the packet instead of replying, since it is
malformed.
Note: I also added an ugly hack in CARP, since it apparently expects at
least six bytes.
--
Add some checks, mostly same as in_arpinput.

(snj)

2017-02-05 19:20:06 UTC netbsd-7-0 commitmail json YAML

2017-02-05 19:17:25 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1356):
sys/netinet/if_arp.c: revision 1.238, 1.239 via patch
Make sure the protocol address length equals that of IPv4. Also, make sure
the hardware address length equals that of the interface we received the
packet on. Otherwise a packet could easily set them both to zero and make
the kernel read beyond the allocated mbuf, which is terrible.
Note: for the latter we drop the packet instead of replying, since it is
malformed.
Note: I also added an ugly hack in CARP, since it apparently expects at
least six bytes.
--
Add some checks, mostly same as in_arpinput.

(snj)

2017-02-05 19:14:17 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1355):
sys/net/if_arcsubr.c: revision 1.76 via patch
sys/net/if_ecosubr.c: revision 1.50 via patch
sys/net/if_ethersubr.c: revision 1.236 via patch
sys/net/if_fddisubr.c: revision 1.104 via patch
sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

(snj)

2017-02-05 19:14:01 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1355):
sys/net/if_arcsubr.c: revision 1.76 via patch
sys/net/if_ecosubr.c: revision 1.50 via patch
sys/net/if_ethersubr.c: revision 1.236 via patch
sys/net/if_fddisubr.c: revision 1.104 via patch
sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

(snj)

2017-02-05 17:37:10 UTC bouyer-socketcan commitmail json YAML

Introduce can_ifattach(), for common setups of can interfaces.
Convert output to a ifq and change canloop_output to canloop_ifstart

(bouyer)

2017-02-05 16:06:04 UTC nick-nhusb commitmail json YAML

2017-02-05 16:05:20 UTC MAIN commitmail json YAML

Don't call _sema_init twice on various objects... remote_event_create
will initialise them

Found by LOCKDEBUG

(skrll)

2017-02-05 13:41:02 UTC nick-nhusb commitmail json YAML

2017-02-05 12:18:20 UTC bouyer-socketcan commitmail json YAML

2017-02-05 12:05:46 UTC MAIN commitmail json YAML

2017-02-05 12:03:23 UTC bouyer-socketcan commitmail json YAML

2017-02-05 11:45:11 UTC bouyer-socketcan commitmail json YAML

Centralize mbuf tag cleanup, it will be used by real interface drivers too.

(bouyer)

2017-02-05 11:44:17 UTC bouyer-socketcan commitmail json YAML

Decrease timeout from 2 to 1 second. Speeds up the tests where timeout is
the expected case, and it should still be enough to get the looped back
packet.

(bouyer)

2017-02-05 10:56:12 UTC bouyer-socketcan commitmail json YAML

2017-02-05 10:42:22 UTC MAIN commitmail json YAML

Rename ldt->ldtstore and gdt->gdtstore on i386. It reduces the diff with
amd64, and makes it easier to track down these variables on nxr - 'ldt'
and 'gdt' being common keywords.

(maxv)

2017-02-05 10:13:43 UTC MAIN commitmail json YAML

Be a bit nicer to outdated compilers and use __unreachable().

(joerg)

2017-02-05 10:13:18 UTC MAIN commitmail json YAML

2017-02-05 09:02:38 UTC nick-nhusb commitmail json YAML

2017-02-05 08:58:39 UTC MAIN commitmail json YAML

Remove misleading comment; these macros should not be used if a user LDT
is active.

(maxv)

2017-02-05 08:52:12 UTC MAIN commitmail json YAML

2017-02-05 08:42:49 UTC MAIN commitmail json YAML

2017-02-05 08:36:08 UTC MAIN commitmail json YAML

Now that valid_user_selector only checks for LDT selectors, remove it. A
user may legitimately want to have one register in the GDT, and another in
the LDT.

Pass 2/2.

(maxv)

2017-02-05 08:19:05 UTC MAIN commitmail json YAML

In cpu_mcontext_validate, treat %cs differently depending on whether a user
LDT is set; just check the permission without checking the location (which
may change).

In valid_user_selector, don't check the length of the LDT. This is racy
because pm_ldt_len could be updated by another thread, and useless since
the length is already referenced in ldtr (ldt_alloc), which means that any
overflow will fault in userland.

Also, don't check the permission of the segment pointed to; this too is
racy, and we don't care either since the permissions are checked earlier
in x86_set_ldt1.

Pass 1/2.

(maxv)

2017-02-05 07:25:49 UTC MAIN commitmail json YAML

Fix off by one.
ok cherry

(maya)

2017-02-05 07:10:10 UTC netbsd-6 commitmail json YAML

2017-02-05 06:26:07 UTC MAIN commitmail json YAML

Remove duplicate check. uvm_physseg_valid_p(upm) == false is also
our for loop exit condition, and will never happen. NFC

(maya)

2017-02-05 06:15:28 UTC netbsd-6-1 commitmail json YAML

2017-02-05 06:13:53 UTC MAIN commitmail json YAML

Fix off by one.

Fixes PR port-amd64/51944: sparse core dumps do not work

(maya)

2017-02-05 06:12:33 UTC MAIN commitmail json YAML

Match the iterator in sys/uvm/uvm_page.c:1866. NFC.
No matching KASSERT - this case is covered by the above
if (uvm_physseg_valid_p(upm) == false) break;

(maya)

2017-02-05 06:11:37 UTC netbsd-6-0 commitmail json YAML

2017-02-05 06:07:36 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1432):
sys/netinet/if_arp.c: 1.238, 1.239 via patch
Make sure the protocol address length equals that of IPv4. Also, make sure
the hardware address length equals that of the interface we received the
packet on. Otherwise a packet could easily set them both to zero and make
the kernel read beyond the allocated mbuf, which is terrible.
Note: for the latter we drop the packet instead of replying, since it is
malformed.
Note: I also added an ugly hack in CARP, since it apparently expects at
least six bytes.
--
Add some checks, mostly same as in_arpinput.

(snj)

2017-02-05 06:07:15 UTC netbsd-6-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1432):
sys/netinet/if_arp.c: 1.238, 1.239 via patch
Make sure the protocol address length equals that of IPv4. Also, make sure
the hardware address length equals that of the interface we received the
packet on. Otherwise a packet could easily set them both to zero and make
the kernel read beyond the allocated mbuf, which is terrible.
Note: for the latter we drop the packet instead of replying, since it is
malformed.
Note: I also added an ugly hack in CARP, since it apparently expects at
least six bytes.
--
Add some checks, mostly same as in_arpinput.

(snj)

2017-02-05 06:06:41 UTC netbsd-6-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1432):
sys/netinet/if_arp.c: 1.238, 1.239 via patch
Make sure the protocol address length equals that of IPv4. Also, make sure
the hardware address length equals that of the interface we received the
packet on. Otherwise a packet could easily set them both to zero and make
the kernel read beyond the allocated mbuf, which is terrible.
Note: for the latter we drop the packet instead of replying, since it is
malformed.
Note: I also added an ugly hack in CARP, since it apparently expects at
least six bytes.
--
Add some checks, mostly same as in_arpinput.

(snj)

2017-02-05 06:01:05 UTC netbsd-6 commitmail json YAML

Apply patch (requested by maxv in ticket #1431):
suword: Don't allow 4 bytes to overflow beyond the userland space.

(snj)

2017-02-05 05:59:59 UTC netbsd-6-1 commitmail json YAML

Apply patch (requested by maxv in ticket #1431):
suword: Don't allow 4 bytes to overflow beyond the userland space.

(snj)

2017-02-05 05:59:33 UTC netbsd-6-0 commitmail json YAML

Apply patch (requested by maxv in ticket #1431):
suword: Don't allow 4 bytes to overflow beyond the userland space.

(snj)

2017-02-05 05:53:27 UTC netbsd-6 commitmail json YAML

2017-02-05 05:53:04 UTC netbsd-6-1 commitmail json YAML

2017-02-05 05:52:42 UTC netbsd-6-0 commitmail json YAML

2017-02-05 05:48:00 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1429):
sys/net/if_arcsubr.c: revision 1.76 via patch
sys/net/if_ecosubr.c: revision 1.50 via patch
sys/net/if_ethersubr.c: revision 1.236 via patch
sys/net/if_fddisubr.c: revision 1.104 via patch
sys/net/if_tokensubr.c: revision 1.80 via patch
Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.

(snj)