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

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

2024-03-20 20:18:39 UTC MAIN commitmail json YAML

audio_wav_parse_hdr: handle zero-length data files again

the previous clean up turns zero-length data into no data and thus
an error, instead of simply doing nothing.  noted by gson.

(mrg)

2024-03-20 19:21:05 UTC MAIN commitmail json YAML

apei(4): Tweak some comments about the APEI interpreter language.

No functional change intended.

PR kern/58046

(riastradh)

2024-03-20 18:47:59 UTC MAIN commitmail json YAML

apei(4): Pacify -Wsign-compare.

Assert that the parsing made forward progress too while here.

PR kern/58046

(riastradh)

2024-03-20 17:11:44 UTC MAIN commitmail json YAML

2024-03-20 13:51:35 UTC MAIN commitmail json YAML

2024-03-20 13:50:51 UTC MAIN commitmail json YAML

libcrypto: Add expected symbol list to check at build-time.

(riastradh)

2024-03-20 13:50:37 UTC MAIN commitmail json YAML

bsd.lib.mk: Check expected vs actual symbols at build-time.

If, for LIB=foo, you create a file foo.expsym, bsd.lib.mk will list
the dynamic symbols and their versions with

nm --dynamic --extern-only --defined-only --with-symbol-versions

and compare the names (not addresses or types) to foo.expsym.  If
there are any differences, they will be printed and the build will
fail.

foo.expsym should be sorted with `LANG=C sort -u'.

This way, you can verify changes don't inadvertently add or remove
symbols.  If you do want to add (or, if you're bumping the major,
remove) symbols, you can verify the changes and edit the foo.expsym
file accordingly.  This will also help to enforce rules about symbol
changes on pullups in release branches.

Note that using a version map (-Wl,--version-script=...) doesn't
catch symbol removal -- ld quietly ignores symbols in the version map
that aren't actually defined by any object in the library.  So this
supplements the version map.

Proposed on tech-userlevel:
https://mail-index.NetBSD.org/tech-userlevel/2024/03/16/msg014264.html

(riastradh)

2024-03-20 12:43:13 UTC MAIN commitmail json YAML

acpi(4): Make apeibus actually work as an iattr.

PR kern/58046

(riastradh)

2024-03-20 06:15:40 UTC MAIN commitmail json YAML

sparc64/fpsetround: avoid shifting into the sign bit

Lint had warned about the constant expression '0x03 << 30' but not about
the structurally equal nonconstant expression '(rnd_dir & 0x03) << 30'.

No binary change.

(rillig)

2024-03-20 03:14:45 UTC MAIN commitmail json YAML

acpi(4): New iattr `apeibus' for attaching an APEI driver.

APEI is the ACPI Platform Error Interface, a standard (if very
complicated) interface for reporting hardware errors to the OS.

Firmware support for APEI is presented through the ACPI tables BERT
(Boot Error Record Table), ERST (Error Record Serialization Table),
EINJ (Error Injection Table), and HEST (Hardware Error Source Table),
rather than through nodes in the ACPI device tree, so it can't just
attach through the existing acpinodebus iattr and instead requires a
special pseudo-bus like acpiwdrt(4).

No driver yet -- this is just the hook to attach one in a module.

The new member sc_apei of struct acpi_softc is placed at the end of
the structure so that this change can be safely pulled up to release
branches without risk to ABI compatibility in existing modules such
as acpiverbose.kmod which may rely on the layout (but not size) of
struct acpi_softc.

PR kern/58046

(riastradh)

2024-03-20 00:35:21 UTC MAIN commitmail json YAML

Fix reproducible builds (Jan-Benedict Glaw)

(christos)

2024-03-20 00:34:33 UTC MAIN commitmail json YAML

remove extra stat (Jan-Benedict Glaw)

(christos)

2024-03-20 00:33:42 UTC MAIN commitmail json YAML

Fix reproducible builds (Jan-Benedict Glaw)

(christos)

2024-03-20 00:31:54 UTC MAIN commitmail json YAML

Fix reproducible builds (Jan-Benedict Glaw)

(christos)

2024-03-19 23:19:04 UTC MAIN commitmail json YAML

lint: keep invalid arguments in function calls

Previously, arguments of incomplete type or 'void' cleared all arguments
of the function call expression, requiring extra checks in later checks.

Invalid function calls are now exported to the .ln files, but that's
irrelevant in practice as these invalid function calls make lint1 fail,
after which xlint removes the .ln file.

(rillig)

2024-03-19 01:19:11 UTC MAIN commitmail json YAML

cpuctl.8: fix grammar in a sentence

(gutteridge)

2024-03-18 22:47:20 UTC MAIN commitmail json YAML

ipsec.4: minor grammatical improvements

(gutteridge)

2024-03-18 16:33:54 UTC MAIN commitmail json YAML

The fetestexcept_trap test case only makes sense on FPUs that implement
exceptions.

(martin)

2024-03-18 16:15:24 UTC MAIN commitmail json YAML

strptime(3): Declare digit d as time_t.

This doesn't make a semantic difference -- d can only take on the ten
values {0,1,2,3,4,5,6,7,8,9}, and the arithmetic with it later all
comes out the same whether the type is unsigned or time_t, even if
time_t were int32_t instead of int64_t.

But it pacifies overzealous compilers used by downstream users of
this code.  And while it's silly to use a much wider type (64-bit
signed) than is needed here to store a single digit, it doesn't
really hurt either (32-bit unsigned is much larger than needed too).

PR lib/58041

(riastradh)

2024-03-18 15:15:27 UTC MAIN commitmail json YAML

Use HUD_PEN instead of 0x0002 as appropriate

(jakllsch)

2024-03-17 22:05:24 UTC MAIN commitmail json YAML

hier(7): remove reference to /var/db/pkg

The pkg database lives in ${PREFIX}/pkgdb instead now.

Bump date.

(wiz)

2024-03-17 21:48:02 UTC MAIN commitmail json YAML

2024-03-17 21:37:53 UTC MAIN commitmail json YAML

s/argumment/argument/ in documentation.

(andvar)

2024-03-17 20:10:52 UTC MAIN commitmail json YAML

Prevent errant ucycom-presenting device from causing up to 225
bytes of kernel memory following input buffer to leak to tty
application.

Probably not practically expolitable, but you never know.

(jakllsch)

2024-03-16 23:40:26 UTC MAIN commitmail json YAML

Remove debug print

(ryoon)

2024-03-16 21:50:47 UTC MAIN commitmail json YAML

2024-03-16 18:17:39 UTC MAIN commitmail json YAML

s/Broardcast/Broadcast/ in comment.

(andvar)

2024-03-16 00:16:21 UTC MAIN commitmail json YAML

strptime(3): Reduce unnecessary indentation.

Post-fix tidying.

No functional change intended.

PR lib/58041

(riastradh)

2024-03-16 00:06:46 UTC MAIN commitmail json YAML

strptime(3): Avoid arithmetic overflow.

PR lib/58041

(riastradh)

2024-03-16 00:06:37 UTC MAIN commitmail json YAML

strptime(3): Exercise some edge cases in the automatic tests.

Unfortunately, we can't quite use strptime as a black box to detect
the cases that triggered undefined behaviour, because strptime just
fails in that case anyway since the number that would go in .tm_year
is far out of the representable range.

PR lib/58041

(riastradh)

2024-03-15 22:15:21 UTC MAIN commitmail json YAML

"retval = 0" should be "*retval = 0", should fix the broken build.

(andvar)

2024-03-15 20:09:31 UTC MAIN commitmail json YAML

Rewrite !VMSWAP uvm_swap_stats() macro as a static function. NFCI.

From riastradh

(andvar)

2024-03-15 18:10:37 UTC MAIN commitmail json YAML

2024-03-15 17:47:02 UTC MAIN commitmail json YAML

doc: changes from the last 2 weeks

(nia)

2024-03-15 15:49:01 UTC MAIN commitmail json YAML

doc/3RDPARTY: Note OpenSSL vendor/release tags.

(riastradh)

2024-03-15 15:32:07 UTC MAIN commitmail json YAML

libcrypto: Add some trivial tests for truncated SHA-512 variants.

These should use more of the test vectors from

https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing#Testing

but this will do for now to detect the buffer overrun rake we left
lying around for ourselves.

PR lib/58039

(riastradh)

2024-03-15 07:09:37 UTC MAIN commitmail json YAML

Fix !VMSWAP build:
Added __unused for few local variables, which are used in VMSWAP block only.
Adjust !VMSWAP uvm_swap_stats() definition to make it build with compat code.
Copied "int (*uvm_swap_stats50)(...)" definition from uvm_swap to uvm_swapstub
to avoid missing uvm_swap_stats50 reference on linking.

Fixes INSTALL_CPMBR1400, INSTALL_ZYXELKX evbmips kernel configs as a result.

Reviewed by simon and phone in IRC (thanks).

(andvar)

2024-03-15 02:20:59 UTC MAIN commitmail json YAML

evbarm/instkernel/sshramdisk: Put firmware in the right paths.

Maybe this should also be wired up to `release' to put the ramdisk in
the releasedir so we detect destdir path leakage like this had.

PR port-evbarm/58035

(riastradh)

2024-03-14 21:17:54 UTC MAIN commitmail json YAML

stat: don't allow numeric formatting flags on strings

Calling snprintf with "%+s" invokes undefined behavior.

(rillig)

2024-03-14 21:00:33 UTC MAIN commitmail json YAML

2024-03-14 19:38:56 UTC MAIN commitmail json YAML

While the change in 1.51 certainly retained binary compat with
what was in 1.50 (while silencing LINT) - it was clearly not the
correct change to make.  The code used !FLAG_POUND where it
clearly meant ~FLAG_POUND ... the former is 0, so &= 0 could
be replaced by =0 changing nothing.  But that's not what it
should have been doing, other flags should not have been
removed here, just FLAG_POUND.

This problem seems to have existed since support for %#s
was first added in 2011, which kind of suggests how rarely
that format, particularly with other flags (like %#-s)
has ever been used (with no other flags, the bug would not
be noticed).

(kre)

2024-03-14 16:43:00 UTC MAIN commitmail json YAML

Use ether_crc32_be() instead of having a local bitrev32() function to
munge ether_crc32_le() output when programming multicast filter.

(jakllsch)

2024-03-14 15:51:10 UTC MAIN commitmail json YAML

Sync with x86_64 the quad constants. No reason to be different

(christos)

2024-03-14 15:41:54 UTC MAIN commitmail json YAML

Fix reproducible build (Jan-Benedict Glaw)

(christos)

2024-03-14 15:39:23 UTC MAIN commitmail json YAML

2024-03-14 15:27:23 UTC MAIN commitmail json YAML

Remove Reserved usages and ranges thereof

Helps align with future merge

(jakllsch)

2024-03-14 15:23:52 UTC MAIN commitmail json YAML

2024-03-14 15:19:03 UTC MAIN commitmail json YAML

Be a bit more clear about which devices are being handled.

(pgoyette)

2024-03-14 13:18:36 UTC MAIN commitmail json YAML

2024-03-14 09:13:58 UTC MAIN commitmail json YAML

expat-2.6.2 is out

(wiz)

2024-03-14 00:07:20 UTC MAIN commitmail json YAML

stat: fix lint warning about constant argument to '!'

No binary change.

(rillig)

2024-03-14 00:00:31 UTC MAIN commitmail json YAML

fix some sizeof() confusion.

using "const char search[4]" as a function parameter means that
"search" is actually a pointer type so "sizeof search" returns
8 on 64-bit platforms.  i mis-read this and used "sizeof *search"
which is always 1, noted by rillig.

instead of trying to avoid writing "4" twice, put it in a define
and use that in various places instead.  annoying.

(mrg)

2024-03-13 12:56:31 UTC MAIN commitmail json YAML

2024-03-13 12:44:30 UTC MAIN commitmail json YAML

evbmips/interrupt.c: No need for __diagused with KASSERT.

KASSERT already references all the variables even in !DIAGNOSTIC
builds (but evaluates nothing at run-time in that case).

That said: Is the curlwp->l_blcnt assertion correct?  Can't curlwp be
changed in this interrupt handler by preemption?

(riastradh)

2024-03-13 08:13:56 UTC MAIN commitmail json YAML

Mention ascaudio(4).

(nat)

2024-03-13 07:55:29 UTC MAIN commitmail json YAML

Apple Sound Chip audio support for 68k Macintoshoes.

This provies a sound device and support for wsbell(4).

Manual page to be added in a followup commit.

As posted to port-mac68k.

(nat)

2024-03-13 07:22:16 UTC MAIN commitmail json YAML

Bluetooth low energy - A beginning at least.

This was the start of support for low energy bluetooth support that I have
not as yet completed.

I'm committing this as it gives the hci defines for an impementation in NetBSD.

(nat)

2024-03-13 06:59:01 UTC MAIN commitmail json YAML

Remove #ifdef DIAGNOSTIC by using __diagused. NFCI.

(skrll)

2024-03-13 06:56:24 UTC MAIN commitmail json YAML

tests/lint: ensure that lint correctly decays array parameter types

(rillig)

2024-03-13 06:48:49 UTC MAIN commitmail json YAML

lint: trim down the check for snprintb formats

(rillig)

2024-03-12 21:27:14 UTC MAIN commitmail json YAML

Fix non-DIAGNOSTIC build for evbmips.

mtx_count, biglock_count and blcnt are defined inside DIAGNOSTIC block, thus
KASSERTs using them should be guarded as well.

Seemingly introduced with matt-nb5-mips64 merge in 2011.

(andvar)

2024-03-12 20:35:29 UTC MAIN commitmail json YAML

tests/lint: extend test for previously wrong warning about bit-fields

(rillig)

2024-03-12 12:50:10 UTC netbsd-8 commitmail json YAML

2024-03-12 12:47:41 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by mrg in ticket #1948:

usr.bin/audio/common/auconv.h                  up to 1.6
usr.bin/audio/common/audio.c                    up to 1.27
usr.bin/audio/common/decode.c                  up to 1.2
usr.bin/audio/common/libaudio.h                up to 1.22
usr.bin/audio/common/sun.c                      up to 1.11
usr.bin/audio/common/wav.c                      up to 1.22
usr.bin/audio/play/audioplay.1                  up to 1.34
usr.bin/audio/play/play.c                      up to 1.64
usr.bin/audio/record/audiorecord.1              up to 1.45
usr.bin/audio/record/record.c                  up to 1.58

- support for playing 32-bit and 64-bit IEEE FP .wav files
- support for recording 24 bit .wav files
- read-overflow fixes for .wav files, and other fixes for the
  wav parser
- audioplay gains -n flag (no play, like make -n)
- audiorecord manual gained useful examples

(martin)

2024-03-12 12:45:42 UTC netbsd-9 commitmail json YAML

2024-03-12 12:41:39 UTC netbsd-9 commitmail json YAML

Pull up the following revisions, requested by mrg in ticket #1818:

usr.bin/audio/common/auconv.h                  up to 1.6
usr.bin/audio/common/audio.c                    up to 1.27
usr.bin/audio/common/decode.c                  up to 1.2
usr.bin/audio/common/libaudio.h                up to 1.22
usr.bin/audio/common/sun.c                      up to 1.11
usr.bin/audio/common/wav.c                      up to 1.22
usr.bin/audio/ctl/audioctl.1                    up to 1.25
usr.bin/audio/play/audioplay.1                  up to 1.34
usr.bin/audio/play/play.c                      up to 1.64
usr.bin/audio/record/audiorecord.1              up to 1.45
usr.bin/audio/record/record.c                  up to 1.58

- support for playing 32-bit and 64-bit IEEE FP .wav files
- support for recording 24 bit .wav files
- read-overflow fixes for .wav files, and other fixes for the
  wav parser
- audioplay gains -n flag (no play, like make -n)
- audioctl manual spruced up
- audiorecord manual gained useful examples

(martin)

2024-03-12 12:36:17 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/usbdi.c: revision 1.248

usbdi(9): Avoid calling ubm_softint with lock held and polling on.

PR kern/57783

(martin)

2024-03-12 12:34:50 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/usbdi.c: revision 1.248

usbdi(9): Avoid calling ubm_softint with lock held and polling on.

PR kern/57783

(martin)

2024-03-12 10:19:02 UTC netbsd-10 commitmail json YAML

2024-03-12 10:15:04 UTC netbsd-9 commitmail json YAML

2024-03-12 10:14:28 UTC netbsd-10 commitmail json YAML

2024-03-12 10:13:05 UTC netbsd-10 commitmail json YAML

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

usr.bin/kdump/kdump.c: revision 1.141
usr.bin/kdump/kdump.c: revision 1.142
usr.bin/kdump/kdump.c: revision 1.143
usr.bin/kdump/kdump.c: revision 1.144

PR/57918: Taylor R Campbell: Don't try to print symbolically ioctls that
have bits set on the high 32 bits of a 64 bit long.

PR bin/57918

Redo the previous correctly, the test should be whether or not only the
bottom 32 bits are set, rather than whether any of bits 32..63 are set.

This makes no difference if u_long (or unsigned long long) is 64 bits,
it is the same test in that case, but if u_long were 128 bits there is
a notable difference (though for the particular issue observed in the PR,
it is likely to work either way).
decode some {g,s}etsockopt*.

kdump: keep the comment with its corresponding code
No binary change.

(martin)

2024-03-12 10:04:23 UTC netbsd-10 commitmail json YAML

Pull up the following revisions, requested by mrg in ticket #634:

usr.bin/audio/common/auconv.h                  up to 1.6
usr.bin/audio/common/audio.c                    up to 1.27
usr.bin/audio/common/decode.c                  up to 1.2
usr.bin/audio/common/libaudio.h                up to 1.22
usr.bin/audio/common/sun.c                      up to 1.11
usr.bin/audio/common/wav.c                      up to 1.22
usr.bin/audio/play/audioplay.1                  up to 1.34
usr.bin/audio/play/play.c                      up to 1.64
usr.bin/audio/record/audiorecord.1              up to 1.45
usr.bin/audio/record/record.c                  up to 1.58

- support for recording 24 bit .wav files
- read-overflow fixes for .wav files, and other fixes for the
  wav parser
- audioplay gains -n flag (no play, like make -n)

(martin)

2024-03-12 09:59:31 UTC netbsd-9 commitmail json YAML

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

sys/dev/ic/nvme.c: revision 1.69

nvme(4): Disestablish admin q interrupt while suspended.

And re-establish on resume.  Fixes nvmectl(8) after a suspend/resume
cycle on some systems.

Adapted from a patch by mrg@.

PR kern/58025

(martin)

2024-03-12 09:58:27 UTC netbsd-10 commitmail json YAML

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

sys/dev/ic/nvme.c: revision 1.69

nvme(4): Disestablish admin q interrupt while suspended.

And re-establish on resume.  Fixes nvmectl(8) after a suspend/resume
cycle on some systems.

Adapted from a patch by mrg@.

PR kern/58025

(martin)

2024-03-12 09:42:55 UTC MAIN commitmail json YAML

remove accidentally left in debug goop

(macallan)

2024-03-12 09:36:06 UTC MAIN commitmail json YAML

use uint8_t for all 8bit masks and data to avoid sign extending weirdness
found by running this on hppa with gcc12

(macallan)

2024-03-12 07:56:08 UTC MAIN commitmail json YAML

lint: fix warning about loss of conversion for unsigned bit-fields

Since decl.c 1.180 from 2021-05-02.

(rillig)

2024-03-12 07:29:40 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong warning when comparing a bit-field

Since decl.c 1.180 from 2021-05-02, which allowed arbitrary integer
types to be used as the underlying type for bit-fields in GCC mode.

(rillig)

2024-03-12 02:28:03 UTC MAIN commitmail json YAML

wg(4): Rework example numbering for clarity and add IPv6.

Let's avoid triggering unease with host number 0.

PR misc/58015

(riastradh)

2024-03-12 02:26:16 UTC MAIN commitmail json YAML

coretemp.c: don't accept impossibly low TjMax values

r. 1.39 introduced a regression where instead of applying a reasonable
default maximum (as was done prior to that change), incorrect values
were accepted and applied, as failures to retrieve an expected MSR
value weren't accounted for.

Apply different logic for unexpectedly low vs. high maximums, with
distinct warnings for each. Also add another warning about a retrieval
failure right at the outset (which also just uses the default, then).

This change fundamentally doesn't address the fact that
__SHIFTOUT(msr, MSR_TEMP_TARGET_READOUT)
doesn't necessarily return a valid value. It just restores prior
behaviour, which is more reasonable than applying a zero value, which
started happening on some older hardware. (I infer this is most likely
an issue with dated generations of Intel hardware with this feature.)
The challenge is that this evidently isn't all documented properly
anywhere. Various "magic values" in this driver need further
investigation.

While here, also fix output so warnings are cleanly formatted, rather
than the slightly scrambled way they were appearing.

Tested on older Intel hardware I had on hand:
E7500 (now falls back to default 100 rather than 0)
E5540 (successfully retrieves 97, as before)
i5-3340M (successfully retrieves 105, as before)

(gutteridge)

2024-03-12 00:34:38 UTC MAIN commitmail json YAML

audioplay(1): handle mis-aligned RIFF chunks.

put the code to find RIFF chunks into a new find_riff_chunk() function,
and handle mis-aligned chunk lengths.  can now play files with chunks
that say they are 7 bytes long, and have 1 byte padding.

add some -V -V extra-verbose for the wav parser.

(mrg)

2024-03-11 23:12:29 UTC MAIN commitmail json YAML

minor clean up in the RIFF/WAVE header checking.

use memcmp() not strncmp() to check for "RIFF" and "WAVE".
avoid endian convesion on part.len 3 times.

(mrg)

2024-03-11 23:05:35 UTC MAIN commitmail json YAML

2024-03-11 23:03:35 UTC MAIN commitmail json YAML

add casts for compat code where time_t is 32 bits.

(christos)

2024-03-11 21:10:46 UTC MAIN commitmail json YAML

nvme(4): Disestablish admin q interrupt while suspended.

And re-establish on resume.  Fixes nvmectl(8) after a suspend/resume
cycle on some systems.

Adapted from a patch by mrg@.

PR kern/58025

(riastradh)

2024-03-11 20:11:22 UTC netbsd-10 commitmail json YAML

2024-03-11 20:09:49 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/xhci_pci.c: revision 1.33

Consistently use cached chipset tag value.

(martin)

2024-03-11 20:08:16 UTC netbsd-10 commitmail json YAML

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

sys/dev/pci/ehci_pci.c: revision 1.76

Consistently use cached chipset tag value.

(martin)

2024-03-11 20:06:31 UTC netbsd-8 commitmail json YAML

2024-03-11 20:05:15 UTC netbsd-8 commitmail json YAML

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

lib/libc/gen/getcap.c: revision 1.58

Fix memory leak in getent()

Memory was not freed if record was not found

(martin)

2024-03-11 20:04:39 UTC netbsd-9 commitmail json YAML

2024-03-11 20:02:12 UTC netbsd-9 commitmail json YAML

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

lib/libc/gen/getcap.c: revision 1.58

Fix memory leak in getent()

Memory was not freed if record was not found

(martin)

2024-03-11 20:00:54 UTC netbsd-10 commitmail json YAML

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

lib/libc/gen/getcap.c: revision 1.58

Fix memory leak in getent()

Memory was not freed if record was not found

(martin)

2024-03-11 19:39:23 UTC netbsd-10 commitmail json YAML

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

share/man/man4/wg.4: revision 1.7

wg(4): Spruce up example a bit.
- Suggest umask so the private keys aren't world readable.
- Suggest use of pre-shared key files.
- Use TEST-NET-1 and TEST-NET-2 addresses for the example instead of
  real publicly routable addresses.

Holding off on adding IPv6 example until the tun(4) issue is fixed
(PR bin/58013).

PR misc/58015

(martin)

2024-03-11 19:34:00 UTC netbsd-10 commitmail json YAML

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

sys/net/if_wg.c: revision 1.78

wg(4): Bind to CPU in wg_handle_packet.

Required by use of psref there.
Assert we're bound up front so we catch mistakes early, rather than
later on if we get unlucky in preemption and scheduling.

PR bin/58021

(martin)

2024-03-11 19:31:31 UTC netbsd-8 commitmail json YAML

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

sys/net/if_tun.c: revision 1.175

tun(4): Allow IPv6 packets with TUNSLMODE configured.
PR kern/58013

(martin)

2024-03-11 19:30:06 UTC netbsd-9 commitmail json YAML

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

sys/net/if_tun.c: revision 1.175

tun(4): Allow IPv6 packets with TUNSLMODE configured.
PR kern/58013

(martin)

2024-03-11 19:28:45 UTC netbsd-10 commitmail json YAML

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

sys/net/if_tun.c: revision 1.175

tun(4): Allow IPv6 packets with TUNSLMODE configured.
PR kern/58013

(martin)

2024-03-11 19:17:52 UTC MAIN commitmail json YAML

be sure to byte swap ext.len when checking/printing it.

noted by rillig@.

(mrg)

2024-03-11 18:04:54 UTC netbsd-8 commitmail json YAML

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

sys/kern/sysv_shm.c: revision 1.142 (patch)

Avoid overflow when computing kern.ipc.shmmax. Keep shmmax (bytes) and
shmall (pages) values aligned and use arithmetic everywhere instead
of shifts.

Should fix PR 57979

(martin)

2024-03-11 18:01:48 UTC netbsd-9 commitmail json YAML

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

sys/kern/sysv_shm.c: revision 1.142

Avoid overflow when computing kern.ipc.shmmax. Keep shmmax (bytes) and
shmall (pages) values aligned and use arithmetic everywhere instead
of shifts.

Should fix PR 57979

(martin)

2024-03-11 18:00:06 UTC netbsd-10 commitmail json YAML

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

sys/kern/sysv_shm.c: revision 1.142

Avoid overflow when computing kern.ipc.shmmax. Keep shmmax (bytes) and
shmall (pages) values aligned and use arithmetic everywhere instead
of shifts.

Should fix PR 57979

(martin)

2024-03-11 17:50:04 UTC netbsd-10 commitmail json YAML

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

usr.sbin/certctl/certctl.sh: revision 1.7

certctl(8): Pacify formal POSIX sh syntax.

According to POSIX 2018, the syntax between `then' and `elif' and
`fi' must be a _non-empty_ list of commands:
compound_list    : linebreak term
                | linebreak term separator
                ;
...
if_clause        : If compound_list Then compound_list else_part Fi
                | If compound_list Then compound_list          Fi
                ;
else_part        : Elif compound_list Then compound_list
                | Elif compound_list Then compound_list else_part
                | Else compound_list
                ;

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18
+_10_02

NetBSD's sh(1) currently doesn't enforce this and allows an empty
sequence of commands, but let's not rely on that nonstandard quirk.

Noted in PR 57997.

(martin)

2024-03-11 17:44:14 UTC netbsd-10 commitmail json YAML

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

usr.sbin/wgconfig/wgconfig.8: revision 1.11

Fix typo in wgconfig(8)
From rudolf in PR 57663

(martin)

2024-03-11 17:37:43 UTC netbsd-9 commitmail json YAML

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

etc/named.conf: revision 1.11
usr.sbin/postinstall/postinstall.in: revision 1.59
external/mpl/bind/dist/lib/isc/netmgr/netmgr-int.h: revision 1.11

Make sure that the extra field is maximally aligned since it is used for
other struct storage.
- fix named.conf (remove dnssec-enable option)
- use proper local variables instead of adding _ or other prefixes.
- centralize rm use
- use grep -q instead of > /dev/null
- reduce constant duplication

remove obsolete option "dnssec-enable"

(martin)

2024-03-11 17:25:20 UTC netbsd-10 commitmail json YAML

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

etc/named.conf: revision 1.11
usr.sbin/postinstall/postinstall.in: revision 1.59
external/mpl/bind/dist/lib/isc/netmgr/netmgr-int.h: revision 1.11
usr.sbin/postinstall/postinstall.in: revision 1.60
usr.sbin/postinstall/postinstall.in: revision 1.61

Make sure that the extra field is maximally aligned since it is used for
other struct storage.
- fix named.conf (remove dnssec-enable option)
- use proper local variables instead of adding _ or other prefixes.
- centralize rm use
- use grep -q instead of > /dev/null
- reduce constant duplication

no local in loops, simplify eval (thanks kre)

postinstall: fix endless loop (since 2024-03-07)

remove obsolete option "dnssec-enable"

(martin)

2024-03-11 17:12:53 UTC netbsd-10 commitmail json YAML

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

usr.sbin/certctl/certctl.sh: revision 1.6

certctl(8): Avoid basename(1).

Saves some time running subprocesses.  Since this is only used for
non-directories (i.e., there's never trailing / on the inputs), it
suffices to delete the longest prefix matching glob `*/' with shell
parameter expansion -- much cheaper than spawning a subprocess.

Shaves off about 1/3 of the time spent in `certctl list' on an
aarch64 VM in qemu.

PR bin/57993

(martin)

2024-03-11 17:09:43 UTC netbsd-10 commitmail json YAML

src/distrib/sets/lists/base/mi@1.1314.2.6 / diff / nxr@1.1314.2.6
src/doc/3RDPARTY@1.1905.2.14 / diff / nxr@1.1905.2.14
src/external/mpl/mozilla-certdata/dist/certdata.txt@1.1.1.1.2.3 / diff / nxr@1.1.1.1.2.3
src/external/mpl/mozilla-certdata/share/Makefile@1.2.2.3 / diff / nxr@1.2.2.3
src/external/mpl/mozilla-certdata/share/certdata.awk@1.1.2.3 / diff / nxr@1.1.2.3
src/external/mpl/mozilla-certdata/share/certs/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.1.pem deleted
src/external/mpl/mozilla-certdata/share/certs/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem@1.1.2.3 / diff / nxr@1.1.2.3
src/external/mpl/mozilla-certdata/share/certs/Chambers_of_Commerce_Root_-_2008.pem deleted
src/external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_ECC_Root-01.pem@1.1.4.2 / diff / nxr@1.1.4.2
src/external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_ECC_Root-02.pem@1.1.4.2 / diff / nxr@1.1.4.2
src/external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_RSA_Root-01.pem@1.1.4.2 / diff / nxr@1.1.4.2
src/external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_RSA_Root-02.pem@1.1.4.2 / diff / nxr@1.1.4.2
src/external/mpl/mozilla-certdata/share/certs/D-Trust_SBR_Root_CA_1_2022.pem@1.1.4.2 / diff / nxr@1.1.4.2
src/external/mpl/mozilla-certdata/share/certs/D-Trust_SBR_Root_CA_2_2022.pem@1.1.4.2 / diff / nxr@1.1.4.2
src/external/mpl/mozilla-certdata/share/certs/Global_Chambersign_Root_-_2008.pem deleted
src/external/mpl/mozilla-certdata/share/certs/Security_Communication_Root_CA.pem deleted
src/external/mpl/mozilla-certdata/share/certs/Symantec_Class_1_Public_Primary_Certification_Authority_-_G6.pem deleted
src/external/mpl/mozilla-certdata/share/certs/Symantec_Class_2_Public_Primary_Certification_Authority_-_G6.pem deleted
src/external/mpl/mozilla-certdata/share/certs/Telekom_Security_SMIME_ECC_Root_2021.pem@1.1.4.2 / diff / nxr@1.1.4.2
src/external/mpl/mozilla-certdata/share/certs/Telekom_Security_SMIME_RSA_Root_2023.pem@1.1.4.2 / diff / nxr@1.1.4.2
      :
(more 11 files)
Pull up following revision(s) (requested by riastradh in ticket #620):

external/mpl/mozilla-certdata/dist/certdata.txt up to 1.1.1.2
external/mpl/mozilla-certdata/share/certs/TrustCor_RootCert_CA-2.pem: file removal
external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_ECC_Root-01.pem: revision 1.1
distrib/sets/lists/base/mi: revision 1.1334
external/mpl/mozilla-certdata/share/certs/Global_Chambersign_Root_-_2008.pem: file removal
external/mpl/mozilla-certdata/share/certs/Telekom_Security_SMIME_ECC_Root_2021.pem: revision 1.1
doc/3RDPARTY: revision 1.1994
external/mpl/mozilla-certdata/share/certs/TrustAsia_Global_Root_CA_G3.pem: revision 1.1
external/mpl/mozilla-certdata/share/email.trust: revision 1.2
external/mpl/mozilla-certdata/share/certs/Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem: file removal
external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_RSA_Root-01.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem: file removal
external/mpl/mozilla-certdata/share/certs/D-Trust_SBR_Root_CA_2_2022.pem: revision 1.1
external/mpl/mozilla-certdata/share/server.trust: revision 1.2
external/mpl/mozilla-certdata/share/certs/D-Trust_SBR_Root_CA_1_2022.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/Telekom_Security_TLS_ECC_Root_2020.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/TrustCor_RootCert_CA-1.pem: file removal
external/mpl/mozilla-certdata/share/certs/Security_Communication_Root_CA.pem: file removal
external/mpl/mozilla-certdata/share/certs/Symantec_Class_2_Public_Primary_Certification_Authority_-_G6.pem: file removal
doc/3RDPARTY: revision 1.1982
external/mpl/mozilla-certdata/share/certs/Telekom_Security_TLS_RSA_Root_2023.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/Symantec_Class_1_Public_Primary_Certification_Authority_-_G6.pem: file removal
external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_ECC_Root-02.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/Telekom_Security_SMIME_RSA_Root_2023.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/Chambers_of_Commerce_Root_-_2008.pem: file removal
external/mpl/mozilla-certdata/share/certs/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem: revision 1.2
external/mpl/mozilla-certdata/share/certs/TrustCor_ECA-1.pem: file removal
external/mpl/mozilla-certdata/share/Makefile: revision 1.4
external/mpl/mozilla-certdata/share/certs/TrustAsia_Global_Root_CA_G4.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/CommScope_Public_Trust_RSA_Root-02.pem: revision 1.1
external/mpl/mozilla-certdata/share/certs/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.1.pem: file removal
external/mpl/mozilla-certdata/share/certdata.awk: revision 1.3

new mozilla-certdata out

mozilla-certdata: Update Mozilla certdata.txt.
nss hg date: 2024-02-12
nss hg revision: c17a3709bdd6e706040ac268a1d2b488c2fab5d8
Status:
Vendor Tag:    MOZILLA-CERTDATA
Release Tags:  mozilla-certdata-20240212
U src/external/mpl/mozilla-certdata/dist/certdata.txt
No conflicts created by this import
From http://mail-index.netbsd.org/source-changes/2024/03/03/msg150226.html:
Committed By:  riastradh
Date:          Sun Mar  3 04:24:41 UTC 2024

mozilla-certdata: Update reference in Makefile.
mozilla-certdata: regen
mozilla-certdata: Update set lists.

doc/3RDPARTY: mozilla-certdata is up-to-date.
mozilla-certdata: Fix typo: sprintf, not snprintf, in awk.
Only used during import, and only in case something is wrong anyway
requiring manual intervention, so no change to builds.

(martin)

2024-03-10 19:45:14 UTC MAIN commitmail json YAML

2024-03-10 19:22:56 UTC netbsd-8 commitmail json YAML

2024-03-10 19:22:09 UTC netbsd-9 commitmail json YAML

2024-03-10 19:21:05 UTC netbsd-10 commitmail json YAML

2024-03-10 19:13:09 UTC netbsd-8 commitmail json YAML

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

sys/netinet6/in6.c: revision 1.292

netinet6: Avoid NPD on `ifconfig ifN inet6 ... pltime 0 vltime 0'.
PR kern/53922

(martin)

2024-03-10 19:12:05 UTC netbsd-9 commitmail json YAML

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

sys/netinet6/in6.c: revision 1.292

netinet6: Avoid NPD on `ifconfig ifN inet6 ... pltime 0 vltime 0'.
PR kern/53922

(martin)

2024-03-10 19:11:07 UTC netbsd-10 commitmail json YAML

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

sys/netinet6/in6.c: revision 1.292

netinet6: Avoid NPD on `ifconfig ifN inet6 ... pltime 0 vltime 0'.
PR kern/53922

(martin)

2024-03-10 19:07:42 UTC netbsd-10 commitmail json YAML

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

sys/netinet/if_arp.c: revision 1.312

Attribute debug message.
Fixes PR 57959

(martin)

2024-03-10 19:05:46 UTC netbsd-8 commitmail json YAML

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

usr.bin/getconf/getconf.c: revision 1.37
usr.bin/getconf/getconf.1: revision 1.14

PR/57875: Jason Bacon: Try again without an _ for portability.
getconf.1: Note that leading underscores in configuration
variable names are ignored by getconf(1).

While here, add a section with examples, and make the synopsis
more concise.

PR bin/57875

(martin)

2024-03-10 19:04:39 UTC netbsd-9 commitmail json YAML

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

usr.bin/getconf/getconf.c: revision 1.37
usr.bin/getconf/getconf.1: revision 1.14

PR/57875: Jason Bacon: Try again without an _ for portability.
getconf.1: Note that leading underscores in configuration
variable names are ignored by getconf(1).

While here, add a section with examples, and make the synopsis
more concise.

PR bin/57875

(martin)

2024-03-10 19:03:30 UTC netbsd-10 commitmail json YAML

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

usr.bin/getconf/getconf.c: revision 1.37
usr.bin/getconf/getconf.1: revision 1.14

PR/57875: Jason Bacon: Try again without an _ for portability.
getconf.1: Note that leading underscores in configuration
variable names are ignored by getconf(1).

While here, add a section with examples, and make the synopsis
more concise.

PR bin/57875

(martin)

2024-03-10 19:00:27 UTC netbsd-8 commitmail json YAML

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

sys/dev/usb/if_urtwn.c: revision 1.109 (patch)

urtwn(4): Ditch old queued commands on overflow.
Don't increment ring->queued past what the task will decrement.

This is a stop-gap measure; really, we should just have one task for
each operation that is deferred to the task thread.

PR kern/57965

(martin)

2024-03-10 18:59:19 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/if_urtwn.c: revision 1.109 (patch)

urtwn(4): Ditch old queued commands on overflow.
Don't increment ring->queued past what the task will decrement.

This is a stop-gap measure; really, we should just have one task for
each operation that is deferred to the task thread.

PR kern/57965

(martin)

2024-03-10 18:57:11 UTC netbsd-10 commitmail json YAML

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

sys/dev/usb/if_urtwn.c: revision 1.109

urtwn(4): Ditch old queued commands on overflow.
Don't increment ring->queued past what the task will decrement.

This is a stop-gap measure; really, we should just have one task for
each operation that is deferred to the task thread.

PR kern/57965

(martin)

2024-03-10 18:54:41 UTC MAIN commitmail json YAML

kdump: keep the comment with its corresponding code

No binary change.

(rillig)

2024-03-10 18:54:41 UTC netbsd-9 commitmail json YAML

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

sys/netinet6/raw_ip6.c: revision 1.184 (patch)
sys/netinet6/icmp6.c: revision 1.256 (patch)

Deliver timestamps also to raw sockets.
Fixes PR 57955

(martin)

2024-03-10 18:51:54 UTC netbsd-10 commitmail json YAML

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

sys/netinet6/raw_ip6.c: revision 1.184
sys/netinet6/icmp6.c: revision 1.256

Deliver timestamps also to raw sockets.
Fixes PR 57955

(martin)

2024-03-10 18:48:57 UTC netbsd-8 commitmail json YAML

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

lib/libc/net/getnameinfo.3: revision 1.43

Document the NI_NUMERICSCOPE flag.
PR lib/57832

(martin)

2024-03-10 18:44:37 UTC netbsd-9 commitmail json YAML

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

lib/libc/net/getnameinfo.3: revision 1.43

Document the NI_NUMERICSCOPE flag.
PR lib/57832

(martin)

2024-03-10 18:42:42 UTC netbsd-10 commitmail json YAML

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

lib/libc/net/getnameinfo.3: revision 1.43

Document the NI_NUMERICSCOPE flag.
PR lib/57832

(martin)

2024-03-10 18:36:12 UTC netbsd-10 commitmail json YAML

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

sys/dev/usb/usbdi.c: revision 1.248
sys/dev/usb/usbdi.c: revision 1.249

usbdi(9): Avoid calling ubm_softint with lock held and polling on.
usbdi(9): Avoid taking locks in usbd_transfer while polling.

PR kern/57783

(martin)

2024-03-10 18:23:18 UTC MAIN commitmail json YAML

postinstall: fix parameter order in usage message

(rillig)

2024-03-10 18:00:13 UTC MAIN commitmail json YAML

compiler_rt: allow signed bit shifts for __negv

Standard C defines '1 << 31' as undefined behavior, but
https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html allows
it for GCC.

(rillig)

2024-03-10 17:36:33 UTC MAIN commitmail json YAML

PR/58018: Damir Holovati: ext2fs readdir (d_type conversion error)

(christos)

2024-03-10 17:34:47 UTC MAIN commitmail json YAML

2024-03-10 17:16:26 UTC MAIN commitmail json YAML

lsi64854reg: fix snprintb formats DDMACSR_BITS and PDMACSR_BITS

(rillig)

2024-03-10 17:08:31 UTC MAIN commitmail json YAML

decode some {g,s}etsockopt*.

(christos)

2024-03-10 17:07:31 UTC MAIN commitmail json YAML

powerpc/hid: fix snprintb format for HID0_970_BITMASK_U

(rillig)

2024-03-10 17:02:24 UTC MAIN commitmail json YAML

sparc/sbusreg: fix snprintb format for SBUS_AFSR_BITS

(rillig)

2024-03-10 16:58:08 UTC MAIN commitmail json YAML

sparc/vmereg: fix snprintb format VMEBUS_AFSR_BITS

(rillig)

2024-03-10 16:27:16 UTC MAIN commitmail json YAML

lint: clean up tree matcher for snprintb calls

(rillig)

2024-03-10 16:06:13 UTC MAIN commitmail json YAML

lint: saturate signed integer overflow

In array address calculations, this prevents a 'array subscript cannot
be negative' for large array subscripts.

(rillig)

2024-03-10 15:49:12 UTC MAIN commitmail json YAML

lint: fix integer overflow detection

Previously, an unsigned operation that had a negative result went
undetected in a few cases. Now, all results that are not representable
by their type are considered overflows.

The implementation of signed shift-right had been wrong for a few
commits.

(rillig)

2024-03-10 14:42:04 UTC MAIN commitmail json YAML

lint: clean up check for overflow in integer constants

(rillig)

2024-03-10 14:32:30 UTC MAIN commitmail json YAML

lint: detect more cases of integer overflow in constant expressions

For unsigned integers, detect when 'a + b' wraps around.

(rillig)

2024-03-10 13:47:32 UTC netbsd-8 commitmail json YAML

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

lib/libc/net/getnameinfo.c: revision 1.60

PR/57609: Carl Engvall: Add salen checks but accept larger sizes
(upto sockaddr_storage)

(martin)

2024-03-10 13:46:04 UTC netbsd-9 commitmail json YAML

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

lib/libc/net/getnameinfo.c: revision 1.60

PR/57609: Carl Engvall: Add salen checks but accept larger sizes
(upto sockaddr_storage)

(martin)

2024-03-10 13:44:35 UTC netbsd-10 commitmail json YAML

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

lib/libc/net/getnameinfo.c: revision 1.60

PR/57609: Carl Engvall: Add salen checks but accept larger sizes
(upto sockaddr_storage)

(martin)

2024-03-10 12:50:46 UTC MAIN commitmail json YAML

lint: split integer overflow check into separate functions

The checks for unsigned and signed integers differ for each operator, so
there's no point having both parts in the same function.

(rillig)

2024-03-10 10:39:19 UTC MAIN commitmail json YAML

tests/lint: enable test for integer overflow in array index

(rillig)

2024-03-10 10:31:29 UTC MAIN commitmail json YAML

2024-03-10 10:15:52 UTC MAIN commitmail json YAML

lint: fix integer overflow in integer overflow check

(rillig)

2024-03-10 09:58:30 UTC MAIN commitmail json YAML

tests/lint: test integer overflow when folding constants

The test is still incomplete, yet it has discovered several bugs that
are worth fixing.

(rillig)

2024-03-10 09:24:54 UTC MAIN commitmail json YAML

lint: in check for integer overflow, sort operators

(rillig)

2024-03-10 04:49:22 UTC MAIN commitmail json YAML

nvme(4): don't write to INTMC register if in intx mode

this matches the handling of INTMS, both of which have the same
restrictions on access in MSI-X mode.

ideally, this register should be written to with a full set of
values for MSI (upto 32 bits), but trying to force MSI mode for
my test machine makes the system unstable.

tested with samsung SM981 256GB, samsung 980 PRO 1TB, and intel
760p 250G.

(mrg)

2024-03-10 04:21:47 UTC MAIN commitmail json YAML

wg(4): Bind to CPU in wg_handle_packet.

Required by use of psref there.

Assert we're bound up front so we catch mistakes early, rather than
later on if we get unlucky in preemption and scheduling.

PR bin/58021

(riastradh)

2024-03-10 02:53:38 UTC MAIN commitmail json YAML

make: record exit status in GNode

SetErrorVars can now set .ERROR_EXIT which allows
a .ERROR target to ignore the case of .ERROR_EXIT == 6
which means failure happened elsewhere.

Reviewed by:

(sjg)

2024-03-09 23:55:11 UTC MAIN commitmail json YAML

lint: fix excessive overflow warning after division by zero

(rillig)

2024-03-09 22:03:32 UTC MAIN commitmail json YAML

aq(4): always poll for link status

some devices don't have working link status and rather than have
a likely incomplete list of issues, always poll as well as use
the interrupt if possible.

fixes link status on this device:

aq0 at pci5 dev 0 function 0: Aquantia AQC107 10 Gigabit Network Adapter (rev. 0x02)
aq0: Atlantic revision B1, F/W version 3.1.88

(was otherwise functional, just didn't report status, which likely
meant eg, dhcpcd would be upset?)

idea via mlelstv@ from linux.

remove sc_detect_linkstat and rename sc_poll_linkstat to
sc_no_link_intr, as the meaning has changed.  simplify the signature
for aq_setup_msix() and aq_establish_msix_intr(), removing forward
decls that aren't required.  obsolete AQ_FORCE_POLL_LINKSTAT.

(mrg)

2024-03-09 18:43:39 UTC MAIN commitmail json YAML

dlfcn.3: remove duplicated dlopen() entry

(gutteridge)

2024-03-09 18:27:00 UTC netbsd-10 commitmail json YAML

2024-03-09 18:25:30 UTC netbsd-10 commitmail json YAML

Apply patch, requested by martin in ticket #623:
external/bsd/tcpdump/dist/print-ppp.c patch

Apply upstream commit 32027e199368dad9508965aae8cd8de5b6ab5231
to fix CVE-2020-803:

  PPP: When un-escaping, don't allocate a too-large buffer.

  The buffer should be big enough to hold the captured data, but it
  doesn't need to be big enough to hold the entire on-the-network packet,
  if we haven't captured all of it.

fixes PR 57586

(bouyer)

2024-03-09 17:34:01 UTC MAIN commitmail json YAML

2024-03-09 16:47:10 UTC MAIN commitmail json YAML

2024-03-09 15:21:38 UTC MAIN commitmail json YAML

dlfcn(3): touch up markup

(uwe)

2024-03-09 14:54:14 UTC MAIN commitmail json YAML

lint: merge duplicate code for checking array index

(rillig)

2024-03-09 13:55:28 UTC MAIN commitmail json YAML

tun(4): Allow IPv6 packets with TUNSLMODE configured.

PR kern/58013

(riastradh)

2024-03-09 13:54:47 UTC MAIN commitmail json YAML

2024-03-09 13:48:50 UTC MAIN commitmail json YAML

Don't use uninitialized variable.
Fixes PR 57895.

(mlelstv)

2024-03-09 13:20:55 UTC MAIN commitmail json YAML

2024-03-09 12:36:07 UTC MAIN commitmail json YAML

wg(4): Spruce up example a bit.

- Suggest umask so the private keys aren't world readable.
- Suggest use of pre-shared key files.
- Use TEST-NET-1 and TEST-NET-2 addresses for the example instead of
  real publicly routable addresses.

Holding off on adding IPv6 example until the tun(4) issue is fixed
(PR bin/58013).

PR misc/58015

(riastradh)

2024-03-09 11:55:59 UTC MAIN commitmail json YAML

Fix a null dereference (on attach failure).
During cleanup, setup_queue may be called even before vsc->sc_vqs is assigned.

(isaki)

2024-03-09 11:16:31 UTC MAIN commitmail json YAML

Fix a null dereference.
free_interrupts may be called even when sc_ih has not been assigned yet.

(isaki)

2024-03-09 11:05:05 UTC MAIN commitmail json YAML

lint: clean up comments, use typedefs

(rillig)

2024-03-09 11:04:22 UTC MAIN commitmail json YAML

Modify a confused expression in ld_virtio_attach().
VIRTIO_BLK_MIN_SEGMENTS should be the total number of non-data segments,
so I rename it to VIRTIO_BLK_CTRL_SEGMENTS.
PR kern/57981.

(isaki)

2024-03-09 10:54:12 UTC MAIN commitmail json YAML

lint: internally store case label values in order of appearance

(rillig)

2024-03-09 10:47:16 UTC MAIN commitmail json YAML

2024-03-09 10:41:11 UTC MAIN commitmail json YAML

2024-03-09 09:55:52 UTC MAIN commitmail json YAML

drm(4): make pr_debug equivalent to aprint_debug

significantly reduces the default spam from amdgpu(4).

(mrg)

2024-03-09 06:53:48 UTC MAIN commitmail json YAML

skip this subdir for "make includes".

it's excessively slow and does nothing (nor should it.)

(mrg)

2024-03-09 06:51:40 UTC MAIN commitmail json YAML

postinstall: fix endless loop (since 2024-03-07)

(rillig)

2024-03-09 06:51:24 UTC MAIN commitmail json YAML

avoid rebuilding texi files in the read-only source tree

(mrg)

2024-03-09 06:50:15 UTC MAIN commitmail json YAML

allow XZ_OPT to be overriden.

(mrg)

2024-03-09 05:22:05 UTC MAIN commitmail json YAML

pmf(9): Document the bug in pmf_device_register return type.

PR kern/57575

(riastradh)

2024-03-08 23:34:03 UTC MAIN commitmail json YAML

heartbeat(9): Return early if panicstr is set.

This way we avoid doing unnecessary work -- and print unnecessary
messages -- to _not_ trigger another panic anyway.

PR kern/58011

(riastradh)

2024-03-08 20:29:18 UTC MAIN commitmail json YAML

cpuctl: fix i386 bit descriptions for CPUID_SEF_FLAGS1

warning: non-printing character '\31' in description
    'BUS_LOCK_DETECT""b\31' [363]

(rillig)

2024-03-08 19:45:59 UTC MAIN commitmail json YAML

ifconfig: fix agr status

Previously, when the interface was collecting, its status was reported
as '<COLLECTING,DISTRIBUTING>', even when it was not distributing.

sbin/ifconfig/agr.c(170): warning: 'b\0DISTRIBUTING\0' overlaps earlier
    'b\0COLLECTING\0' on bit 0 [376]

(rillig)

2024-03-08 07:05:02 UTC MAIN commitmail json YAML

give some anonymous structures names

(mrg)

2024-03-08 06:57:59 UTC MAIN commitmail json YAML

audio_wav_parse_hdr(): avoid buffer overreads and clean up

reimplement most of this function using a new method of buffer
management to ensure that we never read beyond the provided size.

properly handle RIFF chunk lengths, instead of assuming various
offsets from most files are right.

update list of consumed documentation and fill the list of WAVE
formats from RFC 2361 (most remain not supported.)

should fix PR#57973.

tested against a large number of .wav files i have handy and with
a testsuite generator that should be incoming soon.

(mrg)

2024-03-07 23:03:55 UTC MAIN commitmail json YAML

sysctl.7: simplify statements about net.inet6 variables

(gutteridge)

2024-03-07 22:15:53 UTC MAIN commitmail json YAML

2024-03-07 22:14:20 UTC MAIN commitmail json YAML

2024-03-07 22:03:16 UTC MAIN commitmail json YAML

no local in loops, simplify eval (thanks kre)

(christos)

2024-03-07 20:42:04 UTC MAIN commitmail json YAML

pass lint on sparc64 where int_fast32_t is long.

(christos)

2024-03-07 17:10:37 UTC MAIN commitmail json YAML

Make sure that the extra field is maximally aligned since it is used for
other struct storage.

(christos)

2024-03-07 16:54:16 UTC MAIN commitmail json YAML

- fix named.conf (remove dnssec-enable option)
- use proper local variables instead of adding _ or other prefixes.
- centralize rm use
- use grep -q instead of > /dev/null
- reduce constant duplication

(christos)

2024-03-07 14:21:03 UTC MAIN commitmail json YAML

remove obsolete option "dnssec-enable"

(christos)

2024-03-07 00:35:11 UTC MAIN commitmail json YAML

3RDPARTY: autoconf is at 2.72 now

(gutteridge)

2024-03-06 22:18:56 UTC MAIN commitmail json YAML

wwanc(4): amend Nd; Xr from pci(4)

(cnst)

2024-03-06 20:18:42 UTC MAIN commitmail json YAML

2024-03-06 20:02:24 UTC MAIN commitmail json YAML