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

2024-05-10 03:24:33 UTC Now

2018-07-17 05:52:07 UTC MAIN commitmail json YAML

Add /d(dump) and /v(verbose) modifiers to DDB's "show mbuf" command. Mainly
written by Hiroki SUENAGA. Currently, /v supports Ethernet, PPP, PPPoE, ARP,
IPv4, ICMP, IPv6, ICMPv6, TCP and UDP.

(msaitoh)

2018-07-17 05:29:07 UTC MAIN commitmail json YAML

Revert previous and cast to u_quad_t instead (t is for ptrdiff_t and off_t
does not match that on all arm)

(martin)

2018-07-17 01:47:20 UTC MAIN commitmail json YAML

2018-07-17 00:50:56 UTC MAIN commitmail json YAML

deal with g++ header files.

(christos)

2018-07-17 00:42:48 UTC MAIN commitmail json YAML

use PRI?64 instead of ll?

(christos)

2018-07-17 00:42:06 UTC MAIN commitmail json YAML

2018-07-17 00:38:27 UTC MAIN commitmail json YAML

fix printf formats ll? -> PRIx64

(christos)

2018-07-17 00:37:42 UTC MAIN commitmail json YAML

XXX: make this assemble with gas, but I should remove the ifdefs...

(christos)

2018-07-17 00:36:30 UTC MAIN commitmail json YAML

2018-07-17 00:35:51 UTC MAIN commitmail json YAML

- add missing casts
- use PRI?64 instead of ll?

(christos)

2018-07-17 00:35:03 UTC MAIN commitmail json YAML

- use #define to define constants instead of static const variables so that
  gcc can compile the code.
- fix position of inline, and use __inline

(christos)

2018-07-17 00:34:11 UTC MAIN commitmail json YAML

match declaration types for registers from reg.h

(christos)

2018-07-17 00:33:32 UTC MAIN commitmail json YAML

Add missing casts, remove unused variables.

(christos)

2018-07-17 00:33:02 UTC MAIN commitmail json YAML

deal with gas not having icc_sre_el2 (from jmcneill)

(christos)

2018-07-17 00:32:29 UTC MAIN commitmail json YAML

use c comments instead of #, consistently

(christos)

2018-07-17 00:31:46 UTC MAIN commitmail json YAML

fix uninitialized, add missing casts

(christos)

2018-07-17 00:31:22 UTC MAIN commitmail json YAML

2018-07-17 00:31:04 UTC MAIN commitmail json YAML

add missing casts; use PRI?64 instead of ll?

(christos)

2018-07-17 00:30:34 UTC MAIN commitmail json YAML

2018-07-17 00:30:11 UTC MAIN commitmail json YAML

2018-07-17 00:29:55 UTC MAIN commitmail json YAML

add default statements, use PRI?64 instead of ll?

(christos)

2018-07-17 00:29:20 UTC MAIN commitmail json YAML

remove unused variables, add missing casts

(christos)

2018-07-16 23:11:47 UTC MAIN commitmail json YAML

2018-07-16 23:10:41 UTC MAIN commitmail json YAML

fix incorrect printf format (off_t needs t)

(christos)

2018-07-16 23:07:31 UTC MAIN commitmail json YAML

make typing on the console work during boot:
1. if polling avoid mutex
2. convert spin mutex calls to regular calls in xhci_poll so that we don't
  spinout while waiting for the user to type.
Tested by phil@

(christos)

2018-07-16 20:11:12 UTC phil-wifi commitmail json YAML

2018-07-16 16:30:04 UTC MAIN commitmail json YAML

fill in PrepareAccess() and FinishAcces() methods

(macallan)

2018-07-16 14:14:38 UTC MAIN commitmail json YAML

Everyone has gcc-6 now.

(christos)

2018-07-16 13:33:04 UTC netbsd-8 commitmail json YAML

2018-07-16 13:32:27 UTC netbsd-8 commitmail json YAML

Pull up the following revisions(s) (requested by martin in ticket #924):
crypto/external/bsd/heimdal/lib/libheimntlm/Makefile: revision 1.3
crypto/external/bsd/heimdal/lib/libkdc/Makefile: revision 1.4
crypto/external/bsd/heimdal/lib/libgssapi/Makefile: revision 1.5
crypto/external/bsd/heimdal/lib/libkadm5srv/Makefile: revision 1.5

Improve MKREPRO builds for architectures with compat (like amd64).

(sborrill)

2018-07-16 13:21:39 UTC netbsd-8 commitmail json YAML

2018-07-16 13:21:09 UTC netbsd-8 commitmail json YAML

Pull up the following revisions(s) (requested by martin in ticket #923):
etc/Makefile.params: revision 1.20

Drop output for MAKECONF MAKEOBJDIR MAKEOBJDIRPREFIX MAKEVERBOSE
in MKREPRO=yes builds.

(sborrill)

2018-07-16 11:45:01 UTC MAIN commitmail json YAML

Entry for MKSTATICPIE fallout in /rescue build.

(martin)

2018-07-16 10:57:21 UTC MAIN commitmail json YAML

2018-07-16 10:56:42 UTC MAIN commitmail json YAML

RW fields in performance monitor registers are reset to architecturally
UNKNOWN values. Initialize the PMU to a known state - all interrupts and
counters disabled, performance monitor disabled, and user access disabled.

(jmcneill)

2018-07-16 10:49:53 UTC MAIN commitmail json YAML

2018-07-16 10:13:34 UTC MAIN commitmail json YAML

I added is_affinity to intrsource in the previous commit but it is not used. Remove it.

(jmcneill)

2018-07-16 09:55:14 UTC MAIN commitmail json YAML

2018-07-16 07:27:26 UTC MAIN commitmail json YAML

2018-07-16 07:25:58 UTC MAIN commitmail json YAML

Disable profile and compat 32-bit tests cc sanitizer tests

These tests are known to be faulty. These fatures aren't ready.
They tend to break to unrelated changes to the codebase and require.

Base Clang and GCC are in general dated to use with sanitizers as these
features are being fixed on HEAD versions of both compilers (mostly Clang).

(kamil)

2018-07-16 07:08:40 UTC MAIN commitmail json YAML

Bump version for changes to struct cpu_info

Welcome to 8.99.22 !

(pgoyette)

2018-07-16 07:07:30 UTC MAIN commitmail json YAML

More rearrangement of struct cpu_info to keep all the un-conditional
members at fixed locations.

Should address my PR kern/52919

OK maxv@

XXX kernel version bump coming momentarily.

(pgoyette)

2018-07-16 06:18:31 UTC MAIN commitmail json YAML

2018-07-16 02:36:39 UTC MAIN commitmail json YAML

Do the previous in the way it probably should have been in the first place.

(kre)

2018-07-16 01:04:47 UTC MAIN commitmail json YAML

cast through intptr_t

(christos)

2018-07-16 00:47:54 UTC MAIN commitmail json YAML

limit the aarch64 hack to clang.

(christos)

2018-07-16 00:33:00 UTC MAIN commitmail json YAML

gcc aarch64 does not have multilib

(christos)

2018-07-16 00:33:00 UTC MAIN commitmail json YAML

Be consistent with double include guard name (clang actually detects this)

(kre)

2018-07-16 00:29:37 UTC MAIN commitmail json YAML

Initialize new_value to account for bogus return from the function.

(christos)

2018-07-16 00:08:12 UTC MAIN commitmail json YAML

2018-07-16 00:04:47 UTC MAIN commitmail json YAML

Go back to using int for wchar_t as all the rest of the archs; using unsigned
int is complicated specially when it comes to comparing with WEOF etc.

(christos)

2018-07-15 23:57:45 UTC MAIN commitmail json YAML

arm: Add support for ARMv7 performance event monitoring with tprof(4).

(jmcneill)

2018-07-15 23:50:53 UTC MAIN commitmail json YAML

2018-07-15 23:48:45 UTC MAIN commitmail json YAML

Enable armpmu and tprof

(jmcneill)

2018-07-15 23:48:08 UTC MAIN commitmail json YAML

Add support for ARMv7 performance monitor (PMU).

(jmcneill)

2018-07-15 23:47:29 UTC MAIN commitmail json YAML

Add tprof backend for ARMv7 performance monitors.

(jmcneill)

2018-07-15 23:46:57 UTC MAIN commitmail json YAML

Add some PMC event registers

(jmcneill)

2018-07-15 23:46:25 UTC MAIN commitmail json YAML

Add TPROF_IDENT_ARMV7_GENERIC

(jmcneill)

2018-07-15 21:31:00 UTC MAIN commitmail json YAML

- fix constants and explain limit
- use machine32 instead of hard-coded x86 stuff

(christos)

2018-07-15 18:55:05 UTC MAIN commitmail json YAML

Define TPROF_IDENT_ARMV8_GENERIC

(jmcneill)

2018-07-15 18:36:51 UTC MAIN commitmail json YAML

Side-load dev/hid/hid.h to restore the previous visibility of macros
like HUP_GENERIC_DESKTOP.

This header is user-visible and used by third party code. with this
change we don't need to modify pkgsrc/emulators/vice to know about
new headers in -current. Other users probably exist.

ok xtos.

(maya)

2018-07-15 18:00:14 UTC MAIN commitmail json YAML

add pseudo-device tprof (fix build)

(jmcneill)

2018-07-15 16:59:16 UTC MAIN commitmail json YAML

Get rid of unnecessary calls to kmem_alloc

(jmcneill)

2018-07-15 16:37:04 UTC MAIN commitmail json YAML

Give aarch64 the "special treatment", since mknative does not include the
target-specific build file.

(christos)

2018-07-15 16:35:47 UTC MAIN commitmail json YAML

There is no more SUBTARGET_EXTRA_SPECS, so hijack the EXTRA_SPECS.

(christos)

2018-07-15 16:26:27 UTC MAIN commitmail json YAML

arm: Add support for ARMv8 performance event monitoring with tprof(4).

(jmcneill)

2018-07-15 16:25:31 UTC MAIN commitmail json YAML

2018-07-15 16:09:05 UTC MAIN commitmail json YAML

2018-07-15 16:08:30 UTC MAIN commitmail json YAML

2018-07-15 16:07:49 UTC MAIN commitmail json YAML

Add glue for ARMv8 performance monitor (PMU).

(jmcneill)

2018-07-15 16:05:24 UTC MAIN commitmail json YAML

Add tprof backend for ARMv8 performance monitors.

(jmcneill)

2018-07-15 16:04:07 UTC MAIN commitmail json YAML

Support pic_set_affinity and pic_get_affinity

(jmcneill)

2018-07-15 16:03:25 UTC MAIN commitmail json YAML

Add support for setting and getting interrupt affinity.

(jmcneill)

2018-07-15 13:34:43 UTC MAIN commitmail json YAML

Return the real interrupt handle from gic_fdt_establish

(jmcneill)

2018-07-15 13:24:05 UTC MAIN commitmail json YAML

Return the interrupt controller's cookie directly from fdtbus_intr_establish

(jmcneill)

2018-07-15 11:03:13 UTC netbsd-8 commitmail json YAML

2018-07-15 10:59:49 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #922):

crypto/external/bsd/openssh/dist/ssh-agent.1: revision 1.13
crypto/external/bsd/openssh/dist/ssh-agent.c: revision 1.23

Amend whitelisted filesystem paths ssh-agent will look for PKCS11 related
libraries so that things work out of the box with pkgsrc without having to
explicitly whitelist things.

ok christos

(martin)

2018-07-15 10:54:03 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #909):

sys/arch/xen/xen/xennetback_xenbus.c: revision 1.64 (patch)

Fix panic of DOM0 in xennetback_xenbus_destroy() on xl destroy of
DOMU with created, but non CONNECTED xennet (such as when DOMU
panics during boot); only try to disestablish the intr if it was
actually setup.

While here protect xnetback_instances with mutex, and switch to use
kmem_zalloc() + KM_SLEEP / kmem_free() like xbdback_xenbus.c; add XXXSMP
to the other global variables, and at least mark them static

(martin)

2018-07-15 10:49:02 UTC netbsd-7 commitmail json YAML

2018-07-15 10:47:54 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by dholland in ticket #1620):

usr.bin/units/units.c: revision 1.26,1.27

Improve the parser. Now we understand negative exponents; fixes PR 50768.

Also handle negative numbers better in general (don't randomly drop
the sign in a number of cases) and don't choke on exponents > 9.

This commit alters the meaning of a few previously valid but marginal
inputs (e.g. "3 foot-5 pound" is now treated as "3*-5 foot-pound"
rather than "3*5 foot-pound"; if you want the latter insert another
space) but corrects obviously wrong handling of many more.

-

Improve previous slightly; while we accept e.g. "meter2" to mean "meter^2",
don't allow "meter-2" to be interpreted as "meter^-2" as that's very
confusing.

(martin)

2018-07-15 08:47:43 UTC MAIN commitmail json YAML

Hum. Move the __HAVE_DIRECT_MAP block a little below, otherwise dynamically
loaded kernel modules use a wrong offset for some ci_* fields. Found when
modloading tprof_amd on an AMD 10h, the read of ci_signature was at a
wrong address, and the cpu family was not detected correctly.

(maxv)

2018-07-15 07:24:11 UTC MAIN commitmail json YAML

More ipkdb removal

(martin)

2018-07-15 07:07:15 UTC MAIN commitmail json YAML

More ipkdb removal

(martin)

2018-07-15 06:40:39 UTC MAIN commitmail json YAML

Add missing word: cactus. PR 53432.

(dholland)

2018-07-15 06:16:12 UTC MAIN commitmail json YAML

Document what rrestore is (was once) for. PR 53442.
CVS: ----------------------------------------------------------------------

(dholland)

2018-07-15 06:14:21 UTC MAIN commitmail json YAML

Remove unused x86/include/tprof.h, there should be no need for this kind
of includes.

(maxv)

2018-07-15 06:14:13 UTC MAIN commitmail json YAML

Document what rdump is (was once) for. PR 53442.

(dholland)

2018-07-15 05:25:20 UTC MAIN commitmail json YAML

Note improved tprof and removal of ipkdb.

(maxv)

2018-07-15 05:16:45 UTC MAIN commitmail json YAML

2018-07-15 01:02:15 UTC MAIN commitmail json YAML

Handle aarch64 jemalloc constant

(christos)

2018-07-15 00:59:50 UTC MAIN commitmail json YAML

Aarch64 specific generated files.

(christos)

2018-07-15 00:36:13 UTC MAIN commitmail json YAML

Fix formats for gcc where int64 is long not long long (like clang which
should be changed).

(christos)

2018-07-15 00:32:40 UTC MAIN commitmail json YAML

2018-07-15 00:18:13 UTC MAIN commitmail json YAML

2018-07-14 23:49:20 UTC MAIN commitmail json YAML

2018-07-14 23:47:33 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/dist/gcc/config.gcc@1.42 / diff / nxr@1.42
src/external/gpl3/gcc/dist/gcc/config.host@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/dist/gcc/config/aarch64/t-aarch64@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/dist/gcc/config/aarch64/t-aarch64-netbsd@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/dist/libgcc/config.host@1.18 / diff / nxr@1.18
src/external/gpl3/gcc/lib/libbacktrace/arch/aarch64/backtrace-supported.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libbacktrace/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgcc/arch/aarch64/auto-target.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgcc/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/aarch64/gcov-iov.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/libgomp.spec@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/libgomp_f.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/omp.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libiberty/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libobjc/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libobjc/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/c++config.h@1.1 / diff / nxr@1.1
      :
(more 21 files)
First pass at mknative for aarch64, based on mrg's work.

(christos)

2018-07-14 23:42:23 UTC MAIN commitmail json YAML

clang does not like the c-like definition of alignof

(christos)

2018-07-14 23:41:43 UTC MAIN commitmail json YAML

clang does not like auto in c++

(christos)

2018-07-14 23:40:19 UTC MAIN commitmail json YAML

2018-07-14 22:57:47 UTC MAIN commitmail json YAML

Update comment to match what the below text does

(This logic needs to go into gcc config files, but removing it
requires mknative)

(maya)

2018-07-14 16:34:15 UTC MAIN commitmail json YAML

Fix a crash when running tprof with no arguments; check argc before accessing argv[0]

(jmcneill)

2018-07-14 15:38:59 UTC MAIN commitmail json YAML

Mark tprof_event_init, tprof_event_list, tprof_event_lookup as dead

(jmcneill)

2018-07-14 15:09:41 UTC MAIN commitmail json YAML

Remove "options IPKDB", and the other associated options, from the config
files.

ipkdb is being retired. Its code is really old, and hasn't kept pace with
today's expectations: IPv6, SMP, modern NICs. The associated code for x86
was already removed because it was too incorrect to stay.

There are plans to rewrite a similar feature from scratch.

ok kamil christos

(maxv)

2018-07-14 15:06:05 UTC MAIN commitmail json YAML

Fix non-MULTIPROCESSOR build

(jmcneill)

2018-07-14 14:56:02 UTC MAIN commitmail json YAML

2018-07-14 14:46:41 UTC MAIN commitmail json YAML

Add splhigh() around the FPU code, we don't want to be preempted in the
middle, this could corrupt the FPU state and trigger undefined behavior.

Intentionally use splhigh and not kpreempt_disable, to match the generic
x86 FPU code.

Compile-tested only (I don't have VIA).

Found by Maya almost a year ago.

(maxv)

2018-07-14 14:34:32 UTC MAIN commitmail json YAML

Remove ifdef GPROF.

(maxv)

2018-07-14 14:29:40 UTC MAIN commitmail json YAML

Drop NENTRY() from the x86 kernels, use ENTRY(). With PMCs (and other hardware
tracing facilities) we have a much better ways of monitoring the CPU activity
than GPROF, without software modification.

Also I think GPROF has never worked, because the 'start' functions of both
i386 and amd64 use ENTRY(), and it would have caused a function call while the
kernel was not yet relocated.

(maxv)

2018-07-14 07:54:38 UTC MAIN commitmail json YAML

specialreg.h is x86-specific, don't include it

(maxv)

2018-07-14 07:54:04 UTC MAIN commitmail json YAML

Finish the Skylake/Kabylake table, and improve the output of "tprof analyze".

(maxv)

2018-07-14 00:47:33 UTC MAIN commitmail json YAML

Send the 'magic reverse engineered sequence' with a single sliced command,
don't wait for individual ACKs. Fixes kern/53444.

While here:
- use better descriptive names for functions
- use a function for the extended write command
- add macro for number from the old synaptics documentation
- don't get the resp from the command sequence if we're going to ignore
it anyway

most from uwe.

(maya)

2018-07-13 22:43:44 UTC MAIN commitmail json YAML

Remove atoi()

Mostly use number() (no longer implemented using atoi()) when an
unsigned integer is required, but use strtoXXX() when a conversion
is wanted, without the possibility or error (like setting OPTIND
and RANDOM).  Always init OPTIND to 1 when sh starts (overriding
anything in environ.)

(kre)

2018-07-13 21:46:58 UTC MAIN commitmail json YAML

Remove dhclient references.

(maya)

2018-07-13 21:45:37 UTC MAIN commitmail json YAML

2018-07-13 21:44:32 UTC MAIN commitmail json YAML

Xref dhcpcd, not removed dhclient.

(maya)

2018-07-13 19:54:53 UTC MAIN commitmail json YAML

Mark tprof_monitor as dead

(joerg)

2018-07-13 19:54:14 UTC MAIN commitmail json YAML

Reapply with fixed condition:
PT_PHDR is useful without PT_INTERP, i.e. for static PIE. It removes the
need for platform-specific computations of _DYNAMIC and friends.

(joerg)

2018-07-13 19:50:22 UTC MAIN commitmail json YAML

Determine dynamic binaries by presence of PT_INTERP. Static PIE has
_DYNAMIC.

(joerg)

2018-07-13 19:49:47 UTC MAIN commitmail json YAML

Compute relocbase correctly for static PIE. AT_BASE is not usable in
this case.

(joerg)

2018-07-13 19:44:08 UTC MAIN commitmail json YAML

Add comment elaborating what a sliced command is.

(maya)

2018-07-13 18:49:44 UTC MAIN commitmail json YAML

Give a heads up about ssh-agent path whitelist change.

(sevan)

2018-07-13 16:16:32 UTC netbsd-8 commitmail json YAML

2018-07-13 16:14:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #921):

usr.sbin/ndp/ndp.c: revision 1.52-1.54

Remove duplicate rtrlist() function prototype.

ndp(8): host_buf should not be used in delete().
host_buf is passed to the argument host of delete() in do_foreach().

Use s6, not mysin.

(martin)

2018-07-13 16:10:46 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #917):

external/gpl3/binutils.old/dist/bfd/peXXigen.c: revision 1.6
(with /binutils.old/ -> /binutils/)

Fix reproducible builds for EFI boot blocks (from HEAD)

(martin)

2018-07-13 16:05:02 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #916):

external/bsd/ppp/usr.sbin/pppd/sys-bsd.c: revision 1.5

New arp code needs RTF_LLDATA for DELETE to work!
XXX: pullup-8

(martin)

2018-07-13 16:01:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #915):

sys/net/if.c: revision 1.424

Print "NET_MPSAFE enabled" if it's enabled.

(martin)

2018-07-13 15:58:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #914):

usr.bin/printf/printf.c: revision 1.38,1.39

From leot@ on tech-userlevel:
Avoid running off into oblivion when a format string,
or arg to a %b conversion ends in an unescaped backslash.

Patch from Leo slightly modified by me.

Avoid printing error messages twice when an invalid
escape sequence (\ sequence) is present in an arg to a %b
conversion.

(martin)

2018-07-13 15:55:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by triaxx in ticket #913):

external/bsd/dhcpcd/Makefile.inc: revision 1.3

Fix an inconsistency that showed /var/db/duid in the man page while the
binary opened /var/db/dhcpcd/duid.

(martin)

2018-07-13 15:51:28 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #912):

sys/arch/x86/x86/identcpu.c: revision 1.79
sys/arch/x86/include/specialreg.h: revision 1.127

Disable MWAIT/MONITOR on Apollo Lake CPUs to workaround APL30 errata.

We use MWAIT/MONITOR to hatch secondary CPUs. The errata means that
the wakeup may not happen, so SMP boot fails.
Use wrmsr to disable it in hardware too, for extra paranoia.

PR port-amd64/53420,
also reported on netbsd-users by joern clausen and ssartor.

(martin)

2018-07-13 15:49:55 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #911):

sys/kern/init_main.c: revision 1.498
sys/rump/net/lib/libnet/net_component.c: revision 1.10
sys/net/if.h: revision 1.264
sys/net/if.c: revision 1.429

Fix net.inet6.ip6.ifq node doesn't exist

The node (and child nodes) is initialized in sysctl_net_pktq_setup, but the call
of sysctl_net_pktq_setup is skipped unexpectedly.
sysctl_net_pktq_setup is skipped if in6_present is false that indicates the
netinet6 component isn't loaded on rump kernels.  However the flag is
accidentally always false because the flag is turned on in in6_dom_init that is
called after if_sysctl_setup on both normal and rump kernels.

Fix the issue by moving if_sysctl_setup after in6_dom_init (domaininit on normal
kernels).  This fix is ad-hoc but good enough for netbsd-8.  We should refine
the initialization order of network components in the future.

Pointed out by hikaru@

(martin)

2018-07-13 14:43:46 UTC netbsd-8 commitmail json YAML

2018-07-13 14:35:55 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by jnemeth in ticket #908):

usr.bin/calendar/calendars/calendar.birthday: revision 1.27
usr.bin/calendar/calendars/calendar.christian: revision 1.7
usr.bin/calendar/calendars/calendar.usholiday: revision 1.8
usr.bin/calendar/calendars/calendar.netbsd: revision 1.39
usr.bin/calendar/calendars/calendar.holiday: revision 1.28
usr.bin/calendar/calendars/calendar.holiday: revision 1.29
usr.bin/calendar/calendars/calendar.judaic: revision 1.7
usr.bin/calendar/calendars/calendar.history: revision 1.35

Only 35 years late.

Mention the Sand Creek massacre.

Fix a typo.

(or, `Emily Dickinson' - the American poet - was born on the same date)

Update calendar files for the upcoming NetBSD 8.0 release.  I'm
assuming that it will be released by August 1, which is two months
from now.  Thus I used 2018 dates for all holidays between Aug.
1st and Dec. 31st, and 2019 dates for all holidays between Jan.
1st and Jul. 31st.

(martin)

2018-07-13 14:32:01 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #907):

bin/sh/expand.c: revision 1.122

When matching a char class ([[:name:]]) in a pattern (for filename
expansion, case patterrns, etc) do not force '[' to be a member of
every class.

Before this fix, try:

case [ in [[:alpha:]]) echo Huh\?;; esac

XXX pullup-8    (Perhaps -7 as well, though that shell version has
much more relevant bugs than this one.)  This bug is not in -6 as
that has no charclass support.

(martin)

2018-07-13 14:29:15 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #906):

bin/sh/eval.c: revision 1.155
bin/sh/mknodes.sh: revision 1.3
bin/sh/nodes.c.pat: revision 1.14
bin/sh/exec.h: revision 1.27
bin/sh/exec.c: revision 1.52

Deal with ref after free found by ASAN when a function redefines
itself, or some other function which is still active.

This was a long known bug (fixed ages ago in the FreeBSD sh) which
hadn't been fixed as in practice, the situation that causes the
problem simply doesn't arise .. ASAN found it in the sh dotcmd
tests which do have this odd "feature" in the way they are written
(but where it never caused a problem, as the tests are so simple
that no mem is ever allocated between when the old version of the
function was deleted, and when it finished executing, so its code
all remained intact, despite having been freed.)

The fix is taken from the FreeBSD sh.

XXX -- pullup-8 (after a while to ensure no other problems arise).

(martin)

2018-07-13 14:26:48 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) via patch (requested by knakahara in ticket #905):

sys/netinet/ip_mroute.c: revision 1.160
sys/netinet6/in6_l2tp.c: revision 1.16
sys/net/if.h: revision 1.263
sys/netinet/in_l2tp.c: revision 1.15
sys/netinet/ip_icmp.c: revision 1.172
sys/netinet/igmp.c: revision 1.68
sys/netinet/ip_encap.c: revision 1.69
sys/netinet6/ip6_mroute.c: revision 1.129

sbappendaddr() is required any lock. Currently, softnet_lock is appropriate.

When rip_input() is called as inetsw[].pr_input, rip_iput() is always called
with holding softnet_lock, that is, in case of !defined(NET_MPSAFE) it is
acquired in ipintr(), otherwise(defined(NET_MPSAFE)) it is acquire in
PR_WRAP_INPUT macro.

However, some function calls rip_input() directly without holding softnet_lock.
That causes assertion failure in sbappendaddr().
rip6_input() and icmp6_rip6_input() are also required softnet_lock for the same
reason.

(martin)

2018-07-13 14:11:02 UTC MAIN commitmail json YAML

Provide empty SVS_ENTER_NMI/SVS_LEAVE_NMI for kernels w/o options SVS

(martin)

2018-07-13 12:04:50 UTC MAIN commitmail json YAML

Ask for a file path with the "analyze" command, instead of reading stdin.

(maxv)

2018-07-13 11:14:14 UTC MAIN commitmail json YAML

2018-07-13 11:13:10 UTC MAIN commitmail json YAML

don't try to decend into remove 'pmc' subdir.

(mrg)

2018-07-13 11:03:36 UTC MAIN commitmail json YAML

Merge tpfmt(1) into tprof(8). We want to have access to everything with
only one tool. The code is copied mostly as-is, and the functionality is
available via the "analyze" command.

Eg:
tprof monitor -e llc-misses:k -o myfile.out sleep 20
tprof analyze < myfile.out

Will move soon, I don't like the reading via stdin.

(maxv)

2018-07-13 10:49:17 UTC MAIN commitmail json YAML

stopgap fix: revert bfd PT_PHDR without PT_INTERP changes.
This currently results in most binaries being broken. Give more time to
debug without -current being badly broken.

The reverted commit message was:
PT_PHDR is useful without PT_INTERP, i.e. for static PIE. It removes the
need for platform-specific computations of _DYNAMIC and friends.

ok martin, mrg

(maya)

2018-07-13 09:58:49 UTC MAIN commitmail json YAML

Remove KAUTH_MACHDEP_X86PMC, now unused.

(maxv)

2018-07-13 09:53:42 UTC MAIN commitmail json YAML

Skylake/Kabylake are family 6, so add a check for that. While here improve
the layout of "tprof list".

(maxv)

2018-07-13 09:37:32 UTC MAIN commitmail json YAML

2018-07-13 09:37:13 UTC MAIN commitmail json YAML

add what i believe is the missing part from the previous commit to
the old nvidia driver.  fixes my build and appears to match intent.

(mrg)

2018-07-13 09:15:56 UTC MAIN commitmail json YAML

2018-07-13 09:04:31 UTC MAIN commitmail json YAML

Change the arguments of the tprof tool, to match the behavior of pmc(1) and
cpuctl(8). They become:

tprof list
tprof monitor -e name:option [-o outfile] command

(maxv)

2018-07-13 08:09:21 UTC MAIN commitmail json YAML

Inline the values in amd_f10h_names[], we're not going to use defines for
each CPU model found in the wild.

(maxv)

2018-07-13 07:56:29 UTC MAIN commitmail json YAML

Revamp tprof.

Rewrite the Intel backend to use the generic PMC interface, which is
available on all Intel CPUs. Synchronize the AMD backend with the new
interface.

The kernel identifies the PMC interface, and gives its id to userland.
Userland then queries the events itself (via cpuid etc). These events
depend on the PMC interface.

The tprof utility is rewritten to allow the user to choose which event
to count (which was not possible until now, the event was hardcoded in
the backend). The command line format is based on usr.bin/pmc, eg:

tprof -e llc-misses:k -o output sleep 20

The man page is updated too, but the arguments will likely change soon
anyway so it doesn't matter a lot.

The tprof utility has three tables:

Intel Architectural Version 1
Intel Skylake/Kabylake
AMD Family 10h

A CPU can support a combination of tables. For example Kabylake has
Intel-Architectural-Version-1 and its own Intel-Kabylake table.

For now the Intel Skylake/Kabylake table contains only one event, just
to demonstrate that the combination of tables works. Tested on an
Intel Core i5 Kabylake.

The code for AMD Family 10h is taken from the code I had written for
usr.bin/pmc. I haven't tested it yet, but it's the same as pmc(1), so
I guess it works as-is.

The whole thing is written in such a way that (I think) it is not
complicated to add more CPU models, and more architectures (other than
x86).

(maxv)

2018-07-13 01:00:17 UTC MAIN commitmail json YAML

i386/amd64 build fix.  Fix "possibly used uninitialized" from gcc.
These changes should make no practical effect - but because external
data is being examined, it would be possible to contrive a situation
(perhaps) where uninit'd vars could actually be used (unless the format
has been checked elsewhere earlier - I did not look ... we have to
appease gcc anyway).

Joerg: Please review (& fix)

(kre)

2018-07-12 23:18:28 UTC MAIN commitmail json YAML

aarch64 does not have PT_STEP so we start from 0.

(christos)

2018-07-12 21:42:53 UTC MAIN commitmail json YAML

Static PIE support on x86.

(joerg)

2018-07-12 21:41:25 UTC MAIN commitmail json YAML

Update MKSTATICPIE entry to actually do something.

(joerg)

2018-07-12 21:39:24 UTC MAIN commitmail json YAML

Static PIE should have no linker, otherwise it isn't really static.

(joerg)

2018-07-12 21:38:16 UTC MAIN commitmail json YAML

PT_PHDR is useful without PT_INTERP, i.e. for static PIE. It removes the
need for platform-specific computations of _DYNAMIC and friends.

(joerg)

2018-07-12 21:36:46 UTC MAIN commitmail json YAML

Add static PIE support for i386 and AMD64.

The basic glue works with mininal changes for other architectures as
well, but those require linker changes first to avoid leaking dynamic
relocations into the binary.

(joerg)

2018-07-12 21:35:12 UTC MAIN commitmail json YAML

_DYNAMIC is present for static PIE as well, so loosen rtld check.

(joerg)

2018-07-12 21:22:20 UTC MAIN commitmail json YAML

2018-07-12 21:19:55 UTC MAIN commitmail json YAML

2018-07-12 21:16:33 UTC MAIN commitmail json YAML

add powerpc-specific barrier instructions, use them a bit more
now this mostly works on G5

(macallan)

2018-07-12 19:48:16 UTC MAIN commitmail json YAML

Handle NMIs correctly when SVS is enabled. We store the kernel's CR3 at the
top of the NMI stack, and we unconditionally switch to it, because we don't
know with which page tables we received the NMI. Hotpatch the whole thing as
usual.

This restores the ability to use PMCs on Intel CPUs.

(maxv)

2018-07-12 18:39:09 UTC MAIN commitmail json YAML

Oh. Don't call svs_pdir_switch if SVS is disabled, that's not needed.

I was playing around with PMCs, and was wondering why some cache misses
were occurring in svs_pdir_switch while I had SVS disabled.

(maxv)

2018-07-12 18:03:31 UTC MAIN commitmail json YAML

Fix previous: cached_stats() returning < 0 means that the file is not found,
not that it was found in the cache, and centralize reporting.

(christos)

2018-07-12 17:46:37 UTC MAIN commitmail json YAML

Remove duplicate code in make(1)'s dir.c.

When the cached_stats() code was added, some old logic stayed around that
implements the cached_stats() too.

(reinoud)

2018-07-12 16:35:34 UTC phil-wifi commitmail json YAML

State save.  New kernel config for this brach only.  TESTWIFI does
produce a kernel.  It is not working.  athn files not compiling yet
and commented out of the TESTWIFI kernel, which only has urtwn 802.11
driver enabled.  ieee80211_alq.c and ieee80211_ddb.c not compiling yet.

(phil)

2018-07-12 16:02:50 UTC phil-wifi commitmail json YAML

Add sbuf files from FreeBSD to support net80211.
Files from same version as net80211 files.

(phil)

2018-07-12 15:26:11 UTC netbsd-8 commitmail json YAML

2018-07-12 15:24:43 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #901):

lib/libutil/pty.c: revision 1.32

Fix stack use after scope in libutil/pty

The pt variable's elements are used after the end of the pt scope.

A move of pt to outer scope fixes this.

Detected with MKSANITIZER/ASan with tmux(1), a forkpty(3) user.

(martin)

2018-07-12 15:18:45 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #900):

usr.sbin/sysinst/util.c: revision 1.10,1.11

Enlarge the set_status[] array by a single element
In the get_and_unpack_sets() function there is accessed the
set_status[SET_GROUP_END] element in the array. The array is allocated on
the stack with SET_GROUP_END elements. This means that it is 1 element too
short.

-

Revert previous, fix iteration loops to be consistent:
All sets that have an id >= SET_LAST have NULL name, so use that like the
loop just below.

(martin)

2018-07-12 15:11:56 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by yamaguchi in ticket #890):
sys/net/if_pppoe.c: revision 1.137
sys/net/if_pppoe.c: revision 1.139
sys/net/if_pppoe.c: revision 1.140
Drop early if there's no PPPoE interface. Otherwise it is easy for someone
to flood dmesg over the local subnet.
Fix not to use PPPOE_UNLOCK before acccess to pppoe_softc
to avoid a race condition
According to the locking order of pppoe(4), the access to
pppoe_softc has to follow 5 steps as below.
1. aquire pppoe_softc_list_lock
2. aquire pppoe_softc lock
3. release pppoe_softc_list_lock
4. access to pppoe_softc
5. release pppoe_softc lock
However, pppoe_dispatch_disc_pkt() releases the lock of pppoe_softc
temporarily, and then re-aquires it before step 4 of the adove. So,
it is possible for other contexts to destroy a pppoe_softc in the
interim.
To fix this condition, avoid PPPOE_UNLOCK with the problem.
ok by knakahara@n.o
Fix to aquire pppoe_softc_list_lock before read and write the list
ok by knakahara@n.o

(martin)

2018-07-12 14:59:58 UTC netbsd-7-0 commitmail json YAML

2018-07-12 14:59:30 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1619):

usr.bin/printf/printf.c: revision 1.37-1.39

fix some error handling.

From leot@ on tech-userlevel:
Avoid running off into oblivion when a format string,
or arg to a %b conversion ends in an unescaped backslash.

Patch from Leo slightly modified by me.

Avoid printing error messages twice when an invalid
escape sequence (\ sequence) is present in an arg to a %b
conversion.

(martin)

2018-07-12 14:59:03 UTC netbsd-7-1 commitmail json YAML

2018-07-12 14:58:23 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1619):

usr.bin/printf/printf.c: revision 1.37-1.39

fix some error handling.

From leot@ on tech-userlevel:
Avoid running off into oblivion when a format string,
or arg to a %b conversion ends in an unescaped backslash.

Patch from Leo slightly modified by me.

Avoid printing error messages twice when an invalid
escape sequence (\ sequence) is present in an arg to a %b
conversion.

(martin)

2018-07-12 14:57:57 UTC netbsd-7 commitmail json YAML

2018-07-12 14:57:30 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1619):

usr.bin/printf/printf.c: revision 1.37-1.39

fix some error handling.

From leot@ on tech-userlevel:
Avoid running off into oblivion when a format string,
or arg to a %b conversion ends in an unescaped backslash.

Patch from Leo slightly modified by me.

Avoid printing error messages twice when an invalid
escape sequence (\ sequence) is present in an arg to a %b
conversion.

(martin)

2018-07-12 13:05:39 UTC MAIN commitmail json YAML

2018-07-12 12:48:50 UTC MAIN commitmail json YAML

2018-07-12 11:13:50 UTC MAIN commitmail json YAML

Provide an explicit dependency on heimbase

(martin)

2018-07-12 10:46:48 UTC MAIN commitmail json YAML

Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

* Removes "options PERFCTRS", the associated includes, and the associated
  ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
  good.

* Removes the PMC code of ARM XSCALE.

* Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

* Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
  definitions are put in sysarch.h.

* Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
  and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
  netbsd32 and rump.

* Removes the pmc_evid_t and pmc_ctr_t types.

* Removes all the associated man pages. The sets are marked as obsolete.

(maxv)

2018-07-12 10:39:06 UTC MAIN commitmail json YAML

Add entries for viadrmums to amd64 kernel configs too.

Commented out for GENERIC, same as i386.

(maya)

2018-07-12 08:20:49 UTC MAIN commitmail json YAML

Use s6, not mysin.

(nonaka)

2018-07-12 08:16:14 UTC MAIN commitmail json YAML

ndp(8): host_buf should not be used in delete().

host_buf is passed to the argument host of delete() in do_foreach().

(nonaka)

2018-07-12 07:32:35 UTC MAIN commitmail json YAML

Remove duplicate rtrlist() function prototype.

(nonaka)

2018-07-12 07:06:36 UTC MAIN commitmail json YAML

...and obsolete the html of pmc.3 too... We will obsolete all the pmc*
references anyway.

(maxv)

2018-07-12 07:04:15 UTC MAIN commitmail json YAML

Obsolete pmc.3, it was part of libpmc.

(maxv)

2018-07-12 06:52:49 UTC MAIN commitmail json YAML

Retire libpmc. It uses the legacy PMC interface in the kernel, which has
support for only one ARM CPU. It used to have x86 support, but it was broken
and I removed it. The legacy PMC interface will be removed from the kernel
too. Sent on tech-kern@ yesterday, thorpej was fine.

(maxv)

2018-07-12 02:26:04 UTC MAIN commitmail json YAML

Don't use aprint_* functions for logging unrelated to autoconf(9)

(ozaki-r)

2018-07-12 00:16:32 UTC MAIN commitmail json YAML

2018-07-11 16:51:29 UTC netbsd-8 commitmail json YAML

2018-07-11 16:50:46 UTC netbsd-8 commitmail json YAML

Additionally pullup src/sys/net/if_llatbl.c r1.30 to fix build fallout
from previous, requested by both ozaki-r (ticket #918) and kre (ticket #920):

Update previous so that there is no unused (but assigned) variable
left when there is no ARP.  Thanks gcc!

(martin)

2018-07-11 14:51:34 UTC MAIN commitmail json YAML

it is not xx but nn that we want. also add missing dependencies.

(christos)

2018-07-11 13:52:35 UTC MAIN commitmail json YAML

2018-07-11 13:49:06 UTC MAIN commitmail json YAML

.Fl prepends a dash, no need to specify another one for qemu -fw_cfg option

(jmcneill)

2018-07-11 13:44:04 UTC MAIN commitmail json YAML

Add another elfxx conversion.

(christos)

2018-07-11 13:41:23 UTC MAIN commitmail json YAML

Add qemufwcfg* at fdt? to synopsis

(jmcneill)

2018-07-11 13:34:27 UTC MAIN commitmail json YAML

src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd-in3.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfd_stdint.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/bfdver.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libbfd/arch/aarch64/targmatch.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libdecnumber/arch/aarch64/gstdint.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/build-gnulib/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/config.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/init.c@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/jit-reader.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/observer.h@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/observer.inc@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/version.c@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/xml-builtin.c@1.1 / diff / nxr@1.1
src/external/gpl3/gdb/lib/libiberty/arch/aarch64/config.h@1.1 / diff / nxr@1.1
      :
(more 5 files)
new config files for aarch64 but no progress in getting it to work.

(christos)

2018-07-11 12:48:42 UTC MAIN commitmail json YAML

Add missing <netinet/in_offload.h> include.

(martin)

2018-07-11 11:13:17 UTC MAIN commitmail json YAML

Fix build.  pf_ioctl.c needs netinet/in_offload.h (after previous change).
Because this is in a module, apparently, that means that netinet_in_offload.h
needs to get installed in /usr/include, so do that as well.

Feel free to fix this in a better way...

(kre)

2018-07-11 07:46:21 UTC MAIN commitmail json YAML

Print iqdrops, too. This change also fixes a bug that Odrops prints
iqdrops when kvm read failed.

(msaitoh)