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


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




switch to index mode

recent branches: MAIN (3h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 18:24:09 UTC Now

2018-08-21 11:04:49 UTC MAIN commitmail json YAML

2018-08-21 11:03:27 UTC MAIN commitmail json YAML

should terminate and does with ktrace, but it does not normally.

(christos)

2018-08-21 10:41:00 UTC MAIN commitmail json YAML

Now add the file I really meant to add.

(christos)

2018-08-21 10:39:21 UTC MAIN commitmail json YAML

revert copyright change.

(christos)

2018-08-21 10:38:09 UTC MAIN commitmail json YAML

2018-08-21 08:45:17 UTC MAIN commitmail json YAML

Correctly report memory size, not clock rate when VERBOSE_INIT_ARM.

(rin)

2018-08-21 08:22:33 UTC MAIN commitmail json YAML

rumpdefs.h, rumperr.h and rumperrno2host.h are generated from makerumpdefs.sh.
Don't edit those files directly. Use __inline instead of inline in the
script file. OK'd by christos.

(msaitoh)

2018-08-21 07:56:53 UTC MAIN commitmail json YAML

Need to keep track of the requested size, when realloc is used under kASan.
Maybe we could use mh_rqsz by default.

(maxv)

2018-08-21 06:49:21 UTC MAIN commitmail json YAML

There is no possible reason that <sys/asan.h> can be useful to
userland, all it contains is a few prototypes for kernel functions.
So, don't install asan.h in /usr/include/sys (if it ever gains
anything which would be useful, then this can be changed).

Note: I have simply removed /usr/includ/esys/asan.hit from the sets
list, rather than marking it obsolete - it has not been there for
very long, If you get build problems (sets list errors) from an
update build because you managed to install it during the last few
hours, just remove asan.h from /usr/include/sys

(kre)

2018-08-21 04:17:26 UTC pgoyette-compat commitmail json YAML

Revert previous - it was wrong, and on the wrong branch!

(pgoyette)

2018-08-21 04:16:38 UTC MAIN commitmail json YAML

Add the new sys/kasan.h to the distrib sets lists

(pgoyette)

2018-08-21 04:10:04 UTC pgoyette-compat commitmail json YAML

Add the new sys/kasan.h to the distrib sets lists

Finish fixing the build.

(pgoyette)

2018-08-21 01:25:57 UTC MAIN commitmail json YAML

Conditionalize inclusion of kasan.h so that rump can build.

(pgoyette)

2018-08-20 20:45:52 UTC MAIN commitmail json YAML

2018-08-20 18:13:56 UTC MAIN commitmail json YAML

Use __SHIFTOUT to extract MPIDR affinity levels

(jmcneill)

2018-08-20 15:04:52 UTC MAIN commitmail json YAML

Add support for kASan on amd64. Written by me, with some parts inspired
from Siddharth Muralee's initial work. This feature can detect several
kinds of memory bugs, and it's an excellent feature.

It can be enabled by uncommenting these three lines in GENERIC:

#makeoptions KASAN=1 # Kernel Address Sanitizer
#options KASAN
#no options SVS

The kernel is compiled without SVS, without DMAP and without PCPU area.
A shadow area is created at boot time, and it can cover the upper 128TB
of the address space. This area is populated gradually as we allocate
memory. With this design the memory consumption is kept at its lowest
level.

The compiler calls the __asan_* functions each time a memory access is
done. We verify whether this access is legal by looking at the shadow
area.

We declare our own special memcpy/memset/etc functions, because the
compiler's builtins don't add the __asan_* instrumentation.

Initially all the mappings are marked as valid. During dynamic
allocations, we add a redzone, which we mark as invalid. Any access on
it will trigger a kASan error message. Additionally, the compiler adds
a redzone on global variables, and we mark these redzones as invalid too.
The illegal-access detection works with a 1-byte granularity.

For now, we cover three areas:

- global variables
- kmem_alloc-ated areas
- malloc-ated areas

More will come, but that's a good start.

(maxv)

2018-08-20 14:29:05 UTC MAIN commitmail json YAML

Clarify reference counting of uvm_map.

(riastradh)

2018-08-20 14:23:27 UTC MAIN commitmail json YAML

Clarify that bus_dmamem_alloc boundary can be zero for no constraint.

(riastradh)

2018-08-20 11:46:44 UTC MAIN commitmail json YAML

Compute the pointer earlier, not in the return statement. No functional
change.

(maxv)

2018-08-20 11:35:28 UTC MAIN commitmail json YAML

Retire KMEM_REDZONE and KMEM_POISON.

KMEM_REDZONE is not very efficient and cannot detect read overflows. KASAN
can, and will be used instead.

KMEM_POISON is enabled along with KMEM_GUARD, but it is redundant, since
the latter can detect read UAFs contrary to the former. In fact maybe
KMEM_GUARD should be retired too, because there are many cases where it
doesn't apply.

Simplifies the code.

(maxv)

2018-08-20 10:57:52 UTC MAIN commitmail json YAML

Note import of dhcpcd-7.0.8

(roy)

2018-08-20 10:55:59 UTC MAIN commitmail json YAML

2018-08-20 10:27:32 UTC MAIN commitmail json YAML

make sure that nbtools_compat.h is the first thing included for generated files

(christos)

2018-08-20 10:26:59 UTC MAIN commitmail json YAML

avoid redefinition of the package macros.

(christos)

2018-08-20 10:24:17 UTC MAIN commitmail json YAML

PR toolchain/53511

_NETBSD_SOURCE and nbtool_config.h don't play well together...
(unbreak tools build on netbsd host)

(kre)

2018-08-20 09:50:18 UTC MAIN commitmail json YAML

2018-08-20 08:53:48 UTC MAIN commitmail json YAML

OK'd by maxv:
- Add cpuid 7 edx L1D_FLUSH bit.
- Add IA32_ARCH_SKIP_L1DFL_VMENTRY bit.
- Add IA32_FLUSH_CMD MSR.

(msaitoh)

2018-08-20 08:51:57 UTC MAIN commitmail json YAML

PR/53511: Palle Lyckegaard: Fix compiling flex on a Solaris 11 host system

(christos)

2018-08-20 06:47:16 UTC MAIN commitmail json YAML

2018-08-20 05:22:40 UTC MAIN commitmail json YAML

expat-2.2.6 out

(wiz)

2018-08-20 04:50:56 UTC MAIN commitmail json YAML

Suspend the getrfkill thread while we're suspended.

Otherwise it tries to futz with device registers, which doesn't work,
and who knows, maybe is bad.

(riastradh)

2018-08-20 02:33:17 UTC MAIN commitmail json YAML

What we have created, we must destroy.

(riastradh)

2018-08-19 23:50:27 UTC MAIN commitmail json YAML

PR bin/48875 (is related, and ameliorated, but not exactly "fixed")

Import a whole set of tree evaluation enhancements from FreeBSD.

With these, before forking, the shell predicts (often) when all it will
have to do after forking (in the parent) is wait for the child and then
exit with the status from the child, and in such a case simply does not
fork, but rather allows the child to take over the parent's role.

This turns out to handle the particular test case from PR bin/48875 in
such a way that it works as hoped, rather than as it did (the delay there
was caused by an extra copy of the shell hanging around waiting for the
background child to complete ... and keeping the command substitution
stdout open, so the "real" parent had to wait in case more output appeared).

As part of doing this, redirection processing for compound commands gets
moved out of evalsubshell() and into a new evalredir(), which allows us
to properly handle errors occurring while performing those redirects,
and not mishandle (as in simply forget) fd's which had been moved out
of the way temporarily.

evaltree() has its degree of recursion reduced by making it loop to
handle the subsequent operation: that is instead of (for any binop
like ';' '&&' (etc)) where it used to
evaltree(node->left);
evaltree(node->right);
return;
it now does (kind of)
next = node;
while ((node = next) != NULL) {
next = NULL;

if (node is a binary op) {
evaltree(node->left);
if appropriate /* if && test for success, etc */
next = node->right;
continue;
}
/* similar for loops, etc */
}
which can be a good saving, as while the left side (now) tends to be
(usually) a simple (or simpleish) command, the right side can be many
commands (in a command sequence like a; b; c; d; ...  the node at the
top of the tree will now have "a" as its left node, and the tree for
b; c; d; ... as its right node - until now everything was evaluated
recursively so it made no difference, and the tree was constructed
the other way).

if/while/... statements are done similarly, recurse to evaluate the
condition, then if the (or one of the) body parts is to be evaluated,
set next to that, and loop (previously it recursed).

There is more to do in this area (particularly in the way that case
statements are processed - we can avoid recursion there as well) but
that can wait for another day.

While doing all of this we keep much better track of when the shell is
just going to exit once the current tree is evaluated (with a new
predicate at_eof() to tell us that we have, for sure, reached the end
of the input stream, that is, this shell will, for certain, not be reading
more command input) and use that info to avoid unneeded forks.  For that
we also need another new predicate (have_traps()) to determine of there
are any caught traps which might occur - if there are, we need to remain
to (potentially) handle them, so these optimisations will not occur (to
make the issue in PR 48875 appear again, run the same code, but with a
trap set to execute some code when a signal (or EXIT) occurs - note that
the trap must be set in the appropriate level of sub-shell to have this
effect, any caught traps are cleared in a subshell whenever one is created).

There is still work to be done to handle traps properly, whatever
weirdness they do (some of which is related to some of this.)

These changes do not need man page updates, but 48875 does - an update
to sh.1 will be forthcoming once it is decided what it should say...

Once again, all the heavy lifting for this set of changes comes directly
(with thanks) from the FreeBSD shell.

XXX pullup-8 (but not very soon)

(kre)

2018-08-19 20:02:22 UTC MAIN commitmail json YAML

show correct relocation address when overflowed.

(ryo)

2018-08-19 15:10:23 UTC MAIN commitmail json YAML

Handle p->p_mqueue_cnt in a symmetric manner.

While this change does mean that each open mqd_t counts against the
limit, it also means that p_mqueue_cnt will never wrap below 0.

Discovered by the Rust nix crate test suite.  It opens the same mq twice
(once for writes, once for reads), and then proceeds to close each of
them, which resulted in p_mqueue_cnt wrapping to (u_int)-1, preventing
the process from opening any more mqueues, and all subsequent
mq(3)-related tests to fail.

(jakllsch)

2018-08-19 14:50:25 UTC MAIN commitmail json YAML

Remove FloatToString from NetBSD build since it uses float/double

(jmcneill)

2018-08-19 11:16:13 UTC MAIN commitmail json YAML

PR bin/48875

Revert the changes that were made 19 May 2016 (principally eval.c 1.125)
and the bug fixes in subsequent days (eval.c 1.126 and 1.127) and also
update some newer code that was added more recently which acted in
accordance with those changes (make that code be as it would have been
if the changes now being reverted had never been made).

While the changes made did solve the problem, in a sense, they were
never correct (see the PR for some discussion) and it had always been
intended that they be reverted.  However, in practical sh code, no
issues were reported - until just recently - so nothing was done,
until now...

After this commit, the validate_fn_redirects test case of the sh ATF
test t_redir will fail.  In particular, the subtest of that test
case which is described in the source (of the test) as:
This one is the real test for PR bin/48875
will fail.

Alternative changes, not to "fix" the problem in the PR, but to
often avoid it will be coming very soon - after which that ATF
test will succeed again.

XXX pullup-8

(kre)

2018-08-19 10:47:45 UTC MAIN commitmail json YAML

NFC: DEBUG mode only change.  When tracing, show >&- as ">&-"
rather than ">&-1" (the same op as >&n where internally n < 0
means "close")

(kre)

2018-08-19 10:33:49 UTC MAIN commitmail json YAML

fix a bug in the previous change: don't hide the break; behind DEBUG_EXEC.
should fix PR#53538.  tested on erlite.

(mrg)

2018-08-19 09:21:29 UTC MAIN commitmail json YAML

3RDPARTY: latest Mesa actually is 8.1.6 for now.

(wiz)

2018-08-19 09:18:48 UTC MAIN commitmail json YAML

Clean up leftover when converting intr_establish() to fdtbus_intr_establish().
The latter accept only flags 0 or FDT_INTR_MPSAFE. For both cases, it add
IST_LEVEL flag for underlying intr_establish() function.

OK skrll

(rin)

2018-08-19 08:00:41 UTC MAIN commitmail json YAML

Commit work in progress GENERIC configuration without the other necessary
changes at this point

(skrll)

2018-08-19 07:27:33 UTC MAIN commitmail json YAML

Some changes to bring back exynos4 support and make exynos5 support more
modern/generic

- Provide a exynos_platform_early_putchar based on CONSADDR and remove
  EXYNOS_CONSOLE_EARLY
- Provide devmaps for exynos4 and exynos5
- Simplify exynos_bootstrap
- Update exynos_start.S to use exynos_platform_early_putchar - this
  needs a fix in a9_subr.S for arm_cpuinit to save lr in a callee save
  register and not use ip.  Maybe this change is safe now, but too much
  testing required to commit it now.

(skrll)

2018-08-19 02:10:42 UTC MAIN commitmail json YAML

Drop a duplicate instruction line

No functional change intended.

(kamil)

2018-08-19 01:33:27 UTC MAIN commitmail json YAML

This makes no sense static.  (Can't break unused code anyway!)

(riastradh)

2018-08-18 23:35:18 UTC MAIN commitmail json YAML

Revert previous and do it the way it is supposed to be done.
Thanks to the heads up from rjs@

(kre)

2018-08-18 20:17:51 UTC MAIN commitmail json YAML

2018-08-18 17:37:25 UTC MAIN commitmail json YAML

Allow the symbols in the newly added conf_ssl.c to be exposed as globals.

(kre)

2018-08-18 16:40:02 UTC MAIN commitmail json YAML

2018-08-18 15:55:19 UTC MAIN commitmail json YAML

More fallout from new gnu-efi ... EFI_SIMPLE_NETWORK_PROTOCOL
is now EFI_SIMPLE_NETWORK_PROTOCOL_GUID

(kre)

2018-08-18 14:18:58 UTC MAIN commitmail json YAML

2018-08-18 14:17:56 UTC MAIN commitmail json YAML

src/sys/external/bsd/acpica/dist/compiler/aslload.c@1.12 / diff / nxr@1.12
src/sys/external/bsd/acpica/dist/compiler/asloptions.c@1.8 / diff / nxr@1.8
src/sys/external/bsd/acpica/dist/debugger/dbinput.c@1.16 / diff / nxr@1.16
src/sys/external/bsd/acpica/dist/debugger/dbmethod.c@1.11 / diff / nxr@1.11
src/sys/external/bsd/acpica/dist/debugger/dbnames.c@1.11 / diff / nxr@1.11
src/sys/external/bsd/acpica/dist/executer/exconfig.c@1.13 / diff / nxr@1.13
src/sys/external/bsd/acpica/dist/hardware/hwregs.c@1.7 / diff / nxr@1.7
src/sys/external/bsd/acpica/dist/hardware/hwsleep.c@1.8 / diff / nxr@1.8
src/sys/external/bsd/acpica/dist/hardware/hwxfsleep.c@1.11 / diff / nxr@1.11
src/sys/external/bsd/acpica/dist/include/acdisasm.h@1.17 / diff / nxr@1.17
src/sys/external/bsd/acpica/dist/include/acexcep.h@1.10 / diff / nxr@1.10
src/sys/external/bsd/acpica/dist/include/aclocal.h@1.17 / diff / nxr@1.17
src/sys/external/bsd/acpica/dist/include/acnamesp.h@1.14 / diff / nxr@1.14
src/sys/external/bsd/acpica/dist/include/acoutput.h@1.9 / diff / nxr@1.9
src/sys/external/bsd/acpica/dist/include/acpixf.h@1.20 / diff / nxr@1.20
src/sys/external/bsd/acpica/dist/include/acutils.h@1.18 / diff / nxr@1.18
src/sys/external/bsd/acpica/dist/namespace/nsaccess.c@1.15 / diff / nxr@1.15
src/sys/external/bsd/acpica/dist/namespace/nsdump.c@1.13 / diff / nxr@1.13
src/sys/external/bsd/acpica/dist/namespace/nseval.c@1.12 / diff / nxr@1.12
src/sys/external/bsd/acpica/dist/namespace/nsinit.c@1.15 / diff / nxr@1.15
      :
(more 2 files)
merge conflicts

(christos)

2018-08-18 12:00:11 UTC MAIN commitmail json YAML

use the right variables (fix cut-n-pastos)

(christos)

2018-08-18 11:59:25 UTC MAIN commitmail json YAML

make sure rid and idx are initialized.

(christos)

2018-08-18 11:58:59 UTC MAIN commitmail json YAML

vdev_inuse might not be called and spare_guid contains random stuff.

(christos)

2018-08-18 11:57:58 UTC MAIN commitmail json YAML

remove NOGCCERROR; hides real issues.

(christos)

2018-08-18 09:47:59 UTC MAIN commitmail json YAML

2018-08-18 09:43:17 UTC MAIN commitmail json YAML

Note EARLYCONS in comment

(skrll)

2018-08-18 09:29:45 UTC MAIN commitmail json YAML

Fix a bug introduced in the previous revision;
We don't define arm32 anywhere, and majors.aarch64 is used unconditionally.

(rin)

2018-08-18 09:00:28 UTC MAIN commitmail json YAML

2018-08-18 08:59:05 UTC MAIN commitmail json YAML

src/crypto/external/bsd/openssl/dist/CHANGES@1.16 / diff / nxr@1.16
src/crypto/external/bsd/openssl/dist/Configurations/90-team.conf deleted
src/crypto/external/bsd/openssl/dist/Configure@1.20 / diff / nxr@1.20
src/crypto/external/bsd/openssl/dist/NEWS@1.16 / diff / nxr@1.16
src/crypto/external/bsd/openssl/dist/README@1.16 / diff / nxr@1.16
src/crypto/external/bsd/openssl/dist/apps/ca.c@1.16 / diff / nxr@1.16
src/crypto/external/bsd/openssl/dist/apps/ocsp.c@1.15 / diff / nxr@1.15
src/crypto/external/bsd/openssl/dist/apps/s_client.c@1.16 / diff / nxr@1.16
src/crypto/external/bsd/openssl/dist/apps/s_server.c@1.16 / diff / nxr@1.16
src/crypto/external/bsd/openssl/dist/apps/speed.c@1.14 / diff / nxr@1.14
src/crypto/external/bsd/openssl/dist/crypto/arm_arch.h@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/dist/crypto/armcap.c@1.6 / diff / nxr@1.6
src/crypto/external/bsd/openssl/dist/crypto/asn1/a_strex.c@1.7 / diff / nxr@1.7
src/crypto/external/bsd/openssl/dist/crypto/asn1/asn_mime.c@1.10 / diff / nxr@1.10
src/crypto/external/bsd/openssl/dist/crypto/asn1/tasn_enc.c@1.8 / diff / nxr@1.8
src/crypto/external/bsd/openssl/dist/crypto/bio/b_sock.c@1.9 / diff / nxr@1.9
src/crypto/external/bsd/openssl/dist/crypto/bio/bss_log.c@1.8 / diff / nxr@1.8
src/crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c@1.16 / diff / nxr@1.16
src/crypto/external/bsd/openssl/dist/crypto/bn/bn_lcl.h@1.7 / diff / nxr@1.7
src/crypto/external/bsd/openssl/dist/crypto/bn/bn_lib.c@1.8 / diff / nxr@1.8
      :
(more 23 files)
merge conflicts

(christos)

2018-08-18 08:45:55 UTC MAIN commitmail json YAML

Simplify the conditions. Fixes compilation of native amd64 without direct
map.

(maxv)

2018-08-18 06:52:57 UTC MAIN commitmail json YAML

More gnu-efi update fallout ... the symbol EFI_SIMPLE_NETWORK_PROTOCOL
has been replaced with EFI_SIMPLE_NETWORK_PROTOCOL_GUID and the old
one (EFI_SIMPLE_NETWORK_PROTOCOL) is now something completely different.

Adapt...  (should help the ia64 build)

(kre)

2018-08-18 03:09:37 UTC MAIN commitmail json YAML

In the older debug code (not using the new macros added in the
previous rev) the two values (node name, and node number) were
arbitrarily printed in different formats and orders (depending
upon my mood at the time I guess...)  The new macros will standardise
that usage (in the debug output) once some use of them actually begins.

When the macros were added, I arbitrarily copied the format of one
use I was looking at at that instant (the one which inspired the change),
but after gazing at DEBUG mode output over the intervening time, I
have concluded that I did not pick the easiest to read/follow format.

So, even before they are used, change the style...    Also, conform
to standard PRIxxxx macro style by omitting the leading '%'.

NFC (since they aren't used at all, anywhere, yet, not even the
possibility of anything changing!)

(kre)

2018-08-17 20:16:07 UTC MAIN commitmail json YAML

Start using the kernel ld script.

There are still issues with the .init placement and ./build.sh creating bad
images.

(reinoud)

2018-08-17 16:04:39 UTC MAIN commitmail json YAML

- add some G5-specific setup
- OF_claim() more heap space on G5
With this, and -DHEAP_VARIABLE my G5s boot from harddisk

(macallan)

2018-08-17 15:54:35 UTC MAIN commitmail json YAML

2018-08-17 14:47:21 UTC MAIN commitmail json YAML

Fix build the easiest way...

Restructure to allow generic builds will come later.

(skrll)

2018-08-17 14:39:51 UTC MAIN commitmail json YAML

Remove big outdated comment, remove unused macros, remove XXX that has
nothing to do here, style.

(maxv)

2018-08-17 14:21:30 UTC MAIN commitmail json YAML

2018-08-17 12:36:53 UTC MAIN commitmail json YAML

Add a deprecation note in each of the PF man pages (instead of just pf.4),
so that it's really clear.

(maxv)

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

Add the values of "algo" in the grammar, and use # as comment marker for
man-k.org (and others) not to highlight things in an incorrect way.

(maxv)

2018-08-17 12:04:20 UTC MAIN commitmail json YAML

Add missing quote in static-rule, it causes man-k.org (and other tools)
to wrongly highlight the grammar.

(maxv)

2018-08-17 10:24:19 UTC MAIN commitmail json YAML

Replace "rproc"->"proc" in the grammar (spotted by he@), and slightly
reword.

(maxv)

2018-08-17 10:16:24 UTC MAIN commitmail json YAML

Replace () by [] in tcp-flags.

Fix proc-opts, the value is optional, noted by he@.

(maxv)

2018-08-17 04:59:34 UTC MAIN commitmail json YAML

Deal with gnu-efi upgrade - "efilib.h" now provides a prototype
for VPrint() so it is no longer needed here, particularly not a
slightly different prototype.  Fixes the amd64 i386 & ia64 builds.

(kre)

2018-08-16 18:28:10 UTC MAIN commitmail json YAML

gnu-efi: Import version 3.0.8.

(jmcneill)

2018-08-16 18:26:59 UTC MAIN commitmail json YAML

gnu-efi 3.0.8 has been imported

(jmcneill)

2018-08-16 18:25:45 UTC MAIN commitmail json YAML

No need for private versions of memset/memcpy on NetBSD

(jmcneill)

2018-08-16 18:24:36 UTC MAIN commitmail json YAML

2018-08-16 18:22:05 UTC MAIN commitmail json YAML

2018-08-16 16:34:33 UTC MAIN commitmail json YAML

libisccfg uses libdns...

(christos)

2018-08-16 15:02:05 UTC MAIN commitmail json YAML

NFC - a build structure code layout change only.

This generates nodenames.h which is a file that used to begin
#ifdef DEBUG
(line 1) and end with
#endif
(last line) with no intervening (matching) #else ... ie: for DEBUG use only.

That led to situations where non-debug code would like to make use
of the info provided, if DEBUG was enabled, needed to add #ifdef DEBUG
at the point of use.

Avoid that by providing new macros that are always defined (DEBUG or not,
so now we have a #else) which allow code to be written to make use of
the extra DEBUG info, if it is available, or not, if not.

While here, add double-include protection on the generated .h file
(just being cautious - nothing is ever going to cause it to get
included anywhere twice - or it shouldn't) and add the traditional
comments on the #else and #endif stuff (which is also really useless
as no-one is really expected to ever read the generated file).  Never mind.

Nothing yet (elsewhere in the sh source) uses the new macros, so there's
even less chance of this changing anything than there would otherwise be.

(kre)

2018-08-16 14:14:52 UTC MAIN commitmail json YAML

2018-08-16 13:31:04 UTC MAIN commitmail json YAML

Try freebsd's pkg-info as well

From John Hein, via Nikolai Lifanov. PR misc/52684

(maya)

2018-08-16 12:03:36 UTC MAIN commitmail json YAML

2018-08-16 12:03:10 UTC MAIN commitmail json YAML

2018-08-16 11:34:41 UTC MAIN commitmail json YAML

From FreeBSD:

When using WPA2, EAPOL-Key frames with the Encrypted flag and without the MIC
flag set, the data field was decrypted first without verifying the MIC.  When
the dta field was encrypted using RC4, for example, when negotiating TKIP as
a pairwise cipher, the unauthenticated but decrypted data was subsequently
processed.  This opened wpa_supplicant(8) to abuse by decryption and recovery
of sensitive information contained in EAPOL-Key messages.

See https://w1.fi/security/2018-1/unauthenticated-eapol-key-decryption.txt
for a detailed description of the bug.

XXX: pullup-8

(christos)

2018-08-16 11:04:10 UTC MAIN commitmail json YAML

Remove extra slash in path
Update MesaDemos path
More version info for components in our tree

(sevan)

2018-08-16 09:58:00 UTC MAIN commitmail json YAML

2018-08-16 09:50:37 UTC MAIN commitmail json YAML

Improve the "Map" section a little.

(maxv)

2018-08-16 09:46:18 UTC MAIN commitmail json YAML

Document the "flags" keyword.

(maxv)

2018-08-16 09:21:00 UTC MAIN commitmail json YAML

Improve the "Rules" section: better explain the "final" keyword (it is
the same as PF's "quick", so use the same wording), and document the
"return" options.

While here simplify the man code, suggested by wiz.

(maxv)

2018-08-16 08:51:53 UTC MAIN commitmail json YAML

Add quotes around the option names, to match the actual npf conf.

(maxv)

2018-08-16 08:37:51 UTC MAIN commitmail json YAML

Enlighten the "Procedures" section. In particular document the "no-df"
option. Also replace "normalisation" -> "normalization", to match the
name of the rule.

(maxv)

2018-08-16 06:24:40 UTC MAIN commitmail json YAML

mandoc_xr.c is now in libmandoc (where it should be) it no longer
needs to be here (why having it broke building I did not look to see,
it should be possible to replace a file from a library).

(kre)

2018-08-16 05:07:22 UTC MAIN commitmail json YAML

In the latest mandoc (mdocml) the signature (prototype) of
mparse_alloc() altered - update the call here to compensate.

This fixes the build (of makemandb), but I am not sure that
the changed version is what is desired - someone who knows
something about all of this should validate ... I just copied
the invocation from mandoc's demandoc.c (which seems likely
to be at least a similar kind of usage).

(kre)

2018-08-16 05:03:17 UTC MAIN commitmail json YAML

mandoc needs mandoc_xr.c and (because we do not have it in libc, which
should remain the state forever IMO) compat_recallocarray.c

And now that compat_recallocarray() is in libmandoc we no longer
need to manually add its source to mandoc (either the full, or the
tools builds).

(kre)

2018-08-16 03:59:52 UTC MAIN commitmail json YAML

man_term.c needs -Wno-error=array-bounds for the exact same reason
as libmandoc/mandoc-validate.c

And as we do not have recallocarray() in libc, we need the compat
source file for the full build, as well as for tools builds.

(kre)

2018-08-16 01:08:18 UTC MAIN commitmail json YAML

mandoc-validate.c cannot deal with -Werror=array-bounds so disable it.
The code could probably be redone to not need this, but this is the
simple fix (and requires no upstream co-ordination)

(kre)

2018-08-15 22:07:32 UTC MAIN commitmail json YAML

Add recallocarray prototype.

(nakayama)

2018-08-15 17:07:03 UTC phil-wifi commitmail json YAML

2018-08-15 15:52:10 UTC MAIN commitmail json YAML

Update version info for our versions of bozohttpd & bsd-family-tree.

(sevan)

2018-08-15 15:49:15 UTC MAIN commitmail json YAML

2018-08-15 15:46:41 UTC MAIN commitmail json YAML

2018-08-15 15:18:34 UTC MAIN commitmail json YAML

2018-08-15 15:15:31 UTC MAIN commitmail json YAML

mark XXXSMP also wakeup() calls

(jdolecek)

2018-08-15 15:11:18 UTC MAIN commitmail json YAML

2018-08-15 14:31:22 UTC MAIN commitmail json YAML

Expose re{c,}allocarray decls in current.

(christos)

2018-08-15 13:54:54 UTC MAIN commitmail json YAML

More version updates
Switch sljit from svn rev to current release
Add urls for smbfs, timeout, libproc, librtld_db, netcat

(sevan)

2018-08-15 12:16:31 UTC netbsd-8 commitmail json YAML

2018-08-15 12:09:58 UTC netbsd-8 commitmail json YAML

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

sys/netinet6/nd6_rtr.c: revision 1.144

Don't call find_pfxlist_reachable_router, which may sleep, in a
pserialize read section

Found by knakahara@

(martin)

2018-08-15 12:07:30 UTC netbsd-8 commitmail json YAML

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

sys/net/if_tun.c: revision 1.145
sys/net/if_tun.c: revision 1.146

tun: fix locking against myself

filt_tunread is called with tun_lock held from tun_output (via tun_output =>
selnotify => knote), so we must not take tun_lock in filt_tunread.  The bug
is triggered only if a tun is used through kqueue.

Found by k-goda@IIJ

Fix tun(4) kevent locking

filt_tunread gets called in two contexts:
- by calls to selnotify in if_tun.c (or knote, as the case may be,
  but not here), in which case tp->tun_lock is held; and
- by internal logic in kevent, in which tp->tun_lock is not held.

The standard convention to discriminate between these two cases is by
setting the kernel-only NOTE_SUBMIT bit in the hint to selnotify or
knote; then in filt_*:

        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_enter(&tp->tun_lock);
        ...
        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_exit(&tp->tun_lock);

Pointed out by and patch from riastradh@
Tested by ozaki-r@ (only the former path)

(martin)

2018-08-15 12:04:02 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by dolecek in ticket #973):

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

disestablish interrupt handler regardless of the state whenever it was
setup, i.e. also when the instance is DISCONNECTING already
fixes PR port-xen/53487 by Bert Kiers; fix found and reported by
Dennis Lindroos

XXX pullup netbsd-8

(martin)

2018-08-15 11:12:38 UTC MAIN commitmail json YAML

2018-08-15 11:10:45 UTC MAIN commitmail json YAML

2018-08-15 11:08:18 UTC MAIN commitmail json YAML

fix relocation type. 277 is R_AARCH64_ADD_ABS_LO12_NC

(ryo)

2018-08-15 10:49:47 UTC MAIN commitmail json YAML

2018-08-15 10:21:42 UTC MAIN commitmail json YAML

2018-08-15 08:19:18 UTC MAIN commitmail json YAML

add missing compat_recallocarray.c to the HOSTPROG part.

(mrg)

2018-08-15 07:51:44 UTC MAIN commitmail json YAML

On train to Cambridge for BSDCam
More upstream version updates.
code.google.com urls for Kyua are dead and now redirects to github repo.

(sevan)

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

Remove useless header arm/broadcom/bcm2835reg.h

From Aymeric Vincent on port-arm

(skrll)

2018-08-15 06:59:29 UTC MAIN commitmail json YAML

2018-08-15 06:13:56 UTC MAIN commitmail json YAML

Some CPU specific ACTLR bit definitions

(skrll)

2018-08-15 06:06:05 UTC MAIN commitmail json YAML

2018-08-15 06:04:01 UTC MAIN commitmail json YAML

Fix includes (sys/cdefs.h then sys/param.h)

(skrll)

2018-08-15 06:00:02 UTC MAIN commitmail json YAML

2018-08-15 05:58:36 UTC MAIN commitmail json YAML

2018-08-15 05:57:01 UTC MAIN commitmail json YAML

sort #include "opt_..." entries

(skrll)

2018-08-15 05:52:15 UTC MAIN commitmail json YAML

2018-08-14 20:53:07 UTC MAIN commitmail json YAML

Resolve every route(4) message type before printing anything more about it
other than the type and length.

This solves the issue where RTM_ONEWADDR is received and it tries to
parse route information from it.

(roy)

2018-08-14 14:56:34 UTC MAIN commitmail json YAML

Note removal of etherip, add entry about ASLR in amd64, and improve the
ipkdb entry.

(maxv)

2018-08-14 14:53:21 UTC MAIN commitmail json YAML

Initialize n before mtrr_set in arch_phys_wc_del.

From mrg@.

XXX pullup-7
XXX pullup-8

(riastradh)

2018-08-14 14:53:11 UTC MAIN commitmail json YAML

Exit, don't reenter, the mutex...!@#*@$!&.

From mrg@.

XXX pullup-7
XXX pullup-8

(riastradh)

2018-08-14 14:49:14 UTC MAIN commitmail json YAML

2018-08-14 14:48:01 UTC MAIN commitmail json YAML

Fix gcc build when MKCOMPAT=no.

(rjs)

2018-08-14 14:37:05 UTC netbsd-7-0 commitmail json YAML

2018-08-14 14:36:37 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1630):

sys/netinet6/frag6.c: revision 1.64

Kick zero-sized fragments. We can't allow them to enter; two fragments
could be put at the same offset.

(martin)

2018-08-14 14:36:09 UTC netbsd-7-1 commitmail json YAML

2018-08-14 14:35:44 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1630):

sys/netinet6/frag6.c: revision 1.64

Kick zero-sized fragments. We can't allow them to enter; two fragments
could be put at the same offset.

(martin)

2018-08-14 14:35:23 UTC netbsd-7 commitmail json YAML

2018-08-14 14:34:42 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1630):

sys/netinet6/frag6.c: revision 1.64

Kick zero-sized fragments. We can't allow them to enter; two fragments
could be put at the same offset.

(martin)

2018-08-14 14:29:04 UTC netbsd-7 commitmail json YAML

2018-08-14 13:36:42 UTC MAIN commitmail json YAML

PR bin/42184 PR bin/52687  (detailing the same bug).

Fix "command not found" handling so that the error message
goes to stderr (after any redirections are applied).

More importantly, in

foo > /tmp/junk

/tmp/junk should be created, before any attempt is made
to execute (the assumed non-existing) "foo".

All this was always true for any command (not found command)
containing a / in its name

foo/bar >/tmp/junk  2>>/tmp/errs

would have created /tmp/junk, then complained (in /tmp/errs)
about foo/bar not being found.  Now that happens for ordinary
commands as well.

The fix (which I found when I saw differences between our
code and FreeBSD's, where, for the benefit of PR 42184,
this has been fixed, sometime in the past 9 years) is
frighteningly simple.  Simply do not short circuit execution
(or print any error) when the initial lookup fails to
find the command - it will fail anyway when we actually
try running it.  The cost is a (seemingly unnecessary,
except that it really is) fork in this case.

This is what I had been planning, but I expected it would
be much more difficult than it turned out....

XXX pullup-8

(kre)

2018-08-14 13:21:52 UTC MAIN commitmail json YAML

remove stray "fi" to unbreak build

(gson)

2018-08-14 11:52:56 UTC MAIN commitmail json YAML

2018-08-14 11:52:41 UTC MAIN commitmail json YAML

2018-08-14 11:39:10 UTC MAIN commitmail json YAML

make things compile.

(christos)

2018-08-14 08:54:11 UTC MAIN commitmail json YAML

2018-08-14 08:53:07 UTC MAIN commitmail json YAML

2018-08-14 06:37:59 UTC MAIN commitmail json YAML

2018-08-14 06:27:44 UTC MAIN commitmail json YAML

Sort SEE ALSO.

(wiz)

2018-08-14 06:26:52 UTC MAIN commitmail json YAML

Remove superfluous Pps.

(wiz)

2018-08-14 06:21:36 UTC MAIN commitmail json YAML

Replace etherip by l2tp in the "see also" sections.

(maxv)

2018-08-14 06:18:46 UTC MAIN commitmail json YAML

Enlighten a little.

(maxv)

2018-08-14 06:04:24 UTC MAIN commitmail json YAML

2018-08-14 05:51:55 UTC MAIN commitmail json YAML

no need machine local ddb command pmaphist any more.

(ryo)

2018-08-14 01:10:58 UTC MAIN commitmail json YAML

Don't call find_pfxlist_reachable_router, which may sleep, in a pserialize read section

Found by knakahara@

(ozaki-r)

2018-08-14 01:10:47 UTC MAIN commitmail json YAML

Remove Paul Vixie as maintainer, replace with ISC as they are the upstream.

(roy)

2018-08-14 01:09:53 UTC MAIN commitmail json YAML

Check pserialize_not_in_read_section for adaptive mutexes and rwlocks

The overhead of the checks is not negligible so they're turned on only if both
DEBUG and LOCKDEBUG are enabled.

(ozaki-r)

2018-08-14 01:06:01 UTC MAIN commitmail json YAML

Change the place to check if a context switch doesn't happen within a pserialize read section

The previous place (pserialize_switchpoint) was not a good place because at that
point a suspect thread is already switched so that a backtrace gotten on
a KASSERT failure doesn't point out where a context switch happens.

(ozaki-r)

2018-08-13 22:59:52 UTC MAIN commitmail json YAML

Add a new ATF ptrace(2) test: tracer_attach_to_unrelated_stopped_process

Reuse the body of tracer_sees_terminaton_before_the_parent_raw for a test
attaching to an unrelated stopped process.

This test passes.

(kamil)

2018-08-13 22:22:59 UTC MAIN commitmail json YAML

It's Flattened Device Tree.

Thanks @sevan for the heads up.

(alnsn)

2018-08-13 22:13:02 UTC MAIN commitmail json YAML

NFC:  DEBUG (compile time) mode only change:
Add some extra redirection (fd manipulation) tracing.
While here, some white space fixes, and very minor KNF.

(kre)

2018-08-13 22:00:45 UTC MAIN commitmail json YAML

Add a new ATF test parent_attach_to_its_stopped_child

Reuse the body of parent_attach_to_its_child for a test attaching to a
stopped child.

This test passes.

(kamil)

2018-08-13 21:49:37 UTC MAIN commitmail json YAML

Add await_stopped() in t_ptrace_wait.h

This is used in tests where a process awaits for a stopped process.

(kamil)

2018-08-13 21:36:55 UTC MAIN commitmail json YAML

Add a new ATF ptrace(2) test: child_attach_to_its_stopped_parent

Reuse the body of child_attach_to_its_parent for a test attaching to a
stopped parent.

As a workaround to ATF framework (atf-run), run this test in a subprocess.
The raise(SIGSTOP) call breaks the pipe from atf-run, that is polling
whether a process is in order.
According to code inspection the poll(2) call in safe_poll() receives
EINTR and this tears down the test.

This test passes.

(kamil)

2018-08-13 20:33:35 UTC MAIN commitmail json YAML

Add FDT (flat device tree).

(alnsn)

2018-08-13 18:48:53 UTC MAIN commitmail json YAML

use dev/usb/usbdevices.config instead of a local list.
adds slurm(4), umcs(4), uark(4), and usmsc(4).

(mrg)

2018-08-13 17:37:52 UTC MAIN commitmail json YAML

use dev/usb/usbdevices.config, gaining these missing drivers:
slurm(4), uthum(4), umcs(4), uark(4), upgt(4), and usmsc(4).

(mrg)

2018-08-13 17:35:31 UTC MAIN commitmail json YAML

- add commented entries that exist in amd64 GENERIC: oboe, mos, umb.
  (XXX: mos might be deleteable now?).
- comment uscanner(4) -- usb scanners use ugen(4) interface.
- minor sort.

(mrg)

2018-08-13 16:15:44 UTC netbsd-7 commitmail json YAML

2018-08-13 16:12:12 UTC netbsd-7 commitmail json YAML

Catch up to current for the following, requested by sborrill in ticket #1629:

sbin/gpt/gpt_private.h                          up to 1.2
sbin/gpt/header.c                              up to 1.9
sbin/gpt/main.c                                up to 1.11
sbin/gpt/drvctl.c delete
sbin/gpt/Makefile up to 1.18
sbin/gpt/add.c up to 1.44
sbin/gpt/backup.c up to 1.18
sbin/gpt/biosboot.c up to 1.30
sbin/gpt/create.c up to 1.23
sbin/gpt/destroy.c up to 1.10
sbin/gpt/gpt.8 up to 1.63
sbin/gpt/gpt.c up to 1.75
sbin/gpt/gpt.h up to 1.38
sbin/gpt/gpt_uuid.c up to 1.15
sbin/gpt/gpt_uuid.h up to 1.7
sbin/gpt/label.c up to 1.29
sbin/gpt/map.c up to 1.14
sbin/gpt/map.h up to 1.6
sbin/gpt/migrate.c up to 1.33
sbin/gpt/recover.c up to 1.18
sbin/gpt/remove.c up to 1.22
sbin/gpt/resize.c up to 1.23
sbin/gpt/resizedisk.c up to 1.17
sbin/gpt/restore.c up to 1.18
sbin/gpt/set.c up to 1.14
sbin/gpt/show.c up to 1.41
sbin/gpt/type.c up to 1.15
sbin/gpt/unset.c up to 1.14

Many changes including:
- Significant refactoring
- PR/51230: Add the ability to set the active flag in the PMBR
- Let individual commands decide if ioctl(DIOCMWEDGES) should be done
- Add a "header" subcommand that displays information about the size of
  the disk along with information from the GPT header if it exists
- Add listing commands for type, set and unset
- Add help and formatting for set and unset
- Change show to print all the attribute info in one line.
- Improve documentation, including booting and exit status
- Check device parameter to avoid segfaults

(martin)

2018-08-13 15:48:21 UTC MAIN commitmail json YAML

Clarify, remove dead code, and add XXXSMP; really this static variable
looks like a great bug.

(maxv)

2018-08-13 13:07:04 UTC MAIN commitmail json YAML

remove random seed debugging

(christos)

2018-08-13 12:28:02 UTC MAIN commitmail json YAML

Need to use fdtbus_get_reg64 for mpidr

(skrll)

2018-08-13 12:12:30 UTC MAIN commitmail json YAML

Update current vers of some components.
Add a url for ath-hal to the FreeBSD svn repo and update rev
Update bsd-family-tree url to link directly to svnweb
Still to complete the list and repass with versions in our tree.

(sevan)

2018-08-13 12:06:17 UTC netbsd-8 commitmail json YAML

2018-08-13 12:05:25 UTC netbsd-8 commitmail json YAML

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

external/bsd/bind/dist/lib/isc/unix/socket.c: revision 1.23

make ENOBUFS a soft error (from roy@)

(martin)

2018-08-13 12:03:41 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #971):

sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: revision 1.15

Fixup previous to not break ping protocol.  My bad.

(martin)

2018-08-13 11:00:55 UTC MAIN commitmail json YAML

New version of mandoc came out last week.

(sevan)

2018-08-13 09:55:20 UTC MAIN commitmail json YAML

add another exit 254 to avoid blacklistd notification

(christos)

2018-08-13 09:54:19 UTC MAIN commitmail json YAML

2018-08-13 09:53:51 UTC MAIN commitmail json YAML

2018-08-13 09:29:13 UTC MAIN commitmail json YAML

Clarify two functions.

(maxv)

2018-08-13 09:25:23 UTC MAIN commitmail json YAML

include the boot32 and nbfs boot programs for eabi, as acorn32
with eabi still wants them.

not tested.  someone, please test.  this fixes the acorn32 build
since it was switched to eabi.

(mrg)

2018-08-13 09:16:06 UTC MAIN commitmail json YAML

handle v6 addresses

(christos)

2018-08-13 08:48:46 UTC MAIN commitmail json YAML

2018-08-13 08:46:53 UTC MAIN commitmail json YAML

make ENOBUFS a soft error (from roy@)

(christos)

2018-08-13 08:38:22 UTC MAIN commitmail json YAML

2018-08-13 08:26:49 UTC MAIN commitmail json YAML

- although I like the ",obsolete" better, the convention is to obliterate
  the info
- fix lint

(christos)

2018-08-13 07:17:34 UTC MAIN commitmail json YAML

avoid using x86 specific asm on all platforms.

XXX: this might want to be expanded or something more portable used.

(mrg)

2018-08-13 07:14:47 UTC MAIN commitmail json YAML

fix the libns and liblwres entries for new bind.

(mrg)

2018-08-13 06:08:48 UTC MAIN commitmail json YAML

2018-08-13 06:06:13 UTC MAIN commitmail json YAML

Add missing El. Remove trailing whitespace.

(wiz)

2018-08-13 06:04:35 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2018-08-13 06:00:21 UTC MAIN commitmail json YAML

2018-08-13 05:41:54 UTC MAIN commitmail json YAML

Add a missing word.

(wiz)

2018-08-13 03:20:19 UTC MAIN commitmail json YAML

extend the ddb "show kernhist" command.  the synopsis is now:

    show kernhist[/i] [addr[,count]]

the i modifier means display info instead of entries, and the count
restricts to the last count entries.

the count option is only supported for specified histories.  it
could be extended but requires more logic than the single history,
as multiple histories are merged during display.

(mrg)

2018-08-12 22:05:29 UTC MAIN commitmail json YAML

add a lockdebug_dismiss() function for DDB to use that tells
lockdebug to avoid asserts.  use it for the ddb "reboot"
command, so that it doesn't matter how ddb was entered, the
reboot not trigger mutex checks and not work.

(mrg)