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 (178d) 

2024-05-10 05:19:37 UTC Now

2022-05-15 16:38:26 UTC MAIN commitmail json YAML

sysinst: Enable mDNS lookups via NSS when enabling mdnsd.

Add/remove "multicast_dns" to the hosts: line in /etc/nsswitch.conf when
toggling the mdnsd rcvar. Change the label from "Enable mdnsd" to "Enable
multicast DNS support" to better describe what's going on here.

Now when you enable multicast DNS support in the installer, the host will
both advertise itself on the network and resolve .local network names.

(jmcneill)

2022-05-15 16:25:09 UTC MAIN commitmail json YAML

PR/56838: David A. Holland: namespace pollution in static libcrypt

(christos)

2022-05-15 16:20:10 UTC MAIN commitmail json YAML

adjtime(2): Handle negative tv_sec and tv_usec.

Previously I clamped these to avoid dangerous arithmetic overflow.
But I assumed sensible values should be nonnegative.

For tv_sec, this assumption was just wrong -- the adjustment may be
negative.

For tv_usec, this assumption is...not wrong, but also not right.
tv_usec is not _supposed_ to be negative (by POSIX, the type need
only represent values in [-1, 1000000]; semantically the member is
supposed to be a nonnegative number of microseconds below 1000000),
but ntp abuses it to hold negative values, for reasons unclear -- the
same effect could be had by subtracting one from tv_sec, and adding
1000000 to the negative tv_usec.  However, let's not break existing
ntp userlands...

(riastradh)

2022-05-15 16:12:52 UTC MAIN commitmail json YAML

rasops_mapchar: cosmetics, same object code.

Don't hide the important function call inside an if condition.  Don't
reuse a variable, changing what it means in the middle of an
expression.

(uwe)

2022-05-15 15:06:59 UTC MAIN commitmail json YAML

sysinst: Center the select_part_scheme menu horizontally

(jmcneill)

2022-05-15 14:48:37 UTC MAIN commitmail json YAML

disks: Get disk identify data from drvctl

When /dev/drvctl exists, attempt to use the disk-info/type property as
a disk's description string. Fallback to ATA / SCSI probing when the
identify data is not available through this interface.

This has the side-effect of adding descriptions for things like NVMe and
SD/eMMC devices.

(jmcneill)

2022-05-15 12:48:25 UTC MAIN commitmail json YAML

sysinst: Restore printing disk descriptions, lost in r1.35

(jmcneill)

2022-05-15 12:45:33 UTC MAIN commitmail json YAML

x86: Use atomic_store_release/atomic_load_consume for nmi_handlers.

Simplifies things a bit.  No functional change intended.

(riastradh)

2022-05-15 12:38:03 UTC netbsd-9 commitmail json YAML

2022-05-15 12:37:00 UTC netbsd-9 commitmail json YAML

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

common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c: revision 1.4
common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c: revision 1.4
common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c: revision 1.4

PR 56832:
fix C implementations of __atomic_compare_exchange*

(martin)

2022-05-15 12:29:47 UTC netbsd-9 commitmail json YAML

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

sys/arch/luna68k/conf/INSTALL: revision 1.32
sys/arch/luna68k/conf/GENERIC: revision 1.131

Use "options WS_KERNEL_FG=WSCOL_GREEN" as most ports with color support.

For demonstration on nono that supports 4bpp framebuffer recently.

(martin)

2022-05-15 12:18:18 UTC netbsd-8 commitmail json YAML

2022-05-15 12:15:53 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1741):

sbin/bioctl/bioctl.c: revision 1.19

bioctl(8): Don't print garbage bv_seconds.

This bug was added in bioctl.c rev. 1.7.

Before:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
    0 Online      5.5T                mfi0  RAID 5    64K  65535 seconds

After:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
    0 Online      5.5T                mfi0  RAID 5    64K

(martin)

2022-05-15 11:47:42 UTC MAIN commitmail json YAML

PR 56835: fix sshd startup script to only whine about bogus keys it
created if it actualy did create keys (one should thing that a
function called sshd_keygen() only is called to create keys, but
the "precmd" magic makes it run every time sshd is started or stopped).

Patch from Tom Lane, with modifications suggested by kre and a minor
additional cosemtic change.

(martin)

2022-05-15 10:29:20 UTC MAIN commitmail json YAML

rasops: make autogenerated box drawing chars actually used

Fix mapchar to use PICK_FONT() to match what putchar does.  Otherwise
putchar will never get to see the glyph codes for the autogenerated
box drawing chars.

(uwe)

2022-05-15 08:28:29 UTC MAIN commitmail json YAML

Sprinkle some <space><tab> consistency

(skrll)

2022-05-15 02:16:06 UTC MAIN commitmail json YAML

fix verbose log for 64 bit float

(mrg)

2022-05-15 02:14:15 UTC MAIN commitmail json YAML

remove unused Lpanic_savefpstate.

(mrg)

2022-05-15 00:25:15 UTC MAIN commitmail json YAML

harmony.c: expand and correct a couple of comments

(gutteridge)

2022-05-15 00:24:14 UTC MAIN commitmail json YAML

install the lower case radeon firmware files into /usr/libdata/firmware.

radeon has different case but same name firmware files.  the lower case
ones are already installed into /libdata/firmware, and to avoid having
to provide some special method to build on systems with case-preserving
file systems (such as macOS), we install the lower case ones in /usr.

this means that anyone that requires the lower case files must either
have /usr as part of the / file system, or manually keep them updated.

last part of PR#54976, though i doubt we'll try to pull up these.

this is enabled on i386, amd64 and arm64.

(mrg)

2022-05-15 00:06:09 UTC MAIN commitmail json YAML

harmony.4: add a minor detail, and fix some grammar

(gutteridge)

2022-05-15 00:05:24 UTC MAIN commitmail json YAML

allow some invocations of expr(1) to "fail" - expr(1) returns "1" is
the expression expands to "0" or empty, and sometimes these values end
up correctly being 0.

(mrg)

2022-05-14 21:04:34 UTC MAIN commitmail json YAML

Clarify that "stty 0" will normally hang up the tty. Bump date.

(dholland)

2022-05-14 20:54:31 UTC MAIN commitmail json YAML

install the lower case radeon firmware files into /usr/libdata/firmware.

radeon has different case but same name firmware files.  the lower case
ones are already installed into /libdata/firmware, and to avoid having
to provide some special method to build on systems with case-preserving
file systems (such as macOS), we install the lower case ones in /usr.

this means that anyone that requires the lower case files must either
have /usr as part of the / file system, or manually keep them updated.

not yet hooked into build.

part of PR#54976, though i doubt we'll try to pull up these.

(mrg)

2022-05-14 19:44:37 UTC MAIN commitmail json YAML

xhci(4): Handle race between software abort and hardware stall.

(riastradh)

2022-05-14 19:44:26 UTC MAIN commitmail json YAML

xhci(4): Fix edge case in simultaneous xfer abort and failure.

On successful usbd_xfer_trycomplete, caller must set ux_status and
call usb_transfer_complete before releasing the pipe (bus) lock.
Failing to call usb_transfer_complete is a mistake.  Presumably this
was intended to claim the xfer to complete it only on the last
packet.

I previously introduced the violation of this rule when the code
looked like

xfer->ux_status = err;
if (trb stuff)
usb_transfer_complete(xfer);

I mostly mechanically changed all the assignments of xfer->ux_status
to do usbd_xfer_trycomplete first and then usb_transfer_complete.

In the original, the extra assignment of xfer->ux_status in the event
we _don't_ immediately call usb_transfer_complete was likely
redundant and (except insofar as the abort protocol was broken)
harmless.  But now it is a problem because of the contract between
usbd_xfer_trycomplete and usb_transfer_complete under the pipe (bus)
lock.  In retrospect, the original probably should have been

if (trb stuff) {
xfer->ux_status = err;
usb_transfer_complete(xfer);
}

and my mechanical transformation should have worked, but also in
retrospect I should have put more thought into the change and done it
a little less mechanically.

(riastradh)

2022-05-14 17:52:10 UTC MAIN commitmail json YAML

2022-05-14 16:21:04 UTC MAIN commitmail json YAML

gomoku: clean up unused code and lint warnings

No binary change.

(rillig)

2022-05-14 15:29:08 UTC MAIN commitmail json YAML

uvideo(4): Fix missing line breaks in debug messages.

(riastradh)

2022-05-14 15:28:59 UTC MAIN commitmail json YAML

uvideo(4): Fix lengths of various frame descriptors.

This driver doesn't use the frame interval members, which are either
fixed (if continuous) or flexible (if discrete) and so can't be
encoded in C types correctly.  If we did use them, it would be
necessary to use pointer arithmetic on char pointers in the enclosing
descriptor buffer.  But we don't, so this is simpler, and fixes the
sizeof checks to avoid running off the end of invalid descriptors.

Should fix failure to parse legitimate descriptors (without
regressing to choking on malicious ones):

-uvideo: found format (index 1) type 9 size 1280x720 size 1843200 stride 2560 interval 333333
- ^ picking this one
-uvideo: found format (index 2) type 9 size 640x480 size 614400 stride 1280 interval 333333
+uvideo: truncated CS subtype-0x7 descriptor, length 30 < 38uvideo: unimplemented VS CS descriptor len=30 type=0x24 subtype=0x07
+uvideo: unimplemented VS CS descriptor len=30 type=0x24 subtype=0x07

(riastradh)

2022-05-14 15:28:50 UTC MAIN commitmail json YAML

uvideo(4): Avoid exposing streams with invalid descriptors.

(riastradh)

2022-05-14 14:20:10 UTC MAIN commitmail json YAML

cgram: clear bottom line of the screen at the end

Previously, the prompt line of the shell overwrote only part of the
prompt of cgram, the rest was still visible.

(rillig)

2022-05-14 14:02:08 UTC MAIN commitmail json YAML

Terminus Font: Import IBM-encoded versions from 4.49.1

Terminus Font is a clean, fixed width bitmap font, designed for long
(8 and more hours per day) work with computers.

The font has a very good script coverage and subsets with other
encodings can be imported in the future.

This commit imports IBM437 encoded (WSDISPLAY_FONTENC_ISO) subsets
converted to WSF format.  wsfont metadata are stored in the files, so
you can load them without any additional arguments to wsfontload(8).

(uwe)

2022-05-14 14:02:03 UTC MAIN commitmail json YAML

2022-05-14 12:25:16 UTC MAIN commitmail json YAML

make: clean up comments in Var_Parse

(rillig)

2022-05-14 11:43:25 UTC MAIN commitmail json YAML

libdns: suppress a few lint warnings that occur too often

(rillig)

2022-05-14 11:42:17 UTC netbsd-9 commitmail json YAML

2022-05-14 11:40:07 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1449):

sbin/bioctl/bioctl.c: revision 1.19

bioctl(8): Don't print garbage bv_seconds.

This bug was added in bioctl.c rev. 1.7.

Before:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
    0 Online      5.5T                mfi0  RAID 5    64K  65535 seconds

After:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
    0 Online      5.5T                mfi0  RAID 5    64K

(martin)

2022-05-14 11:38:32 UTC netbsd-9 commitmail json YAML

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

sys/arch/hppa/hppa/idle_machdep.c: revision 1.4
sys/arch/hppa/hppa/machdep.c: revision 1.17

Add some special NOPs to help qemu.
thanks to Helge Deller for the heads-up.

(martin)

2022-05-14 11:37:07 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by brad in ticket #1447):

external/mpl/bind/bin/confgen/ddns-confgen/Makefile: revision 1.2
distrib/sets/lists/man/mi: revision 1.1739
distrib/sets/lists/base/mi: revision 1.1295

Add LINKS and MLINKS to the ddns-confgen Makefile to provide
tsig-keygen.  This helps to allow pkgsrc/security/acmesh to function
and should be provided in all BIND >= 9.13 installs anyway.

(martin)

2022-05-14 11:32:43 UTC netbsd-9 commitmail json YAML

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

sys/arch/hppa/hppa/hppa_machdep.c: revision 1.33

port-hppa/56830: RAS support is slightly incorrect on hppa

When searching for RAS use tf_iioq_head without the HPPA_PC_PRIV_MASK bits
set.

(martin)

2022-05-14 11:26:23 UTC MAIN commitmail json YAML

libxcb: suppress lint warnings that are not useful

(rillig)

2022-05-14 11:12:31 UTC MAIN commitmail json YAML

libmpc: suppress wrong lint warnings

(rillig)

2022-05-14 07:11:23 UTC MAIN commitmail json YAML

PR 56829: Fix "map" call to Open Firmware and no longer mess up OFW stack.
This unbreaks miniroot.fs.

Thanks to Bjæ—¦rn Johannesson for originally pointing this out and to
mrg@ for pointing out the actual issue and suggesting a fix.

(hgutch)

2022-05-14 06:07:53 UTC MAIN commitmail json YAML

Add some special NOPs to help qemu.

thanks to Helge Deller for the heads-up.

(skrll)

2022-05-14 05:35:55 UTC MAIN commitmail json YAML

2022-05-14 04:04:55 UTC MAIN commitmail json YAML

Apply extra-delay quirk to "Intel 9 Series SATA Controller (AHCI)";
without the quirk, the controller fails to probe some HDD models,
at least "Seagate ST2000DM008".

Info and patch provided by Tiago Seco, thanks!

(rin)

2022-05-14 01:16:55 UTC MAIN commitmail json YAML

Add ISO and JIS keyboard layouts for ADB to USB emulation

The layout is configurable using sysctl machdep.adbkbdX.emulate_usb:
0 = no emulation
1 = ANSI
2 = ISO (new with this change)
3 = JIS (new with this change)

Default value is detected using the ADB keyboard handler id. JIS
default is disabled until it is tested.

(manu)

2022-05-13 21:42:30 UTC MAIN commitmail json YAML

make: document platform dependency in string pattern matching

No unit test for this edge case since all other unit tests are platform-
independent.

To reproduce:
$ make clean
$ make -s PROG=s-make NOMAN=yes USER_CFLAGS=-fsigned-char
$ make clean
$ make -s PROG=u-make NOMAN=yes USER_CFLAGS=-funsigned-char
$ make clean
$ range=$(lua -e 'print(("[%c-%c]"):format(0xe4, 0x61))')
$ ./s-make -V "\${:UM:M$range}\${:UN:N$range}"
M
$ ./u-make -V "\${:UM:M$range}\${:UN:N$range}"
N

(rillig)

2022-05-13 20:37:01 UTC MAIN commitmail json YAML

make: clean up low-level comments, eliminate common subexpression

No functional change.

(rillig)

2022-05-13 19:34:47 UTC MAIN commitmail json YAML

nvmm_x86_vmx.c: remove an #ifdef DIAGNOSTIC, it is wrong since r1.66

(tnn)

2022-05-13 18:40:03 UTC MAIN commitmail json YAML

port-hppa/56830: RAS support is slightly incorrect on hppa

When searching for RAS use tf_iioq_head without the HPPA_PC_PRIV_MASK bits
set.

(skrll)

2022-05-13 16:39:33 UTC MAIN commitmail json YAML

Add LINKS and MLINKS to the ddns-confgen Makefile to provide
tsig-keygen.  This helps to allow pkgsrc/security/acmesh to function
and should be provided in all BIND >= 9.13 installs anyway.

(brad)

2022-05-13 15:02:34 UTC MAIN commitmail json YAML

Fix typo dallocate -> deallocate

(reinoud)

2022-05-13 11:20:04 UTC netbsd-9 commitmail json YAML

2022-05-13 11:18:40 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1445):

sys/dev/pci/ixgbe/ix_txrx.c: revision 1.98

bus_dmamem_unmap() before bus_dmamem_free(), otherwise we may give back meomry
which is still (and will stay) mapped.

Fixes one instance of "panic: HYPERVISOR_mmu_update failed" on Xen.
There may be others.

(martin)

2022-05-13 11:12:49 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1444):

sys/arch/xen/x86/x86_xpmap.c: revision 1.91

In bootstrap, after switching to a new page table make sure that
now-unused memory is unmapped.

(martin)

2022-05-13 11:10:38 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #1443):

sys/arch/x86/x86/pmap.c: revision 1.414

return after calling xen_pagezero(), don't fall back to the legacy
pmap_zero_page() method.

This should only affect performances.

(martin)

2022-05-13 10:45:24 UTC MAIN commitmail json YAML

2022-05-13 10:44:39 UTC MAIN commitmail json YAML

Fix compile error when MFII_DEBUG is set. Whitespace fix.

(msaitoh)

2022-05-13 10:41:42 UTC MAIN commitmail json YAML

Improve DNPRINTF. No functional change.

(msaitoh)

2022-05-13 09:49:44 UTC MAIN commitmail json YAML

rkv1crypto(4): Fix units in RNG repeated-output health test.

This code was intended to check whether the two 4-word halves of an
8-word, 32-byte, 256-bit sample were repeated.

Instead, it accidentally checked whether the first 4 _bytes_ of the
two halves were repeated.

The effect was a false alarm rate of 1/2^32, instead of a false alarm
rate of 1/2^128, with no change on the true alarm rate in the event
of an RNG wedged producing all-zero or all-one bits.  1/2^128 is an
acceptable false alarm rate; 1/2^32, not so much.

(The false alarm right might be higher if the samples are not
perfectly uniformly distributed, which they most likey aren't,
although the documentation doesn't give any details other than
suggesting it's a ring oscillator under the hood, which provides
entropy from jitter induced by thermal noise.  This driver records
half a bit of entropy per bit of sample to be reasonably
conservative.)

(riastradh)

2022-05-13 09:40:25 UTC MAIN commitmail json YAML

cprng(9): Fix accidental 4x seed size.

With SHA-256, NIST Hash_DRBG takes an preferred 440-bit/55-byte seed.
It's a weird number, and I'm not sure where it comes from (a quick
skim of SP800-90A doesn't turn anything up), but it's certainly
sufficient (256-bit/32-byte seed is almost certainly enough) so it's
not a problem to use something larger; Hash_DRBG can absorb seeds of
arbitrary lengths and larger seeds can't really hurt security (with
minor caveats like HMAC RO quirks that don't apply here).

Except -- owing to a typo, we actually used a 1760-bit/220-byte seed,
because I wrote `uint32_t seed[...]' instead of `uint8_t seed[...]'.
Again: not a problem to use a seed larger than needed.  But let's
draw no more than we need out of the entropy pool!

Verified with CTASSERT(sizeof(seed) == 55).  (Assertion omitted from
this commit because we might swap out Hash_DRBG for something else
with a different seed size like 32 bytes.)

(riastradh)

2022-05-13 09:40:02 UTC MAIN commitmail json YAML

entropy(9): Update comment about where entropy_extract is allowed.

As of last month, it is forbidden in all hard interrupt context.

(riastradh)

2022-05-13 09:39:52 UTC MAIN commitmail json YAML

entropy(9): Note rules about how to use entropy_extract output.

(riastradh)

2022-05-13 09:39:40 UTC MAIN commitmail json YAML

x86/pmap: Feed entropy_extract output through nist_hash_drbg.

The entropy pool algorithm is NOT designed to provide backtracking
resistance on its own -- it MUST be combined with a PRNG/DRBG that
provides that.

The only reason we use entropy_extract here is that cprng(9) is not
available yet (which in turn is because kmem and other basic kernel
facilities aren't available yet), but nist_hash_drbg doesn't have any
initialization order requirements, so we'll just use it directly.

(riastradh)

2022-05-12 23:17:42 UTC MAIN commitmail json YAML

wsfont(4): WSDISPLAYIO_LDFONT requires device opened for writing.

(uwe)

2022-05-12 22:25:38 UTC MAIN commitmail json YAML

Make clrtoeol match the ncurses behaviour where it seems to make the
rest of line foreground.  This fixes a display oddity in mutt.

(blymn)

2022-05-12 22:08:55 UTC MAIN commitmail json YAML

wsfontload: O_RDONLY is enough to list the fonts with -l

(uwe)

2022-05-12 20:57:49 UTC MAIN commitmail json YAML

lint: merge duplicate grammar rules for __alignof__ expr

This allows expressions like '__alignof__(ptr)->member', just as with
'sizeof'.

The upper rule in the grammar was preferred over the lower rule since it
shifted the T_LPAREN instead of reducing unary_expression.  Its
implementation invoked undefined behavior if the expression was NULL
since it didn't assign anything to $$.

(rillig)

2022-05-12 20:49:21 UTC MAIN commitmail json YAML

2022-05-12 20:22:58 UTC MAIN commitmail json YAML

lint: add message text to newly added call to gnuism

Required by check-msgs.lua.

(rillig)

2022-05-12 18:47:29 UTC MAIN commitmail json YAML

We have 130 shift/reduce conflicts now

(martin)

2022-05-12 17:31:30 UTC MAIN commitmail json YAML

2022-05-12 12:05:04 UTC MAIN commitmail json YAML

I think MFI_BBU_STATE_LEARN_CYC_REQ is not an error.

(msaitoh)

2022-05-12 12:04:09 UTC MAIN commitmail json YAML

Use IBBU's data structure for iBBU-09.

(msaitoh)

2022-05-12 12:00:58 UTC MAIN commitmail json YAML

No functional change.

- Reduce diff against OpenBSD
  - Whitespace fix.
  - Sort some defines and structures.
  - Add comment.
- KNF.

(msaitoh)

2022-05-12 11:56:30 UTC MAIN commitmail json YAML

Don't use MFI_PD_LIST_SIZE. Same as OpenBSD. No functional change.

(msaitoh)

2022-05-12 00:28:01 UTC MAIN commitmail json YAML

lint: add support for __alignof__ expr, a GCC extension

Seen in lib/libc/gmon/gmon.c:153.

(rillig)

2022-05-12 00:18:35 UTC MAIN commitmail json YAML

2022-05-12 00:09:44 UTC MAIN commitmail json YAML

tests/lint: adjust tests to reflect missing support of __alignof__

The change in lex.c 1.129 attempted to add support for __alignof, in
addition to the existing support for __alignof__.  It failed by removing
support for __alignof__, while allowing the plain 'alignof' instead.

(rillig)

2022-05-11 22:46:51 UTC MAIN commitmail json YAML

2022-05-11 21:13:13 UTC MAIN commitmail json YAML

treat PictOpOver with a solid source and an empty mask as simple fill
somewhat less glitchiness in gtk3 but we're not quite there yet

(macallan)

2022-05-11 21:10:37 UTC MAIN commitmail json YAML

disable accidentally committed debug goop

(macallan)

2022-05-11 20:46:48 UTC MAIN commitmail json YAML

2022-05-11 20:44:05 UTC MAIN commitmail json YAML

Add some Broadcom / LSI RAID cards.

(markd)

2022-05-11 19:37:53 UTC MAIN commitmail json YAML

2022-05-11 19:35:06 UTC MAIN commitmail json YAML

don't pretend to support PictOpSrc - those can be quite a bit more complicated
than simple copy ops
With this gtk3 buttons are still occasionally glitchy but at least we don't
crash anymore

(macallan)

2022-05-11 17:22:20 UTC MAIN commitmail json YAML

bus_dmamem_unmap() before bus_dmamem_free(), otherwise we may give back meomry
which is still (and will stay) mapped.

Fixes one instance of "panic: HYPERVISOR_mmu_update failed" on Xen.
There may be others.

(bouyer)

2022-05-11 17:13:04 UTC MAIN commitmail json YAML

consistently use SX_RENDER_DEBUG, hide some more debug goop

(macallan)

2022-05-11 16:22:46 UTC MAIN commitmail json YAML

In bootstrap, after switching to a new page table make sure that
now-unused memory is unmapped.

(bouyer)

2022-05-11 15:46:25 UTC MAIN commitmail json YAML

gcc also allows __alignof

(christos)

2022-05-11 15:30:34 UTC MAIN commitmail json YAML

Add support for iBBU-09 to show BBU voltage, current and temp correctly.

(msaitoh)

2022-05-11 15:24:45 UTC MAIN commitmail json YAML

mfii(4): Set stripe size correctly for BIOCVOL. Same as mfi.c rev. 1.75.

(msaitoh)

2022-05-11 15:20:54 UTC MAIN commitmail json YAML

KNF. s/u_quad_t/uint64_t/. No functional change.

(msaitoh)

2022-05-11 14:58:01 UTC MAIN commitmail json YAML

2022-05-11 13:58:43 UTC MAIN commitmail json YAML

2022-05-11 10:47:10 UTC MAIN commitmail json YAML

Drop IEEE 802.11 support from ifconfig(8).

Reduce ~9KB, and atari builds again for me.

(rin)

2022-05-11 10:45:48 UTC MAIN commitmail json YAML

Introduce NOIEEE80211 option, by which IEEE 802.11 support is dropped from
ifconfig(8) in crunched binaries. This saves ~9KB for, e.g., m68k.

(rin)

2022-05-11 10:36:53 UTC MAIN commitmail json YAML

For atari install disk:

- Drop FD support from installboot(8). Reduce ~0.5KB.
- Drop primary boot loaders for FD (2 files, 0.5KB each).

Note that we continue to support these features in base.

OK tsutsui@

(rin)

2022-05-11 10:31:12 UTC MAIN commitmail json YAML

Make FD support optional (intended for install media).

(rin)

2022-05-11 10:27:45 UTC MAIN commitmail json YAML

Refactor install_[sw]d() into install_hd().

Shave off ~0.5KB from install floppy, and dedup codes a lot.

Thanks tsutsui@ for kind review!

(rin)

2022-05-10 15:29:04 UTC MAIN commitmail json YAML

2022-05-10 15:28:45 UTC MAIN commitmail json YAML

More ids for Prolific Serial Adapters

(mlelstv)

2022-05-10 14:16:25 UTC MAIN commitmail json YAML

bioctl(8): Don't print garbage bv_seconds.

This bug was added in bioctl.c rev. 1.7.

Before:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
bv_level=5, bv_stripe_size=0
    0 Online      5.5T                mfi0  RAID 5    64K  65535 seconds

After:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
    0 Online      5.5T                mfi0  RAID 5    64K

(msaitoh)

2022-05-10 14:13:37 UTC MAIN commitmail json YAML

mfi(4): Set stripe size correctly for BIOCVOL.

Before:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
    0 Online      5.5T                mfi0  RAID 5    N/A  65535 seconds

After:
Volume Status      Size        Device/Label    Level Stripe
=============================================================
    0 Online      5.5T                mfi0  RAID 5    64K  65535 seconds

(msaitoh)

2022-05-10 14:13:09 UTC MAIN commitmail json YAML

Add comment. bv_stripe_size is used in KB.

(msaitoh)

2022-05-10 09:07:57 UTC MAIN commitmail json YAML

date(1): Use .Dl for one-liners.  Same output is generated.

(uwe)

2022-05-10 09:05:03 UTC MAIN commitmail json YAML

Zeroize the length explicitly when malloc failed.  Pointed out by yamaguchi@n.o.

(knakahara)

2022-05-10 09:00:39 UTC MAIN commitmail json YAML

date(1): Fix the offset in previous.

(uwe)

2022-05-10 08:10:28 UTC MAIN commitmail json YAML

2022-05-10 08:09:58 UTC MAIN commitmail json YAML

Add a driver for the Apple RTKit based System Management Controller
found on M1 SoCs.  From OpenBSD.

(skrll)

2022-05-10 08:05:33 UTC MAIN commitmail json YAML

2022-05-10 05:41:54 UTC MAIN commitmail json YAML

openssl-1.1.1o out.

(wiz)

2022-05-10 05:37:33 UTC MAIN commitmail json YAML

date(1): add example for how to get seconds since the Epoch output

(wiz)

2022-05-10 00:54:00 UTC MAIN commitmail json YAML

3RDPARTY: note most recent version of pkg_install

(gutteridge)

2022-05-10 00:42:00 UTC MAIN commitmail json YAML

2022-05-09 21:41:49 UTC MAIN commitmail json YAML

indent: clean up control flow, remove Capsicum

No functional change.

(rillig)

2022-05-09 21:24:42 UTC MAIN commitmail json YAML

make: remove obsolete comment

All instances of VarFind that could be replaced with VarFindSubstring
have been replaced.

(rillig)

2022-05-09 17:13:30 UTC MAIN commitmail json YAML

Use union mbox instead of unit8_t[] to avoid unaligned access.

- Same as other OSes.
- mfii.c already use this.
- Found by kUBSan.

(msaitoh)

2022-05-09 15:56:36 UTC MAIN commitmail json YAML

KNF. Whitespace. No functional change.

(msaitoh)

2022-05-09 15:47:28 UTC MAIN commitmail json YAML

bdfload: g/c trailing whitespace

(uwe)

2022-05-09 15:06:29 UTC MAIN commitmail json YAML

sshd_config: Disable HPN as discussed on tech-userlevel.

(nia)

2022-05-09 15:05:18 UTC MAIN commitmail json YAML

ctwmrc: Split the automatically generated pkgsrc applications menu
into categories similarly to MATE and Xfce.

(nia)

2022-05-09 13:27:24 UTC MAIN commitmail json YAML

fix typo in comment

(wiz)

2022-05-09 11:39:44 UTC MAIN commitmail json YAML

PR port-powerpc/56818

Fix inverted logic introduced in rev. 1.108, by which modified/referenced
bits of pages were never cleared appropriately.

Now, full ATF runs on macppc and sandpoint, with no regression observed.

(rin)

2022-05-09 09:00:20 UTC MAIN commitmail json YAML

Xsession: Use #ifdef to test for COLOR in xrdb input.

(uwe)

2022-05-09 07:20:18 UTC MAIN commitmail json YAML

Forgot to mention adding support for VirtIO PCI v1.0 attachments next to
legacy v0.9.

(reinoud)

2022-05-09 07:15:25 UTC MAIN commitmail json YAML

ctwmrc: Use ISO8859-1 for displaying manual pages in xman, because it
gets us some commonly used symbols. xman doesn't grok UTF-8.

(nia)

2022-05-09 07:00:15 UTC MAIN commitmail json YAML

Default X session: In xterm and xman at lower DPIs, use misc-fixed
instead of spleen for greater readability.  Reasoning: misc-fixed
has native bold variants.

At higher DPIs, xterm can suitably 'enbolden' spleen without losing
significant aspects of the letter shape, so the text remains readable.

Requested by uwe and jmcneill.

(nia)

2022-05-09 01:27:40 UTC MAIN commitmail json YAML

2022-05-08 22:29:55 UTC MAIN commitmail json YAML

2022-05-08 22:29:36 UTC MAIN commitmail json YAML

2022-05-08 22:03:02 UTC MAIN commitmail json YAML

Oops, correct misleading #endif comment.

It seems I need a cup of coffee...

(rin)

2022-05-08 22:00:06 UTC MAIN commitmail json YAML

Improve wording a bit in a comment for the previous.

(rin)

2022-05-08 21:55:35 UTC MAIN commitmail json YAML

For PMAP_PV_TRACK_ONLY_STUBS, comment out pmap_pv_{,un}track().

If modules call these functions, the result should be an
inconsistent state.

Such modules require real PV-tracking support, anyway.

The best we can do should be to make two symbols undefined, and
prevent these modules from loaded.

(rin)

2022-05-08 21:29:20 UTC MAIN commitmail json YAML

Revert, sorry this was not intended to be committed.

(reinoud)

2022-05-08 19:19:11 UTC MAIN commitmail json YAML

make: remove test variant without GMAKEEXPORT

Undefining GMAKEEXPORT on the command line had no effect, since that
macro is defined unconditionally in config.h.

(rillig)

2022-05-08 17:28:14 UTC MAIN commitmail json YAML

Merge from upstream [r3984]: allow the use of the generated
'elfdefinitions.h' file in compilation environments lacking
C99 headers.

(jkoshy)

2022-05-08 10:20:50 UTC MAIN commitmail json YAML

2022-05-08 10:14:41 UTC MAIN commitmail json YAML

2022-05-08 09:09:58 UTC MAIN commitmail json YAML

Make the xterm font size selection menu work in a reasonably expected way

(nia)

2022-05-08 08:20:16 UTC MAIN commitmail json YAML

ctwmrc: make menus more fun, accomodate clock being spawned on startup

(nia)

2022-05-08 08:17:06 UTC MAIN commitmail json YAML

want more default xorg font resource definitions,
and a clock on ctwm startup

(nia)

2022-05-08 08:12:45 UTC MAIN commitmail json YAML

fix building amd64 with USE_XZ_SETS=no.

bump the size of images if USE_XZ_SETS != no.  consolidate a lot of
the code between installimage/Makefile and installimage-bios/Makefile
into installimage/installimage.mk.

(mrg)

2022-05-08 07:27:50 UTC MAIN commitmail json YAML

2022-05-08 06:57:00 UTC MAIN commitmail json YAML

2022-05-08 06:51:27 UTC MAIN commitmail json YAML

2022-05-08 06:38:59 UTC MAIN commitmail json YAML

2022-05-07 21:24:53 UTC MAIN commitmail json YAML

tests/make: document why deptgt-posix needs its own directory

As described in PR toolchain/15163, '.include <file>' first looks in the
current directory, using the system include path only as fallback.

(rillig)

2022-05-07 21:19:43 UTC MAIN commitmail json YAML

make: fix grammar in comment of DirFindDot

(rillig)

2022-05-07 19:44:40 UTC MAIN commitmail json YAML

bump maxthreads default.

bump the default MAXLWP to 4096 from 2048, and adjust the default
limits seen to be 2048 cur / 4096 max.  remove the linkage to
maxuprc entirely.

remove cpu_maxlwp() that isn't implemented anywhere.  instead,
grow the maxlwp for larger memory systems, picking 1 lwp per 1MiB
of ram, limited to 65535 like the system limit.

remove some magic numbers.

i've been having weird firefox issues for a few months now and
it turns out i was having pthread_create() failures and since
bumping the defaults i've had none of the recent issues.

(mrg)

2022-05-07 17:49:47 UTC MAIN commitmail json YAML

make: allow to randomize build order of targets

In complex dependency structures, when a build fails, a probable cause
is a missing dependency declaration between some files.  In compat mode,
the build order is deterministic, in jobs mode, it is somewhat
deterministic.  To explore more edge cases, add the line ".MAKE.MODE +=
randomize-targets" somewhere in the makefile.

Fixes PR bin/45226 by riastradh.  Reviewed by christos.

(rillig)

2022-05-07 17:25:28 UTC MAIN commitmail json YAML

make: fix off-by-one error in buffer for .WAIT nodes

Strangely, GCC didn't warn about this error.  For the buffer overflow to
actually happen, there would have to be a billion .WAIT nodes.

(rillig)

2022-05-07 14:59:25 UTC MAIN commitmail json YAML

return after calling xen_pagezero(), don't fall back to the legacy
pmap_zero_page() method.
This should only affect performances.

(bouyer)

2022-05-07 14:25:12 UTC MAIN commitmail json YAML

Clear mailbox to not to pass garbage data.

(msaitoh)

2022-05-07 14:18:25 UTC MAIN commitmail json YAML

Use mlp_bgi for MFI_LD_PROG_BGI. Same as OpenBSD.

(msaitoh)

2022-05-07 14:14:34 UTC MAIN commitmail json YAML

Use mlp_bgi for MFI_LD_PROG_BGI. Same as OpenBSD.

(msaitoh)

2022-05-07 13:14:16 UTC MAIN commitmail json YAML

Skip sigfpe_int also for sh3; integer division by zero is not trapped.

(rin)

2022-05-07 12:40:40 UTC MAIN commitmail json YAML

tests/make: clean up comments in test for .POSIX

(rillig)

2022-05-07 10:05:49 UTC MAIN commitmail json YAML

make: inline MakeBuildParent

The word "parent" didn't match exactly, since this part is about the
predecessor/successor relationship due to the .ORDER attribute.

No functional change.

(rillig)

2022-05-07 09:44:50 UTC MAIN commitmail json YAML

make: inline make_abort, improve error details

This function was only called a single time, making the source code line
number redundant.  Instead, print the name of the state instead of its
ordinal value.

(rillig)

2022-05-07 09:02:19 UTC MAIN commitmail json YAML

Remove SPR_CCR0 from <powerpc/spr.h>; we already have it in
<powerpc/ibm4xx/spr.h>, together with other 4xx-specific SPRs.

Thanks uwe@ for pointing out.

(rin)

2022-05-07 08:54:02 UTC MAIN commitmail json YAML

When creating disc images, keep the proposed size a multiple of the blockingnr
for good measure; this prevents possible burning/copying issues on packet
media.

(reinoud)

2022-05-07 08:51:32 UTC MAIN commitmail json YAML

Data is written out in fixed sized packets; discs are normally a multiple of
the packet size but they don't have to be so never write past the last sector.

(reinoud)

2022-05-07 08:20:04 UTC MAIN commitmail json YAML

2022-05-07 08:01:20 UTC MAIN commitmail json YAML

2022-05-07 07:26:27 UTC MAIN commitmail json YAML

Remove unnecessary gotos and label.  Same code before and after.

(skrll)

2022-05-07 07:10:47 UTC MAIN commitmail json YAML

Try to fix PV tracking support.

* For oea (with real PV tracking support):

  Define __HAVE_PMAP_PV_TRACK. Otherwise, pmap_pv_init() is not called by
  uvm_init().

* For booke and ibm4xx (without PV tracking support):

  For MODULAR kernel and modules, define __HAVE_PMAP_PV_TRACK together with
  PMAP_PV_TRACK_ONLY_STUBS, so that modules can be shared with oea.

Note that PMAP_PV_TRACK_ONLY_STUBS can be used even for oea,
as a compile-time option to strip real PV tracking support.

(rin)

2022-05-07 06:53:16 UTC MAIN commitmail json YAML

Introduce PMAP_PV_TRACK_ONLY_STUBS option, by which only empty stubs for
global functions in pmap_pvt.h are provided, instead of real support for
PV tracking.

Necessary for powerpc: Only one sub-arch (oea) has PV tracking support.
Others (booke/ibm4xx) do not at the moment (probably never for ibm4xx),
but __HAVE_PMAP_PV_TRACK is necessary, so that modules can be shared by
all of sub-archs.

(rin)

2022-05-07 06:31:39 UTC MAIN commitmail json YAML

Add RCSID to Xresources config.  Use the B/W NetBSD logo on B/W displays.

(nia)

2022-05-07 05:14:10 UTC MAIN commitmail json YAML

2022-05-07 05:13:17 UTC MAIN commitmail json YAML

Bump timeout for slow machines.

(rin)

2022-05-07 05:08:16 UTC MAIN commitmail json YAML

Downgrade pq3pci_intrsources_lock and pq3pci_msigroups_lock from
spin to adaptive mutexes.

These locks are typically used during autoconf(9), not from
interrupt context.

Found by LOCKDEBUG.

XXX
I'm not sure whether these locks are really necessary...
Similar codes, e.g. in powerpc/pic/intr.c, do not use any locks.

(rin)

2022-05-07 05:01:29 UTC MAIN commitmail json YAML

Obsolete mdio_lock for pq3mdio_mii_{read,write}reg().

Callers (mii(4) layer and atphy(4) driver) acquire mii_lock() for
this purpose.

Found by LOCKDEBUG.

(rin)

2022-05-07 04:47:25 UTC MAIN commitmail json YAML

2022-05-07 04:40:02 UTC MAIN commitmail json YAML

2022-05-07 04:38:09 UTC MAIN commitmail json YAML

remove conditional code that defines members of natstat_t.

kernels without INET6 support end up with a different size of
this structure than the userland does and then it errors:

# ipnat -l
70:ioctl(SIOCGNATS) object size mismatch for copying out ipfobj

with these members (which are zeroed at ipf init) enabled, the
size check works.

XXX: pullup-9 (change tested there.)

(mrg)

2022-05-07 04:35:20 UTC MAIN commitmail json YAML

Document MODULAR_DEFAULT_VERBOSE. Bump date.

(rin)

2022-05-07 04:32:29 UTC MAIN commitmail json YAML

Add MODULAR_DEFAULT_VERBOSE.

(rin)

2022-05-07 04:30:41 UTC MAIN commitmail json YAML

Add MODULAR_DEFAULT_VERBOSE option.

(rin)

2022-05-07 04:19:22 UTC MAIN commitmail json YAML

Make this assemble correctly with clang.

At the moment, clang wrongly handles m[ft]sprgN (N >= 4);
use m[ft]spr for SPR_SPRGN instead.

Now, clang-compiled kernel seems working just fine on my RB800!

(rin)

2022-05-07 04:12:55 UTC MAIN commitmail json YAML

Instead of hard-coding SPR# for CCR0, define SPR_CCR0 in
<powerpc/spr.h> and use it.

Idea from uwe@, thanks!
(and sorry for delayed response!)

(rin)

2022-05-06 06:09:51 UTC MAIN commitmail json YAML

Sprinkle isb after modifying system regs of pointer auth.
With options ARMV83_PAC, it now works on native Mac M1.

TODO: Multiple ISBs should be combined in one place.

(ryo)

2022-05-06 05:14:38 UTC MAIN commitmail json YAML

md_astpending is uint32_t

(ryo)

2022-05-06 04:49:13 UTC MAIN commitmail json YAML

PR lib/56395
PR toolchain/56771

Fix profiling on CPUs that do not support unaligned memory access;
Allocate objects (referenced from struct gmonparam) with proper
alignments.

For monstartup(), objects are allocated on heap. Break is not
guaranteed to be aligned at all, unlike stack pointer.

For _m_gmon_alloc(), objects are allocated on anonymous memory.
p->tos is not aligned properly in general.

This fixes quasi-random crashes for *_profile tests, at least on
SH-4 and PowerPC 403 [1]. Also, no regression is observed for
others as far as I can see.

This change does not cause any ABI breakage, as long as application
uses proper pointers; use p->tos instead of evil pointer arithmetic
like (struct tostruct *)((char *)p->froms + p->fromssize) [2].

[1] Timeout should be increased for some tests. "pic" variants
still fail as expected. Dynamically-linked binaries also crash in
rtld for SH-4, but this seems different problem...

[2] This example did not work even before, since the order of
froms[] and tos[] is reversed depending on which of monstartup() or
_m_gmon_alloc() is used for allocation.

(rin)

2022-05-05 22:02:17 UTC MAIN commitmail json YAML

Don't force the refresh, it doesn't really need it.

(blymn)

2022-05-05 15:26:11 UTC MAIN commitmail json YAML

xdm: Match the default ctwm theme.

(nia)

2022-05-05 09:14:17 UTC MAIN commitmail json YAML

2022-05-05 08:07:03 UTC MAIN commitmail json YAML

Add some supported devices.

(msaitoh)

2022-05-05 07:45:43 UTC MAIN commitmail json YAML

include the filename in the panic message for missing data.

instead of merely seeing:
getfile: lost data
now this is seen:
getfile: lost data: ./usr/libdata/debug/usr/libexec/cc1.debug

(mrg)

2022-05-05 07:18:03 UTC MAIN commitmail json YAML

Add some code for the SKINNY variant to make Dell PERC H310 work.

(msaitoh)

2022-05-04 17:52:41 UTC netbsd-9 commitmail json YAML

2022-05-04 17:51:20 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by gavan in ticket #1441):

sys/nfs/nfs_vfsops.c: revision 1.243

Don't pretend that files are limited to 1TB on NFSv3.

(martin)

2022-05-04 15:49:55 UTC MAIN commitmail json YAML

fix ARC checks for available memory:
there's an extra check that we inherited from FreeBSD that tries to
detect KVA exhaustion on platforms with limited KVA, but the condition
that decided whether to use the extra check was using a FreeBSDism
that doesn't exist on NetBSD, resulting in this check being used on
all platforms.  on amd64 systems with lots of memory, this extra check
would result in the ARC thinking that it constantly needed to reclaim memory,
resulting in all the xcall threads running all the time but not doing
anything useful.  change this condition so that this extra check for
KVA exhaustion is only used on 32-bit platforms.  fixes PR 55707.

(chs)

2022-05-04 15:37:12 UTC netbsd-8 commitmail json YAML

2022-05-04 15:36:35 UTC netbsd-8 commitmail json YAML

Pull up the following revisions(s) (requested by martin in ticket #1740):
sys/net/if_pppoe.c: revision 1.179

pppoe(4): fix CVE-2022-29867 - discovery phase local network
mbuf corruption.

(sborrill)

2022-05-04 15:16:27 UTC netbsd-9 commitmail json YAML

2022-05-04 15:08:47 UTC netbsd-9 commitmail json YAML

Pull up the following revisions(s) (requested by martin in ticket #1442):
sys/net/if_pppoe.c: revision 1.179

pppoe(4): fix CVE-2022-29867 - discovery phase local network
mbuf corruption.

(sborrill)

2022-05-04 14:30:04 UTC MAIN commitmail json YAML

Do not allocate mbuf clusters when the caller (eroneously) asks
for more than MCLBYTES size, instead fail the allocation.

When we have received multiple PADO offer packets in the discovery
phase, do not combine tags from different packets. We are supposed
to pick one PADO packet and continue session establishment with that.

The second bug could cause code to trigger the first and create
invalid response packets and also overwrite data outside of
the allocated mbuf cluster.

Fixes CVE-2022-29867.

(martin)