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

2024-05-10 12:08:04 UTC Now

2021-10-19 07:40:53 UTC MAIN commitmail json YAML

lagg: clear I/G bitg and set G/L bit in a generated MAC address

(yamaguchi)

2021-10-19 06:41:03 UTC MAIN commitmail json YAML

2021-10-19 06:37:29 UTC MAIN commitmail json YAML

Fix for PR pkg/55931
Don't move the cursor when getch is called if input is not going to
be echoed.  Lynx uses the cursor to mark the current selection in a
pop-up, previously the cursor was being relocated when getch was called
which broke the Lynx item marking.

(blymn)

2021-10-19 03:47:33 UTC MAIN commitmail json YAML

Revert previous:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/mips/mips/vm_machdep.c#rev1.163

> cpu_uarea_alloc: For ILP32, do not try to allocate physical memory above
> pmap_limits.avail_end.
>
> Fix NULL dereference in uvm_pglistalloc_contig_aggressive().

"high" argument larger than pmap_limits.avail_end is just legal for
uvm_pglistalloc(); uvm_pglistalloc_contig_aggressive() and friends
allocate memory between uvm_physseg_get_avail_start() and
uvm_physseg_get_avail_end().

It turned out that the NULL dereference took place as PHYS_TO_VM_PAGE()
aka uvm_phys_to_vm_page() returns NULL for a valid pa. I've not figured
out why...

Thanks chs@ for correcting my misunderstanding.

(rin)

2021-10-18 23:01:11 UTC MAIN commitmail json YAML

2021-10-18 22:46:34 UTC MAIN commitmail json YAML

2021-10-18 22:30:35 UTC MAIN commitmail json YAML

2021-10-18 20:18:00 UTC MAIN commitmail json YAML

tests/indent: extend tests for labels, extract test driver

Having the test driver in a separate file allows to run it on its own,
as 'awk -f t_options.awk label.c'. When the test driver warns, exit 1;
this is only needed for the standalone version, when run from inside ATF
the warnings on stderr already suffice to make the test fail in the end.

(rillig)

2021-10-18 19:36:30 UTC MAIN commitmail json YAML

tests/indent: consolidate tests for comments

These tests have been the motivation for t_options.sh, which allows to
run indent with various command line options on the same input, without
having to create 3 files per test case.

A test file actually contains several tests, all separated by '#indent'
directives. Isolating each of these tests is simpler than having to pick
up the corresponding sections from 3 separate files. Running indent on
each small test case isolates the test cases from each other, preventing
them to influence later test cases. Exactly this had happened when
support for C99 comments was added in March 2021, which later turned
out to be done wrong.

(rillig)

2021-10-18 18:10:20 UTC MAIN commitmail json YAML

tests/indent: merge tests for numbers into token_ident

The previous tests 'binary' and 'float' not only test binary and
floating point numbers, making their names too specific. Move them into
a new test token_ident that covers all "identifier-like" tokens, just as
in the code.

The test cases for the option '-cs' are already covered more
systematically in opt_cs.c, so remove that test.

(rillig)

2021-10-18 14:16:50 UTC MAIN commitmail json YAML

Explicitly cast the long->float conversion since it is value-changing and
produces clang warnings.

(christos)

2021-10-18 14:14:07 UTC MAIN commitmail json YAML

Fix llvm build: error: equality comparison with extraneous parentheses
[-Werror,-Wparentheses-equality]

(christos)

2021-10-18 11:40:57 UTC MAIN commitmail json YAML

2021-10-18 11:36:12 UTC MAIN commitmail json YAML

Only print an error about missing I/O BARs for chips that need it.

(jmcneill)

2021-10-18 10:47:45 UTC MAIN commitmail json YAML

Replace @dirrm to @pkgdir in packing list of syspkg

(uki)

2021-10-18 08:15:00 UTC MAIN commitmail json YAML

Use a local static variable to hold "pktq_rps_hash_default"
like the other devices do.

Kernel ALL/amd64 compiles again.

OK: Kengo NAKAHARA <knakahara@netbsd.org>

(hannken)

2021-10-18 07:11:31 UTC MAIN commitmail json YAML

2021-10-17 22:44:35 UTC MAIN commitmail json YAML

When booted with "boot netbsd -1" (disable multiprocessor boot),
"ddb>continue" didn't work when ddb was started by breakpoint trap.

(ryo)

2021-10-17 22:34:17 UTC MAIN commitmail json YAML

plcom: speed up close with HUPCL set

Instead of incurring a 1s penalty on close of a plcom device with HUPCL set,
defer the sleep until the next open, and only sleep if necessary.

(jmcneill)

2021-10-17 20:40:20 UTC MAIN commitmail json YAML

2021-10-17 20:40:03 UTC MAIN commitmail json YAML

s/Techonology/Technology/

(andvar)

2021-10-17 20:33:27 UTC MAIN commitmail json YAML

2021-10-17 20:33:05 UTC MAIN commitmail json YAML

2021-10-17 18:40:15 UTC MAIN commitmail json YAML

make: fix order of parameters in function comments

No functional change.

(rillig)

2021-10-17 18:13:00 UTC MAIN commitmail json YAML

indent: parse int command line options strictly

On i386 and other platforms where LONG_MAX == INT_MAX, the test
t_errors/option_tabsize_very_large failed since the behavior on integer
overflow differs between ILP32 and LP64 platforms. Noticed by gson@.

Avoid this unintended difference by adding reasonable limits for each of
the integer options and by replacing atoi with strtol.

(rillig)

2021-10-17 17:23:59 UTC MAIN commitmail json YAML

tests/lint: use zero-indexed array in awk test program

No functional change.

(rillig)

2021-10-17 17:20:47 UTC MAIN commitmail json YAML

tests/indent: remove redundant test output for -nbap

(rillig)

2021-10-17 14:45:45 UTC MAIN commitmail json YAML

2021-10-17 14:42:15 UTC MAIN commitmail json YAML

Upgrade cgd self-test output from verbose to debug.

(jmcneill)

2021-10-17 14:12:54 UTC MAIN commitmail json YAML

2021-10-17 14:12:21 UTC MAIN commitmail json YAML

Only define DEFAULT_TIMEOUT if it is not already defined.

(jmcneill)

2021-10-17 12:41:06 UTC MAIN commitmail json YAML

Fix primary CPU detection in cpu_acpi_tprof_intr_establish

(jmcneill)

2021-10-17 10:44:21 UTC MAIN commitmail json YAML

Teach argon2 about explicit_memset(3). Should be upstreamed.

(nia)

2021-10-17 10:33:57 UTC MAIN commitmail json YAML

su: Use consttime_memequal instead of strcmp.

This only affects the non-PAM case.

(nia)

2021-10-17 08:48:10 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2021-10-17 08:47:21 UTC MAIN commitmail json YAML

2021-10-17 07:26:20 UTC MAIN commitmail json YAML

2021-10-17 04:14:49 UTC MAIN commitmail json YAML

To an alias address, or in a multihoming environment, the internal dgram
server may respond from a different address than the destination address
sent by the client.
To solve this problem, I introduce sendfromto() and recvfromto() so that
the server can reply from the correct address, i.e., the destination address
used in the request.

This change also has the aspect of a reference implementation using the
RECVDSTADDR and PKTINFO socket options.

(ryo)

2021-10-16 21:32:10 UTC MAIN commitmail json YAML

2021-10-16 14:05:48 UTC MAIN commitmail json YAML

Background dhcpcd if ec2_init is not enabled to speed up boot.

(jmcneill)

2021-10-16 13:15:01 UTC MAIN commitmail json YAML

Skip legacy device detection for VMware guests with ACPI enabled.

(jmcneill)

2021-10-16 13:09:41 UTC MAIN commitmail json YAML

Enable com and lpt at ACPI attachments.

(jmcneill)

2021-10-16 10:53:34 UTC MAIN commitmail json YAML

2021-10-16 09:39:21 UTC MAIN commitmail json YAML

tests/indent: clean up tests for '-bad' and '-badp'

(rillig)

2021-10-16 09:17:21 UTC MAIN commitmail json YAML

tests/indent: add newly added t_options to file list

(rillig)

2021-10-16 07:12:01 UTC MAIN commitmail json YAML

Spinkle some KNF spaces after commas.

(simonb)

2021-10-16 07:05:45 UTC MAIN commitmail json YAML

Remove funny straggling blank line.

(simonb)

2021-10-16 07:04:36 UTC MAIN commitmail json YAML

pm_remove_all is a shared field so move it out the #ifdefs

(skrll)

2021-10-16 07:01:03 UTC MAIN commitmail json YAML

2021-10-16 06:37:43 UTC MAIN commitmail json YAML

fix non-MULTIPROCESSOR build

Build tested only.

(ryo)

2021-10-16 06:34:30 UTC MAIN commitmail json YAML

fix non-MULTIPROCESSOR build

(ryo)

2021-10-16 06:02:18 UTC MAIN commitmail json YAML

tests/indent: restructure test for '-bacc' and '-nbacc'

To see the effects of the options, group the tests into sections, each
containing a small piece of code followed by the output of the two
options.

(rillig)

2021-10-16 05:40:46 UTC MAIN commitmail json YAML

apply always-open quirk for logitech B100 mouse.

(mrg)

2021-10-16 05:40:17 UTC MAIN commitmail json YAML

2021-10-16 05:39:32 UTC MAIN commitmail json YAML

2021-10-16 05:39:11 UTC MAIN commitmail json YAML

add logitech B100 mouse

(mrg)

2021-10-16 05:21:57 UTC MAIN commitmail json YAML

tests/indent: remove accidentally added file from the mi list

(rillig)

2021-10-16 03:20:13 UTC MAIN commitmail json YAML

tests/indent: condense tests for bool options

Previously, each bool option such as '-bacc/-nbacc' had 6 test files:
input, options, output for the positive and negative option. Splitting
this test data into separate files made it harder than necessary to
quickly compare the test output from '-bacc' with that of '-nbacc'.

Have a single test for the positive and negative option, allowing
several tests to run on the same input with different options.

This commit only contains the rather mechanic changes of concatenating
the previous test files and inserting the '#indent' directives, which
are documented in t_options.sh. Removing duplicate input sections, as
well as other cleanups will follow soon.

No functional change.

(rillig)

2021-10-15 22:32:29 UTC MAIN commitmail json YAML

2021-10-15 19:22:12 UTC MAIN commitmail json YAML

Swap fdc@isa for fdc@acpi as the former takes over a second to probe.

(jmcneill)

2021-10-15 19:21:45 UTC MAIN commitmail json YAML

Convert some debug messages to aprint_debug

(jmcneill)

2021-10-15 19:01:52 UTC MAIN commitmail json YAML

Add missing acpi include

(jmcneill)

2021-10-15 18:51:39 UTC MAIN commitmail json YAML

Disable MSI and MSI-X support if IAPC_BOOT_ARCH reports that MSI is not
supported.

(jmcneill)

2021-10-15 18:44:53 UTC MAIN commitmail json YAML

If ACPI indicates that there are no user visible devices on the LPC or ISA
bus, set the "no-legacy-devices" property on isa to bypass indirect
configuration of ISA devices.

(jmcneill)

2021-10-15 18:12:48 UTC MAIN commitmail json YAML

Fix typo in comment: "porniters" -> "pointers"

(jmcneill)

2021-10-15 17:42:04 UTC MAIN commitmail json YAML

Handle restoring keyboard state via AbortDevices() rather than AbortDDX().

Tested on 3/60.  Note AbortDevices() and DEVICE_ABORT in deviceProc
functions were introduced after Xorg 1.14.0:
https://gitlab.freedesktop.org/xorg/xserver/-/commit/9f79e93b6b3416055d08a0e8f9f16d5fd0649e36

(tsutsui)

2021-10-15 15:15:52 UTC netbsd-9 commitmail json YAML

2021-10-15 15:14:51 UTC netbsd-9 commitmail json YAML

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

distrib/amd64/installimage-bios/etc.ttys: revision 1.1
distrib/amd64/installimage-bios/Makefile: revision 1.1
distrib/amd64/Makefile: revision 1.15
distrib/amd64/installimage-bios/boot.cfg.in: revision 1.1
distrib/amd64/installimage-bios/spec.inst: revision 1.1
distrib/amd64/installimage-bios/etc.rc: revision 1.1
distrib/amd64/installimage-bios/install.sh: revision 1.1

Restore having a BIOS-only amd64 USB image.

Several people reported having hardware that struggles booting the mix
EFI+BIOS image, and it's better to offer them a working image.

Keeping the EFI image as having the obvious name, this is going to become
more likely to work by default as newer hardware may not support BIOS boot.

(XXX pullup-9)

(martin)

2021-10-15 11:59:17 UTC MAIN commitmail json YAML

Revert "usb: uhub: remove unnecessary delays when powering on ports"

syzbot says that the change exposes UB in usb_free_device and I can't
see how, so revert until I have a better understanding of what's going on.

Reported-by: syzbot+c445f7149cce07d4c252@syzkaller.appspotmail.com
Reported-by: syzbot+a2ae42f37de765a54b20@syzkaller.appspotmail.com

(jmcneill)

2021-10-14 21:35:45 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2021-10-14 21:18:07 UTC MAIN commitmail json YAML

doc: MKPIE/MKRELRO for aarch64

(nia)

2021-10-14 20:23:43 UTC MAIN commitmail json YAML

indent: clarify that 25 is a magic number

The extra line width for comments to the very right is just that, an
arbitrarily chosen number. It neither has to be a multiple of 8, nor of
the tabsize nor of the indentation. Since 25 is neither of these, this
makes it a perfect choice, allowing these extreme comments to have 22
characters per line with -sc (leading asterisks in comment
continuations, the default) or 25 without.

No functional change.

(rillig)

2021-10-14 20:23:31 UTC MAIN commitmail json YAML

Add sgp40mox(4)

(nia)

2021-10-14 20:15:18 UTC MAIN commitmail json YAML

indent: turn ps.com_ind into local variable

This makes it immediately clear that ps.com_ind is computed in the first
part of process_comment and then only used from there.

No functional change.

(rillig)

2021-10-14 20:00:59 UTC MAIN commitmail json YAML

tests/indent: test comment to the right, collect more useful tests

(rillig)

2021-10-14 18:55:41 UTC MAIN commitmail json YAML

tests/indent: cover more error cases and inline indentation

(rillig)

2021-10-14 17:42:13 UTC MAIN commitmail json YAML

2021-10-14 15:40:00 UTC MAIN commitmail json YAML

aarch64 needs a clean build after MKRELRO default has changed.

(martin)

2021-10-14 14:53:41 UTC MAIN commitmail json YAML

Mention sht4xtemp and sgp40mox in CHANGES.  Add an entry for the Sensirion
VOC algorithm in 3RDPARTY.

(brad)

2021-10-14 13:54:46 UTC MAIN commitmail json YAML

A driver for the Sensirion SGP40 MOx gas sensor.  An example of this
chip from Adafruit is:

https://www.adafruit.com/product/4829

This is a moderately priced gas sensor that can detect volatile
organic compounds in the air.  The driver uses the 3-clause BSD
licensed VOC algorithm provided by Sensirion to turn the raw sensor
metric into a VOC index which can indicate the quality of the air in a
particular indoor environment.  All published functions of the chip
are supported and one unpublished feature.

(brad)

2021-10-14 13:50:36 UTC MAIN commitmail json YAML

2021-10-14 12:58:30 UTC MAIN commitmail json YAML

mk: Enable MKPIE on aarch64 (it's already enabled on 32-bit arm)

(nia)

2021-10-14 11:46:46 UTC MAIN commitmail json YAML

mk: Enable MKRELRO on aarch64 to match x86.

(nia)

2021-10-14 11:45:46 UTC MAIN commitmail json YAML

mk: Enable MKARGON2 now that this stuff works.

(nia)

2021-10-14 09:56:12 UTC MAIN commitmail json YAML

- use microtime instead of getmicrotime, suggested by thorpej
- use ttclos for wchan even though we are sleeping in comopen now

(jmcneill)

2021-10-14 09:52:40 UTC MAIN commitmail json YAML

Output alignement - give lwp 6 characters

(skrll)

2021-10-14 02:22:25 UTC MAIN commitmail json YAML

cpu_uarea_alloc: For ILP32, do not try to allocate physical memory above
pmap_limits.avail_end.

Fix NULL dereference in uvm_pglistalloc_contig_aggressive().

(rin)

2021-10-13 23:33:52 UTC MAIN commitmail json YAML

indent: check command line options stricter

Previously, bool options were allowed to have trailing garbage. For
example, the option '-bacc' could be spelled '-bacchus' as well.

Check that the exact option name is given in the command line, to
prevent typos in the configuration files and to reduce surprises just in
case a future option is a prefix of an existing option, or vice versa.

Add a new test program for error handling. Most of these tests are so
simple that it would be overkill to create 3 files for each test.

(rillig)

2021-10-13 23:03:10 UTC MAIN commitmail json YAML

tests/indent: test long comments in single line

I had expected them to differ depending on the option '-[n]fc1', but
they look exactly the same. There are several possibilities for the
leading space in the output.

(rillig)

2021-10-13 22:38:03 UTC MAIN commitmail json YAML

indent: extract fits_in_one_line from process_comment

No functional change.

(rillig)

2021-10-13 21:49:10 UTC MAIN commitmail json YAML

fix typos and wrong ISO/IEC standard number in reference description.

(andvar)

2021-10-13 20:11:54 UTC MAIN commitmail json YAML

libcrypt hack for vax

(nia)

2021-10-13 16:08:44 UTC netbsd-9 commitmail json YAML

2021-10-13 16:07:41 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by abs in ticket #1359):

sys/arch/amiga/dev/amidisplaycc.c: revision 1.33
share/man/man4/man4.amiga/amidisplaycc.4: revision 1.14
sys/arch/amiga/dev/amidisplaycc.c: revision 1.35
sys/arch/amiga/dev/amidisplaycc.c: revision 1.36

Implement the WSDISPLAYIO_GET_FBINFO ioctl, needed by X wsfb driver.

Add support for WSDISPLAYIO_MODE_DUMBFB to WSDISPLAYIO_SMODE.

Remove parentheses from return. No functional changes.

Update documentation to mention current status of X11

(martin)

2021-10-13 16:03:07 UTC netbsd-9 commitmail json YAML

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

lib/libc/arch/aarch64/gen/setjmp.S: revision 1.4
lib/libc/arch/aarch64/gen/_setjmp.S: revision 1.5

Fix the lib/libc/setjmp/t_setjmp:{,_}longjmp_zero test cases

(martin)

2021-10-13 14:28:32 UTC MAIN commitmail json YAML

libcrypt: work around compiler bugs to get MKARGON2 working on vax

(nia)

2021-10-13 08:29:26 UTC MAIN commitmail json YAML

2021-10-13 08:28:00 UTC MAIN commitmail json YAML

doc: wm(4): Add Tiger Lake and newer devices (I219 LM10-LM15 and V10-V14).

(msaitoh)

2021-10-13 08:12:36 UTC MAIN commitmail json YAML

Add support for I219V 15-19 and I219LM 16-19.

(msaitoh)

2021-10-13 08:09:46 UTC MAIN commitmail json YAML

Print I219's version number.

(msaitoh)

2021-10-13 07:06:53 UTC MAIN commitmail json YAML

2021-10-13 07:06:23 UTC MAIN commitmail json YAML

Add Intel I219V 15-19 and I219LM 16-19.

(msaitoh)

2021-10-13 07:04:59 UTC MAIN commitmail json YAML

Add Intel I219's version number.

(msaitoh)

2021-10-13 04:57:20 UTC MAIN commitmail json YAML

Add support for the NOTE_SECONDS, NOTE_MSECONDS, NOTE_USECONDS,
NOTE_NSECONDS, and NOTE_ABSTIME filter flags to EVFILT_TIMER,
API-compatible with the same in FreeBSD.

(thorpej)

2021-10-13 01:11:30 UTC MAIN commitmail json YAML

Fix vmx(4) receive workqueue problem on qemu, reported by ozaki-r@n.o, thanks.

ESXi stops interrupt by vmxnet3_disable_intr() immediately.  In contrast, qemu
does not stop interrupt soon.  Hmm, qemu's behavior seems not to be correct,
however, there is no explicit specification of vmxnet3.  So, we have to accept
that behavior.

(knakahara)

2021-10-12 23:40:38 UTC MAIN commitmail json YAML

getty: Remove 2 second sleep before opening tty

This (apparently very old!) workaround to ensure that DTR stays down long
enough to be detected is now handled by serial drivers themselves. For
console devices (framebuffer, serial console, etc) this was an unnecessary
2 second penalty that we have all been paying since the beginning of time.

(jmcneill)

2021-10-12 22:51:28 UTC MAIN commitmail json YAML

inetd: remove trailing whitespace, add space after 'if' and 'for'

No functional change.

(rillig)

2021-10-12 22:47:18 UTC MAIN commitmail json YAML

inetd.8: remove trailing whitespace

(rillig)

2021-10-12 22:42:01 UTC MAIN commitmail json YAML

inetd.8: new sentence, new line; minor formatting issues

(rillig)

2021-10-12 22:22:35 UTC MAIN commitmail json YAML

indent: in process_comment, migrate int variable to bool

No functional change.

(rillig)

2021-10-12 22:20:22 UTC MAIN commitmail json YAML

indent: in process_comment, negate box_com to may_wrap

In the new line 213, may_wrap could only be true and was therefore a
redundant condition.

No functional change.

(rillig)

2021-10-12 22:04:03 UTC MAIN commitmail json YAML

indent: negate a few condition in process_comment

No functional change.

(rillig)

2021-10-12 21:41:13 UTC MAIN commitmail json YAML

Capitalize word.

(wiz)

2021-10-12 21:08:37 UTC MAIN commitmail json YAML

indent: fix formatting of single-line comments (since today)

The change in pr_comment.c 1.70 from 3 hours ago did not cover all edge
cases correctly. Now it works for comments that are aligned with tabs.

(rillig)

2021-10-12 20:52:03 UTC MAIN commitmail json YAML

2021-10-12 19:57:53 UTC MAIN commitmail json YAML

indent: replace unreachable code with assertion

(rillig)

2021-10-12 19:56:07 UTC MAIN commitmail json YAML

indent: use high-level buffer API for processing comments

Document the trickery of copying the last word from the previous line
since that it not obvious at all.

No functional change.

(rillig)

2021-10-12 19:08:04 UTC MAIN commitmail json YAML

PR/56448: Solomon Ritzow: Various improvements.

Rate limiting code has been moved to ratelimit.c. I renamed
clear_ip_list to rl_clear_ip_list and broke the code up into more
functions. I have also made the per-IP rate limiting allocation more
efficient. IP addresses are now stored in their network format instead
of a string from getnameinfo (see inetd.h struct rl_ip_node). malloc
calls use only the space needed by the structure by using offsetof on
union members (I suppose this can be a bit dangerous if not done
correctly...). Per-IP rate limiting still supports textual comparison
using getnameinfo for address families other than AF_INET and AF_INET6, but I
don't think there are any that are actually compatible or used by inetd (I
haven't tested UNIX sockets with a remote bound to another file, but I did test
using IPv6 with the textual format by commenting out the IPv6 specific
code, and it works properly). Still potentially handy for the future.
The IP node list (se_rl_ip_list) now uses the <sys/queue.h> SLIST macros
instead of a custom list. I've broken rl_process up into helper functions
for each type of rate limiting and created a separate function for
address stringification, for use with printouts from the -d flag. I
tried to reduce stack memory use by moving printing code involving
string buffers into separate functions. I haven't tested rl_ipv6_eq on
a 32-bit system.

The code for the positional syntax has also been moved to parse.c.
Function try_biltin has been added to remove parse.c:parse_server's
dependency on the biltin structure definition.

File inetd.h has been updated with the proper function prototypes, and
the servtab structure has been update with the new IP node SLIST. I also
moved things around a bit. The way we (a peer and myself)
formatted inetd.h previously was somewhat confusing. Function and global
variable prototypes are now organized by the source file they are
defined in.

I also added a -f flag that I saw in another problem report
(https://gnats.netbsd.org/12823) that I thought could be useful. It
runs inetd in the foreground but without debug printouts or SO_DEBUG.
I'm not completely sure about the line "if (foreground) setsid()" that
I changed from "if (debug) setsid()".

(christos)

2021-10-12 19:05:23 UTC MAIN commitmail json YAML

tests/indent: test formatting of long single-line code comments

(rillig)

2021-10-12 18:54:56 UTC MAIN commitmail json YAML

2021-10-12 18:40:01 UTC MAIN commitmail json YAML

2021-10-12 18:22:01 UTC MAIN commitmail json YAML

indent: fix wrapping for comments in otherwise empty lines

The comment above the code was wrong. The leading 3 characters were
indeed ignored, but the first of them was '/', not ' '. Of the trailing
3 characters, 2 were not ignored. The start and end of the comment would
not cancel out, they would rather sum up.

(rillig)

2021-10-12 17:27:26 UTC MAIN commitmail json YAML

crypt.3: note parallelism caveats

(nia)

2021-10-12 17:24:37 UTC MAIN commitmail json YAML

Fix release builds with MKARGON2=yes

This changes argon2 from a separately built library into a private
dependency of libcrypt and removes the argon2(1) utility (we already
have pwhash(1)). Giving libcrypt more library dependencies
complicates things (e.g. libcrypt is a dependency of openssl).
pthreads support gets disabled in argon2 for similar reasons.

For testing argon2, we rely on the libcrypt test suite.

(nia)

2021-10-12 17:19:20 UTC MAIN commitmail json YAML

PR/56452: RVP: MAKEDEV should also create /dev/dri/renderD* devices

(christos)

2021-10-12 17:14:10 UTC MAIN commitmail json YAML

PR/56453: Wataru Ashihara: config(1): Assertion fails in config -L
Only compare pointers when one is found.

(christos)

2021-10-12 17:06:26 UTC MAIN commitmail json YAML

Revert previous change because it causes uninitialized warnings with KMSAN.
The previous code was correct. Add a comment explaining why. Requested by chuq@

(christos)

2021-10-12 15:55:31 UTC MAIN commitmail json YAML

added missing copyright header. pointed out by nia. no functional change

(jhigh)

2021-10-12 15:27:41 UTC MAIN commitmail json YAML

crypt(3): clean up some leftover debug goo

(nia)

2021-10-12 15:25:39 UTC MAIN commitmail json YAML

crypt(3): match the Argon2 reference implementation's Base64 exactly

There are too many minor variations regarding padding and exact alphabet
to safely use the implementation in libc or an existing implementation
in libcrypt.

(nia)

2021-10-12 15:25:27 UTC MAIN commitmail json YAML

2021-10-12 14:15:34 UTC MAIN commitmail json YAML

2021-10-12 14:13:18 UTC MAIN commitmail json YAML

2021-10-12 14:12:06 UTC MAIN commitmail json YAML

Add Intel 400 Series PCH-V devices.

(msaitoh)

2021-10-12 13:24:21 UTC MAIN commitmail json YAML

remove comment, it's fixed

(nia)

2021-10-12 13:24:00 UTC MAIN commitmail json YAML

crypt(3): Make Argon2 implementation match the reference impl by
making sure input salts are decoded as base64.

(nia)

2021-10-12 12:11:04 UTC MAIN commitmail json YAML

paranoia: use explicit_memset

(nia)

2021-10-12 12:03:47 UTC MAIN commitmail json YAML

pw_gensalt.3: add argon2 bits

(nia)

2021-10-12 11:08:14 UTC MAIN commitmail json YAML

passwd.conf.5: document using argon2

(nia)

2021-10-12 10:52:40 UTC MAIN commitmail json YAML

Add libcrypt tests for Argon2i/Argon2i, based on reference hashes
from the argon2 test suite.

(nia)

2021-10-12 10:51:33 UTC MAIN commitmail json YAML

crypt-argon2: Properly honor user's version number.

Follow upstream by defaulting to 0x10 if it's not specified.

(nia)

2021-10-12 09:40:39 UTC MAIN commitmail json YAML

crypt-argon2: improve resilience of the parser.

Allow the version number to be unspecified as in the argon2 upstream
test suite, properly defaulting to a version if the v= block is
entirely missing, and treating the remaining block as parameters.

Fix a null pointer derefence when the encoded password is unspecified
in the settings string.

(nia)

2021-10-12 08:36:29 UTC MAIN commitmail json YAML

2021-10-12 08:30:58 UTC MAIN commitmail json YAML

Set a port interface of lagg(4) in promiscuous mode
when the lagg(4) is in promiscuous mode.

(yamaguchi)

2021-10-12 08:26:47 UTC MAIN commitmail json YAML

lagg: update capabilities of ifnet and ethercom

Commonly capabilities of all child interface are configured
to a lagg interface.

(yamaguchi)

2021-10-12 08:09:51 UTC MAIN commitmail json YAML

Note that while sleeping (HUPCL), time passes.
Try to avoid the otherwise infinite loop.

(kre)

2021-10-12 07:43:49 UTC MAIN commitmail json YAML

Fix xrefs. Remove superfluous Pp.

(wiz)

2021-10-12 07:43:41 UTC MAIN commitmail json YAML

2021-10-12 06:25:17 UTC MAIN commitmail json YAML

Now Jason has made this build, avoid a 50+ year
sleep to implement HUPCL.

(kre)

2021-10-12 04:55:19 UTC MAIN commitmail json YAML

2021-10-12 04:12:30 UTC MAIN commitmail json YAML

Add buffer gap accessor to return the complete text of the buffer as a string

Bump version number

(agc)

2021-10-12 00:21:35 UTC MAIN commitmail json YAML

Fix the build by adding 'sc_hup_pending' member to com_softc that
was apparently forgotten.

(thorpej)

2021-10-11 20:31:06 UTC MAIN commitmail json YAML

indent: use separate variables for lexi_alnum and lexi

These two uses of the variable are independent of each other.

No functional change.

(rillig)

2021-10-11 20:23:25 UTC MAIN commitmail json YAML

Allow getty to exit quickly a few times before deciding that it is exiting
too quickly. Based on a FreeBSD change from 1994.

(jmcneill)

2021-10-11 20:13:46 UTC MAIN commitmail json YAML

indent: clean up comments in lexi and lexi_alnum

No functional change.

(rillig)

2021-10-11 19:55:35 UTC MAIN commitmail json YAML

indent: extract lexi_alnum from lexi

No functional change.

(rillig)

2021-10-11 19:04:47 UTC MAIN commitmail json YAML

indent: use bool for suppress_blanklines

It only ever got assigned the values 0 and 1.

No functional change.

(rillig)

2021-10-11 18:55:49 UTC MAIN commitmail json YAML

indent: remove dead code

(rillig)

2021-10-11 18:46:34 UTC MAIN commitmail json YAML

sysinst: fix typo in comment

(rillig)

2021-10-11 18:39:06 UTC MAIN commitmail json YAML

com: speed up close with HUPCL set

Instead of incurring a 1s penalty on close of a com device with HUPCL set,
defer the sleep until the next open, and only sleep if necessary.

This has a side effect of making `ttyflags -a` with a default install not
pause for 1s for every non-console com device, which happens every boot
via /etc/rc.d/ttys.

(jmcneill)

2021-10-11 18:19:27 UTC MAIN commitmail json YAML

wsmouse.9: document scrolling bits

(nia)

2021-10-11 18:08:12 UTC MAIN commitmail json YAML

msgc.1: fix typos

(rillig)

2021-10-11 18:06:06 UTC MAIN commitmail json YAML

wsmouse.4: document newer ioctls

accidentally missing from a previous commit, pointed out by tsutsui

(nia)

2021-10-11 17:23:28 UTC MAIN commitmail json YAML

sysinst: proofread German entropy translation

(rillig)

2021-10-11 17:02:55 UTC MAIN commitmail json YAML

2021-10-11 16:30:54 UTC MAIN commitmail json YAML

tests/indent: add more tests for -sob; nothing is swallowed at all

(rillig)

2021-10-11 15:47:10 UTC MAIN commitmail json YAML

Add Intel 500 Series PCH-H SMBus.

(msaitoh)

2021-10-11 15:43:20 UTC MAIN commitmail json YAML

Add some Intel KT devices.

(msaitoh)

2021-10-11 15:11:50 UTC MAIN commitmail json YAML

Avoid unaligned access in rge_get_macaddr(). Found by kUBSan.

(msaitoh)

2021-10-11 15:11:07 UTC MAIN commitmail json YAML

Use unsigned to avoid undefined behavior. Found by kUBSan.

(msaitoh)

2021-10-11 15:10:19 UTC MAIN commitmail json YAML

Add pmf_device_register().

(msaitoh)

2021-10-11 15:08:17 UTC MAIN commitmail json YAML

Add pmf_device_register().

(msaitoh)

2021-10-11 14:36:05 UTC MAIN commitmail json YAML

alloc_pages: panic if allocating beyond KERNEL_TEXT_BASE.

(rin)

2021-10-11 14:33:31 UTC MAIN commitmail json YAML

Wrap multi-line macros with ``do { } while(0)''.

(rin)

2021-10-11 14:30:30 UTC MAIN commitmail json YAML

Fix build with DEBUG_BEFOREMMU.

(rin)

2021-10-11 14:29:15 UTC MAIN commitmail json YAML

2021-10-11 14:25:05 UTC MAIN commitmail json YAML

Switch to kmem(9).

(rin)

2021-10-11 14:16:43 UTC MAIN commitmail json YAML

Sort headers.

(rin)

2021-10-11 14:14:40 UTC MAIN commitmail json YAML

Zero clear sh_offset to indicate a section is unused.

Avoid kernel text being doubly allocated due to non-zero sh_offset for
unused sections.

None of MD codes and kern_ksyms.c use sh_type == SHT_NULL (yet?) to
determine whether a section is unused.

(rin)

2021-10-11 13:42:33 UTC MAIN commitmail json YAML

add defflag for AHCISATA_EXTRA_DELAY

(jmcneill)

2021-10-11 13:27:47 UTC MAIN commitmail json YAML

wsconsctl: include correct header for lint

Running lint in non-tools mode picked up the header from the installed
system, not the one corresponding to the source code. The installed
header on NetBSD 9.99.88 does not define WSMOUSECFG_MAX yet.

(rillig)

2021-10-11 13:27:27 UTC MAIN commitmail json YAML

2021-10-11 13:26:52 UTC MAIN commitmail json YAML

Add Intel 500 Series PCH-H devices.

(msaitoh)

2021-10-11 13:25:20 UTC MAIN commitmail json YAML

Remove duplicated entries.

(msaitoh)

2021-10-11 12:48:10 UTC MAIN commitmail json YAML

ahcisata: remove excessive delays from drive probe path

There are a handful of inexplicable 500ms delays introduced to the drive
detect path in this driver, slowing boot. They can be re-enabled with
options AHCISATA_EXTRA_DELAY, but should not be enabled for normal kernels.
If a delay does need to be introduced in these places, the value should
either be more carefully selected or the scope limited to hardware that
requires the extra delay.

(jmcneill)

2021-10-11 10:59:09 UTC MAIN commitmail json YAML

Squash "holding up boot" messages into a single line, and only print the
device list if no progress has been made in 1 second.

(jmcneill)

2021-10-11 10:23:02 UTC MAIN commitmail json YAML

Use group 'e' instead of 'E' for the benefit of kdump.

Avoids collisions with envsys (EFIIOC_VAR_GET vs ENVSYS_GTREINFO).

(jmcneill)

2021-10-11 07:45:39 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2021-10-11 07:32:52 UTC MAIN commitmail json YAML

For some classic CPUs, info->[id]cache_sets are not initialized.
Calculate and print numbers of sets in this case.

(rin)

2021-10-11 07:31:19 UTC MAIN commitmail json YAML

2021-10-11 07:26:17 UTC MAIN commitmail json YAML

splx: Restore interrupts before dosoftints() for __HAVE_FAST_SOFTINTS.

No functional changes; All the users of arm32/spl.S, i.e., acorn32,
hpcarm/sa11x0, and shark have not switched to __HAVE_FAST_SOFTINTS yet.

(rin)

2021-10-11 07:19:37 UTC MAIN commitmail json YAML

pN steppings are used for ARM926EJ-S, although only r0 seems to be available.

(rin)

2021-10-11 06:30:24 UTC MAIN commitmail json YAML

Add missing inclusion of sys/bitops.h.

(msaitoh)

2021-10-11 05:13:11 UTC MAIN commitmail json YAML

2021-10-11 03:50:45 UTC MAIN commitmail json YAML

defparam NMBCLUSTERS_MAX.

(msaitoh)

2021-10-11 03:00:18 UTC MAIN commitmail json YAML

Add description for 3c572B aka OfficeConnect 572B.

(rin)

2021-10-11 02:42:46 UTC MAIN commitmail json YAML

epget: Tiny clean up for 16-bit buses.

- (offset & 1) must be zero, since IP header is aligned.

- Use bus_space_read_1(9) instead of bus_space_read_multi_1(9) for
  single-byte read.

(rin)

2021-10-11 02:35:18 UTC MAIN commitmail json YAML

Add commented-out ep(4) at pcmcia(4); it works just fine now.

Also add commented-out tqphy(4) for some ep(4) models.

(rin)

2021-10-11 02:30:01 UTC MAIN commitmail json YAML

Fix workaround for SH-3 PCMCIA bug in accordance with description
found in TECH I vol. 14 (CQ Publishing, Tokyo, 2002, in Japanese),
as well as experiment on real hardware:

Byte-access to area 6 becomes word-access (both CE1# and CE2# are
wrongly asserted), if preceding access is word-wise. Inserting a
dummy byte-access works around the problem. Area 5 is not affected.

Therefore,

(1) Insert a dummy byte-read before all byte-wise operations.

(2) Restrict the workaround to area 6 (channel 0), and rename
    fixup_sh3_pcmcia_area() to fixup_sh3_pcmcia_area6() for clarity.

Also, we used to use 0xba000000 (== HD64461_PCC0_IOBASE) as target
for the dummy read. However, this can modify device states, which
breaks ep(4) at least. Thus,

(3) Use HD64461_PCC0_MEMBASE as target for the dummy read. This is
    assigned to attribute memory space, and byte-read should be
    harmless.

(rin)

2021-10-11 01:49:08 UTC MAIN commitmail json YAML