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

2024-05-09 23:40:44 UTC Now

2020-06-15 21:27:57 UTC MAIN commitmail json YAML

2020-06-15 20:29:29 UTC MAIN commitmail json YAML

2020-06-15 20:27:31 UTC MAIN commitmail json YAML

2020-06-15 18:57:39 UTC MAIN commitmail json YAML

2020-06-15 18:44:10 UTC MAIN commitmail json YAML

lookup_fastforward():

- If the root vnode of a mount is being reclaimed concurrent to a lookup,
  it's possbile to become confounded and bail out of the loop with both
  foundobj=NULL and searchdir=NULL (causing a NULL pointer deref).  If that
  happens everything should be rolled back to the start for retry.  Problem
  found and debugged by hannken@.

- If the terminal node was !VDIR then searchdir was needlessly referenced.
  No functional impact.

(ad)

2020-06-15 18:04:42 UTC MAIN commitmail json YAML

Fix a comment.

(ad)

2020-06-15 17:04:03 UTC MAIN commitmail json YAML

Note import of dhcpcd-9.1.2

(roy)

2020-06-15 17:02:58 UTC MAIN commitmail json YAML

dhcpcd: Build privsep resource limited sandbox.

(roy)

2020-06-15 16:59:05 UTC MAIN commitmail json YAML

2020-06-15 15:29:46 UTC MAIN commitmail json YAML

only install space handler and enable interrupt for EC if ACPI
claims the device is actually present, it's not enough when there
is entry for it in the ACPI tables

fixes interrupt storm triggered on Dell PowerEdge R220 by enabling
GPE interrupt on a non-enabled EC (for which _REG call later
fails), reported and fix tested by Dima Veselov:
http://mail-index.netbsd.org/netbsd-users/2020/03/02/msg024166.html

XXX pullup netbsd-9

(jdolecek)

2020-06-15 14:46:28 UTC MAIN commitmail json YAML

make(1): fix performance problem in specially crafted :M modifier

This fix was previously suspected to make the vax build fail.  The next
build succeeded though, and it started 2 hours before this fix was
reverted.

(rillig)

2020-06-15 14:32:08 UTC MAIN commitmail json YAML

fix reversed mv, pointed out by wiz@

(christos)

2020-06-15 14:25:40 UTC MAIN commitmail json YAML

deal with blacklist -> blocklist

(christos)

2020-06-15 13:57:45 UTC MAIN commitmail json YAML

2020-06-15 13:18:48 UTC MAIN commitmail json YAML

Follow ipfilter -> npf changes.

(tsutsui)

2020-06-15 13:06:39 UTC MAIN commitmail json YAML

2020-06-15 12:57:51 UTC MAIN commitmail json YAML

A revision of "The purpose of computing is insight, not numbers" by
Richard Hamming.
From The Art of Doing Science and Engineering

(sevan)

2020-06-15 09:09:24 UTC MAIN commitmail json YAML

Serialize rdtsc using with lfence, mfence or cpuid to read TSC more precisely.

x86/x86/tsc.c rev. 1.67 reduced cache problem and got big improvement, but it
still has room. I measured the effect of lfence, mfence, cpuid and rdtscp.
The impact to TSC skew and/or drift is:

AMD:  mfence > rdtscp > cpuid > lfence-serialize > lfence = nomodify
Intel: lfence > rdtscp > cpuid > nomodify

So, mfence is the best on AMD and lfence is the best on Intel. If it has no
SSE2, we can use cpuid.

NOTE:
  - An AMD's document says DE_CFG_LFENCE_SERIALIZE bit can be used for
    serializing, but it's not so good.
  - On Intel i386(not amd64), it seems the improvement is very little.
  - rdtscp instruct can be used as serializing instruction + rdtsc, but
    it's not good as [lm]fence. Both Intel and AMD's document say that
    the latency of rdtscp is bigger than rdtsc, so I suspect the difference
    of the result comes from it.

(msaitoh)

2020-06-15 07:55:45 UTC MAIN commitmail json YAML

KNF- wrap some long lines.

(simonb)

2020-06-15 07:48:12 UTC MAIN commitmail json YAML

Finish CPU core support for Octeon Cavium CN70XX:
- decode actual CPU name
- per CPU core reset logic (partially adapted from OpenBSD)
- handle Octeon 3 ioclock rate differences to other cores (from OpenBSD)

(simonb)

2020-06-15 03:39:00 UTC MAIN commitmail json YAML

mention blacklist -> blocklist rename

(christos)

2020-06-15 02:29:45 UTC MAIN commitmail json YAML

2020-06-15 01:57:33 UTC MAIN commitmail json YAML

2020-06-15 01:24:21 UTC MAIN commitmail json YAML

Count down bits of entropy, not bits of data, in x86 cpu_rng.

Fixes logic in this loop for XSTORERNG on VIA CPUs, which are deemed
to have half the entropy per bit of data as RDSEED on Intel CPUs, so
that it gathers enough entropy on the first request, not on the
second request.

(riastradh)

2020-06-15 01:23:44 UTC MAIN commitmail json YAML

Use x86_read_psl/x86_disable_intr/x86_read_psl to defer interrupts.

Using x86_disable_intr/x86_enable_intr causes a bit of a snag when we
try it early at boot before we're ready to handle interrupts, because
it has the effect of enabling interrupts!

Fixes instant reset at boot on VIA CPUs.  The instant reset on boot
is new since the entropy rework, which initialized the x86 CPU RNG
earlier than before, but in principle this could also cause other
problems while not early at boot too.

XXX pullup

(riastradh)

2020-06-15 00:46:00 UTC MAIN commitmail json YAML

2020-06-15 00:40:14 UTC MAIN commitmail json YAML

2020-06-15 00:39:03 UTC MAIN commitmail json YAML

2020-06-15 00:37:25 UTC MAIN commitmail json YAML

2020-06-15 00:31:21 UTC MAIN commitmail json YAML

Remove mips32r2 error introduced in previous commit; there no MP support
at all for 32-bit MIPSNN kernels.

(simonb)

2020-06-14 23:38:25 UTC MAIN commitmail json YAML

Remove old compat include of rump_syscallshotgun.h

It was separated in 2016 and is no longer needed.

(kamil)

2020-06-14 23:29:23 UTC MAIN commitmail json YAML

mvcesa(4): Don't use prev msg's last block as IV for next msg in CBC.

This violates the security contract of the CBC construction, which
requires that the IV be unpredictable in advance; an adaptive adversary
can exploit this to verify plaintext guesses.

XXX Compile-tested only.

(riastradh)

2020-06-14 23:24:20 UTC MAIN commitmail json YAML

tsc_get_timecount(): disable the "clock goes backwards" check on i386 for
the moment since it requires 64-bit store to be atomic because of nesting
via interrupt.

(ad)

2020-06-14 23:23:55 UTC MAIN commitmail json YAML

swcrypto(4): Simplify iv generation logic with cprng_fast.

(riastradh)

2020-06-14 23:23:12 UTC MAIN commitmail json YAML

qat(4): Simplify iv generation logic with cprng_fast.

(riastradh)

2020-06-14 23:22:09 UTC MAIN commitmail json YAML

ubsec(4): Don't use prev msg's last block as IV for next msg in CBC.

This violates the security contract of the CBC construction, which
requires that the IV be unpredictable in advance; an adaptive adversary
can exploit this to verify plaintext guesses.

XXX Compile-tested only.

(riastradh)

2020-06-14 23:20:15 UTC MAIN commitmail json YAML

padlock(4): Don't use prev msg's last block as IV for next msg in CBC.

This violates the security contract of the CBC construction, which
requires that the IV be unpredictable in advance; an adaptive adversary
can exploit this to verify plaintext guesses.

XXX Compile-tested only.

(riastradh)

2020-06-14 23:19:11 UTC MAIN commitmail json YAML

glxsb(4): Don't use prev msg's last block as IV for next msg in CBC.

This violates the security contract of the CBC construction, which
requires that the IV be unpredictable in advance; an adaptive adversary
can exploit this to verify plaintext guesses.

XXX Compile-tested only.

(riastradh)

2020-06-14 23:17:01 UTC MAIN commitmail json YAML

Arithmetic error in previous.

(ad)

2020-06-14 23:13:21 UTC MAIN commitmail json YAML

usr.bin/make: revert performance improvement

That change might be the cause of a build failure for vax.
http://releng.netbsd.org/builds/HEAD/202006131940Z/ builds fine.
http://releng.netbsd.org/builds/HEAD/202006141020Z/ doesn't.

The build fails with:
/home/source/ab/HEAD/src/external/gpl3/gcc/dist/gcc/machmode.h:524:28:
error: 'mode_size_inline' was not declared in this scope

(rillig)

2020-06-14 22:30:44 UTC MAIN commitmail json YAML

2020-06-14 22:25:15 UTC MAIN commitmail json YAML

g/c vm_page_zero_enable

(ad)

2020-06-14 22:12:58 UTC MAIN commitmail json YAML

Fix header compatibility with C++

This file is OS-agnostic and cannot include OS specific headers.

The fallback for NetBSD specific symbol __BEGIN_DECLS didn't work as it was
misspelled as _BEGIN_DECLS.

(kamil)

2020-06-14 21:47:15 UTC MAIN commitmail json YAML

- Fix a lock order reversal in pmap_page_protect().

- Make sure pmap is always locked when updating stats; atomics no longer
  needed to do that.

- Remove unneeded traversal of pv list in pmap_enter_pv().

- Shrink struct vm_page from 136 to 128 bytes (cache line sized) and struct
  pv_entry from 48 to 32 bytes (power of 2 sized).

- Embed a pv_entry in each vm_page.  This means PV entries don't need to
  be allocated for private anonymous memory / COW pages / most UBC mappings.
  Dynamic PV entries are then used only for stuff like shared libraries and
  shared memory.

Proposed on port-arm@.

(ad)

2020-06-14 21:41:42 UTC MAIN commitmail json YAML

Remove PG_ZERO.  It worked brilliantly on x86 machines from the mid-90s but
having spent an age experimenting with it over the last 6 months on various
machines and with different use cases it's always either break-even or a
slight net loss for me.

(ad)

2020-06-14 21:34:25 UTC MAIN commitmail json YAML

pool_cache:

- make all counters per-CPU and make cache layer do its work with atomic ops.
- conserve memory by caching empty groups globally.

(ad)

2020-06-14 21:33:28 UTC MAIN commitmail json YAML

Another bug.  The CAS loop in pthread_cond_signal() could race against the
thread it is trying to awake.  The thread could exit the condvar and then
reinsert itself at the head of the list with a new waiter behind it.  It's
likely possible to fix this in a way that's wait-free but for now just fix
the bug.

(ad)

2020-06-14 21:31:11 UTC MAIN commitmail json YAML

Don't need to ignore ESRCH from _lwp_park() any more.

(ad)

2020-06-14 21:31:01 UTC MAIN commitmail json YAML

2020-06-14 21:28:58 UTC MAIN commitmail json YAML

Fix incorrect type (found by lint), and add linted comments for the
long long -> long (uintmax_t on LP64)

(christos)

2020-06-14 18:24:21 UTC MAIN commitmail json YAML

Explicitly print a fs image filename on "fs image is too big" errors.

This will help future analysis of build errors caused by bloated
embedded ramdisk images and possible but unexpected other binaries.

Proposed on port-mips@ in discusson about ews4800mips daily build errors:
https://mail-index.netbsd.org/port-mips/2020/06/14/msg000950.html
and "Yes please!" from martin@.

(tsutsui)

2020-06-14 16:29:47 UTC MAIN commitmail json YAML

Fix !DIAGNOSTIC compile.

(ad)

2020-06-14 16:12:05 UTC MAIN commitmail json YAML

Use static constant rather than stack memset buffer for zero fpregs.

(riastradh)

2020-06-14 16:10:18 UTC MAIN commitmail json YAML

2020-06-14 15:12:56 UTC MAIN commitmail json YAML

Use proper "page" alignments for R5k Page Invalidate(S) op.  PR/55139

According to NEC "User's Manual VR5000, VR1000 64-BIT MICROPROCESSOR
INSTRUCTION" (U12754EJ1V0UMJ1), R5000 Page Invalidate (S) op does
"a page invalidate by doing a burst of 128 line invalidates to
the secondary cache at the page specified by the effective address
generated by the CACHE instruction, which must be page aligned."

This description looks a bit confusing, but "page" used here
implies fixed 32 byte cacheline * 128 lines == 4096 bytes,
not our variable "PAGE_SIZE" used in VM paging ops.  Note
the current default PAGE_SIZE for MIPS3 has been changed to 8192.

While here, also define and use proper macro for the "page" and CACHEOP
arg for the R5k Page_Invalidate_S op, as the manual also describes
the cache op field 10111 as "Page Invalidate" for the secondary cache.

No visible regression on Cobalt Qube 2700 (Rm5230) through
whole installation using netbsd-9 based Cobalt RestoreCD/USB.

(tsutsui)

2020-06-14 14:45:12 UTC MAIN commitmail json YAML

Revert thinko in previous.

(simonb)

2020-06-14 14:40:24 UTC MAIN commitmail json YAML

Include room for the trailing NUL in the way name string.

(simonb)

2020-06-14 14:26:18 UTC MAIN commitmail json YAML

inet6: Allow addresses to be marked AUTOCONF from userland

(roy)

2020-06-14 14:16:49 UTC MAIN commitmail json YAML

Use 32 byte cacheline ops (not 16 byte ones) for R5000 picache.  PR/55138

Commented "I think this is bad copy&paste" from skrll@.
No visible regression on Cobalt Qube 2700 (Rm5230) through
whole installation using netbsd-9 based Cobalt RestoreCD/USB.

(tsutsui)

2020-06-14 14:02:39 UTC MAIN commitmail json YAML

Fix inconsistent mips_o32, _mips_o32, and __mips_o32 macro.  PR/54216

Not sure what the original intention was, but no responce for a year,
and no visible regression on Cobalt Qube 2700 (Rm5230) through
whole installation using netbsd-9 based Cobalt RestoreCD/USB.

(tsutsui)

2020-06-14 12:58:01 UTC MAIN commitmail json YAML

Support Octeon Cavium cnMIPS I, II and III cores that have various
non-standard cache configurations (in terms of following MIPS spec
for defining cache configurations).

Move (most) Octeon support into a single place.

(simonb)

2020-06-14 12:07:44 UTC MAIN commitmail json YAML

Move some "case 0" statements to be first in their switch statements.

(simonb)

2020-06-14 12:02:07 UTC MAIN commitmail json YAML

Adjust previous - move consolidated debug printfs _after_ core specific
overrides, not before them.

(simonb)

2020-06-14 09:55:37 UTC MAIN commitmail json YAML

Make core specific overrides a bit more readable / scalable (switch
instead of if / else / ...).
Move debug printfs to after core specific overrides in case any config
is updated.

(simonb)

2020-06-14 09:41:18 UTC MAIN commitmail json YAML

KNF police - long lines and comments.

(simonb)

2020-06-14 08:43:08 UTC MAIN commitmail json YAML

Define Octeon Cavium cache layouts for various cnMIPS cores.

(simonb)

2020-06-14 06:50:31 UTC MAIN commitmail json YAML

Retire MIPS_CP0FL_USERLOCAL and MIPS_CP0FL_HWRENA and the flawed
logic that tried to deal with a MIPS processor that supports the ULR
CP0 register.  Probe correctly and save probed info somewhere we can
actually use it.  Avoids problems where libc expects ULR set to a
value but the CPU definition in the CPU table didn't have the right
combination of magic flags and thus never set ULR in the first place.

(simonb)

2020-06-14 05:10:33 UTC MAIN commitmail json YAML

Put a message in build error logs to notify what this target builds.

(tsutsui)

2020-06-14 04:51:09 UTC MAIN commitmail json YAML

Disable COMPAT_13 and UFS_EXTATTR.  Saves ~52kbytes.

(tsutsui)

2020-06-14 04:46:27 UTC MAIN commitmail json YAML

Sort options to match GENERIC.

(tsutsui)

2020-06-14 04:35:49 UTC MAIN commitmail json YAML

Disable npf instead of obsolete ipfilter.  Saves ~82kbytes.

Maybe other installation kernels that include GENEIRIC-like ones
and use "no pseudo-device" options should be checked:
https://mail-index.netbsd.org/source-changes/2018/08/01/msg097235.html

(tsutsui)

2020-06-14 01:40:06 UTC MAIN commitmail json YAML

2020-06-14 01:26:46 UTC MAIN commitmail json YAML

Generate format after setting the prec value

Otherwise we end up with setting invalid printf format: "%.-1f" (from
"if (snprintf(p, sz, "%%.%df", prec) >= (int)sz)") for prec equal to -1,
which is not canonical (rejected by gcc and clang when used explicitly).

Detected by ASan (MKSANITIZER) for "jot 8".

(kamil)

2020-06-14 00:30:20 UTC MAIN commitmail json YAML

Support optional square brackets around the host name.

The brackets are required when using numeric IPv6 addresses as they
contain colons as part of their syntax.  We do not enforce that the
thing in the brackets is a numeric IPv6 address - this matches scp
syntax and behavior.

(uwe)

2020-06-14 00:25:22 UTC MAIN commitmail json YAML

genfs_putpages(): when building a cluster make use of pages in the in the
existing uvm_page_array.

(ad)

2020-06-14 00:20:17 UTC MAIN commitmail json YAML

If a vnode is marked with VI_EXECMAP then in all likelyhood it has pages.

(ad)

2020-06-13 23:59:16 UTC MAIN commitmail json YAML

NetBSD 9.99.67 - struct lwp changed on x86

(ad)

2020-06-13 23:58:52 UTC MAIN commitmail json YAML

2020-06-13 22:35:23 UTC MAIN commitmail json YAML

Partial scan of components

(sevan)

2020-06-13 22:17:03 UTC MAIN commitmail json YAML

Fix encblkno8 legacy support.  Add a test vector while here.

What a crock!

This is deliberately _not_ neatly abstracted because the whole
configurable `iv method' mechanism is a mistake and should never be
used for anything new.

(riastradh)

2020-06-13 22:15:58 UTC MAIN commitmail json YAML

2020-06-13 22:15:06 UTC MAIN commitmail json YAML

Eliminate uio indirection for cgd crypto.

We don't actually use it, and we only ever used it kludgily in the
CBC encryption direction in the past anyway.

(riastradh)

2020-06-13 22:03:38 UTC MAIN commitmail json YAML

tmux-3.1b out.

(wiz)

2020-06-13 21:23:28 UTC MAIN commitmail json YAML

Remove -46 from the -c usage.  While here, sync usage with man page
(s/devfile/device).

(uwe)

2020-06-13 21:23:00 UTC MAIN commitmail json YAML

New xz released

(sevan)

2020-06-13 21:16:27 UTC MAIN commitmail json YAML

usr.bin/make: make Str_Match faster for repeated asterisks

Conceptually related to https://en.wikipedia.org/wiki/ReDoS.

(rillig)

2020-06-13 20:18:00 UTC MAIN commitmail json YAML

2020-06-13 20:01:27 UTC MAIN commitmail json YAML

2020-06-13 19:55:58 UTC MAIN commitmail json YAML

uvm_pagerealloc(): resurrect the insertion case.

(ad)

2020-06-13 19:55:39 UTC MAIN commitmail json YAML

uvm_pagerealloc(): resurrect the insertion case.

(ad)

2020-06-13 19:47:10 UTC MAIN commitmail json YAML

Create a compatibility symlink panel0 -> lcdpanel0

PR port-cobalt/55009

(thorpej)

2020-06-13 19:46:23 UTC MAIN commitmail json YAML

When reading in the MD MAKEDEV.conf, perform block / char major
substitutions that may be present in that file.

PR port-cobalt/55009

(thorpej)

2020-06-13 19:15:44 UTC MAIN commitmail json YAML

Use more shrinked x_foo binaries.

(tsutsui)

2020-06-13 19:01:11 UTC MAIN commitmail json YAML

Add comments over fpu_kern_enter/leave.

(riastradh)

2020-06-13 19:00:18 UTC MAIN commitmail json YAML

Zero the fpu registers on fpu_kern_leave.

Avoid Spectre-class attacks on any values left in them.

(riastradh)

2020-06-13 18:58:26 UTC MAIN commitmail json YAML

Draft opencrypto support for Allwinner Crypto Engine.

XXX Can't handle nonzero crd_skip yet.

(riastradh)

2020-06-13 18:57:54 UTC MAIN commitmail json YAML

Rework sun8i crypto.

- Preallocate tasks and DMA maps together for now, for 4k transfers.
- Confine setup of the task descriptor to a single function, without
  bus_dmamap_t as an input; just use the preallocated DMA maps.
- Take the DMA map part out of sun8i_crypto_buf.
  => Not much left here, just a dmamem segment and kva mapping.

This should make it easier to use with opencrypto.

(riastradh)

2020-06-13 18:54:38 UTC MAIN commitmail json YAML

Truncate hw.sun8icryptoN.rng queries to 4096 bytes.

...rather than fail entirely.

(riastradh)

2020-06-13 18:42:22 UTC MAIN commitmail json YAML

Move cgd selftest from module init to cgdattach.

This defers it until considerably later at boot, after cpu_attach has
run, which will be needed in order to make AES-NI work.

(riastradh)

2020-06-13 18:40:44 UTC MAIN commitmail json YAML

Specify which cgd self-test failed and dump the mismatch.

(riastradh)

2020-06-13 18:40:14 UTC MAIN commitmail json YAML

Shrink AES-XTS state by 280 bytes.

(riastradh)

2020-06-13 18:39:36 UTC MAIN commitmail json YAML

Convert malloc -> kmem.

(riastradh)

2020-06-13 18:39:07 UTC MAIN commitmail json YAML

Remove obsolete comment -- AES block size is always 128.

(riastradh)

2020-06-13 18:38:33 UTC MAIN commitmail json YAML

2020-06-13 18:36:07 UTC MAIN commitmail json YAML

Print cgd self-test noise only with verbose boot.

(riastradh)

2020-06-13 18:35:35 UTC MAIN commitmail json YAML

Fold `cipher prep' into `cipher' in cgd.

Simplify some logic along the way and u_int*_t -> uint*_t.

(riastradh)

2020-06-13 18:00:29 UTC MAIN commitmail json YAML

Nix trailing whitespace.

(riastradh)

2020-06-13 17:39:42 UTC MAIN commitmail json YAML

Nix trailing whitespace.

(riastradh)

2020-06-13 16:56:46 UTC MAIN commitmail json YAML

2020-06-13 16:51:59 UTC MAIN commitmail json YAML

Fix incompatible function pointer casts

(kamil)

2020-06-13 16:51:25 UTC MAIN commitmail json YAML

2020-06-13 14:45:17 UTC MAIN commitmail json YAML

Correct a comment (or at least comment on what we do instead of half of
what we do).

(simonb)

2020-06-13 14:41:24 UTC MAIN commitmail json YAML

Move MIPSNN_CFG3_ULRI so that it doesn't appear in some random position
among the other config3 register definitions.

(simonb)

2020-06-13 14:39:07 UTC MAIN commitmail json YAML

Use the correct config3 field name (ULRI) for UserLocal register is
implemented bit.

(simonb)

2020-06-13 14:31:49 UTC MAIN commitmail json YAML

2020-06-13 14:26:34 UTC MAIN commitmail json YAML

Note some hard-coded capabilties that can be probed.

XXX: Fix this and CPU table in mips/mips_machdep.c one day...

(simonb)

2020-06-13 13:45:06 UTC MAIN commitmail json YAML

Support IPv6.

Use getaddrinfo(3).  Add -4 and -6 command line options.  Obey USE_INET6.

(uwe)

2020-06-13 12:53:42 UTC MAIN commitmail json YAML

Add a comment to say that instruction encoding 0x7c03e83b is "rdhwr $3,$29".

(simonb)

2020-06-13 12:42:58 UTC MAIN commitmail json YAML

add entry for ASIX AX99100 PCIe 4port serial card

(ryo)

2020-06-13 12:42:51 UTC MAIN commitmail json YAML

2020-06-13 12:42:26 UTC MAIN commitmail json YAML

add ASIX AX99100 Multi I/O (Serial,Parallel,I2C,SPI,LocalBus,GPIO) Controller

(ryo)

2020-06-13 11:42:47 UTC MAIN commitmail json YAML

nbmake bootstrap: silent configure if MAKEVERBOSE==0

Be consistent with the silencing of configure in tools/
and suppress the output in build.sh configure of nbmake

(lukem)

2020-06-13 11:39:43 UTC MAIN commitmail json YAML

nbmake bootstrap: be quieter if MAKEVERBOSE==0

More accurately simulate <bsd.own.mk> and don't even print
the "compile" lines with MAKEVERBOSE=0

(lukem)

2020-06-13 11:32:52 UTC MAIN commitmail json YAML

nbmake bootstrap: consistency fix in MAKEVERBOSE<2 support

(lukem)

2020-06-13 11:28:24 UTC MAIN commitmail json YAML

nbmake bootstrap: if MAKEVERBOSE < 2, output similar to <bsd.own.mk>

(lukem)

2020-06-13 10:49:17 UTC MAIN commitmail json YAML

2020-06-13 08:12:16 UTC MAIN commitmail json YAML

tools: if MAKEVERBOSE < 2, quieten automake builds

(lukem)

2020-06-13 07:49:00 UTC MAIN commitmail json YAML

usr.bin/make: remove redundant parentheses around return

(rillig)

2020-06-13 07:36:07 UTC MAIN commitmail json YAML

usr.bin/make: consistently use ++ for incrementing pointers

(rillig)

2020-06-13 07:30:02 UTC MAIN commitmail json YAML

usr.bin/make: fix typo in comment

(rillig)

2020-06-13 06:05:08 UTC MAIN commitmail json YAML

COMPAT_90 doesn't necessarily imply COMPAT_50. So include compat in6_var.h in
either case.

Fixes evbarm build that starts with COMPAT_60.

(mlelstv)

2020-06-13 05:56:44 UTC netbsd-9 commitmail json YAML

Cleanup whitespace

(martin)

2020-06-13 05:31:29 UTC MAIN commitmail json YAML

Initialise the mutex before we use it.

(jdc)

2020-06-13 01:41:59 UTC MAIN commitmail json YAML

SCTP: Use ifp->if_mtu rather than ND_IFINFO(ifp)->linkmtu

(roy)

2020-06-12 21:08:02 UTC MAIN commitmail json YAML

ndp: Sync usage and SYNPOSIS with reality

(roy)

2020-06-12 20:58:43 UTC MAIN commitmail json YAML

Use more markup.

(wiz)

2020-06-12 15:34:20 UTC MAIN commitmail json YAML

pmf-powerdown == false  -->  pmf-no-powerdown == true

(thorpej)

2020-06-12 15:25:27 UTC MAIN commitmail json YAML

Add nd6.h compat header

(roy)

2020-06-12 14:52:11 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-12 14:37:51 UTC MAIN commitmail json YAML

external/gpl3/gcc: Suppress -Werror=maybe-uninitialized

Seems like false positive since the ASM_GENERATE_INTERNAL_LABEL macro
stores the value into prev_label, so it is alright for prev_label to
be uninitialized.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@

(fox)

2020-06-12 14:12:20 UTC MAIN commitmail json YAML

Revert accidental part of prior

(roy)

2020-06-12 11:21:36 UTC MAIN commitmail json YAML

Remove unused OPENBSD_RAW_PART. (copied from arc?)

(tsutsui)

2020-06-12 11:09:49 UTC MAIN commitmail json YAML

9.99.66 welcomes the removal of in-kernel RA handling

(roy)

2020-06-12 11:07:43 UTC MAIN commitmail json YAML

Note removal of RA handling.

(roy)

2020-06-12 11:04:46 UTC MAIN commitmail json YAML

Remove in-kernel handling of Router Advertisements

This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.

Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.

Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).

(roy)

2020-06-12 10:35:59 UTC MAIN commitmail json YAML

ipfilter: Prepare for life without in kernel RA

(roy)

2020-06-12 09:28:48 UTC MAIN commitmail json YAML

-  Remove extra kpreempt_disable() -> kpreempt_enable() because
  ixgbe_handle_msf() was changed from softint to workqueue.
- Set schedule_wqs_ok before enabling interrupt to prevent the race.
- Fix comment.

(msaitoh)

2020-06-12 06:44:57 UTC MAIN commitmail json YAML

more proplib API catchup

(macallan)

2020-06-12 03:41:57 UTC MAIN commitmail json YAML

2020-06-12 03:32:30 UTC MAIN commitmail json YAML

i2c-indirect-config == false  -->  i2c-no-indirect-config == true

(thorpej)

2020-06-12 01:20:32 UTC MAIN commitmail json YAML

lib/libpam: Fix the possible -Werror=stringop-truncation

Replace strncpy(3) with the safer strlcpy(3) and adjust the code.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@, christos@

(fox)

2020-06-12 00:02:26 UTC MAIN commitmail json YAML

Change previous to only apply when building with clang.

(thorpej)

2020-06-11 23:19:53 UTC MAIN commitmail json YAML

2020-06-11 22:25:51 UTC MAIN commitmail json YAML

Counter tweaks:

- Don't need to count anonpages+filepages any more; clean+unknown+dirty for
  each kind of page can be summed to get the totals.

- Track the number of free pages with a counter so that it's one less thing
  for the allocator to do, which opens up further options there.

- Remove cpu_count_sync_one(). It has no users and doesn't save a whole lot.
  For the cheap option, give cpu_count_sync() a boolean parameter indicating
  that a cached value is okay, and rate limit the updates for cached values
  to hz.

(ad)

2020-06-11 22:25:44 UTC MAIN commitmail json YAML

Unbreak clang builds by removing questionable linker warning sections
trggered all over the place.

(joerg)

2020-06-11 22:21:05 UTC MAIN commitmail json YAML

Counter tweaks:

- Don't need to count anonpages+filepages any more; clean+unknown+dirty for
  each kind of page can be summed to get the totals.

- Track the number of free pages with a counter so that it's one less thing
  for the allocator to do, which opens up further options there.

- Remove cpu_count_sync_one().  It has no users and doesn't save a whole lot.
  For the cheap option, give cpu_count_sync() a boolean parameter indicating
  that a cached value is okay, and rate limit the updates for cached values
  to hz.

(ad)

2020-06-11 19:20:47 UTC MAIN commitmail json YAML

uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.

(ad)

2020-06-11 18:42:02 UTC MAIN commitmail json YAML

Drop self->pt_lock before clearing TSD / malloc TSD.

(ad)

2020-06-11 18:41:22 UTC MAIN commitmail json YAML

Adjust memory barriers.

(ad)

2020-06-11 16:05:54 UTC MAIN commitmail json YAML

dhcpcd: Disable priviledge separation and sandboxing for SMALLPROG builds

It's a fair chunk of code and is probably safe enough for our ramdisks.

(roy)

2020-06-11 14:22:10 UTC MAIN commitmail json YAML

forgot to commit a header change, again...

(macallan)

2020-06-11 13:49:57 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-11 13:36:20 UTC MAIN commitmail json YAML

bpf(4): Add ioctls BIOCSETWF and BIOCLOCK

Once BIOCLOCK is executed, the device becomes locked which prevents the
execution of ioctl(2) commands which can change the underlying parameters
of the bpf(4) device. An example might be the setting of bpf(4) filter
programs or attaching to different network interfaces.

BIOCSETWF can be used to set write filters for outgoing packets.
Currently if a bpf(4) consumer is compromised, the bpf(4) descriptor can
essentially be used as a raw socket, regardless of consumer's UID.
Write filters give users the ability to constrain which packets can be sent
through the bpf(4) descriptor.

Taken from OpenBSD.

(roy)

2020-06-11 13:08:08 UTC MAIN commitmail json YAML

2020-06-11 11:40:54 UTC MAIN commitmail json YAML

Do not destroy mutices that failed to init - fixes a run with
PTHREAD_DIAGASSERT set to "a". Pointed out by joerg.

(martin)

2020-06-11 11:05:29 UTC MAIN commitmail json YAML

2020-06-11 11:04:12 UTC netbsd-9 commitmail json YAML

2020-06-11 11:03:22 UTC netbsd-9 commitmail json YAML

Pull up following revision (requested by martin in ticket #958):

src/sys/dev/usb/if_run.c: revision 1.41

Better bounds checking for oversized packets, to avoid kernel memory
corruption. Pointed out by Ilja Van Sprundel.

(jdc)

2020-06-11 11:01:20 UTC netbsd-9 commitmail json YAML

Pull up following revision (requested by martin in ticket #957):

src/sys/dev/usb/if_otus.c: revision 1.45 (via patch)

Stricter bounds check for some packet length we get from the usb chip,
to make sure we do not corrupt kernel memory.
Pointed out by Ilja Van Sprundel.

(jdc)

2020-06-11 11:01:16 UTC MAIN commitmail json YAML

2020-06-11 09:56:57 UTC MAIN commitmail json YAML

Better bounds checking for oversized packets, to avoid kernel memory
corruption. Pointed out by Ilja Van Sprundel.

(martin)

2020-06-11 09:51:37 UTC MAIN commitmail json YAML

Stricter bounds check for some packet length we get from the usb chip,
to make sure we do not corrupt kernel memory.
Pointed out by Ilja Van Sprundel.

(martin)

2020-06-11 09:23:13 UTC MAIN commitmail json YAML

No functional change:

- Rename some macros and function.
- Add newline.

(msaitoh)

2020-06-11 09:17:11 UTC MAIN commitmail json YAML

bsd-family-tree

(sevan)

2020-06-11 09:16:05 UTC MAIN commitmail json YAML

2020-06-11 09:15:31 UTC MAIN commitmail json YAML

2020-06-11 09:02:05 UTC MAIN commitmail json YAML

2020-06-11 09:01:27 UTC MAIN commitmail json YAML

add Intel XMM 7360 LTE Modem

(jdolecek)

2020-06-11 07:51:26 UTC MAIN commitmail json YAML

only read the backlight level register on mobility chips

(macallan)

2020-06-11 07:46:59 UTC MAIN commitmail json YAML

reduce stack usage in radeonfb_pickres() and radeonfb_set_cursor()

(macallan)

2020-06-11 05:16:22 UTC MAIN commitmail json YAML

Fix IXGBE_LE32_TO_CPUS() macro for big endian machine. This problem was
only on X550*. Not tested on big endian machine.

(msaitoh)

2020-06-11 03:47:05 UTC MAIN commitmail json YAML

Regen after -r1.82 of compat_sunos syscalls.master last September.

(Apparently forgotten.)

"Treat valsize as unsigned"

(dholland)

2020-06-11 03:45:31 UTC MAIN commitmail json YAML

2020-06-11 03:25:35 UTC MAIN commitmail json YAML

Don't output things in awk hash order. Sort first.

(dholland)

2020-06-11 02:39:31 UTC MAIN commitmail json YAML

2020-06-11 02:32:06 UTC MAIN commitmail json YAML

Update for proplib(3) API changes.

(thorpej)

2020-06-11 02:30:21 UTC MAIN commitmail json YAML

2020-06-11 02:28:02 UTC MAIN commitmail json YAML

2020-06-11 02:21:26 UTC MAIN commitmail json YAML

fix awk-induced bug (using wrong variable, getting away with it by luck)

(dholland)

2020-06-11 00:33:30 UTC MAIN commitmail json YAML

Follow the syscall() logic and mask unsupported syscall ranges in rump

Avoids invalid pointer dereference from too large syscall numbers.

(kamil)

2020-06-10 22:45:15 UTC MAIN commitmail json YAML

- Make pthread_condvar and pthread_mutex work on the stack rather than in
  pthread_t, so there's less chance of bad things happening if someone calls
  (for example) pthread_cond_broadcast() from a signal handler.

- Remove all the deferred waiter handling except for the one case that really
  matters which is transferring waiters from condvar -> mutex on wakeup, and
  do that by splicing the condvar's waiters onto the mutex.

- Remove the mutex waiters bit as it's another complication that's not
  strictly needed.

(ad)

2020-06-10 22:24:22 UTC MAIN commitmail json YAML

- Wired/resident stats shouldn't covered by PMAPCOUNTERS.
- Rename need_update_pv -> need_enter_pv.

Ok ryo@

(ad)

2020-06-10 21:46:50 UTC MAIN commitmail json YAML

Adjust cond_timedwait_race to take account of spurious wakeups (which are
completely legit).

(ad)

2020-06-10 20:26:53 UTC MAIN commitmail json YAML

2020-06-10 19:30:23 UTC MAIN commitmail json YAML

2020-06-10 19:29:48 UTC MAIN commitmail json YAML

If enable-method is missing, try psci

(jmcneill)

2020-06-10 18:53:31 UTC MAIN commitmail json YAML

2020-06-10 17:57:50 UTC MAIN commitmail json YAML

2020-06-10 16:56:22 UTC MAIN commitmail json YAML

MBR type for Ext2 should be MBR_PTYPE_LNXEXT2, not MBR_PTYPE_FAT12.

(tsutsui)

2020-06-10 16:26:33 UTC MAIN commitmail json YAML

Change mountpoint of boot ext2fs from /stand to /ext2 to avoid conflict.

Should be pulled up to netbsd-9, with fixes of PR/55060.

(tsutsui)