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

2024-05-10 18:13:37 UTC Now

2023-12-12 20:24:00 UTC MAIN commitmail json YAML

2023-12-12 16:49:51 UTC netbsd-8 commitmail json YAML

2023-12-12 16:48:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by schmonz in ticket #1927):

sys/nfs/nfs_vnops.c: revision 1.325

NFS client: fix interop with macOS 14 servers.

Symptom: a bunch of "Cannot open `.' (Invalid argument)".
thorpej@ analysis and fix: on the first request to read a given
directory, make sure READDIR and READDIRPLUS cookie verifiers are
being set to 0. This is in RFC1813 and macOS must have gotten
stricter about it.

Verified on 10.0_RC1/aarch64 to fix the reproducers in PR kern/57691 as
well as the original use case in which I met the bug: pkg_rr once again
runs to completion.

(martin)

2023-12-12 16:46:06 UTC netbsd-10 commitmail json YAML

2023-12-12 16:45:00 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by yamaguchi in ticket #491):

sys/net/lagg/if_lagg.c: revision 1.56
sys/net/lagg/if_lagg.c: revision 1.57
sbin/ifconfig/lagg.c: revision 1.4

lagg(4): use sadl for lagg(4) configured by a user

lagg(4): eliminate unnecessary reset by the change of if_flags

Fix "ifconfig lagg* lagglacp -maxports" command

This command clears the setting of the maximum number of
lacp active ports. The command was accepted but it did not
work until this change.

(martin)

2023-12-12 09:16:17 UTC MAIN commitmail json YAML

Merge with generic libsa NFS code to minimize differences and to learn NFSv3.

(mlelstv)

2023-12-12 09:12:55 UTC MAIN commitmail json YAML

2023-12-11 22:29:39 UTC MAIN commitmail json YAML

Surround fdc declaration and definition with FD_DEBUG blocks.

FD_DEBUG is defined by default, thus build passes, however would fail otherwise
since it is only used in debug block.

(andvar)

2023-12-11 21:57:41 UTC MAIN commitmail json YAML

s/MRCOFFE$/MRCOFFEE/ and s/MRCOFFE_OFW/MRCOFFEE_OFW/ in install docs.
Also apply uwe change from sparc/contents s/GENERIC-KRUPS/KRUPS/.

(andvar)

2023-12-11 21:43:33 UTC MAIN commitmail json YAML

s/MRCOFFE$/MRCOFFEE/ and s/MRCOFFE_OFW/MRCOFFEE_OFW/ in install docs.

(andvar)

2023-12-11 14:00:47 UTC MAIN commitmail json YAML

Implement cngetc, don't abort.

(mlelstv)

2023-12-11 13:56:48 UTC MAIN commitmail json YAML

Use IANA registerd service name "sunrpc" instead of "rpcbind".

(mlelstv)

2023-12-11 13:38:13 UTC MAIN commitmail json YAML

Adjust next key value (it's not used anywhere).

(mlelstv)

2023-12-11 13:35:40 UTC MAIN commitmail json YAML

2023-12-11 13:33:35 UTC MAIN commitmail json YAML

2023-12-11 13:30:33 UTC MAIN commitmail json YAML

Don't unregister envsys when not registered.

(mlelstv)

2023-12-11 13:29:03 UTC MAIN commitmail json YAML

Output is always 16bit, the internal audio data type may differ.

(mlelstv)

2023-12-11 13:28:15 UTC MAIN commitmail json YAML

Output is always 16bit, the internal audio data type may differ.

(mlelstv)

2023-12-11 13:27:24 UTC MAIN commitmail json YAML

Output is always 16bit, the internal audio data type may differ.

(mlelstv)

2023-12-11 13:06:06 UTC MAIN commitmail json YAML

Output is always 16bit, the internal audio data type may differ.

(mlelstv)

2023-12-11 12:53:08 UTC MAIN commitmail json YAML

2023-12-11 12:47:24 UTC MAIN commitmail json YAML

Avoid overflow of totals.

(mlelstv)

2023-12-11 12:45:22 UTC MAIN commitmail json YAML

Be verbose about errors.

(mlelstv)

2023-12-11 12:42:18 UTC MAIN commitmail json YAML

pathconf needs to return EINVAL when the variable is invalid
or cannot be associated with a file. This also needs to be true
when the node doesn't implement the pathconf function at all.

(mlelstv)

2023-12-11 12:35:51 UTC netbsd-9 commitmail json YAML

2023-12-11 12:34:43 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by schmonz in ticket #1778):

sys/nfs/nfs_vnops.c: revision 1.325

NFS client: fix interop with macOS 14 servers.

Symptom: a bunch of "Cannot open `.' (Invalid argument)".
thorpej@ analysis and fix: on the first request to read a given
directory, make sure READDIR and READDIRPLUS cookie verifiers are
being set to 0. This is in RFC1813 and macOS must have gotten
stricter about it.

Verified on 10.0_RC1/aarch64 to fix the reproducers in PR kern/57691 as
well as the original use case in which I met the bug: pkg_rr once again
runs to completion.

(martin)

2023-12-11 12:33:55 UTC netbsd-10 commitmail json YAML

2023-12-11 12:32:40 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by schmonz in ticket #490):

sys/nfs/nfs_vnops.c: revision 1.325

NFS client: fix interop with macOS 14 servers.

Symptom: a bunch of "Cannot open `.' (Invalid argument)".
thorpej@ analysis and fix: on the first request to read a given
directory, make sure READDIR and READDIRPLUS cookie verifiers are
being set to 0. This is in RFC1813 and macOS must have gotten
stricter about it.

Verified on 10.0_RC1/aarch64 to fix the reproducers in PR kern/57691 as
well as the original use case in which I met the bug: pkg_rr once again
runs to completion.

(martin)

2023-12-11 12:30:23 UTC netbsd-8 commitmail json YAML

2023-12-11 12:29:30 UTC netbsd-8 commitmail json YAML

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

usr.bin/systat/vmstat.c: revision 1.92

PR bin/56014 from Kouichi Hashikawa

Don't try to optimise away placing the "s" or " " after "N user"
(" " where N==1, "s" otherwise) when it seems unnecessary, as that
fails when the number of users hasn't changed, but the screen is
being redrawn from nothing (as in after being resumed from a ^Z,
as in the PR, but just doing a ^L would make the same thing happen).

(martin)

2023-12-11 12:28:06 UTC netbsd-9 commitmail json YAML

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

usr.bin/systat/vmstat.c: revision 1.92

PR bin/56014 from Kouichi Hashikawa

Don't try to optimise away placing the "s" or " " after "N user"
(" " where N==1, "s" otherwise) when it seems unnecessary, as that
fails when the number of users hasn't changed, but the screen is
being redrawn from nothing (as in after being resumed from a ^Z,
as in the PR, but just doing a ^L would make the same thing happen).

(martin)

2023-12-11 09:26:08 UTC MAIN commitmail json YAML

mmap() fails for size == 0 with EINVAL unless the mapping is anonymous.

(mlelstv)

2023-12-11 02:08:26 UTC MAIN commitmail json YAML

skey(1): Fix documentation of `-x' to match implementation.

PR bin/28495

(riastradh)

2023-12-10 23:19:12 UTC MAIN commitmail json YAML

fix format specifiers for OLDPRINTFS build option.

(andvar)

2023-12-10 20:17:24 UTC MAIN commitmail json YAML

2023-12-10 20:12:28 UTC MAIN commitmail json YAML

2023-12-10 20:03:30 UTC MAIN commitmail json YAML

make: clean up the check for command line variables

It looked suspicious that to check whether a variable was set via the
command line, the variable value would be needed.  Moving the debug
diagnostic to the calling function resolved this smell.

A variable from the command line scope is never short-lived, so there's
no need to clean up after accessing the variable.

No functional change.

(rillig)

2023-12-10 19:56:53 UTC MAIN commitmail json YAML

make: clean up comments and local identifiers

No binary change, except for line numbers in assertions.

(rillig)

2023-12-10 18:59:50 UTC MAIN commitmail json YAML

make: document how to trigger a use-after-free bug

Since 2017-02-01.

(rillig)

2023-12-10 18:16:08 UTC MAIN commitmail json YAML

NFS client: fix interop with macOS 14 servers.

Symptom: a bunch of "Cannot open `.' (Invalid argument)".

thorpej@ analysis and fix: on the first request to read a given
directory, make sure READDIR and READDIRPLUS cookie verifiers are
being set to 0. This is in RFC1813 and macOS must have gotten
stricter about it.

Verified on 10.0_RC1/aarch64 to fix the reproducers in PR kern/57691 as
well as the original use case in which I met the bug: pkg_rr once again
runs to completion.

(schmonz)

2023-12-10 18:04:55 UTC MAIN commitmail json YAML

tests/libcurses: require 3 digits in octal character escapes

Previously, the string literal "\0" had been interpreted as "0", which
would have made the backslash redundant.  The tests don't use this form.

(rillig)

2023-12-10 17:45:35 UTC MAIN commitmail json YAML

indent: be strict about options from profile files

Previously, the "option" 'xdi0' was treated the same as '-xdi0'.

(rillig)

2023-12-10 17:26:18 UTC netbsd-10 commitmail json YAML

2023-12-10 17:25:30 UTC netbsd-10 commitmail json YAML

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

usr.bin/systat/vmstat.c: revision 1.92

PR bin/56014 from Kouichi Hashikawa

Don't try to optimise away placing the "s" or " " after "N user"
(" " where N==1, "s" otherwise) when it seems unnecessary, as that
fails when the number of users hasn't changed, but the screen is
being redrawn from nothing (as in after being resumed from a ^Z,
as in the PR, but just doing a ^L would make the same thing happen).

(martin)

2023-12-10 15:51:13 UTC MAIN commitmail json YAML

2023-12-10 15:42:29 UTC MAIN commitmail json YAML

tests/libcurses: fix typo in comment

(rillig)

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

tests/indent: fix name of test case

(rillig)

2023-12-10 15:31:53 UTC MAIN commitmail json YAML

cat: repeat storage class 'static' for local functions

No binary change.

(rillig)

2023-12-10 15:29:38 UTC MAIN commitmail json YAML

2023-12-10 14:59:48 UTC MAIN commitmail json YAML

2023-12-10 14:30:51 UTC MAIN commitmail json YAML

make: fix crash in ':C' modifier on an empty expression

Since var.c 1.982 from 2021-12-13.

(rillig)

2023-12-10 13:11:59 UTC netbsd-8 commitmail json YAML

2023-12-10 13:11:13 UTC netbsd-8 commitmail json YAML

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

lib/libc/net/sethostent.c: revision 1.21

Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

  the malloc one was reported to Android (as
  https://android-review.googlesource.com/c/platform/bionic/+/2856549)
  by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
  <cferris@google.com> then spotted the goto nospc one.

(martin)

2023-12-10 13:10:25 UTC netbsd-9 commitmail json YAML

2023-12-10 13:09:58 UTC netbsd-9 commitmail json YAML

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

lib/libc/net/sethostent.c: revision 1.21

Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

  the malloc one was reported to Android (as
  https://android-review.googlesource.com/c/platform/bionic/+/2856549)
  by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
  <cferris@google.com> then spotted the goto nospc one.

(martin)

2023-12-10 13:09:22 UTC netbsd-10 commitmail json YAML

2023-12-10 13:08:31 UTC netbsd-10 commitmail json YAML

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

lib/libc/net/sethostent.c: revision 1.21

Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

  the malloc one was reported to Android (as
  https://android-review.googlesource.com/c/platform/bionic/+/2856549)
  by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
  <cferris@google.com> then spotted the goto nospc one.

(martin)

2023-12-10 13:06:16 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by pgoyette in ticket #487):

sys/compat/common/compat_90_mod.c: revision 1.5
sys/compat/common/compat_90_mod.c: revision 1.6
sys/netinet6/in6.c: revision 1.290
sys/netinet6/in6.c: revision 1.291
sys/compat/common/files.common: revision 1.11
sys/netinet6/icmp6.c: revision 1.255
sys/compat/common/net_inet6_nd_90.c: revision 1.1
sys/compat/common/net_inet6_nd_90.c: revision 1.2
sys/modules/compat_90/Makefile: revision 1.2
sys/modules/compat_90/Makefile: revision 1.3
sys/netinet6/nd6.c: revision 1.281
sys/compat/common/compat_mod.h: revision 1.10
sys/kern/compat_stub.c: revision 1.23
sys/sys/compat_stub.h: revision 1.27

Identify the need to rework the COMPAT_* code to be more
module-aware.
This is an XXX comment block only, NFCI.

Modularize the COMPAT_90 code that resulted from the removal of
netinet6/nd6 from the kernel.  Now, the minimal compat code can
be successfully loaded and unloaded along with the rest of the
COMPAT_90 code.

Allow kernels builds which don't define INET6 to compile compat bits
too.

Default the build of compat_90 module to include IPv6, as is done
for other INET6-sensitive modules (see if_lagg).

(martin)

2023-12-10 00:29:25 UTC MAIN commitmail json YAML

Default the build of compat_90 module to include IPv6, as is done
for other INET6-sensitive modules (see if_lagg).

XXX Pullup to -10 (will add to existing ticket)

(pgoyette)

2023-12-09 20:31:57 UTC MAIN commitmail json YAML

Allow kernels builds which don't define INET6 to compile compat bits too.

(oster)

2023-12-09 19:42:41 UTC MAIN commitmail json YAML

Update elfconstants.m4 to upstream [r4003]:

- Use signed integer literals for DT_* values.

(jkoshy)

2023-12-09 16:32:20 UTC MAIN commitmail json YAML

gdb-14.1 out.

(wiz)

2023-12-09 16:18:48 UTC MAIN commitmail json YAML

PR/57759: Hauke Fath: Restore local additions, lost in revision 1.104

(christos)

2023-12-09 15:21:02 UTC MAIN commitmail json YAML

Modularize the COMPAT_90 code that resulted from the removal of
netinet6/nd6 from the kernel.  Now, the minimal compat code can
be successfully loaded and unloaded along with the rest of the
COMPAT_90 code.

XXX  pullup-10 - hopefully before RC2

(pgoyette)

2023-12-09 13:39:36 UTC netbsd-8 commitmail json YAML

2023-12-09 13:36:03 UTC netbsd-8 commitmail json YAML

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

tests/lib/libpthread/Makefile: revision 1.16
lib/libpthread/pthread.c: revision 1.184
distrib/sets/lists/debug/mi: revision 1.424
distrib/sets/lists/tests/mi: revision 1.1297
tests/lib/libpthread/t_stack.c: revision 1.1
tests/lib/libpthread/t_stack.c: revision 1.2
tests/lib/libpthread/t_stack.c: revision 1.3
tests/lib/libpthread/t_stack.c: revision 1.4
tests/lib/libpthread/t_stack.c: revision 1.5
tests/lib/libpthread/t_stack.c: revision 1.6

pthread: Add tests for pthread user stack allocation.
PR lib/57721

libpthread/t_stack: Make this more robust to the guard size bug.
Make sure to allocate enough space for the thread's stack for a guard
even though there shouldn't be one, so that when we run the thread,
it doesn't start with the stack pointer pointing into someone else's
allocation (like malloc) causing stack frames to trash another data
structure -- or causing the user of that data structure to trash the
stack frames.
PR lib/57721

libpthread/t_stack: Omit needless cast in previous.
Arose from an earlier draft of the change.
PR lib/57721

libpthread/t_stack: Appease gcc12 maybe-uninitialized warning.
The jmp_buf is not, in fact, uninitialized at the point of use, but
it doesn't hurt to narrow the scope a bit to between when the jmp_buf
is initialized by setjmp, and when the signal handler might be called
after sigaction.
Noted by prlw1.
PR lib/57721

libpthread/t_stack: Fix format string for size_t.
Tested this on i386 since that had been crashing before, but i386
doesn't see %zu for unsigned int as a problem.
PR lib/57721

pthread: Don't adjust user-allocated stack addresses by guardsize.
PR lib/57721

(martin)

2023-12-09 13:26:09 UTC netbsd-9 commitmail json YAML

2023-12-09 13:24:24 UTC netbsd-9 commitmail json YAML

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

tests/lib/libpthread/Makefile: revision 1.16
lib/libpthread/pthread.c: revision 1.184
distrib/sets/lists/debug/mi: revision 1.424
distrib/sets/lists/tests/mi: revision 1.1297
tests/lib/libpthread/t_stack.c: revision 1.1
tests/lib/libpthread/t_stack.c: revision 1.2
tests/lib/libpthread/t_stack.c: revision 1.3
tests/lib/libpthread/t_stack.c: revision 1.4
tests/lib/libpthread/t_stack.c: revision 1.5
tests/lib/libpthread/t_stack.c: revision 1.6

pthread: Add tests for pthread user stack allocation.
PR lib/57721

libpthread/t_stack: Make this more robust to the guard size bug.
Make sure to allocate enough space for the thread's stack for a guard
even though there shouldn't be one, so that when we run the thread,
it doesn't start with the stack pointer pointing into someone else's
allocation (like malloc) causing stack frames to trash another data
structure -- or causing the user of that data structure to trash the
stack frames.
PR lib/57721

libpthread/t_stack: Omit needless cast in previous.
Arose from an earlier draft of the change.
PR lib/57721

libpthread/t_stack: Appease gcc12 maybe-uninitialized warning.
The jmp_buf is not, in fact, uninitialized at the point of use, but
it doesn't hurt to narrow the scope a bit to between when the jmp_buf
is initialized by setjmp, and when the signal handler might be called
after sigaction.
Noted by prlw1.
PR lib/57721

libpthread/t_stack: Fix format string for size_t.
Tested this on i386 since that had been crashing before, but i386
doesn't see %zu for unsigned int as a problem.
PR lib/57721

pthread: Don't adjust user-allocated stack addresses by guardsize.
PR lib/57721

(martin)

2023-12-09 13:15:20 UTC netbsd-10 commitmail json YAML

2023-12-09 13:13:49 UTC netbsd-10 commitmail json YAML

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

distrib/sets/lists/man/mi: revision 1.1767
share/man/man7/Makefile: revision 1.38
share/man/man7/Makefile: revision 1.39
share/man/man7/stack.7: revision 1.1
share/man/man7/stack.7: revision 1.2
share/man/man7/stack.7: revision 1.3
share/man/man7/stack.7: revision 1.4
share/man/man7/stack.7: revision 1.5
share/man/man7/stack.7: revision 1.6

share/man/man7/Makefile: Split MAN on separate lines, and sort.
Makes sorting and merging changes easier.
No functional change intended.

Preparing for a new stack(7) in the service of PR pkg/57708.

stack(7): New man page.
Should help with PR pkg/57708.

stack(7): Clarify thread stack guard vs program stack guard.
Just in case this confuses anyone dealing with PR pkg/57708.

stack(7): Clarify some wording and diagrams.
PR pkg/57708

stack(7): Consistently say `(in)accessible pages', not `... stack'.
PR pkg/57708

share/man/man7/Makefile: Hook stack.7
stack(7): Minor clarifications and wording tweaks.
Suggested by pgoyette@ and uwe@.
PR pkg/57708

stack(7): Fix diagram of non-main thread stacks.
Had stackaddr (pthread_attr_setstack parameter, lowest-numbered
virtual address of stack region) confused with stack base (where the
stack grows from, which is the highest-numbered virtual address on
machines where stack grows down).
PR pkg/57708

(martin)

2023-12-09 13:10:16 UTC netbsd-8 commitmail json YAML

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

lib/libc/gen/vis.c: revision 1.75-1.86
tests/lib/libc/gen/t_vis.c: revision 1.10-1.14

PR 56260: fix out-of-bounds stack read.

vis(3): Avoid nonportable MIN in portable code.

vis(3) tests: Add xfail test for encoding overflow.

>From Kyle Evans <kevans%FreeBSD.org@localhost>.
PR lib/57573

vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573

vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.

vis(3): Make maxolen unsigned size_t, not ssize_t.
It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.
Part of PR lib/57573.

vis(3): Make mbslength unsigned.
Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.
Obviates need to worry about mblength > SSIZE_MAX.
Prompted by PR lib/57573.

vis(3): Avoid arithmetic overflow before calloc(3).
Prompted by PR lib/57573.

vis(3): Call wcslen(start) only once.
It had better not change between these two times!
Prompted by PR lib/57573.

vis(3): Avoid potential arithmetic overflow in maxolen.
Can't easily prove that this overflow is impossible, so let's add a
check.
Prompted by PR lib/57573.

vis(3): Fix main part of PR lib/57573.
>From Kyle Evans <kevans%FreeBSD.org@localhost>.

vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573

vis(3): Sort includes.  No functional change intended.
Prompted by PR lib/57573.

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
>From Kyle Evans <kevans%FreeBSD.org@localhost>.
Followup to PR lib/57573.

vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.

(martin)

2023-12-09 13:09:04 UTC netbsd-9 commitmail json YAML

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

lib/libc/gen/vis.c: revision 1.75-1.86
tests/lib/libc/gen/t_vis.c: revision 1.10-1.14

PR 56260: fix out-of-bounds stack read.

vis(3): Avoid nonportable MIN in portable code.

vis(3) tests: Add xfail test for encoding overflow.

>From Kyle Evans <kevans%FreeBSD.org@localhost>.
PR lib/57573

vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573

vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.

vis(3): Make maxolen unsigned size_t, not ssize_t.
It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.
Part of PR lib/57573.

vis(3): Make mbslength unsigned.
Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.
Obviates need to worry about mblength > SSIZE_MAX.
Prompted by PR lib/57573.

vis(3): Avoid arithmetic overflow before calloc(3).
Prompted by PR lib/57573.

vis(3): Call wcslen(start) only once.
It had better not change between these two times!
Prompted by PR lib/57573.

vis(3): Avoid potential arithmetic overflow in maxolen.
Can't easily prove that this overflow is impossible, so let's add a
check.
Prompted by PR lib/57573.

vis(3): Fix main part of PR lib/57573.
>From Kyle Evans <kevans%FreeBSD.org@localhost>.

vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573

vis(3): Sort includes.  No functional change intended.
Prompted by PR lib/57573.

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
>From Kyle Evans <kevans%FreeBSD.org@localhost>.
Followup to PR lib/57573.

vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.

(martin)

2023-12-09 13:03:34 UTC netbsd-10 commitmail json YAML

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

lib/libc/gen/vis.c: revision 1.76-1.86
tests/lib/libc/gen/t_vis.c: revision 1.10-1.14

vis(3): Avoid nonportable MIN in portable code.

vis(3) tests: Add xfail test for encoding overflow.

>From Kyle Evans <kevans%FreeBSD.org@localhost>.
PR lib/57573

vis(3) tests: Expand tests and diagnostic outputs on failure.
PR lib/57573

vis(3) tests: Test another overflow edge case.
Related to PR lib/57573.

vis(3): Make maxolen unsigned size_t, not ssize_t.
It is initialized once either to *dlen, which is unsigned size_t, or
to wcslen(start) * MB_MAX_LEN + 1, and wcslen returns unsigned size_t
too.  So there appears to have never been any reason for this to be
signed.
Part of PR lib/57573.

vis(3): Make mbslength unsigned.
Sprinkle assertions and comments justifying the proposition that it
would never go negative if signed.
Obviates need to worry about mblength > SSIZE_MAX.
Prompted by PR lib/57573.

vis(3): Avoid arithmetic overflow before calloc(3).
Prompted by PR lib/57573.

vis(3): Call wcslen(start) only once.
It had better not change between these two times!
Prompted by PR lib/57573.

vis(3): Avoid potential arithmetic overflow in maxolen.
Can't easily prove that this overflow is impossible, so let's add a
check.
Prompted by PR lib/57573.

vis(3): Fix main part of PR lib/57573.
>From Kyle Evans <kevans%FreeBSD.org@localhost>.

vis(3): Fix one more buffer overrun in an edge case.
PR lib/57573

vis(3): Sort includes.  No functional change intended.
Prompted by PR lib/57573.

vis(3): Need <stdint.h> for SIZE_MAX, per C standard.
>From Kyle Evans <kevans%FreeBSD.org@localhost>.
Followup to PR lib/57573.

vis(3): Per KNF, sys/param.h comes before sys/types.h.
Which is nice because that's also lexicographic.

(martin)

2023-12-09 12:57:16 UTC netbsd-9 commitmail json YAML

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

sys/arch/mips/mips/lock_stubs_llsc.S: revision 1.18

Add missing PTR_WORD command in front of 0.
Likely accidentally missed in the commit, since rev 1.9.

(martin)

2023-12-09 12:55:33 UTC netbsd-10 commitmail json YAML

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

sys/arch/mips/mips/lock_stubs_llsc.S: revision 1.18

Add missing PTR_WORD command in front of 0.
Likely accidentally missed in the commit, since rev 1.9.

(martin)

2023-12-09 12:46:06 UTC netbsd-8 commitmail json YAML

Additionally pull up following revision(s) (requested by riastradh in ticket #1920):

tests/lib/libc/sys/Makefile: revision 1.75 (via patch)

t_setrlimit uses alloca now

(martin)

2023-12-09 12:43:48 UTC netbsd-9 commitmail json YAML

Additionally pull up following revision(s) (requested by riastradh in ticket #1769):

tests/lib/libc/sys/Makefile: revision 1.75 (via patch)

t_setrlimit uses alloca now

(martin)

2023-12-09 12:40:49 UTC netbsd-10 commitmail json YAML

Additionally pull up following revision(s) (requested by riastradh in ticket #477):

tests/lib/libc/sys/Makefile: revision 1.75 (via patch)

t_setrlimit uses alloca now

(martin)

2023-12-09 02:15:11 UTC MAIN commitmail json YAML

ftp(1): wording and formatting improvements

Fix grammar issue with "Support values" reported in private mail.
Document all file transfer types in "type" and cross-reference that.
Consistency fixes in describing file transfer parameters and types.
Fix some mandoc -Tlint issues (except "useless macro: Tn").

(lukem)

2023-12-09 00:13:38 UTC MAIN commitmail json YAML

make: Var_SetWithFlags set fromCmd for SCOPE_CMDLINE

Set fromCmd true for SCOPE_CMDLINE
regardless of the variable name.

Reviewed by: rillig

(sjg)

2023-12-09 00:02:10 UTC MAIN commitmail json YAML

add static in from hatTest() and hatWedge() to fix TESTHAT option build.

(andvar)

2023-12-08 22:11:15 UTC MAIN commitmail json YAML

fix triple t typos in comment and debug message.

(andvar)

2023-12-08 21:46:02 UTC MAIN commitmail json YAML

2023-12-08 17:19:11 UTC MAIN commitmail json YAML

Change one vmem_free() in an error path that should be vmem_xfree().

(thorpej)

2023-12-08 16:29:04 UTC MAIN commitmail json YAML

Replace several magic numbers with macro to describe GPT's hybrid MBR boot.

(tsutsui)

2023-12-08 05:42:59 UTC MAIN commitmail json YAML

ixgbe: Update if_opackets outside the loop in ixgbe_txeof().

(msaitoh)

2023-12-08 05:39:27 UTC MAIN commitmail json YAML

ixgbe: micro-optimize ixgbe_txeof()

Update txr->tx_avail and txr->txr_no_space outside the loop in ixgbe_txeof().

(msaitoh)

2023-12-08 01:38:20 UTC MAIN commitmail json YAML

Excise extent(9) from the mipsco bus_space -- it was completely unused,
so let's make the code smaller.

(thorpej)

2023-12-07 23:42:28 UTC MAIN commitmail json YAML

Fix yet another wording (editing) botch noticed by uwe@

(kre)

2023-12-07 23:21:21 UTC MAIN commitmail json YAML

zic(8): missed a .Ql

(uwe)

2023-12-07 22:33:49 UTC MAIN commitmail json YAML

Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

  the malloc one was reported to Android (as
  https://android-review.googlesource.com/c/platform/bionic/+/2856549)
  by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
  <cferris@google.com> then spotted the goto nospc one.

(kre)

2023-12-07 20:13:37 UTC MAIN commitmail json YAML

Fix a wording botch noticed by uwe@ (and one more smaller one), and
a few more markup issues.  While here, consistemntly use minus when
minus is meant, rather that just using a hyphen.

(kre)

2023-12-07 20:02:07 UTC MAIN commitmail json YAML

cat: reduce visibility of local functions

No functional change.

(rillig)

2023-12-07 17:28:36 UTC MAIN commitmail json YAML

Update elfconstants.m4 to upstream [r3986].

- Add the NetBSD spelling of a 386 relocation.
- Add VAX relocations.

(jkoshy)

2023-12-07 17:24:22 UTC MAIN commitmail json YAML

stack(7): Fix diagram of non-main thread stacks.

Had stackaddr (pthread_attr_setstack parameter, lowest-numbered
virtual address of stack region) confused with stack base (where the
stack grows from, which is the highest-numbered virtual address on
machines where stack grows down).

PR pkg/57708

XXX pullup-10

(riastradh)

2023-12-07 17:15:48 UTC MAIN commitmail json YAML

stack(7): Minor clarifications and wording tweaks.

Suggested by pgoyette@ and uwe@.

PR pkg/57708

XXX pullup-10

(riastradh)

2023-12-07 16:56:09 UTC MAIN commitmail json YAML

2023-12-07 16:55:01 UTC MAIN commitmail json YAML

pthread: Document the setstack vs setguardsize bug.

Suggest the safe, compatible workaround.

(riastradh)

2023-12-07 16:54:44 UTC MAIN commitmail json YAML

t_setrlimit: Narrow the scope of stack-protector warning suppression.

(riastradh)

2023-12-07 16:47:44 UTC MAIN commitmail json YAML

Identify the need to rework the COMPAT_* code to be more
module-aware.

This is an XXX comment block only, NFCI.

(pgoyette)

2023-12-07 16:16:03 UTC MAIN commitmail json YAML

zic(8): more markup fixes

Still need to go over the tables.

(uwe)

2023-12-07 16:03:32 UTC MAIN commitmail json YAML

+STEK    session ticket encryption key

(jschauma)

2023-12-07 09:00:32 UTC MAIN commitmail json YAML

There's no COMPAT_60 code left here, so no need for conditional
inclusion of header file.

(pgoyette)

2023-12-07 07:10:44 UTC MAIN commitmail json YAML

s/miltiple/multiple/ in comment.

(andvar)

2023-12-07 07:04:13 UTC MAIN commitmail json YAML

s/multiplcation/multiplication/ in comment.

(andvar)

2023-12-07 03:46:10 UTC MAIN commitmail json YAML

2023-12-06 22:28:20 UTC MAIN commitmail json YAML

tests/make: show how global variables are unaffected by .for loops

(rillig)

2023-12-06 22:23:11 UTC MAIN commitmail json YAML

2023-12-06 22:20:37 UTC MAIN commitmail json YAML

2023-12-06 21:45:11 UTC MAIN commitmail json YAML

A couple more (relatively minor) markup fixes.

(kre)

2023-12-06 21:42:01 UTC MAIN commitmail json YAML

More markup fixes.    This man page remains exceedingly ugly (particularly
relating to vertical space - which often is missing where it would be
better if it weren't, or is present and wasteful/ugly).

(kre)

2023-12-06 20:01:44 UTC MAIN commitmail json YAML

2023-12-06 05:57:39 UTC MAIN commitmail json YAML

Fix "ifconfig lagg* lagglacp -maxports" command

This command clears the setting of the maximum number of
lacp active ports. The command was accepted but it did not
work until this change.

(yamaguchi)

2023-12-06 01:46:34 UTC MAIN commitmail json YAML

2023-12-05 22:24:40 UTC MAIN commitmail json YAML

s/pregress/progress/ in panic message.

(andvar)

2023-12-05 21:54:53 UTC MAIN commitmail json YAML

add explicit braces around SQ_DPRINTF() to fix dangling else compiler error.

fixes build with SQ_DEBUG option enabled for sgimips.

(andvar)

2023-12-05 19:28:40 UTC MAIN commitmail json YAML

add some virtual networking terms

+FRR Free Range Routing
+VNI virtual network identifier
+VTEP VXLAN tunnel endpoint
+VXLAN virtual extensible LAN

(jschauma)

2023-12-05 19:19:26 UTC MAIN commitmail json YAML

use kcpuset_isset() and pass second (NULL) argument to mips_fixup_exceptions()
to fix build for GENERIC(64).MP kernel configs.

(andvar)

2023-12-05 19:16:49 UTC MAIN commitmail json YAML

use kcpuset_isset() and pass second (NULL) argument to mips_fixup_exceptions()
to fix build for SBMIPS(64).MP kernel configs.

(andvar)

2023-12-05 17:38:40 UTC MAIN commitmail json YAML

Add missing PTR_WORD command in front of 0.

Likely accidentally missed in the commit, since rev 1.9.

In theory needs pull-ups for netbsd-9, -10, but nobody noticed for 4 years...

(andvar)

2023-12-05 17:23:20 UTC MAIN commitmail json YAML

Fix an incorrect comment.

(tsutsui)

2023-12-05 16:32:38 UTC MAIN commitmail json YAML

2023-12-05 15:58:32 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage VME<->PCI address
translations.

While here, malloc(9) -> kmem(9), and fix a couple of things that
the newer compiler gripes about.

(thorpej)

2023-12-05 15:41:34 UTC MAIN commitmail json YAML

b3_617_map_vme(): use VM_NOSLEEP.  EX_NOWAIT is 0, to lack of EX_WAITOK
is the same as EX_NOWAIT.

(thorpej)

2023-12-05 14:58:01 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage VME<->PCI address
translations.

While here, malloc(9) -> kmem(9), and fix a couple of things that
the newer compiler gripes about.

(thorpej)

2023-12-04 01:49:29 UTC MAIN commitmail json YAML

Manage VME address space using vmem(9) rather than extent(9).

XXX PR kern/57748 applies here; we lose the last byte of A32 space.

(thorpej)

2023-12-04 00:32:10 UTC MAIN commitmail json YAML

Convert the Alpha port's bus_space back-end to manage address space
with vmem(9) arenas (using statically-allocated private boundary tags
for very early-in-boot) rather than extent(9).

As a side-effect, there's arguments to some initialization functions
that are no longer required, so garbage-collect those, update all the
call sites.

(thorpej)

2023-12-03 21:44:43 UTC MAIN commitmail json YAML

2023-12-03 21:40:44 UTC MAIN commitmail json YAML

indent: group input-related variables into a struct

No functional change.

(rillig)

2023-12-03 21:03:58 UTC MAIN commitmail json YAML

indent: use line number of the token start in diagnostics

Previously, the line number of the end of the token was used, which was
confusing in debug mode.

(rillig)

2023-12-03 20:42:32 UTC MAIN commitmail json YAML

indent: fix line number counting in function definition

In a function definition that is split on two lines, if the first line
ends with a '*', the following line break didn't include the line
number.

(rillig)

2023-12-03 19:34:08 UTC MAIN commitmail json YAML

Add the notion of "private boundary tags" to vmem.  This allows vmem to
be used VERY early in boot; such consumers statically allocate the vmem
arena and boundary tags, and then explicitly add those static, private
boundary tags to the arena tag free list using the new function vmem_add_bts().

Vmem arenas that use private boundary tags will NOT consume the statically
allocated bootstrap tags used by the vmem system itself; the assumption is
that the consumer of such an arena knows what they're doing, and is responsible
for all necessary resource management.  A macro, VMEM_EST_BTCOUNT(), is
provided to help such consumers size the static boundary tag store based
on the expected number of spans and early allocations.  Once the private
tags are exhausted, the arena will dynamically allocate tags as usual.

(thorpej)

2023-12-03 18:17:41 UTC MAIN commitmail json YAML

2023-12-03 15:06:45 UTC MAIN commitmail json YAML

Split the boundary tag "type" field into "type" and "flags" fields.
Initialize the flags field to 0 before inserting into an arena's free
tag list.

NFC, but makes diff for a future enhancement smaller.

(thorpej)

2023-12-03 14:35:54 UTC MAIN commitmail json YAML

bt_freetrim(): Restructure the loop as a LIST_FOREACH_SAFE() rather
than a while().  No real change in behavior now, but makes upcoming
enhancements easier.

(thorpej)

2023-12-03 14:26:10 UTC MAIN commitmail json YAML

tests/indent: test compound expressions

(rillig)

2023-12-03 13:12:40 UTC MAIN commitmail json YAML

2023-12-03 12:24:49 UTC MAIN commitmail json YAML

2023-12-03 12:03:38 UTC MAIN commitmail json YAML

2023-12-03 09:42:36 UTC MAIN commitmail json YAML

tests/libcurses: sync documentation with reality

Unknown escape sequences in string literals trigger an error, since
testlang_conf.l 1.22 from 2021-02-25.

The '\b' is recognized since testlang_conf.l 1.26 from 2021-11-15.

(rillig)

2023-12-03 07:20:23 UTC MAIN commitmail json YAML

Use defined ${GPTSECTORS} rather than hardcoded 2048.

(tsutsui)

2023-12-03 07:17:11 UTC MAIN commitmail json YAML

Document USE_GPTMBR and GPTSECTORS.

(tsutsui)

2023-12-03 02:50:09 UTC MAIN commitmail json YAML

Assert that the vmem_btag_pool has been initialized before we attempt
to allocate from it.

(thorpej)

2023-12-03 02:17:06 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage IOMMU mappings.

(thorpej)

2023-12-03 02:03:18 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage IOMMU mappings.

(thorpej)

2023-12-03 00:49:46 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage SGMAP space.

(thorpej)

2023-12-02 23:54:49 UTC MAIN commitmail json YAML

tests/lint: add more test cases for nonportable character comparison

(rillig)

2023-12-02 22:42:02 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage the GAPS PCI DMA buffer.

(thorpej)

2023-12-02 21:53:15 UTC MAIN commitmail json YAML

lint: extract nonportable char comparison to separate function

No functional change.

(rillig)

2023-12-02 21:50:21 UTC MAIN commitmail json YAML

2023-12-02 21:47:05 UTC MAIN commitmail json YAML

2023-12-02 21:02:53 UTC MAIN commitmail json YAML

Use vmem_xalloc_addr() to reserve the first Sbus DVMA page.

(thorpej)

2023-12-02 21:02:13 UTC MAIN commitmail json YAML

Add a vmem_xalloc_addr() function, which allocates a specific address
from an arena.  This is just a convenience wrapper around vmem_xalloc(),
that's just a bit more obvious how to use and performs some additional
sanity checks.

(thorpej)

2023-12-02 19:11:52 UTC MAIN commitmail json YAML

vmem_init() requires the caller to include <sys/vmem_impl.h> in order
to know the storage size of "struct vmem", so put the prototype for
vmem_init() there as well.

(thorpej)

2023-12-02 19:06:17 UTC MAIN commitmail json YAML

Minor changes to let this build as the "subr_vmem" test program again.

(thorpej)

2023-12-02 16:18:17 UTC MAIN commitmail json YAML

2023-12-02 15:50:57 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage DVMA mappings.

(thorpej)

2023-12-02 13:34:48 UTC MAIN commitmail json YAML

PR/57735: Jose Louis Duran: check if fts_read(3) had an error.
(FreeBSD commit https://github.com/freebsd/freebsd-src/commit/\
    2dfa4b66b3d0caaaae6ce2df476b5615f8415a19)

(christos)

2023-12-02 13:26:09 UTC MAIN commitmail json YAML

PR/57735: Jose Louis Duran: Add missing xref to mtree.5
(FreeBSD commit https://github.com/freebsd/freebsd-src/commit/\
    da232c04ab9eba3d3a7fc73881daff847071e9fd)

(christos)

2023-12-02 13:24:00 UTC MAIN commitmail json YAML

PR/57735: Jose Louis Duran: mtree -f file1 -f file2 does not consider type
changes.
(FreeBSD https://github.com/freebsd/freebsd-src/commit/\
    4f4b548b1d21ae16955b09f9b717524167a7d97e)

(christos)

2023-12-01 23:56:30 UTC MAIN commitmail json YAML

Use vmem(9) rather than extent(9) to manage DVMA mappings.

(thorpej)

2023-12-01 12:07:20 UTC MAIN commitmail json YAML

2023-12-01 09:27:18 UTC MAIN commitmail json YAML

lagg(4): eliminate unnecessary reset by the change of if_flags

(yamaguchi)

2023-12-01 06:47:59 UTC MAIN commitmail json YAML

2023-12-01 06:18:02 UTC MAIN commitmail json YAML

lagg(4): use sadl for lagg(4) configured by a user

(yamaguchi)

2023-12-01 05:22:02 UTC MAIN commitmail json YAML

2023-11-30 09:42:36 UTC MAIN commitmail json YAML

workaround FreeBSD <fts.h> changing fts_open()'s compar signature

FreeBSD 5.2 changed fts_open()'s compar function signature by
adding extra const to the pointer arguments, and compilers
may complain about the mismatch.
Add workaround if compiling for FreeBSD and its <fts.h>.

(lukem)

2023-11-30 06:29:33 UTC MAIN commitmail json YAML

tools/Makefile: Correct inverted comment. NFC

(rin)

2023-11-29 19:02:37 UTC netbsd-9 commitmail json YAML

2023-11-29 18:59:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by gutteridge in ticket #1772):

sys/dev/wscons/wsemul_vt100.c: revision 1.47
sys/dev/wscons/wsemul_vt100.c: revision 1.48

PR/56223: David Shao ^[]8;;^G make console unresponsive. From OpenBSD:

In `string' state, accept bell (^G) as an end of sequence in addition to
`ESC \', as supported by xterm; some third-party software such as
ncmpcpp rely upon this.

fix the NetBSD tag.

(martin)

2023-11-29 18:54:37 UTC netbsd-8 commitmail json YAML

2023-11-29 18:53:44 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by taca in ticket #1922):

etc/namedb/root.cache: revision 1.24
etc/namedb/root.cache: revision 1.25
etc/namedb/root.cache: revision 1.26

sync with most recent (no changes)

Update to 2019093001

Update to 2023112702 (November 27, 2023).

(martin)

2023-11-29 18:04:09 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by taca in ticket #1771):

etc/namedb/root.cache: revision 1.26

Update to 2023112702 (November 27, 2023).

(martin)

2023-11-29 12:36:24 UTC netbsd-10 commitmail json YAML

2023-11-29 12:34:46 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #483):

sys/dev/pci/pci_resource.c: revision 1.4

pci: Improve resource allocation for non-prefetchable BARs.

When allocating resources for PCI devices, use the following criteria:
  - Prefetchable memory must be allocated from the prefetchable range
    of the parent bridge.
  - For 64-bit MMIO, try the prefetchable range first, and fallback to
    the non-prefetchable range. The idea here is to preserve 32-bit resources
    for 32-bit BARs.
  - For 32-bit MMIO, try the non-prefetchable range first. If that fails,
    make one last attempt at allocating from the prefetchable range, in the
    event that it has resources below 4GB.

(martin)

2023-11-29 12:33:08 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #482):

sys/arch/arm/acpi/gic_acpi.c: revision 1.8

gicv2: Fix truncation of GICC / GICD base addresses above 4GB.

(martin)

2023-11-29 12:29:45 UTC netbsd-8 commitmail json YAML

Ammend ticket #1920 for additional pullups

(martin)

2023-11-29 12:29:06 UTC netbsd-8 commitmail json YAML

Additionally pull up the following for ticket #1920:

sys/kern/exec_subr.c 1.87

Fix build for kernels w/o PAX_MPROTECT.

(martin)

2023-11-29 12:27:50 UTC netbsd-9 commitmail json YAML

Ammend ticket #1769 for additional pullups

(martin)

2023-11-29 12:27:05 UTC netbsd-9 commitmail json YAML

Additionally pull up the following for ticket #1769:

sys/kern/exec_subr.c 1.87

Fix build for kernels w/o PAX_MPROTECT.

(martin)

2023-11-29 12:25:55 UTC netbsd-10 commitmail json YAML

Ammend ticket #477 for additional pullups

(martin)

2023-11-29 12:25:17 UTC netbsd-10 commitmail json YAML

Additionally pull up the following for ticket #477:

sys/kern/exec_subr.c 1.87

Fix build for kernels w/o PAX_MPROTECT.

(martin)

2023-11-29 11:40:37 UTC MAIN commitmail json YAML

Fix use-after-free (source->is_type) when detecting unsharable
interrupts. Doesn't solve the interrupt conflict itself, but
avoids a panic.

(mlelstv)

2023-11-28 17:18:47 UTC netbsd-10 commitmail json YAML

2023-11-28 17:15:26 UTC netbsd-10 commitmail json YAML

Pull up the following, requested by bouyer in ticket #481:

external/nvidia-firmware/nouveau/dist/tu116/sec2/desc.bin up to 1.1.1.2
external/nvidia-firmware/nouveau/dist/tu116/sec2/image.bin up to 1.1.1.2
external/nvidia-firmware/nouveau/dist/tu116/sec2/sig.bin up to 1.1.1.2

Update Tu11x signed firmware to support newer Turing HW

(martin)

2023-11-28 16:23:18 UTC netbsd-10 commitmail json YAML

2023-11-28 16:22:04 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by taca in ticket #480):
etc/namedb/root.cache: revision 1.26
Update to 2023112702 (November 27, 2023).

(snj)

2023-11-28 16:19:51 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #479):
usr.sbin/sysinst/Makefile.inc: revision 1.47
PR 57729: clean up PKG_PATH for official RC (and similar) versions,
like we do for the daily builds.

(snj)

2023-11-28 14:10:18 UTC MAIN commitmail json YAML

PR 57729: clean up PKG_PATH for official RC (and similar) versions,
like we do for the daily builds.

(martin)

2023-11-28 13:18:32 UTC netbsd-10 commitmail json YAML

2023-11-28 13:17:11 UTC netbsd-10 commitmail json YAML

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

tests/lib/libpthread/Makefile: revision 1.16
lib/libpthread/pthread.c: revision 1.184
distrib/sets/lists/debug/mi: revision 1.424
distrib/sets/lists/tests/mi: revision 1.1297
tests/lib/libpthread/t_stack.c: revision 1.1
tests/lib/libpthread/t_stack.c: revision 1.2
tests/lib/libpthread/t_stack.c: revision 1.3
tests/lib/libpthread/t_stack.c: revision 1.4
tests/lib/libpthread/t_stack.c: revision 1.5
tests/lib/libpthread/t_stack.c: revision 1.6

pthread: Add tests for pthread user stack allocation.
PR lib/57721

libpthread/t_stack: Make this more robust to the guard size bug.
Make sure to allocate enough space for the thread's stack for a guard
even though there shouldn't be one, so that when we run the thread,
it doesn't start with the stack pointer pointing into someone else's
allocation (like malloc) causing stack frames to trash another data
structure -- or causing the user of that data structure to trash the
stack frames.
PR lib/57721

libpthread/t_stack: Omit needless cast in previous.
Arose from an earlier draft of the change.
PR lib/57721

libpthread/t_stack: Appease gcc12 maybe-uninitialized warning.
The jmp_buf is not, in fact, uninitialized at the point of use, but
it doesn't hurt to narrow the scope a bit to between when the jmp_buf
is initialized by setjmp, and when the signal handler might be called
after sigaction.
Noted by prlw1.
PR lib/57721

libpthread/t_stack: Fix format string for size_t.
Tested this on i386 since that had been crashing before, but i386
doesn't see %zu for unsigned int as a problem.
PR lib/57721

pthread: Don't adjust user-allocated stack addresses by guardsize.
PR lib/57721

(martin)

2023-11-28 13:14:41 UTC netbsd-8 commitmail json YAML

2023-11-28 13:13:29 UTC netbsd-8 commitmail json YAML

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

sys/ufs/ffs/ffs_vfsops.c: revision 1.382

ffs_sync: Avoid unlocked access to v_numoutput/v_dirtyblkhd.

Found by lockdoc.

PR kern/57606

(martin)

2023-11-28 13:12:52 UTC netbsd-9 commitmail json YAML

2023-11-28 13:11:38 UTC netbsd-9 commitmail json YAML

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

sys/ufs/ffs/ffs_vfsops.c: revision 1.382

ffs_sync: Avoid unlocked access to v_numoutput/v_dirtyblkhd.

Found by lockdoc.

PR kern/57606

(martin)

2023-11-28 13:00:52 UTC netbsd-8 commitmail json YAML

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

tests/lib/libc/sys/t_setrlimit.c: revision 1.8
tests/lib/libc/sys/t_setrlimit.c: revision 1.9
sys/kern/exec_subr.c: revision 1.86

t_setrlimit: Verify changing RLIMIT_STACK affects access to stack.
PR kern/57711

exec: Map noaccess part of stack with prot=NONE, maxprot=READ|WRITE.
This way, setrlimit(RLIMT_STACK) can grant READ|WRITE access when
increasing the stack size.
PR kern/57711

(martin)

2023-11-28 12:59:21 UTC netbsd-9 commitmail json YAML

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

tests/lib/libc/sys/t_setrlimit.c: revision 1.8
tests/lib/libc/sys/t_setrlimit.c: revision 1.9
sys/kern/exec_subr.c: revision 1.86

t_setrlimit: Verify changing RLIMIT_STACK affects access to stack.
PR kern/57711

exec: Map noaccess part of stack with prot=NONE, maxprot=READ|WRITE.
This way, setrlimit(RLIMT_STACK) can grant READ|WRITE access when
increasing the stack size.
PR kern/57711

(martin)

2023-11-28 12:56:28 UTC netbsd-10 commitmail json YAML

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

tests/lib/libc/sys/t_setrlimit.c: revision 1.8
tests/lib/libc/sys/t_setrlimit.c: revision 1.9
sys/kern/exec_subr.c: revision 1.86

t_setrlimit: Verify changing RLIMIT_STACK affects access to stack.
PR kern/57711

exec: Map noaccess part of stack with prot=NONE, maxprot=READ|WRITE.
This way, setrlimit(RLIMT_STACK) can grant READ|WRITE access when
increasing the stack size.
PR kern/57711

(martin)

2023-11-28 09:50:10 UTC MAIN commitmail json YAML

root.cache: updated to 2023112702 (November 27, 2023)

(taca)

2023-11-28 09:48:57 UTC MAIN commitmail json YAML

Update to 2023112702 (November 27, 2023).

(taca)