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

2024-05-10 19:58:41 UTC Now

2020-08-29 15:25:57 UTC MAIN commitmail json YAML

stdio(3): fix typos in the manual page

fputc cannot read characters, it can only write them.

(rillig)

2020-08-29 15:16:12 UTC MAIN commitmail json YAML

Make sure init_prom_interface() only runs once, otherwise we initialize
a mutex twice, and that upsets LOCKDEBUG.  But instead of seeing a
proper message about it, the output happens before the PROM console
interfcace is initialized, we would end up with a translation fault
back into SRM.

(thorpej)

2020-08-29 15:06:33 UTC MAIN commitmail json YAML

make(1): add test for the special .IGNORE dependency source

(rillig)

2020-08-29 15:05:33 UTC MAIN commitmail json YAML

PR/55599: Valery Ushakov: libpcap gets SIGBUS on strictly aligned CPUs
Define LBL_ALIGN as suggested

(christos)

2020-08-29 14:47:26 UTC MAIN commitmail json YAML

make(1): fix assertion failure for .SUFFIXES in archives

This occurred in the posix1.mk test, even though it is disabled in
unit-tests.  But in tests/usr.bin/make it still runs.  There, it should
have produced an "expected failure" but crashed instead.

The archive-suffix test is the stripped-down version of the posix1 test.

(rillig)

2020-08-29 13:38:48 UTC MAIN commitmail json YAML

make(1): trust that Var_Parse never returns NULL

That function is quite long, but all its return paths lead either to the
expanded variable expression, or to var_Error or varNoError.

(rillig)

2020-08-29 13:32:27 UTC MAIN commitmail json YAML

2020-08-29 13:16:55 UTC MAIN commitmail json YAML

make(1): trust that Var_Subst never returns NULL

It really never does, and it doesn't even report errors.  It just
returns the content of the buffer, up to the first parse error.

(rillig)

2020-08-29 13:04:30 UTC MAIN commitmail json YAML

make(1): make getBoolean simpler

This function is so seldom used that there is no point having
complicated code for it.

(rillig)

2020-08-29 12:48:17 UTC MAIN commitmail json YAML

make(1): add comments for ModifyWord_Subst

Without any comments, the code is unnecessarily hard to follow.

(rillig)

2020-08-29 12:39:32 UTC MAIN commitmail json YAML

make(1): clean up comments in dir.c

(rillig)

2020-08-29 12:36:20 UTC MAIN commitmail json YAML

make(1): clean up documentation for CompatInterrupt and Compat_Run

(rillig)

2020-08-29 12:27:10 UTC MAIN commitmail json YAML

make(1): split ApplyModifier_To into paragraphs

(rillig)

2020-08-29 12:20:17 UTC MAIN commitmail json YAML

make(1): remove ReturnStatus, SUCCESS and FAILURE

These are used in so few places now that it is easier to use a simple
Boolean for them.

(rillig)

2020-08-29 12:01:47 UTC MAIN commitmail json YAML

make(1): clean up comments in suff.c, small refactorings

In SuffParseTransform, the parameter names have been renamed to make the
"side effects" comment redundant.

In Suff_AddSuffix and Suff_AddLib, the parameter has been made const.

In SuffRemoveSrc, the unused variable has been removed, and the return
type has been fixed.

(rillig)

2020-08-29 11:24:54 UTC MAIN commitmail json YAML

2020-08-29 11:13:43 UTC MAIN commitmail json YAML

2020-08-29 10:52:47 UTC MAIN commitmail json YAML

make(1): fix test opt-debug-g1

Including the directory cache made the test output fragile.

(rillig)

2020-08-29 10:41:13 UTC MAIN commitmail json YAML

2020-08-29 10:35:03 UTC MAIN commitmail json YAML

make(1): clean up indentation, comments and variable scope in job.c

(rillig)

2020-08-29 10:32:00 UTC MAIN commitmail json YAML

make(1): remove duplicate code for allocation a substring

(rillig)

2020-08-29 10:12:06 UTC MAIN commitmail json YAML

make(1): rename Lst_FindB back to Lst_Find

The migration from "comparison function" to "match function" is done,
the "B" in the names is no longer needed.

(rillig)

2020-08-29 10:06:23 UTC MAIN commitmail json YAML

make(1): migrate remaining Lst_Find to Lst_FindB

While here, rename SuffSuffIsSuffix to SuffSuffGetSuffix since a
function named "is" should return a boolean, not a string pointer.

(rillig)

2020-08-29 09:30:10 UTC MAIN commitmail json YAML

make(1): start replacing Lst_Find with Lst_FindB

Lst_Find is called with a "comparison" function that returns the integer
0 if the desired node is found.  This leads to confusion since there are
so many different return value conventions for int, such as 0/1 for
mimicking false/true, -1/0 as in close(2), and the sign as in strcmp(3).
This API is much easier to understand if the "comparison" function is
not called a comparison function (since that is too close to strcmp),
but a "match" function that just returns a boolean.

In Lst_FindFromB, the node argument may be null.  This deviates from the
other Lst functions, which require Lst and LstNode to generally be
non-null.  In this case it is useful though to make the calling code
simpler.

In arch.c, this makes a lot of the previous documentation redundant.

In cond.c, the documentation is reduced a little bit since it had
already been cleaned up before.  It also removes the strange negation
from CondFindStrMatch.

In dir.c, the documentation collapses as well.

In main.c, separating the ReadMakefile function from the callbacks for
Lst_FindB allows the former to get back its natural function signature,
with proper types and no unused parameters.

To catch any accidental mistakes during the migration from Lst_Find to
Lst_FindB, the code can be compiled with -DUSE_DOUBLE_BOOLEAN, which
will complain about incompatible function pointer types.

(rillig)

2020-08-29 08:59:08 UTC MAIN commitmail json YAML

make(1): fix null pointer dereference when sys.mk is not found

This is quite hard to trigger in a real-life scenario since it requires
precise timing.

Instead, I created /tmp/sys.mk and ran "./make -m /tmp -f /dev/null" in
the debugger, after setting a breakpoint in this line:

ln = Lst_Find(sysMkPath, ReadMakefile, NULL);

Once this line was reached, I removed /tmp/sys.mk to make ReadMakefile
fail.  Just adding a few parse errors won't help since ReadMakefile only
fails if the file cannot be found.

(rillig)

2020-08-29 08:09:07 UTC MAIN commitmail json YAML

make(1): add another Boolean variant to check during development

(rillig)

2020-08-29 07:52:56 UTC MAIN commitmail json YAML

make(1): allow for strict type checking for Boolean

Having Boolean aliased to int creates ambiguities since int is widely
used.  Allow to occasionally compile make with -DUSE_DOUBLE_BOOLEAN to
check that the type definitions still agree.

(rillig)

2020-08-29 07:22:49 UTC MAIN commitmail json YAML

Update the if_wg tests for the human readable 'latest-handshake'
output of wgconfig.

(tih)

2020-08-29 07:17:23 UTC MAIN commitmail json YAML

2020-08-29 07:16:04 UTC MAIN commitmail json YAML

'doreti_checkast' isn't global anymore, localify.

(maxv)

2020-08-29 07:14:50 UTC MAIN commitmail json YAML

Correct my rev1.159, it was incomplete, the check must be done later
because the value can change in the meantime (and get set to zero).

(maxv)

2020-08-29 07:14:17 UTC MAIN commitmail json YAML

nvmm: explicitly include atomic.h

(maxv)

2020-08-29 07:13:17 UTC MAIN commitmail json YAML

make(1): clean up code in make.c

Var_Subst never returns NULL.

In Main_ExportMAKEFLAGS, don't compare ints with booleans.

In MainParseArgs, use char for the current character.  First, that's
more precise and correct, and second, it makes debugging easier for
those who don't know the ASCII table by heart.

(rillig)

2020-08-29 07:05:12 UTC MAIN commitmail json YAML

make(1): rename confusing function ReadAllMakefiles

The old name implied that the function would read multiple files, which
was not the case.

The comment above that function was highly confusing.  It's not that the
function returns a boolean, but rather 0 or non-zero, and 0 means that
Lst_Find should stop searching.

One of the next refactorings will be to make Lst_Find return the first
list node for which the function returns TRUE.  This will reduce the
confusion about the several functions called SomethingP in suff.c.  The
P suffix means to return TRUE or FALSE, not 0 or non-zero.

(rillig)

2020-08-29 06:49:53 UTC MAIN commitmail json YAML

Cover the full kernel address range in KASAN

(skrll)

2020-08-29 05:58:03 UTC MAIN commitmail json YAML

2020-08-29 05:46:34 UTC MAIN commitmail json YAML

Skip threxec test pointing at PR 55338, this kills some test beds.

(martin)

2020-08-29 03:24:31 UTC MAIN commitmail json YAML

Fix white space and indent.

(isaki)

2020-08-28 22:27:51 UTC MAIN commitmail json YAML

Fix pasto in previous -- pass the right size to memset...

(riastradh)

2020-08-28 22:02:24 UTC MAIN commitmail json YAML

Allow vdprintf to work on non-blocking non-regular files (Rob Newberry)

(christos)

2020-08-28 21:39:56 UTC MAIN commitmail json YAML

Nix trailing whitespace.

(riastradh)

2020-08-28 21:39:28 UTC MAIN commitmail json YAML

Zero out more lock snapshots in sysctl exposure.

(riastradh)

2020-08-28 20:57:54 UTC MAIN commitmail json YAML

make(1): remove redundant MAKEFLAGS from subdir make

The make flags are passed via the environment, not via the command line.
This is not as obvious and visible, but it works.

(rillig)

2020-08-28 20:23:20 UTC MAIN commitmail json YAML

make(1): remove unused variable not_parallel

The variable malloc_options seems unused as well, but the manual page
for jemalloc(3) mentions it.

(rillig)

2020-08-28 20:16:19 UTC MAIN commitmail json YAML

make(1): remove redundant comments from hash.c

(rillig)

2020-08-28 19:52:14 UTC MAIN commitmail json YAML

make(1): inline LstIsValid and LstNodeIsValid

A simple null pointer comparison is easier to understand than the fuzzy
word "valid".

(rillig)

2020-08-28 19:46:04 UTC MAIN commitmail json YAML

make(1): fix build errors for USER_CPPFLAGS=-DNDEBUG

The functions LstIsValid and LstNodeIsValid are only used in assertions.

Without the always-false assertion, Enum_ValueToString could have
returned undefined behavior.

(rillig)

2020-08-28 19:45:21 UTC netbsd-8 commitmail json YAML

2020-08-28 19:44:22 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1599):

sys/dev/usb/if_atu.c: revision 1.73
sys/dev/usb/if_axe.c: apply patch
sys/dev/usb/if_axen.c: apply patch

atu(4): Reject packets larger than MCLBYTES.

(martin)

2020-08-28 19:37:37 UTC netbsd-9 commitmail json YAML

2020-08-28 19:36:34 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1067):

sys/dev/usb/usbnet.c: revision 1.39
sys/dev/usb/if_atu.c: revision 1.73

usbnet: Reject buflen>MCLBYTES in usbnet_newbuf.
atu(4): Reject packets larger than MCLBYTES.

(martin)

2020-08-28 19:35:07 UTC MAIN commitmail json YAML

Also skip the stress_short test - it just needs way too long to timeout
and fail.

(martin)

2020-08-28 19:29:58 UTC MAIN commitmail json YAML

lockme_DOUBLEINIT:
The failure message differs slightly when using LOCKDEBUG, modify the
expected pattern to cover both variants.

(martin)

2020-08-28 19:21:00 UTC MAIN commitmail json YAML

make(1): rename SuffixCmpData to SuffSuffIsSuffixArgs

The new name makes the comment above that struct redundant.

(rillig)

2020-08-28 19:14:17 UTC MAIN commitmail json YAML

Skip a few tests with reference to already existing PRs as after "recent"
scheduler changes these tests now leave rump_server processes around that
eat CPU and disturb later tests.

(martin)

2020-08-28 19:14:07 UTC MAIN commitmail json YAML

make(1): clean up targ.c

The main part is removing redundant or outdated information from
comments.  In a few places, the expression cond ? TRUE : FALSE has been
simplified.

(rillig)

2020-08-28 19:02:19 UTC MAIN commitmail json YAML

atu(4): Reject packets larger than MCLBYTES.

(riastradh)

2020-08-28 18:46:05 UTC MAIN commitmail json YAML

PR/55612: Martin Husemann: libarchive tests pollute /tmp w/o cleanup
Set $TMPDIR to where we are.

(christos)

2020-08-28 18:44:54 UTC MAIN commitmail json YAML

PR/55612: Martin Husemann: libarchive tests pollute /tmp w/o cleanup
Make tests obey $TMPDIR.

(christos)

2020-08-28 18:34:46 UTC MAIN commitmail json YAML

make(1): clean up arch.c

Remove redundant parts of the function comments.  Move the "side
effects" to the main section, since these effects are main effects, not
side effects.

Remove the redundant prototype for ArchFree.

(rillig)

2020-08-28 18:18:31 UTC netbsd-9 commitmail json YAML

2020-08-28 18:17:13 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1066):

external/cddl/osnet/sys/kern/policy.c: revision 1.9

Glue operation secpolicy_fs_mount() passes wrong arguments to
operation kauth_authorize_system().

KAUTH_SYSTEM_MOUNT / KAUTH_REQ_SYSTEM_MOUNT_NEW wants the to be
covered vnode and the mount flags, not the mount structure.

Fix for PR kern/55602: zpool panic on mounting zfs filesystem

(martin)

2020-08-28 18:16:22 UTC MAIN commitmail json YAML

make(1): fix test for interrupted command execution

In the first version of this test, I had completely misunderstood the
whole topic.

To test the interrupt, the make process has to be interrupted, not the
shell.  This generates the correct message that the target is removed.

The filename for .PHONY targets is removed even though .PHONY targets
usually don't correspond to a file.  The message is only printed if
there actually is a corresponding file.  That's why this message does
not appear when interrupting "make clean".

Finally, since files get created and removed during a single run of
make, the file cache needs to be disabled.  This is done by prefixing
the filenames with "././", see Dir_FindFile.

(rillig)

2020-08-28 17:27:21 UTC MAIN commitmail json YAML

make(1): clean up suffix handling

(rillig)

2020-08-28 17:21:03 UTC MAIN commitmail json YAML

2020-08-28 17:17:53 UTC MAIN commitmail json YAML

Show the time of the latest handshake properly formatted.

(tih)

2020-08-28 17:15:04 UTC MAIN commitmail json YAML

2020-08-28 17:13:14 UTC MAIN commitmail json YAML

Add RCS Id. Remove Pp before/after Sh. Remove port after section,
since the man page is in man8 directly (the ports are mentioned
in the text).

(wiz)

2020-08-28 17:10:15 UTC MAIN commitmail json YAML

PR/55605: Soumendra Ganguly: Wait for child to finish when stdin is not a tty

(christos)

2020-08-28 17:05:32 UTC MAIN commitmail json YAML

usbnet: Reject buflen>MCLBYTES in usbnet_newbuf.

(riastradh)

2020-08-28 17:01:48 UTC MAIN commitmail json YAML

Don't cache the sa, because we are dealing with multiple mbufs (from ozaki-r)

(christos)

2020-08-28 16:13:48 UTC MAIN commitmail json YAML

Glue operation secpolicy_fs_mount() passes wrong arguments to
operation kauth_authorize_system().

KAUTH_SYSTEM_MOUNT / KAUTH_REQ_SYSTEM_MOUNT_NEW wants the to be
covered vnode and the mount flags, not the mount structure.

Fix for PR kern/55602: zpool panic on mounting zfs filesystem

(hannken)

2020-08-28 16:07:49 UTC MAIN commitmail json YAML

2020-08-28 15:40:54 UTC MAIN commitmail json YAML

2020-08-28 15:35:34 UTC MAIN commitmail json YAML

2020-08-28 15:26:23 UTC MAIN commitmail json YAML

2020-08-28 15:25:17 UTC MAIN commitmail json YAML

Restrict npf.conf fixes to "blacklistd" -> "blocklistd"

(christos)

2020-08-28 14:58:25 UTC MAIN commitmail json YAML

Nix trailing whitespace.

(riastradh)

2020-08-28 14:48:38 UTC MAIN commitmail json YAML

2020-08-28 14:18:29 UTC MAIN commitmail json YAML

Nix trailing whitespace.

(riastradh)

2020-08-28 14:07:51 UTC MAIN commitmail json YAML

2020-08-28 13:56:30 UTC MAIN commitmail json YAML

When running the tests with atf-run the directory we are running in is
drwx------ so when we change to a different user, we can't find the socket
we created.

Make a directory and put the socket in there. Of course now atf can't
record its results as a different user, but that is not fatal.

tc-se:FATAL ERROR: Cannot create results file '/tmp/atf-run.9vOjFd/tcr': \
Permission denied

(christos)

2020-08-28 13:50:48 UTC MAIN commitmail json YAML

make(1): add test for operator precedence in conditions

(rillig)

2020-08-28 13:36:52 UTC MAIN commitmail json YAML

Some KASAN fixes and tweaks

- don't access BSS variables when __md_early
- centralise the INIT_ARM_STACK_{SHIFT,SIZE} defines and create a new
  INIT_ARM_TOTAL_STACK
- Only create L1PT entries in kasan_md_shadow_map_page if
  arm32_kernel_vm_init hasn't created the L2PTs (and their L1PT entries)
- Add some comments to explain what's going on

(skrll)

2020-08-28 13:15:05 UTC MAIN commitmail json YAML

2020-08-28 13:13:55 UTC MAIN commitmail json YAML

Fix build if NBCMDMAC is zero

(skrll)

2020-08-28 13:00:29 UTC MAIN commitmail json YAML

Change to the KVA stack address straight after the MMU is turned on

(skrll)

2020-08-28 12:59:36 UTC MAIN commitmail json YAML

make(1): extend test for the exists function in conditions

(rillig)

2020-08-28 12:56:19 UTC MAIN commitmail json YAML

2020-08-28 12:43:24 UTC MAIN commitmail json YAML

Fix uninitialized, caught by llvm. Tuck variables in blocks where they are
needed.

(christos)

2020-08-28 12:41:17 UTC MAIN commitmail json YAML

2020-08-28 12:31:44 UTC MAIN commitmail json YAML

2020-08-28 12:15:05 UTC MAIN commitmail json YAML

new compat_bsdos man page.

(christos)

2020-08-28 12:13:09 UTC MAIN commitmail json YAML

2020-08-28 11:46:05 UTC MAIN commitmail json YAML

Remove unneeded sete{u,g}id pointed out by kre.
Remove dup unlink.

(christos)

2020-08-28 11:15:08 UTC MAIN commitmail json YAML

arm_cpu_topology_set only takes two arguments

(skrll)

2020-08-28 10:20:15 UTC MAIN commitmail json YAML

We already zeroed the struct, no point in zeroing things twice.

(christos)

2020-08-28 07:29:12 UTC MAIN commitmail json YAML

Bump the version for entry additions to IP_STAT and IP6_STAT

Welcome to 9.99.72

(ozaki-r)

2020-08-28 07:29:00 UTC MAIN commitmail json YAML

Another typo -- its vfs_newvnode().

(hannken)

2020-08-28 07:23:48 UTC MAIN commitmail json YAML

netstat: strengthen against kernel changes

netstat uses sysctlbyname to get counter data from the kernel.
sysctlbyname fails with ENOMEM if actual counter data in the kernel is
larger than a passed buffer.  netstat just skips showing counters of a
category if sysctlbyname fails, so if we added new counters of the
category to the kernel, nestat shows nothing for the category.

Fortunately sysctlbyname fills data as much as possible even if a passed
buffer is short.  So we can allow netstat to show the filled data anyway
if sysctlbyname fails with ENOMEM.

Note that this backcompat mechanism works only if new counters are
appended, and doesn't work if new counters are inserted into the middle
or counters are moved.

(ozaki-r)

2020-08-28 07:03:41 UTC MAIN commitmail json YAML

thmap(9): Minor readability and style tweaks.

- Fix typo: hmap -> thmap

- Reduce excessive indentation.

- Specify largest entry width for flag name table.

- Include parameter names in function descriptions for easier
  reference.

(riastradh)

2020-08-28 07:03:08 UTC MAIN commitmail json YAML

wg: Sort includes.

(riastradh)

2020-08-28 07:01:57 UTC MAIN commitmail json YAML

2020-08-28 06:47:19 UTC MAIN commitmail json YAML

Just zero out struct file::f_lock when exposed to userland.

Userland has no business examining a snapshot of the lock state, even
if pseudonymized.  Should fix hppa build, where kmutex_t is somewhat
larger than anticipated by recent changes.

(riastradh)

2020-08-28 06:47:15 UTC MAIN commitmail json YAML

make(1): fix the other assertion from Lst_FindFrom

When I migrated the Lst_FindFrom to the strict API variant, I forgot
that Lst_FindFrom requires both arguments (list and node) to be
non-null.  I had only checked that the list is non-null.

There are only very few calls to Lst_FindFrom, and they are all ok now.

(rillig)

2020-08-28 06:44:03 UTC MAIN commitmail json YAML

Revert removal -- evidently the leading dash does mean something.

Specifically, it cancels out the same entry elsewhere in the set
list, and apparently it is only for twelve files in the entire tree.
Someone^TM should document this more clearly, and/or just get rid of
it because I'm at least the third person to be confused by this
according to the revision history.

(riastradh)

2020-08-28 06:37:21 UTC MAIN commitmail json YAML

make(1): fix assertion failure in suffix handling

Found by running ./build.sh, in the very early stage.
Fixed by restoring the previous behavior of returning NULL for invalid
arguments.

(rillig)

2020-08-28 06:35:51 UTC MAIN commitmail json YAML

npf: Remove harmless vestiges of debugging hacks.

(riastradh)

2020-08-28 06:34:17 UTC MAIN commitmail json YAML

2020-08-28 06:32:24 UTC MAIN commitmail json YAML

2020-08-28 06:31:42 UTC MAIN commitmail json YAML

2020-08-28 06:30:08 UTC MAIN commitmail json YAML

inet: pull m_get_rcvif_psref out of ip_input for simplicity

Same as ip6_input.

(ozaki-r)

2020-08-28 06:28:58 UTC MAIN commitmail json YAML

2020-08-28 06:27:49 UTC MAIN commitmail json YAML

ether: count dropped packets on output

(ozaki-r)

2020-08-28 06:27:16 UTC MAIN commitmail json YAML

ether: count dropped packets on input

(ozaki-r)

2020-08-28 06:25:52 UTC MAIN commitmail json YAML

ether: separate handling of LLC frames as ether_input_llc (NFCI)

(ozaki-r)

2020-08-28 06:23:42 UTC MAIN commitmail json YAML

net: introduce IFQ_ENQUEUE_ISR to assemble packet queuing routines (NFCI)

(ozaki-r)

2020-08-28 06:22:26 UTC MAIN commitmail json YAML

inet: reduce indents of a normal path to improve readability (NFCI)

(ozaki-r)

2020-08-28 06:20:44 UTC MAIN commitmail json YAML

ipsec: rename ipsec_ip_input to ipsec_ip_input_checkpolicy

Because it just checks if a packet passes security policies.

(ozaki-r)

2020-08-28 06:19:13 UTC MAIN commitmail json YAML

2020-08-28 04:59:18 UTC MAIN commitmail json YAML

make(1): clean up Dir_AddDir

Extract the null check for path to the top level.  This has the
side-effect of only incrementing dotLast.refCount if that entry is
actually used.

Reduce the indentation of the code by returning early from the simple
branches.

(rillig)

2020-08-28 04:48:57 UTC MAIN commitmail json YAML

make(1): remove trailing 'S' from names of Lst functions

The migration from null-passing Lst functions to argument-checking Lst
functions is completed.

There were 2 surprises: The targets list may be NULL, and in Dir_AddDir,
the path may be NULL.  The latter case is especially surprising since
that function turns into an almost-nop in that case.  This is another
case where probably 2 independent functions have been squeezed into a
single function.  This may be improved in a follow-up commit.

All other lists were fine.  They were always defined and thus didn't
need much work.

(rillig)

2020-08-28 04:28:45 UTC MAIN commitmail json YAML

2020-08-28 04:16:58 UTC MAIN commitmail json YAML

make(1): remove unused reference to Lst_Last

(rillig)

2020-08-28 04:14:31 UTC MAIN commitmail json YAML

2020-08-28 04:07:14 UTC MAIN commitmail json YAML

make(1): add test for the undocumented .NULL special dependency target

(rillig)

2020-08-28 04:05:35 UTC MAIN commitmail json YAML

make(1): add test for the undocumented .NULL special dependency target

(rillig)

2020-08-28 03:51:06 UTC MAIN commitmail json YAML

2020-08-28 03:35:45 UTC MAIN commitmail json YAML

make(1): print suffix flags in the standard way

This changes the output (it is now SUFF_NULL instead of just NULL), and
the order of the flags in the output is reversed.

(rillig)

2020-08-28 02:45:51 UTC MAIN commitmail json YAML

make(1): disable the sync-mi convenience target

(rillig)

2020-08-28 00:19:37 UTC MAIN commitmail json YAML

Use wrapper name for call to setsockopt(2), NFC for non-rump builds.

(rjs)

2020-08-27 19:21:14 UTC MAIN commitmail json YAML

Summary: let wg interfaces carry multicast traffic

Once a wg interface is up and running, it is useful to be able to run
a routing protocol over it.  Marking the interface multicast capable
enables this.  (One must also use the wgconfig --allowed-ips option to
explicitly permit the group one needs, e.g. 224.0.0.5/32 for OSPF.)

(tih)

2020-08-27 19:15:35 UTC MAIN commitmail json YAML

2020-08-27 19:09:37 UTC MAIN commitmail json YAML

make(1): pass the command-line variables to the subdir make

(rillig)

2020-08-27 19:00:18 UTC MAIN commitmail json YAML

2020-08-27 18:51:20 UTC MAIN commitmail json YAML

npftest: Wait at least one tick in each gc busy wait iteration.

Otherwise the busy wait loop runs a little too fast for the gc about
half the times I run the test.

XXX We should really arrange mstohz to round up!

(riastradh)

2020-08-27 18:50:25 UTC MAIN commitmail json YAML

2020-08-27 18:49:36 UTC MAIN commitmail json YAML

npf: Don't stop early after sleeping and before processing instances.

We already check winfo->exit below, after processing instances and
before sleeping again.

Candidate fix for:

panic: kernel diagnostic assertion "LIST_EMPTY(&winfo->instances)" failed: file "/home/riastradh/netbsd/current/src/sys/rump/net/lib/libnpf/../../../..//net/npf/npf_worker.c", line 300 NPF instances must be discharged before the npfk_sysfini() call

(riastradh)

2020-08-27 16:35:13 UTC MAIN commitmail json YAML

Avoid undefined behaviour as detected by KUBSAN

(skrll)

2020-08-27 15:32:37 UTC MAIN commitmail json YAML

Remove bogus Atffile and Kyuafile entries for if_wg tests.

(riastradh)

2020-08-27 15:32:01 UTC MAIN commitmail json YAML

2020-08-27 15:30:04 UTC MAIN commitmail json YAML

Omit spurious leading dash in debug/ad.mips set list entries.

(if this actually means something feel free to revert and document
what it means somewhere obvious!)

(riastradh)

2020-08-27 15:28:53 UTC MAIN commitmail json YAML

Fix obsolete entry for /usr/lib/libcdk.so.

This was broken in rev. 1.1230.

(riastradh)

2020-08-27 14:16:50 UTC netbsd-9 commitmail json YAML

2020-08-27 14:14:00 UTC MAIN commitmail json YAML

2020-08-27 14:13:18 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1065):

sys/dev/usb/usbdevices.config: revision 1.41 (patch)
sys/dev/usb/ugen.c: revision 1.152
sys/dev/usb/ugen.c: revision 1.153
sys/dev/usb/ugen.c: revision 1.154
sys/dev/usb/ugen.c: revision 1.155 (patch)
sys/dev/usb/ugen.c: revision 1.156
sys/dev/usb/ugen.c: revision 1.157

Remove UGEN_ASLP microoptimization.
cv_signal already has this microoptimization.
While here, make the lock cover the relevant things we're issuing
cv_signal about -- progress toward real MP-safety.

Hold the lock over access to the data structures it covers.
Still not MPSAFE, but progress.

Convert DIAGNOSTIC prints to KASSERTs.

Share unit numbering for ugen and ugenif.
This way putting ugenif in kernel config actually works to wire it to
the /dev/ugenN.MM device nodes in userland.

Not a fully fleshed out solution to the ugen problem -- there's no
way for a userland driver to kick out a kernel driver and take over,
but this will let us, e.g., use uhidev(4) for Yubikey OTP/U2F/FIDO2
but ugen(4), with pcscd(8), for Yubikey CCID.

Fix various MP-safety issues while here (still not MPSAFE, but more
progress).

Expose Yubikey CCID interface to userland via ugenif.

Fix sloppy mistakes in previous.
1. Give the offset of the rbnode, not some other random members to
  overwrite with garbage.
2. Don't try to unlock a mutex at NULL.
3. Make sure all paths out after ugenif_acquire go via
  ugenif_release.

Fix ugen detach after partial attach.

While here, register null pmf handler even for partially attached
devices so they don't needlessly interfere with suspend.

(martin)

2020-08-27 14:11:57 UTC MAIN commitmail json YAML

2020-08-27 14:01:36 UTC MAIN commitmail json YAML

Move address hashing from init_main.c to kern_sysctl.c.

This way rump gets it automatically.  Make sure blake2s is in
librumpkern.so, not just in librumpkern_crypto.so, for this to work.

(riastradh)

2020-08-27 14:00:01 UTC MAIN commitmail json YAML

- when running as root, create the socket under a different uid/gid to verify
  that it works properly with different users opening the socket.
- verify that linux works the same for both getpeereid() and fstat()

(christos)

2020-08-27 13:44:41 UTC MAIN commitmail json YAML

wg: Assert MCLBYTES is enough for requested length in wg_get_mbuf.

(riastradh)

2020-08-27 10:10:23 UTC MAIN commitmail json YAML

Move mii_phy_statusmsg(sc) back to its original position. Fixes
deafness bug on macppc reported and tested by martin@
Thanks !

(kardel)

2020-08-27 09:57:34 UTC MAIN commitmail json YAML

2020-08-27 09:16:52 UTC netbsd-9 commitmail json YAML

2020-08-27 09:15:39 UTC netbsd-9 commitmail json YAML

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

bin/sh/exec.c: revision 1.54

PR bin/55526

Fix a bug that has existed since the "command" command was added in
2003.  "command foo" would cause the definition of a function "foo"
to be lost (not freed, simply discarded) if "foo" is (in addition to
being a function) a filesystem command.  The case where "foo" is
a builtin was handled.

For now, when a function exists with the same name as a filesystem
command, the latter can never appear in the command hash table, and
when used (which can only be via "command foo", just "foo" finds
the function) will always result in a full PATH search.

XXX pullup everything (from NetBSD 2.0 onwards).  (really -8 and -9)

(martin)

2020-08-27 09:12:52 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nia in ticket #1063):

share/man/man8/afterboot.8: revision 1.68
share/man/man8/afterboot.8: revision 1.69
share/man/man8/afterboot.8: revision 1.70
share/man/man8/afterboot.8: revision 1.71
share/man/man8/afterboot.8: revision 1.72
share/man/man8/afterboot.8: revision 1.73
share/man/man8/afterboot.8: revision 1.63
share/man/man8/afterboot.8: revision 1.64
share/man/man8/afterboot.8: revision 1.65
share/man/man8/afterboot.8: revision 1.66
share/man/man8/afterboot.8: revision 1.67
afterboot.8: Explain how connecting to open WiFi works with wpa_supplicant

afterboot.8: Explain how to install pkgin on a fresh system
afterboot.8: Be clearer about exactly when you might need to login as root
afterboot.8: Explain devpubd
afterboot.8: Mention mdnsd
afterboot.8: Use cdn. Don't be arch specific. Requested by leot.
afterboot.8: Correct URL directory order
afterboot.8: Use wpa_* for everything WiFi, update links
reasoning: ifconfig scan is unreliable while wpa_supplicant is running
afterboot.8: Start the daemons after configuring wpa_supplicant.
afterboot.8: uname -p, pointed out by various people
afterboot.8: If it needs a disclaimer that most people shouldn't do it...

(martin)

2020-08-27 09:08:39 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1062):

sys/fs/union/union.h: revision 1.30
sys/fs/union/union_subr.c: revision 1.79
sys/fs/union/union_vnops.c: revision 1.74

Operation union_readdirhook() stores the lower directory as un_uppervp.
This breaks the assumption that un_uppervp->v_mount is the upper mount.

Fix by storing the directory as un_lowervp and adapt union_readdir().

Should fix PR kern/55552: panic with union mount

(martin)

2020-08-27 09:05:37 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1061):

distrib/sets/lists/xdebug/md.sun3: revision 1.4
distrib/sets/lists/xserver/md.sun3: revision 1.16
external/mit/xorg/server/xorg-server/hw/sun/Xsun/Makefile: revision 1.1
external/mit/xorg/server/xorg-server/hw/Makefile: revision 1.6
external/mit/xorg/server/xorg-server/hw/sun/Makefile: revision 1.1
external/mit/xorg/server/xorg-server/hw/sun/Xsun24/Makefile: revision 1.1
external/mit/xorg/server/xorg-server/hw/sun/Makefile.Xsun: revision 1.1
external/mit/xorg/server/xorg-server/hw/sun/Makefile.Xsun: revision 1.2
external/mit/xorg/server/xorg-server/hw/sun/Makefile.Xsun: revision 1.3
external/mit/xorg/server/xorg-server/hw/sun/Makefile.Xsun: revision 1.4
external/mit/xorg/server/xorg-server/Makefile.common: revision 1.28
external/mit/xorg/server/xorg-server.old/Makefile.common: revision 1.3
external/mit/xorg/server/xorg-server/hw/sun/XsunMono/Makefile: revision 1.1

Add build glue for Xorg-Server-1.20'fied monolithic Xsun servers.

Don't build Xsun servers for sparc and sparc64.

Not tested, and maybe not worth for wscons'fied ports.

Add .debug binaries for Xsun servers.

Note daily build.sh on releng.netbsd.org has MKDEBUG=yes
so local test builds should also include it.
fix build:
- add .../xorg subdir to the path
- add dbe and present extensions, both wanted via linkage
.. but maybe these shouldn't be built?  they're not in sets.

Explicitly disable dbe, record, and present DIX extentions.

Specify default /var/log/Xsun.%s.log path definitions.

(martin)

2020-08-27 08:53:19 UTC netbsd-9 commitmail json YAML

xsrc/external/mit/xorg-server/dist/hw/sun/README@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/Xsun.man@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/circleset.h@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/constype.c@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/constype.man@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/kbd_mode.c@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/kbd_mode.man@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sun.h@1.7.2.2 / diff / nxr@1.7.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunCfb.c@1.6.2.2 / diff / nxr@1.6.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunCfb24.c@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunCursor.c@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunFbs.c@1.3.2.2 / diff / nxr@1.3.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunGX.c@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunGX.h@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunInit.c@1.9.2.2 / diff / nxr@1.9.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunIo.c@1.5.2.2 / diff / nxr@1.5.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunKbd.c@1.7.2.2 / diff / nxr@1.7.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunKeyMap.c@1.3.2.2 / diff / nxr@1.3.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunMfb.c@1.1.2.2 / diff / nxr@1.1.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunMouse.c@1.2.2.2 / diff / nxr@1.2.2.2
xsrc/external/mit/xorg-server/dist/hw/sun/sunMultiDepth.c@1.1.2.2 / diff / nxr@1.1.2.2

Pull up following revision(s) (requested by tsutsui in ticket #1061):

external/mit/xorg-server/dist/hw/sun/sunCfb.c: revision 1.6
external/mit/xorg-server/dist/hw/sun/sunCursor.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.2
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.3
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.4
external/mit/xorg-server/dist/hw/sun/sunFbs.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunCfb24.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.5
external/mit/xorg-server/dist/hw/sun/sunFbs.c: revision 1.2
external/mit/xorg-server/dist/hw/sun/sunMouse.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.6
external/mit/xorg-server/dist/hw/sun/sunGX.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunFbs.c: revision 1.3
external/mit/xorg-server/dist/hw/sun/kbd_mode.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunMouse.c: revision 1.2
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.7
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.8
external/mit/xorg-server/dist/hw/sun/sunIo.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunInit.c: revision 1.9
external/mit/xorg-server/dist/hw/sun/sunGX.h: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunIo.c: revision 1.2
external/mit/xorg-server/dist/hw/sun/sun.h: revision 1.1
external/mit/xorg-server/dist/hw/sun/Xsun.man: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunIo.c: revision 1.3
external/mit/xorg-server/dist/hw/sun/sun.h: revision 1.2
external/mit/xorg-server/dist/hw/sun/sunKeyMap.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunIo.c: revision 1.4
external/mit/xorg-server/dist/hw/sun/sun.h: revision 1.3
external/mit/xorg-server/dist/hw/sun/constype.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunMultiDepth.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunKeyMap.c: revision 1.2
external/mit/xorg-server/dist/hw/sun/sunIo.c: revision 1.5
external/mit/xorg-server/dist/hw/sun/sun.h: revision 1.4
external/mit/xorg-server/dist/hw/sun/sunMfb.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunKeyMap.c: revision 1.3
external/mit/xorg-server/dist/hw/sun/sun.h: revision 1.5
external/mit/xorg-server/dist/hw/sun/README: revision 1.1
external/mit/xorg-server/dist/hw/sun/sun.h: revision 1.6
external/mit/xorg-server/dist/hw/sun/sun.h: revision 1.7
external/mit/xorg-server/dist/hw/sun/kbd_mode.man: revision 1.1
external/mit/xorg-server/dist/hw/sun/circleset.h: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunKbd.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunKbd.c: revision 1.2
external/mit/xorg-server/dist/hw/sun/sunKbd.c: revision 1.3
external/mit/xorg-server/dist/hw/sun/sunKbd.c: revision 1.4
external/mit/xorg-server/dist/hw/sun/sunKbd.c: revision 1.5
external/mit/xorg-server/dist/hw/sun/sunKbd.c: revision 1.6
external/mit/xorg-server/dist/hw/sun/sunKbd.c: revision 1.7
external/mit/xorg-server/dist/hw/sun/constype.man: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunCfb.c: revision 1.1
external/mit/xorg-server/dist/hw/sun/sunCfb.c: revision 1.2
external/mit/xorg-server/dist/hw/sun/sunCfb.c: revision 1.3
external/mit/xorg-server/dist/hw/sun/sunCfb.c: revision 1.4
external/mit/xorg-server/dist/hw/sun/sunCfb.c: revision 1.5

Import WIP Xorg-Server-1.20'fied monolithic Xsun servers.
This is based on 1.10 version imported into xorg-server.old and
all upstream API changes between xorg-server 1.10 and 1.20 are
applied almost mechanically.
https://github.com/tsutsui/xorg-server-Xsun/commits/xorg-server-1.20

Xsun and XsunMono servers are also confirmed working with bwtwo on
3/60 and tme, and cgtwo on tme. XKB stuff is still to be resolved.

Use proper ANSI offsetof(3) to specify framebuffer offset in struct.
Fixes build error on sparc64.  No binary change on sun3.

Apply upstream "free the EQ allocated memory on shutdown" fixes.

This should be updated before 1.20 import:
https://cgit.freedesktop.org/xorg/xserver/commit/?id=87d4f90bfcb509471ac9e7886e14a92b33223fd7

Use proper args for dixLookupResourceByType() to get defcolormap.
Botched in mechanical 1.20 updates.

Add prototype declarations for CG2 functions.

Implement functions to restore palette settings on exiting Xserver.

Explicitly initialize origColormapValid for readability.

Fix LED defintions to match xkb/xkbInit.c.

Now CapsLock and NumLock LEDs work correctly.
XXX: No ScrollLock LED

Remove unused functions required to handle non-XKB autorepeat.

Initialize ModMap dynamically using keymap data per each keyboard.
Now ScrollLock LED works properly.

Remove now unused ModMap data for each keyboard.

Use "empty" for rmlvo model and layout to avoid lingering default settings.
Now all modifier keys (CTRL, SHIFT, and NumLock) work as expected.

It seems XkbApplyMappingChange() doesn't update some XKB modifier
settings even if new modmap data is specified.

Trailing whitespace.

Call LogInit() for logging to /var/log/Xsun.%s.log as Xorg server.

Inform detected keyboard type and layout via LogMessage().

Remove a leftover variable for non-XKB autorepeat.

Remove redundant command option arg checks.

Put probed framebuffer info to a log file by default.

Remove more redundant command option arg checks.

Avoid dumb DevicePtr casts.

(martin)

2020-08-27 07:03:48 UTC MAIN commitmail json YAML

2020-08-27 07:00:30 UTC MAIN commitmail json YAML

2020-08-27 06:53:57 UTC MAIN commitmail json YAML

2020-08-27 06:31:46 UTC MAIN commitmail json YAML

make(1): migrate Lst_ForEachFrom to Lst_ForEachFromS

(rillig)

2020-08-27 06:28:44 UTC MAIN commitmail json YAML

make(1): migrate remaining code from Lst_Open to Lst_OpenS

(rillig)

2020-08-27 06:18:23 UTC MAIN commitmail json YAML

make(1): remove unused declarations from job.h

(rillig)

2020-08-27 06:13:53 UTC MAIN commitmail json YAML

make(1): convert Arch_ParseArchive from ReturnStatus to Boolean

There are only few functions left that use the ReturnStatus.  These will
be converted as well, to get rid of the additional typedef.

(rillig)

2020-08-27 04:54:43 UTC MAIN commitmail json YAML

Limit MA10-ST0's quirk only for on-chip devices.

(msaitoh)

2020-08-27 04:49:52 UTC MAIN commitmail json YAML

2020-08-27 03:57:52 UTC MAIN commitmail json YAML

Minor change.

- Print "X550EM X" instead of "X550EM" for Xeon D devices.
- Fix typo in comment. Same as FreeBSD.

(msaitoh)

2020-08-27 03:05:34 UTC MAIN commitmail json YAML

wg: Make sure all paths into wg_handle_msg_data guarantee enough m_len.

Earlier commit moved the m_pullup into wg_validate_msg_header, but
wg_overudp_cb doesn't go through that.

(riastradh)

2020-08-27 02:55:05 UTC MAIN commitmail json YAML

wg: Drop invalid message types on the floor faster.

Don't even let them reach the thread -- drop them in softint.

(riastradh)

2020-08-27 02:54:31 UTC MAIN commitmail json YAML

wg: KASSERT m_len before mtod.

XXX We should really make mtod do this automagically, and use
something else for mtod(m, void *).

(riastradh)

2020-08-27 02:53:47 UTC MAIN commitmail json YAML

wg: Use m_pullup to make message header contiguous before processing.

(riastradh)

2020-08-27 02:52:34 UTC MAIN commitmail json YAML

wg: Check mbuf chain length before m_copydata.

(riastradh)

2020-08-27 02:51:50 UTC MAIN commitmail json YAML

Use wgconfig as intended to show diagnostics, not a usage message.

(riastradh)

2020-08-27 02:51:15 UTC MAIN commitmail json YAML

Fix order of cleanup actions in rumpuser_wg_create error branch.

(riastradh)

2020-08-27 02:50:44 UTC MAIN commitmail json YAML

Paranoia: use strlcpy rather than strcpy here and detect truncation.

Not an issue for the one caller in tree, but let's not leave rakes to
step on.

(riastradh)

2020-08-27 01:52:04 UTC MAIN commitmail json YAML

2020-08-27 00:07:56 UTC MAIN commitmail json YAML

ADD SFP+ MOD_ABS inversion quirk.

On X550 EM, GPIO(SDP) and SFP+'s MOD_ABS is directly connected. It has
no inverter. GIGABYTE MA10-ST0 has a inverter, so add new quirk for it.

(msaitoh)

2020-08-26 23:08:29 UTC MAIN commitmail json YAML

Provide a helpful error message if we don't have privs to read kernel
addresses.

(christos)

2020-08-26 23:08:26 UTC MAIN commitmail json YAML

make(1): merge duplicate code for creating a new suffix

(rillig)

2020-08-26 23:00:47 UTC MAIN commitmail json YAML

make(1): remove header sprite.h

Make is independent of the Sprite operating system.

(rillig)

2020-08-26 22:57:56 UTC MAIN commitmail json YAML

undo previous, now sockstat works without privs

(christos)

2020-08-26 22:56:55 UTC MAIN commitmail json YAML

Instead of returning 0 when sysctl kern.expose_address=0, return a random
hashed value of the data. This allows sockstat to work without exposing
kernel addresses or being setgid kmem.

(christos)

2020-08-26 22:55:46 UTC MAIN commitmail json YAML

make(1): add stricter variants for remaining Lst functions

In most cases the Lst functions are only called when the arguments are
indeed valid.  It's not guaranteed though, therefore each function call
needs to be analyzed and converted individually.

While here, remove a few statements that were only useful when the Lst
functions handled circular lists.

(rillig)

2020-08-26 22:54:31 UTC MAIN commitmail json YAML

add socket info for user and group for unix sockets in fstat.

(christos)

2020-08-26 22:52:58 UTC MAIN commitmail json YAML

Check that fstat returns the correct socket owner

(christos)

2020-08-26 18:06:54 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1060):

sys/arch/sun3/sun3x/pmap.c: revision 1.117

Make sure pmap_kenter_pa(9) handles uncached mappings properly.

Fixes "cgfour(4) is mis-probed as bwtwo(4)" problem on 3/80
that has been broken since NetBSD 1.6.

Now Xorg 1.20 based Xsun 8bpp color server is confirmed working
on the cgfour(4).

Should be pulled up to netbsd-9.

XXX: all MD PMAP_NC flags should be replaced with MI PMAP_NOCACHE flag.

(martin)

2020-08-26 17:55:49 UTC netbsd-9 commitmail json YAML

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

sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.70
sys/dev/nvmm/x86/nvmm_x86.h: revision 1.19
sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.69
sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.71
sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.69
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.11
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.12
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.13
sys/dev/nvmm/x86/nvmm_x86.c: revision 1.14

Improve the CPUID emulation:
- Hide SGX*, PKU, WAITPKG, and SKINIT, because they are not supported.
- Hide HLE and RTM, part of TSX. Because TSX is just too buggy and we
  cannot guarantee that it remains enabled in the guest (if for example
  the host disables TSX while the guest is running). Nobody wants this
  crap anyway, so bye-bye.
- Advertise FSREP_MOV, because no reason to hide it.

Hide OSPKE. NFC since the host never uses PKU, but still.

Improve the CPUID emulation on nvmm-intel:
- Limit the highest extended leaf.
- Limit 0x00000007 to ECX=0, for future-proofness.

nvmm-x86-svm: improve the CPUID emulation

Limit the hypervisor range, and properly handle each basic leaf until 0xD.

nvmm-x86: advertise the SERIALIZE instruction, available on future CPUs

nvmm-x86: improve the CPUID emulation
- x86-svm: explicitly handle 0x80000007 and 0x80000008. The latter
  contains extended features we must filter out. Apply the same in
  x86-vmx for symmetry.
- x86-svm: explicitly handle extended leaves until 0x8000001F, and
  truncate to it.

(martin)

2020-08-26 16:36:32 UTC MAIN commitmail json YAML

Add a check to prevent shift by -1. Not really important in this case,
but to appease KUBSAN.

Reported-by: syzbot+4026e8201b6b484b8cb4@syzkaller.appspotmail.com

(maxv)

2020-08-26 16:33:03 UTC MAIN commitmail json YAML

nvmm-x86-svm: improve the handling of MSR_EFER

Intercept reads of it as well, just to mask EFER_SVME, which the guest
doesn't need to see.

(maxv)

2020-08-26 16:32:03 UTC MAIN commitmail json YAML

nvmm-x86: improve the handling of RFLAGS.RF

- When injecting certain exceptions, set RF. For us to have an up-to-date
  view of RFLAGS, we commit the state before the event.
- When advancing RIP, clear RF.

(maxv)

2020-08-26 16:30:50 UTC MAIN commitmail json YAML

nvmm-x86-vmx: improve the handling of CR4

- Filter out certain features we don't want the guest to enable. This is
  for general correctness, and future-proofness.
- Flush the guest TLB when certain flags change.

(maxv)

2020-08-26 16:29:49 UTC MAIN commitmail json YAML

nvmm: slightly clarify

(maxv)

2020-08-26 16:29:20 UTC MAIN commitmail json YAML

nvmm-x86-svm: don't forget to intercept INVD

INVD executed in the guest can be dangerous for the host, due to CPU
caches being flushed without write-back.

(maxv)

2020-08-26 16:28:17 UTC MAIN commitmail json YAML

nvmm: misc improvements

- use mach->ncpus to get the number of vcpus, now that we have it
- don't forget to decrement mach->ncpus when a machine gets killed
- add more __predict_false()

(maxv)

2020-08-26 16:03:42 UTC MAIN commitmail json YAML

Clarify wg(4)'s relation to WireGuard, pending further discussion.

Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c.  This just
clarifies the current state of affairs as it exists in the development
tree for now.

Mark the man page EXPERIMENTAL for extra clarity.

(riastradh)

2020-08-26 15:54:11 UTC MAIN commitmail json YAML

Nix trailing whitespace and mixed space/tab indentation.

(riastradh)

2020-08-26 15:49:56 UTC MAIN commitmail json YAML

2020-08-26 15:49:07 UTC MAIN commitmail json YAML

wgconfig does not need libcrypt.

(riastradh)

2020-08-26 13:35:12 UTC MAIN commitmail json YAML

Fix indentation

(gson)