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


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




switch to index mode

recent branches: MAIN (1h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-10 00:32:46 UTC Now

2024-05-01 02:16:15 UTC MAIN commitmail json YAML

etc.evbppc/MAKEDEV.conf: drop unused block and fix comment

(gutteridge)

2024-04-30 19:35:29 UTC MAIN commitmail json YAML

viac7temp(4): rewrite temperature sensor to read value from MSR instead of using
documented cpuid instruction and eax register.

This approach is adapted from linux via-cputemp.c, no official documentation is
currently available. However, msr value seems to work on all tested CPUs while
documented cpuid instruction typically reports 0, even for my C7-D CPU.
msr value seems to have temperature in Celsius in lower 24-bits without fraction
(thus "msr & 0xffffff;" is used).

Tested on my personal systems based on CPUs below (i386 and amd64):
C7-D 1.6GHz (i386 only), Nano X2 L4350E, Nano X2 U4300, U2300 Nano, KX-U6580.
Also got one response via email which was based on Nano X2 L4050 (VE-900).
Nano reports independent values for each core.
KX-U6580 seems to show the same value for all cores but more testing is needed.

Since it works on amd64 capable CPUs, adding driver to GENERIC kernel config.
Also moving viac7temp man page to x86 instead of i386 (with updates).
In theory the change should add support for all VIA Nano CPUs and Zhaoxin CPUs
at least up to KX-6000(G) series.

In the future I may need to introduce amd64 kernel module as well.

Plan to pullup to at least netbsd-10.

Patch mainly reviewed by riastradh.

(andvar)

2024-04-30 18:34:19 UTC MAIN commitmail json YAML

2024-04-30 17:10:22 UTC MAIN commitmail json YAML

Enable compat sigreturn system call.

The previous bug in netbsd32___sigaction_sigtramp hid the problem,
as it failed all but the first installation of a signal handler.

(mlelstv)

2024-04-30 16:41:33 UTC MAIN commitmail json YAML

2024-04-30 16:13:34 UTC MAIN commitmail json YAML

make: ensure '.include <makefile>' respects MAKESYSPATH

Since Dir_FindFile is used by '.include' and its variants,
and will first search .CURDIR unless the give path starts with
".DOTLAST".

Update unit-tests/opt-m-include-dir to test this.

(sjg)

2024-04-30 09:55:46 UTC MAIN commitmail json YAML

Fix another fatal typo that prevents dma(4) interrupts.

(tsutsui)

2024-04-30 05:06:09 UTC MAIN commitmail json YAML

Fix fatal typo that prevents all intio devices probed.

(tsutsui)

2024-04-30 02:05:00 UTC MAIN commitmail json YAML

When creating the tags file, include the sources in sys/arch/arm/xilinx/.

(dyoung)

2024-04-30 01:18:40 UTC MAIN commitmail json YAML

sprinkle gcc=12 and rump attributes

(macallan)

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

xdm(1) was renamed xdm(8) a long while ago.  catch up location.

add support for section 8 X manuals.  amusingly, we already knew
to convert __adminmansuffix__ into "8", but not how to create
.8 from X .man.

(mrg)

2024-04-29 21:29:48 UTC MAIN commitmail json YAML

Make dwiic_pci compile without ACPI option.

(andvar)

2024-04-29 21:25:34 UTC MAIN commitmail json YAML

ihidev(4): make driver compile with ACPI option disabled.

This change unlikely useful in practice, but adds consistency to already
available guards. Driver won't attach currently without ACPI.

(andvar)

2024-04-29 17:47:27 UTC MAIN commitmail json YAML

Check tc_waitbusy() before writing palette registers in topcat_setcolor().

This seems to make palette operations more stable on my HP360 with HP98543.

(tsutsui)

2024-04-29 17:39:59 UTC MAIN commitmail json YAML

Use proper planemask per a vaild number of planes.

(tsutsui)

2024-04-29 17:25:11 UTC MAIN commitmail json YAML

Fix MD allocattr to return proper attributes what MI rasops(9) expects.

(tsutsui)

2024-04-29 15:34:57 UTC MAIN commitmail json YAML

Move a check of topcat(4) specific fb width quirks to topcat.c.

We need to check fb->planes but it's propbed in topcat.c after
common diofb_fbinquire() is called.

Also add a comment that it looks these 1 bpp and 4 bpp boards have
VRAM with sparse address layout and we have to handle
512 pixels per line with 1024 bytes per line.

(tsutsui)

2024-04-29 14:58:32 UTC MAIN commitmail json YAML

Increase DELAY() for waitbusy macroes as pre-wscons and 4.4BSD did.

It looks necessary for sane palette ops at least on HP98543 topcat
on 68030 HP 9000/360.

(tsutsui)

2024-04-29 14:56:01 UTC MAIN commitmail json YAML

In netbsd32___sigaction_sigtramp continue to use the compat module when
already locked for this process.

Needs pullup to netbsd-10.

(mlelstv)

2024-04-29 14:42:07 UTC MAIN commitmail json YAML

Don't panic as a fatal error on receiving packets with invalid length.

Such errors could happen on aged and fragile 10BASE-2 hub etc.

(tsutsui)

2024-04-29 07:34:27 UTC MAIN commitmail json YAML

2024-04-29 07:33:32 UTC MAIN commitmail json YAML

2024-04-29 07:31:18 UTC MAIN commitmail json YAML

Ensure a user specified DBG isn't used for xxboot.

(skrll)

2024-04-29 07:13:42 UTC MAIN commitmail json YAML

Use LINKS to create hard links to generate proper METALOG files.

Also use the default ${PROG} variable and "install" target.

Fixes PR port-hp300/58211.
Should be pulled up to netbsd-10 and netbsd-9.

(tsutsui)

2024-04-29 00:50:43 UTC MAIN commitmail json YAML

Remove documentation for long removed -F option

Suggested by Robert Whitlock in PR bin/58177

I've sent this patch to the nvi maintainers but the response suggested
patching this downstream, as there would be no further releases of nvi.

(maya)

2024-04-29 00:28:18 UTC MAIN commitmail json YAML

cgdconfig(8): KNF in cgdconfig.c.

No functional change intended.

(riastradh)

2024-04-28 23:10:26 UTC MAIN commitmail json YAML

execve(2): brush up markup

(uwe)

2024-04-28 22:57:16 UTC MAIN commitmail json YAML

time.3: clarify that *tloc is always set if tloc != NULL

(rillig)

2024-04-28 22:43:30 UTC MAIN commitmail json YAML

setmode.3: fix typos

(rillig)

2024-04-28 22:21:21 UTC MAIN commitmail json YAML

execve.2: fix typo in markup

(rillig)

2024-04-28 18:55:04 UTC MAIN commitmail json YAML

tests/cd9660: add debug info to the file list

(rillig)

2024-04-28 17:12:30 UTC MAIN commitmail json YAML

Bump bozohttpd version to today for mobile-friendly directory listing

(maya)

2024-04-28 15:35:39 UTC MAIN commitmail json YAML

linux_sync_file: Fix missing init/fini steps.

Noted by rjs@.

PR kern/58210

(riastradh)

2024-04-28 15:10:19 UTC MAIN commitmail json YAML

make: don't reallocate memory after evaluating an expression

When an expression is evaluated, the resulting text is short-lived in
almost all cases.  In particular, the compaction neither affects the
target names nor the global variable values, which are the prime
candidates for permanent memory usage.

(rillig)

2024-04-28 14:39:22 UTC MAIN commitmail json YAML

tests/cd9660: replace compressed blob with readable hexdump

This test is skipped in most circumstances because it creates a file
whose apparent size is 4.5 GB.  It's an ISO 9660 image though,
containing mostly null bytes.  Nevertheless, tmpfs doesn't allow such a
big file to be created, so this test is skipped in settings where /tmp
is on a tmpfs.

If the test is run, the ISO image is uncompressed, which takes several
minutes.  Replace bzip2 with direct file creation from a hex dump of
that disk image, which is easier to inspect manually and also faster by
about 3 magnitudes.

(rillig)

2024-04-28 13:43:59 UTC netbsd-10 commitmail json YAML

2024-04-28 13:42:44 UTC netbsd-10 commitmail json YAML

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

etc/Makefile: revision 1.470

PR/58200: Kouichi Hashikawa: ./makeobsolete uses platform's sed

(martin)

2024-04-28 13:33:52 UTC netbsd-10 commitmail json YAML

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

libexec/httpd/dir-index-bozo.c: revision 1.37

Create mobile-friendly directory listings

A typical mobile browser on a smartphone assumes a page without a "viewport"
<meta> tag is designed for desktop browsers. It displays the page in a
virtual window that simulates a wider screen and does not adjust it for
the phone's pixel density. The usual result is that the content on the page
looks small, and interacting with the page comfortably and precisely requires
zoom. This is currently the case with bozohttpd directory listing pages.
from D. Bohdan in PR bin/57962

(martin)

2024-04-28 13:32:07 UTC netbsd-9 commitmail json YAML

2024-04-28 13:30:11 UTC netbsd-9 commitmail json YAML

2024-04-28 13:29:40 UTC netbsd-9 commitmail json YAML

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

sys/dev/usb/uftdi.c: revision 1.78
sys/dev/usb/usbdevs: revision 1.815

Add some USB serial adapters
From Cameron Williams in PR kern/58127

Add support for a range of USB serial adapters
From Cameron Williams in PR kern/58127

(martin)

2024-04-28 13:27:17 UTC netbsd-10 commitmail json YAML

2024-04-28 13:26:36 UTC netbsd-10 commitmail json YAML

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

sys/dev/usb/uftdi.c: revision 1.78
sys/dev/usb/usbdevs: revision 1.815

Add some USB serial adapters
From Cameron Williams in PR kern/58127

Add support for a range of USB serial adapters
From Cameron Williams in PR kern/58127

(martin)

2024-04-28 13:23:20 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jdolecek in ticket #678):

lib/libc/gen/usleep.c: revision 1.21
lib/libc/gen/usleep.3: revision 1.20
lib/libc/gen/usleep.3: revision 1.21

allow usleep(3) with useconds >= 1000000

update manpage to mention this interface is obsolete, remove
EINVAL from the ERRORS and mention EINTR instead.

PR lib/58184 by Taylor R Campbell

it's nanosleep(2), not nanosleep(3)

(martin)

2024-04-28 13:19:21 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by hgutch in ticket #677):

usr.sbin/mtree/create.c: revision 1.78
external/gpl3/gcc.old/dist/gcc/cp/cfns.h: revision 1.12
(applied to external/gpl3/gcc/dist/gcc/cp/cfns.h)

For the NetBSD tools build we provide our own fts.h not FreeBSD's so the
comparator should have the NetBSD signature.

Fix gcc build on FreeBSD 14 (and possibly other systems using clang >= 16).
Pointed out by Eirik �verby.
OK mrg@

(martin)

2024-04-28 13:07:17 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #676):

sys/dev/usb/uftdi.c: revision 1.79

Add a match quirk to prevent matching any interface on SiPEED FPGA
development boards (e.g. Tang Nano 9K).  The FT2232s on these boards
are wired up only for JTAG.

(martin)

2024-04-28 12:49:08 UTC MAIN commitmail json YAML

tests/lib/Makefile: Hook up libstdc++.

(riastradh)

2024-04-28 12:12:00 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by oster in ticket #675):

sbin/raidctl/raidctl.8: revision 1.81
sbin/raidctl/raidctl.c: revision 1.80

Implement command-line configuration of simple RAID sets with raidctl
based on the usage pattern:

raidctl <device> create <level> <component1> <component2> ...

For example,

raidctl raid0 create mirror absent /dev/wd1e

will create a RAID level 1 (mirror) set with an absent first component
and /dev/wd1e as the second component. The resulting RAID device will
be marked as auto-configurable, will have a serial number set (based
on the current time), and parity will be initialized. Reasonable
performance values are automatically used by default for other parameters
normally specified in the configuration file.

Also: Only print out Autoconfig status if being verbose.

(martin)

2024-04-28 12:09:09 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by oster in ticket #674):

sys/dev/raidframe/rf_raid.h: revision 1.52
sbin/raidctl/raidctl.8: revision 1.80
sys/dev/raidframe/rf_driver.c: revision 1.141
sys/dev/raidframe/rf_disks.c: revision 1.94
sys/dev/raidframe/rf_diskqueue.c: revision 1.64
sys/dev/raidframe/rf_diskqueue.h: revision 1.30
sys/dev/raidframe/rf_disks.h: revision 1.15
sys/dev/raidframe/rf_netbsdkintf.c: revision 1.414
sys/dev/raidframe/rf_reconstruct.c: revision 1.129
sys/dev/raidframe/raidframeio.h: revision 1.12
sbin/raidctl/raidctl.c: revision 1.79

Implement hot removal of spares and components. From manu@.

Implement a long desired feature of automatically incorporating
a used spare into the array after a reconstruct.

Given the configuration:

Components:
/dev/wd0e: failed
/dev/wd1e: optimal
/dev/wd2e: optimal
Spares:
/dev/wd3e: spare

Running 'raidctl -F /dev/wd0e raid0' will now result in the
following configuration after a successful rebuild:

Components:
/dev/wd3e: optimal
/dev/wd1e: optimal
/dev/wd2e: optimal
No spares.

Thanks to manu@ for the development of the initial set of changes
which allowed the changes to automatically incorporate a used spare
to come to fruition. Thanks also to manu@ for useful discussions
about and additional testing of these changes.

(martin)

2024-04-28 10:57:34 UTC MAIN commitmail json YAML

2024-04-28 10:17:03 UTC netbsd-8 commitmail json YAML

2024-04-28 10:15:20 UTC netbsd-8 commitmail json YAML

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

sys/netinet6/frag6.c: revision 1.78

frag6: fix calculation of fragment length

Because of the miscalculation, 32 bytes fragmented IPv6 packets
have been wrongly dropped.

See https://mail-index.netbsd.org/tech-net/2024/04/14/msg008741.html
for more details.

Patch from Yasuyuki KOZAKAI (with minor tweaks)

(martin)

2024-04-28 10:14:18 UTC netbsd-9 commitmail json YAML

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

sys/netinet6/frag6.c: revision 1.78

frag6: fix calculation of fragment length

Because of the miscalculation, 32 bytes fragmented IPv6 packets
have been wrongly dropped.

See https://mail-index.netbsd.org/tech-net/2024/04/14/msg008741.html
for more details.

Patch from Yasuyuki KOZAKAI (with minor tweaks)

(martin)

2024-04-28 10:11:21 UTC netbsd-9 commitmail json YAML

2024-04-28 10:07:03 UTC netbsd-10 commitmail json YAML

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

sys/netinet6/frag6.c: revision 1.78

frag6: fix calculation of fragment length

Because of the miscalculation, 32 bytes fragmented IPv6 packets
have been wrongly dropped.

See https://mail-index.netbsd.org/tech-net/2024/04/14/msg008741.html
for more details.

Patch from Yasuyuki KOZAKAI (with minor tweaks)

(martin)

2024-04-28 10:02:51 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jakllsch in ticket #672):

distrib/sets/lists/xbase/mi: revision 1.175
external/mit/xorg/bin/xsetwallpaper/Makefile: revision 1.6

Install xsetwallpaper(1) manual page
Should fix PR 58172.

(martin)

2024-04-28 08:55:03 UTC MAIN commitmail json YAML

Fix some usb_syncmem calls and add some missing ones.

(skrll)

2024-04-28 08:12:44 UTC MAIN commitmail json YAML

i386: disable DRMKMS drivers in LEGACY kernel (this is for ISA)

(nia)

2024-04-28 08:01:04 UTC MAIN commitmail json YAML

Turn off MKAMDGPUFIRMWARE on i386

It's too big for the i386 install media and not useful on either
pre-2012 hardware or the kinds of embedded systems where i386 still
thrived after 2012.

(The build of the kernel parts of amdgpu on i386 is nevertheless useful
for finding obscure bugs.)

"go for it" riastradh

(nia)

2024-04-28 07:52:52 UTC MAIN commitmail json YAML

2024-04-28 07:27:43 UTC MAIN commitmail json YAML

2024-04-28 01:21:27 UTC MAIN commitmail json YAML

2024-04-27 21:26:23 UTC MAIN commitmail json YAML

make: fix comment about forcing a use-after-free

The previous expression didn't cause any bug, as the modifier
':@VAR@loop@' changed the value of the expression, thus making the
expression independent from the variable value.

Instead, the variable needs to be deleted from within an indirect
modifier, and that modifier needs to evaluate to an empty string, thus
doing nothing and preserving the original expression value.

(rillig)

2024-04-27 20:41:32 UTC MAIN commitmail json YAML

make: clean up, test .NOPATH

Trim down the comments in the archive module, as they mainly repeated
the code.  Trim down the binary code size in the archive module, as it
is rarely used.

In Var_Parse, delay two variable assignments until they are actually
needed.

(rillig)

2024-04-27 20:23:22 UTC MAIN commitmail json YAML

2024-04-27 17:33:47 UTC MAIN commitmail json YAML

2024-04-27 14:54:58 UTC MAIN commitmail json YAML

mention that we handle battery controls too.

(christos)

2024-04-27 14:50:18 UTC MAIN commitmail json YAML

Expose a sysctl interface hw.acpi.thinkpad<M>.bat[<N>].<behavior> to control
some aspects of battery charging behavior on supported systems:

    charge_start
threshold below which to start charging (in %, 0-99)

    charge_stop
threshold above which to stop charging (in %, 1-100)

    force_discharge
discharge while on AC power, e.g., for calibration

    charge_inhibit
inhibit charging while on AC power

From Malte Dehling

(christos)

2024-04-27 14:45:11 UTC MAIN commitmail json YAML

thinkpad cosmetic patches (Malte Dehling)

(christos)

2024-04-27 14:42:21 UTC MAIN commitmail json YAML

Disable dmf* and dmz* entries and add warns "not integrated yet."

Also note tty[EFGH]? have been used by MI wscons and new tty node names
should be assigned once dmf(4) is committed.

Ok'ed by ragge@ on port-vax@.
https://mail-index.netbsd.org/port-vax/2024/02/13/msg004859.html

(tsutsui)

2024-04-27 12:46:37 UTC MAIN commitmail json YAML

lint: converting a null pointer to another pointer type is not narrowing

(rillig)

2024-04-27 10:08:55 UTC MAIN commitmail json YAML

2024-04-27 06:01:08 UTC MAIN commitmail json YAML

mips: fix syntax error in LDBL_MAX (since 2011)

(rillig)

2024-04-27 00:40:07 UTC MAIN commitmail json YAML

Remove 0 initializations (since the softc is zalloc'ed) and the initial
refresh which will have no data.

(christos)

2024-04-26 22:07:32 UTC MAIN commitmail json YAML

Add ${TOOL_DATE} (Jan-Benedict Glaw)

(christos)

2024-04-26 20:27:12 UTC MAIN commitmail json YAML

Create mobile-friendly directory listings

A typical mobile browser on a smartphone assumes a page without a "viewport"
<meta> tag is designed for desktop browsers. It displays the page in a
virtual window that simulates a wider screen and does not adjust it for
the phone's pixel density. The usual result is that the content on the page
looks small, and interacting with the page comfortably and precisely requires
zoom. This is currently the case with bozohttpd directory listing pages.

from D. Bohdan in PR bin/57962

(maya)

2024-04-26 18:21:25 UTC MAIN commitmail json YAML

PR/58202: Malte Dehling: Don't link libzfs

(christos)

2024-04-26 18:19:18 UTC MAIN commitmail json YAML

PR/58201: Malte Dehling: re-order sysmon initialization before acpi
registration, to avoid needing to call to acpi_deregister_notify on sysmon
failure.

(christos)

2024-04-26 18:06:02 UTC MAIN commitmail json YAML

PR/58200: Kouichi Hashikawa: ./makeobsolete uses platform's sed

(christos)

2024-04-26 17:38:44 UTC MAIN commitmail json YAML

2024-04-26 17:36:32 UTC MAIN commitmail json YAML

Remove modules set from the i386 install cd

It is not particularly useful to be able to load modules while
installing on i386, probably the most useful one is dtrace,
and this takes up about 20mb on a port that is already exceeding
CD limits. Most stuff you'd want to use while installing is already
in GENERIC.

The modules set is still available compressed for installing into
a target system, meaning modules are available after installation.

While here, add man set to the installation DVD, it's helpful to be able
to read e.g. the man page for fdisk when rescuing a system.

(nia)

2024-04-26 17:22:26 UTC MAIN commitmail json YAML

2024-04-26 17:11:22 UTC MAIN commitmail json YAML

make: in parallel mode, print the directory in which a job failed

When multiple targets run in parallel, the "stopped in" line may be
several lines away from the "Failed target" line, making them hard to
correlate.

(rillig)

2024-04-26 16:34:18 UTC MAIN commitmail json YAML

2024-04-26 01:33:23 UTC MAIN commitmail json YAML

tests/cp: clean up

Replace the deprecated "eq:0" with "exit:0", remove redundant "-o empty"
and "-e empty".

(rillig)

2024-04-26 00:59:08 UTC MAIN commitmail json YAML

Return early if PM data is not available.

This avoids random crashes on my Powerbook when using the mouse or keyboard.

The same was needed for the Powerbook 5xx/Duos (compile tested only).

XXX pullup-10, pullup-9, pullup-8.

(nat)

2024-04-26 00:57:15 UTC MAIN commitmail json YAML

tests/cat: clean up

Multiple arguments to atf_set are joined by spaces, there's no need for
an extra space.

The exit status on success must be 0, so don't ignore it.

Remove the unnecessary shell wrapper, as no redirection is going on.

(rillig)

2024-04-25 17:22:49 UTC MAIN commitmail json YAML

CHANGES: fix typo

(rillig)

2024-04-25 11:56:51 UTC MAIN commitmail json YAML

2024-04-25 11:25:09 UTC MAIN commitmail json YAML

Increase length of set description to 40 characters so recent additions fit.

Ok: martin@

Fixes PR install/58188 "sysinst fails to display status of base32 set"

(hannken)

2024-04-25 01:33:04 UTC MAIN commitmail json YAML

Add a match quirk to prevent matching any interface on SiPEED FPGA
development boards (e.g. Tang Nano 9K).  The FT2232s on these boards
are wired up only for JTAG.

(thorpej)

2024-04-24 21:59:39 UTC MAIN commitmail json YAML

makefs: fix out-of-bounds fsnode count in fsnode_sort

Found by running './makefs img.dat cd9660'.

While here, apply more KNF.

(rillig)

2024-04-24 20:38:24 UTC MAIN commitmail json YAML

Explicitly exclude VAX from new Mesa due to a gcc internal compiler error

(martin)

2024-04-24 19:14:39 UTC MAIN commitmail json YAML

Force old Mesa for all old X server builds

(martin)

2024-04-24 19:05:53 UTC MAIN commitmail json YAML

2024-04-24 16:48:30 UTC MAIN commitmail json YAML

Fix gcc build on FreeBSD 14 (and possibly other systems using clang >= 16).

Pointed out by Eirik ��verby.

OK mrg@

(hgutch)

2024-04-24 15:49:03 UTC MAIN commitmail json YAML

2024-04-24 15:47:12 UTC MAIN commitmail json YAML

csh: add a helper definition for the reallocarray function

(nia)

2024-04-24 15:46:20 UTC MAIN commitmail json YAML

csh: add a reallocarray function for using inside csh

(nia)

2024-04-24 15:41:42 UTC MAIN commitmail json YAML

recent changes

(nia)

2024-04-24 15:39:58 UTC MAIN commitmail json YAML

sparc64 follows x86 and gets an installdvd image with all sets

(nia)

2024-04-24 14:41:13 UTC MAIN commitmail json YAML

Remove a superflouous printf().

(thorpej)

2024-04-24 14:23:37 UTC MAIN commitmail json YAML

2024-04-24 14:02:39 UTC MAIN commitmail json YAML

make a separate sorting function and KNF (thanks rillig)

(christos)

2024-04-24 11:49:58 UTC MAIN commitmail json YAML

allow userland to switch to 16bit colour

(macallan)

2024-04-24 11:42:06 UTC MAIN commitmail json YAML

don't enable xrender support unless we have 24bit colour

(macallan)

2024-04-24 11:29:35 UTC MAIN commitmail json YAML

2024-04-24 10:35:13 UTC MAIN commitmail json YAML

it's netbsd-11, time for a slightly less eye-bleeding shade of orange

(nia)

2024-04-24 07:54:53 UTC MAIN commitmail json YAML

Switch alpha and VAX back to old Mesa for now untill someone fixes
those builds with newer Mesa.

(martin)

2024-04-24 07:51:17 UTC MAIN commitmail json YAML

Add dummy cpu feature detection for mipsn64 on NetBSD.
XXX seems there is no way to detect mips MSA (SIMD) support currently.

(martin)

2024-04-24 06:44:18 UTC MAIN commitmail json YAML

ena(4) became MPSAFe last year

(nia)

2024-04-24 05:20:35 UTC MAIN commitmail json YAML

USE_XZ_SETS is no longer needed for sparc64 to fit on a standard CD-ROM

(nia)

2024-04-24 05:16:16 UTC MAIN commitmail json YAML

Give lots of room for further expansion of the sparc64 CD image

(nia)

2024-04-24 02:31:26 UTC MAIN commitmail json YAML

b3_2706_map_vme(): Use VM_BESTFIT.

(thorpej)

2024-04-24 02:27:33 UTC MAIN commitmail json YAML

_vme_space_get(): Use VM_BESTFIT.

(thorpej)

2024-04-24 02:08:03 UTC MAIN commitmail json YAML

vmem_init(): Ensure that the quantum is a power of 2, and that if private
tags are being used, they are added to the arena before the first span is
added.

(thorpej)

2024-04-24 01:44:51 UTC MAIN commitmail json YAML

For the NetBSD tools build we provide our own fts.h not FreeBSD's so the
comparator should have the NetBSD signature.

(christos)

2024-04-23 22:51:28 UTC MAIN commitmail json YAML

2024-04-23 22:18:56 UTC MAIN commitmail json YAML

pass lint, simplify

(christos)

2024-04-23 22:12:48 UTC MAIN commitmail json YAML

makefs: Fix symlink permission bits

Permission bits for symlinks are taken straight from `lstat()`. However, the
actual bits presented to the user are filesystem/kernel specific. For example,
Linux with ext2/3/4 will use 0777 for symlinks, whereas NetBSD/FFS will
show 0755. As far as `makefs` is in the loop, the target filesystem will likely
be FFS, so use 0755.

(christos)

2024-04-23 22:12:16 UTC MAIN commitmail json YAML

makefs: Sort directory contents by name (Jan-Benedict Glaw)

`makefs` inserts nodes into its internal data structures in the order as
returned by `readdir()` calls. As this is unpredictable, sort entries by
name before creating the target filesystem.

  This is done by first converting the (per-directory) linked list into
a plain array, sort it, finally re-link the list. Special case for the
sorting function: The "." directory entry seems to be ment to be always
at the front, so always check that first.

(christos)

2024-04-23 22:00:37 UTC MAIN commitmail json YAML

VAX boot.fs: Fix owner/group/permissions for VAX's boot.fs (Jan-Benedict Glaw)

(Initial patch from Christos Zoulas.)  Don't create an archive based on local
permission bits and owner/group. Instead, feed a small manifest into `pax`
and let it to its work.

  NB: Don't also feed in an entry for the current directory ".", as `pax` will
then archive all files in the current directory, in `readdir()` order.

(christos)

2024-04-23 21:58:57 UTC MAIN commitmail json YAML

`nm`: Generate a stable symbol table (Jan-Benedict Glaw)

Release artifacts may contain symbol lists. Binutils's `nm` sorts them by
symbol name, locale based. Inserting a plain `sort` (with `LC_ALL=C`) here
sorts them by address, and (with several symbols pointing to the same address)
sorting by name is also stable (think of embedded '_'.)

(christos)

2024-04-23 20:37:08 UTC MAIN commitmail json YAML

Reduce the size of the i386 ISO to help it fit on a CD-ROM

Exclude tests and html man pages.

(nia)

2024-04-23 16:16:44 UTC MAIN commitmail json YAML

Do not re-define CACHE_LINE_SIZE

(martin)

2024-04-23 15:34:07 UTC MAIN commitmail json YAML

Sync the statistics DMA memory correctly before it is accessed.

(hans)

2024-04-23 12:25:57 UTC MAIN commitmail json YAML

Exclude compat sets from ISO images that struggle to fit on a CD-ROM

When debug is excluded, also exclude the compat debug sets.

(nia)

2024-04-23 07:47:36 UTC MAIN commitmail json YAML

For consistency, check MKREPRO_TIMESTAMP always numerically (not as string)

(martin)

2024-04-23 07:33:24 UTC MAIN commitmail json YAML

2024-04-23 03:25:39 UTC MAIN commitmail json YAML

Switch to mesa 21

Works well enough for me on various GPUs, let's try it out. Can be easily
reverted if anyone encounters major issues.

(maya)

2024-04-22 23:07:47 UTC MAIN commitmail json YAML

Surround full mp_cpu_start() method with NLAPIC > 0 guard.

Initialization is based on x86_ipi* functions, which are implemented only
when lapic flag is enabled.

(andvar)

2024-04-22 22:47:00 UTC MAIN commitmail json YAML

Add (defined(MPBIOS) || NACPICA > 0) check around mp_pci_childdetached().
Fixes the build without MPBIOS or ACPI. Modified patch from Paolo Pisati in
current-users@.

While here:
Remove obsolete <arch/x86/pci/msipic.h> include with its guard.
Add comments for multiple endifs for better readability.

(andvar)

2024-04-22 22:29:29 UTC MAIN commitmail json YAML

Add opt_pci.h include to fix NO_PCI_MSI_MSIX build.
(Path from Paolo Pisati in current_users@)

While here:
Simplify mp_cpu_start() ifdefs. MULTIPROCESSOR and HYPERV code falls under
NLAPIC > 0, thus just combine all blocks under this guard.
Rearrange opt_acpi.h include alphabetically.

(andvar)

2024-04-22 21:25:29 UTC MAIN commitmail json YAML

it's nanosleep(2), not nanosleep(3)

(jdolecek)

2024-04-22 21:02:18 UTC MAIN commitmail json YAML

allow usleep(3) with useconds >= 1000000

update manpage to mention this interface is obsolete, remove
EINVAL from the ERRORS and mention EINTR instead.

PR lib/58184 by Taylor R Campbell

(jdolecek)

2024-04-22 14:41:26 UTC MAIN commitmail json YAML

2024-04-22 07:24:22 UTC MAIN commitmail json YAML

Add a test for kern/58149

aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived

(pho)

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

mesa21: link against libxcb-sync for missing symbols

Not super obvious in practice, but it does show if you run GL programs
with LD_BIND_NOW.

(maya)

2024-04-21 21:59:48 UTC MAIN commitmail json YAML

make: trim down code for parsing the :gmtime and :localtime modifiers

The :gmtime and :localtime modifiers are not used often and thus are not
time-critical. Exchange the custom code that parses an integer from a
substring for an additional memory allocation.

Thanks sjg@ for suggesting to avoid the custom parsing code.

(rillig)

2024-04-21 17:19:52 UTC MAIN commitmail json YAML

libntf: make MKREPRO timestamp compatible with NetBSD 10

In NetBSD 10, make(1) cannot handle :gmtime arguments that are
expressions, resulting in the error message "Unknown modifier '1'".

(rillig)

2024-04-21 14:11:12 UTC MAIN commitmail json YAML

apei(4), acpihed(4): Enable in x86 GENERIC.

Let's just see how this works out in practice.  Might need to reduce
the overhead of each GHES on machines with thousands of them, but
we'll see.

PR kern/58046

(riastradh)

2024-04-21 08:56:49 UTC MAIN commitmail json YAML

make: fix out-of-bounds read when evaluating :gmtime and :localtime

The function TryParseTime takes a pointer to a string, but the LazyBuf
returns a Substring, which is not guaranteed to be null-terminated or
delimited.  In TryParseTime, calling strtoul on the Substring read past
the end of the substring.

Noticed in the NetBSD build in libntp, where the :gmtime modifier is
used in two places with the same timestamp value, of which the first was
evaluated correctly and the second wasn't.

The bug was introduced in var.c 1.1050 from 2023-05-09, when the
argument of the :gmtime and :localtime modifiers was allowed to be an
expression instead of an integer constant.

(rillig)

2024-04-21 03:02:51 UTC MAIN commitmail json YAML

drm: Allow DRM_IOCTL_GET_UNIQUE on render nodes.

On NetBSD, libdrm uses this to discover what kind of bus the device
is on, without which it refuses to expose the render node at all,
rendering it useless.  With this change, libdrm is able to use render
nodes on NetBSD.

Since this is just reading out information about the bus type and
bus/dev/func numbers, I don't think it's problematic to expose to
render nodes.

This requires tweaking the access path to the master.

PR kern/58180

(riastradh)

2024-04-21 03:02:39 UTC MAIN commitmail json YAML

drm(4): Fix st_rdev in stat.

dminor->index already has the 64*type adjustment, as allocated in
drm_minor_alloc.

PR kern/58180

(riastradh)

2024-04-21 00:23:23 UTC MAIN commitmail json YAML

Mesa 21: Add some intel files so we don't have missing symbols

seen as error messages when running "glxgears" on intel.

This also avoids graphical corruption (changed areas of terminal
emulator take a few seconds to gradually update) when the modesetting
driver is explicitly chosen.

(maya)

2024-04-20 15:57:17 UTC MAIN commitmail json YAML

Fix build of mesa 21

This definition is missing from elftoolchain's elfdefinitions.h (via libelf.h),
which conflicts with sys/exec_elf.h so we can't get it from sys/exec_elf.h.

(maya)

2024-04-20 14:09:40 UTC MAIN commitmail json YAML

2024-04-20 14:06:47 UTC MAIN commitmail json YAML

UPDATING: remove not-so-recent entries

(rillig)

2024-04-20 13:32:22 UTC netbsd-9 commitmail json YAML

2024-04-20 13:27:04 UTC netbsd-10 commitmail json YAML

Ammend #663 for additional pullups

(martin)

2024-04-20 13:26:35 UTC netbsd-10 commitmail json YAML

Additionally pull up following revision(s) (requested by jakllsch in ticket #663):

external/bsd/ntp/lib/libntp/Makefile: revision 1.32
external/bsd/ntp/lib/libntp/Makefile: revision 1.33
external/bsd/ntp/lib/libntp/Makefile: revision 1.34

The substitute __DATE__ should be %b %e %Y per a C18 draft
Subtle change that won't make a functional difference in this case;
changed only for semantic correctness.

Increase MKREPRO robustness
- Use C locale to ensure month abbreviations are as expected
- bail out if MKREPRO_TIMESTAMP is not defined
- bail out if resulting __DATE__/__TIME__ replacement strings are empty

fix copy/paste-o

(martin)

2024-04-20 13:24:49 UTC MAIN commitmail json YAML

{usr.,}{s,}bin: replace LINT_SUPPORTED with the standard NOLINT

While here, re-enable lint in those cases where lint was skipped due to
a bug in interpreting abstract types, which was fixed in cgram.y 1.469
from 2023-08-02.

(rillig)

2024-04-20 12:25:46 UTC MAIN commitmail json YAML

build.sh: fix typos in usage message

(rillig)

2024-04-20 10:18:56 UTC MAIN commitmail json YAML

2024-04-20 08:03:08 UTC MAIN commitmail json YAML

libntp: clean up MKREPRO_TIMESTAMP handling

NetBSD's make has built-in support for formatting timestamps, so use
that instead of relying on an external tool.  The month name is still
always in the C locale, and possible errors are reported in the affected
line, due to the ':=' assignment operator.

Without the ':=' assignment operator, the intermediate variable would
not be necessary, but in that case, make's error handling is broken and
unspecific.

(rillig)

2024-04-20 05:38:40 UTC MAIN commitmail json YAML

Fix typo in comment.

(isaki)

2024-04-19 21:24:00 UTC MAIN commitmail json YAML

s/Resorce/Resource/ in comment and log message.

(andvar)

2024-04-19 20:59:18 UTC MAIN commitmail json YAML

tests/lint: show how to trigger message 207

(rillig)

2024-04-19 16:04:28 UTC MAIN commitmail json YAML

2024-04-19 14:58:18 UTC MAIN commitmail json YAML

Increase MKREPRO robustness
- Use C locale to ensure month abbreviations are as expected
- bail out if MKREPRO_TIMESTAMP is not defined
- bail out if resulting __DATE__/__TIME__ replacement strings are empty

(jakllsch)

2024-04-19 13:34:15 UTC MAIN commitmail json YAML

The substitute __DATE__ should be %b %e %Y per a C18 draft

Subtle change that won't make a functional difference in this case;
changed only for semantic correctness.

(jakllsch)

2024-04-19 12:35:28 UTC MAIN commitmail json YAML

PR/58170: Yoshitaka Tokugawa: Remove blocking statement when the requestor
asks for for an address that is in the cache and that access is prevented
by a cache acl because the querier has no way to know that this access is
denied, so it is not an abuse.

(christos)

2024-04-19 09:19:32 UTC netbsd-10 commitmail json YAML

2024-04-19 09:18:28 UTC netbsd-10 commitmail json YAML

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

sys/uvm/pmap/pmap.c: revision 1.78
sys/uvm/pmap/pmap.h: revision 1.27

Fix types in pmap_page_clear_attributes so that the top bits of
the u_long mdpg_attrs aren't dropped giving atomic_cas_ulong no
chance of completing if any of the top bits is set.

Update pmap_page_set_attributes for consistency.

An ATF test run completed for me with this fix.

port-riscv/58006: ATF tests no longer complete on riscv-riscv64

(martin)

2024-04-19 09:15:55 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by kalvisd in ticket #670):

sys/arch/vax/vax/unimpl_emul.S: revision 1.5

vax/unimpl_emul.S: Initialise locations storing floating-point values with
a constant of the appropriate format

(martin)

2024-04-19 09:01:35 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jakllsch in ticket #663):

external/bsd/ntp/lib/libntp/Makefile: revision 1.30
external/bsd/ntp/lib/libntp/Makefile: revision 1.31
external/bsd/ntp/lib/libntp/Makefile: revision 1.28
external/bsd/ntp/lib/libntp/Makefile: revision 1.29

use ${MKREPRO_TIMESTAMP} for baking in the date and time.
fix format.
remove now-unused assignment
Format MKREPRO_TIMESTAMP with "%b %d %Y" to correctly substitute __DATE__

(martin)

2024-04-19 05:04:06 UTC MAIN commitmail json YAML

frag6: fix calculation of fragment length

Because of the miscalculation, 32 bytes fragmented IPv6 packets
have been wrongly dropped.

See https://mail-index.netbsd.org/tech-net/2024/04/14/msg008741.html
for more details.

Patch from Yasuyuki KOZAKAI (with minor tweaks)

(ozaki-r)

2024-04-19 00:55:35 UTC MAIN commitmail json YAML

ip6_output: Initialize plen for ip6_hopopts_input.

This funny little block in ip6_process_hopopts assumes it is
initialized as and behaves differently depending on whether it's zero
or not:

https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#976

In the other call site, it is initialized to ip6->ip6_plen:

https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#561

Reported-by: syzbot+587e3b707bdfe533283f@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?extid=587e3b707bdfe533283f

(riastradh)

2024-04-19 00:45:41 UTC MAIN commitmail json YAML

dounmount: Avoid &((struct vnode_impl *)NULL)->vi_vnode.

Member access of a null pointer is undefined, even if the result
should also be null because vi_vnode is at the start of vnode_impl.

Reported-by: syzbot+a4b2d13c0d6d4dac2d07@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?extid=a4b2d13c0d6d4dac2d07

(riastradh)

2024-04-18 23:33:15 UTC MAIN commitmail json YAML

radeon_acpi.c: ifdef out unused function on NetBSD.

Should fix syzkaller build.

(riastradh)

2024-04-18 19:23:54 UTC MAIN commitmail json YAML

Format MKREPRO_TIMESTAMP with "%b %d %Y" to correctly substitute __DATE__

(jakllsch)

2024-04-18 19:17:14 UTC MAIN commitmail json YAML

2024-04-18 18:52:56 UTC netbsd-9 commitmail json YAML

Note dedication of 9.4

(martin)

2024-04-18 18:50:59 UTC netbsd-9 commitmail json YAML

Add dedication for the upcoming 9.4 release.

(martin)

2024-04-18 18:26:43 UTC netbsd-10 commitmail json YAML

2024-04-18 18:24:31 UTC netbsd-10 commitmail json YAML

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

sys/dev/ccd.c: revision 1.190

Using a ccd(4) with GPT (dk* at ccd*) the disk framework will call
ccdstrategy() -> ccdstart() -> ccdbuffer()  from softint context.

Allocating the buffer with PR_WAITOK here is forbidden.

Change ccdstart() / ccdbuffer() to report failure back to caller and
pass PR_WAITOK / PR_NOWAIT as an additional argument.

Call ccdstart() with PR_NOPWAIT from ccdstrategy() and on error defer
to the kthread.  Call ccdstart() with PR_WAITOK from kthread so requests
from kthread always succeed to allocate the buffers.

Remove the (non working) throttling on low memory as it is no longer needed.

Fixes PR kern/58043 "kernel crash in assert_sleepable() in -current,
dk(4) driver?"

(martin)

2024-04-18 18:22:10 UTC netbsd-10 commitmail json YAML

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

sys/miscfs/procfs/procfs.h: revision 1.83
sys/miscfs/procfs/procfs.h: revision 1.84
sys/kern/vfs_mount.c: revision 1.104
sys/miscfs/procfs/procfs_vnops.c: revision 1.230
sys/kern/init_main.c: revision 1.547
sys/kern/kern_hook.c: revision 1.15
sys/miscfs/procfs/procfs_vfsops.c: revision 1.112
sys/miscfs/procfs/procfs_vfsops.c: revision 1.113
sys/miscfs/procfs/procfs_vfsops.c: revision 1.114
sys/miscfs/procfs/procfs_subr.c: revision 1.117

Print dangling vnode before panic() to help debug.

PR kern/57775 ""panic: unmount: dangling vnode" while umounting procfs"
Protect kernel hooks exechook, exithook and forkhook with rwlock.

Lock as writer on establish/disestablish and as reader on list traverse.

For exechook ride "exec_lock" as it is already take as reader when
traversing the list.  Add local locks for exithook and forkhook.

Move exec_init before signal_init as signal_init calls exechook_establish()
that needs "exec_lock".

PR kern/39913 "exec, fork, exit hooks need locking"

Add a hashmap to access all procfs nodes by pid.

Using the exechook to revoke procfs nodes is racy and may deadlock:
one thread runs doexechooks() -> procfs_revoke_vnodes() and wants to suspend
the file system for vgone(), while another thread runs a forced unmount,
has the file system suspended, tries to disestablish the exechook and
waits for doexechooks() to complete.

Establish/disestablish the exechook on module load/unload instead
mount/unmount and use the hashmap to access all procfs nodes for this pid.

May fix PR kern/57775 ""panic: unmount: dangling vnode" while umounting procfs"

Remove all procfs nodes for this process on process exit.

(martin)

2024-04-18 18:17:06 UTC netbsd-10 commitmail json YAML

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

sys/arch/aarch64/aarch64/sig_machdep.c: revision 1.9
sys/arch/aarch64/aarch64/cpu_machdep.c: revision 1.15

kern/58149: aarch64: Cannot return from a signal handler if SP was
misaligned when the signal arrived

Apply the kernel diff from the PR
1. sendsig_siginfo() previously assumed that user SP was always aligned to
    16 bytes and could call signal handlers with SP misaligned. This is a
    wrong assumption because aarch64 demands that SP is aligned *only while*
    it's being used to access memory. Now it properly aligns it before
    pusing anything on the stack.
2. cpu_mcontext_validate() used to check if _REG_SP was aligned and
    considered the ucontext invalid otherwise. This meant if a signal was
    sent to a process whose SP was misaligned, the signal handler would fail
    to return because the ucontext passed from the kernel was an invalid
    one. Now setcontext(2) doesn't complain about misaligned SP.

(martin)

2024-04-18 18:14:22 UTC netbsd-10 commitmail json YAML

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

sys/arch/arm/arm32/pmap.c: revision 1.443

port-arm/58135: reproducible pmap KASSERT failure for armv7 with NFS root

Don't unconditionally set XN in pmap_clearbit - only set it if a mapping
exists VM_PROT_EXEC is being cleared.

I've simplified the #ifdefs in the patch from the PR.

(martin)

2024-04-18 18:06:09 UTC netbsd-10 commitmail json YAML

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

sys/ddb/db_proc.c: revision 1.16

Fix alignment of ddb 'ps/[lw]' output. LID matches PID and has more digits.

(martin)

2024-04-18 17:57:31 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jakllsch in ticket #664):

share/mk/bsd.hostlib.mk: revision 1.21

Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk

Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap

(martin)

2024-04-18 17:35:53 UTC MAIN commitmail json YAML

Renamed border/boundary variables to better describe their use.
Fix edge default values, factor out percentage calculation for more consistent
values. Use device_printf/DPRINTF to show errors instead of aprint variants.
Print raw input for debugging.

Correct capability parsing. Old devices were probed with nonexistent
commands and then used undefined boundary values that made them unusuable.

Fixes PR 57874.

(mlelstv)

2024-04-18 16:45:55 UTC netbsd-8 commitmail json YAML

2024-04-18 16:44:21 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #1959):

sys/arch/x86/x86/viac7temp.c: revision 1.10

viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

(martin)

2024-04-18 16:41:58 UTC netbsd-9 commitmail json YAML

2024-04-18 16:40:17 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #1835):

sys/arch/x86/x86/viac7temp.c: revision 1.10

viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

(martin)

2024-04-18 16:39:08 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #662):

sys/arch/x86/x86/viac7temp.c: revision 1.10

viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

(martin)

2024-04-18 16:29:48 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #661):

sys/dev/pci/if_mcx.c: revision 1.27

mcx(4): enforce full-duplex mark in mcx_media_status(), when link is up.

LACP protocol requires full-duplex to be enabled for lagg(4) to work,
however mcx(4) was not setting this capability making it to fail.

Fixes PR kern/58124.  OK'd by msaitoh@

(martin)

2024-04-18 16:26:48 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by andvar in ticket #660):

sbin/ifconfig/ifconfig.8: revision 1.126
sbin/ifconfig/ifconfig.8: revision 1.127
sbin/ifconfig/ifconfig.8: revision 1.128
sbin/ifconfig/ifconfig.8: revision 1.129

Added documents about parameters related to lagg(4)
PR misc/58125

Correct a very minor typo (s/id/is/)

ifconfig(8): move laggportpri next to laggport

Update the date of the documentation to reflect recent changes.

(martin)

2024-04-18 16:22:28 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #659):

sys/netinet6/in6_ifattach.c: revision 1.122
sys/netinet/sctp_asconf.c: revision 1.14
sys/netinet6/nd6.c: revision 1.282

Fix invalid IPv6 route when ipsecif(4) is deleted tunnel.  Pointed out by ohishi@IIJ.
The pointed bug is fixed by modification in nd6_need_cache().
Others are similar bugs.

(martin)

2024-04-18 16:12:31 UTC netbsd-9 commitmail json YAML

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

share/mk/bsd.own.mk: revision 1.1177

ZFS works fine on my v210, so let's enable it for sparc64

(martin)

2024-04-18 16:10:17 UTC netbsd-8 commitmail json YAML

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

usr.bin/who/utmpentry.c: revision 1.22

PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops.

(martin)

2024-04-18 16:09:09 UTC netbsd-9 commitmail json YAML

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

usr.bin/who/utmpentry.c: revision 1.22

PR/56013: Kouichi Hashikawa: Move setutent/setutxent right before the loops.

(martin)

2024-04-18 16:06:25 UTC netbsd-8 commitmail json YAML

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

external/gpl2/grep/dist/src/grep.c: revision 1.3

PR/56584: Andreas Gustafsson: Skip FIFO's when -D

(martin)

2024-04-18 16:05:24 UTC netbsd-9 commitmail json YAML

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

external/gpl2/grep/dist/src/grep.c: revision 1.3

PR/56584: Andreas Gustafsson: Skip FIFO's when -D

(martin)

2024-04-18 16:02:26 UTC netbsd-8 commitmail json YAML

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

external/bsd/am-utils/dist/include/amq_defs.h: revision 1.2
external/bsd/am-utils/dist/amq/amq_xdr.c: revision 1.2
external/bsd/am-utils/dist/amq/amq.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.5

fix pointer bug (thanks RVP) and change to use 64 bit times. Don't bother
with backwards compatibility; too much work for little benefit.

remove long cast (thanks RVP)

(martin)

2024-04-18 15:59:59 UTC netbsd-9 commitmail json YAML

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

external/bsd/am-utils/dist/include/amq_defs.h: revision 1.2
external/bsd/am-utils/dist/amq/amq_xdr.c: revision 1.2
external/bsd/am-utils/dist/amq/amq.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.4
external/bsd/am-utils/dist/amd/amq_subr.c: revision 1.5

fix pointer bug (thanks RVP) and change to use 64 bit times. Don't bother
with backwards compatibility; too much work for little benefit.

remove long cast (thanks RVP)

(martin)

2024-04-18 15:51:36 UTC netbsd-9 commitmail json YAML

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

sys/kern/subr_workqueue.c: revision 1.40
sys/kern/subr_workqueue.c: revision 1.41
sys/kern/subr_workqueue.c: revision 1.42
sys/kern/subr_workqueue.c: revision 1.43
sys/kern/subr_workqueue.c: revision 1.44
sys/kern/subr_workqueue.c: revision 1.45
sys/kern/subr_workqueue.c: revision 1.46
tests/rump/kernspace/workqueue.c: revision 1.7
sys/kern/subr_workqueue.c: revision 1.47
tests/rump/kernspace/workqueue.c: revision 1.8
tests/rump/kernspace/workqueue.c: revision 1.9
tests/rump/rumpkern/t_workqueue.c: revision 1.3
tests/rump/rumpkern/t_workqueue.c: revision 1.4
tests/rump/kernspace/kernspace.h: revision 1.9
tests/rump/rumpkern/Makefile: revision 1.20
sys/kern/subr_workqueue.c: revision 1.39
share/man/man9/workqueue.9: revision 1.15
(all via patch)

workqueue: Lift unnecessary restriction on workqueue_wait.

Allow multiple concurrent waits at a time, and allow enqueueing work
at the same time (as long as it's not the work we're waiting for).

This way multiple users can use a shared global workqueue and safely
wait for individual work items concurrently, while the workqueue is
still in use for other items (e.g., wg(4) peers).

This has the side effect of taking away a diagnostic measure, but I
think allowing the diagnostic's false positives instead of rejecting
them is worth it.  We could cheaply add it back with some false
negatives if it's important.
workqueue(9): workqueue_wait and workqueue_destroy may sleep.

But might not, so assert sleepable up front.
workqueue(9): Sprinkle dtrace probes.
tests/rump/rumpkern: Use PROGDPLIBS, not explicit -L/-l.

This way we relink the t_* test programs whenever changes under
tests/rump/kernspace change libkernspace.a.

workqueue(9) tests: Nix trailing whitespace.

workqueue(9) tests: Destroy struct work immediately on entry.

workqueue(9) tests: Add test for PR kern/57574.

workqueue(9): Avoid touching running work items in workqueue_wait.

As soon as the workqueue function has called, it is forbidden to
touch the struct work passed to it -- the function might free or
reuse the data structure it is embedded in.

So workqueue_wait is forbidden to search the queue for the batch of
running work items.  Instead, use a generation number which is odd
while the thread is processing a batch of work and even when not.
There's still a small optimization available with the struct work
pointer to wait for: if we find the work item in one of the per-CPU
_pending_ queues, then after we wait for a batch of work to complete
on that CPU, we don't need to wait for work on any other CPUs.
PR kern/57574

workqueue(9): Sprinkle dtrace probes for workqueue_wait edge cases.

Let's make it easy to find out whether these are hit.

workqueue(9): Stop violating queue(3) internals.

workqueue(9): Avoid unnecessary mutex_exit/enter cycle each loop.

workqueue(9): Sort includes.
No functional change intended.

workqueue(9): Factor out wq->wq_flags & WQ_FPU in workqueue_worker.
No functional change intended.  Makes it clearer that s is
initialized when used.

(martin)

2024-04-18 15:44:37 UTC netbsd-10 commitmail json YAML

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

share/man/man4/wg.4: revision 1.8
share/man/man4/wg.4: revision 1.9

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

Let's avoid triggering unease with host number 0.
PR misc/58015

wg(4): Fix IPv6 numbering in example diagram.

This way it matches the configuration suggested below (which avoids
host number zero on the subnet).

PR misc/58015

(martin)

2024-04-18 15:42:45 UTC netbsd-8 commitmail json YAML

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

distrib/evbarm/instkernel/sshramdisk/Makefile: revision 1.26

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

(martin)