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

2024-05-10 10:13:20 UTC Now

2023-05-28 21:42:40 UTC MAIN commitmail json YAML

pax: don't overwrite destination if -r -w copy fails

Add more error handling to pax -r -w so that any failure
during the copy to the temporary file (including a failed flush)
prevents any existing destination file from being replaced
with the partial (including possibly empty) temporary file.
The partial temporary file is removed.  pax still exists non-zero.

Thanks to Michael van Elst (mlelstv@) for the analysis
of the problem in the PR.

Should fix PR misc/33753.

(lukem)

2023-05-28 17:01:46 UTC MAIN commitmail json YAML

pax: exit 0 if stdin filelist is used and empty

If copying a list of files from stdin, exit zero instead of non-zero
if there are no files supplied.

AFAICT, POSIX doesn't require a non-zero an error in this situation,
since there are no files to not match.

Fix from PR bin/41736 by Lloyd Parkes.

(lukem)

2023-05-28 12:56:56 UTC MAIN commitmail json YAML

Second arg to fdt_memory_remove_range is a size so pass dtbsize and not
dtb + dtbsize

(skrll)

2023-05-28 11:00:04 UTC MAIN commitmail json YAML

deprecate remnants of MKCRYPTO

MKCRYPTO was removed by riastradh@ on 2017-05-22,
so remove references to it in comments.

(lukem)

2023-05-28 10:49:00 UTC MAIN commitmail json YAML

bsd.own.mk: deprecate NOCRYPTO

MKCRYPTO was removed by riastradh@ on 2017-05-22,
so the NOCRYPTO override is now unnecessary.

(lukem)

2023-05-28 10:36:40 UTC netbsd-10 commitmail json YAML

2023-05-28 10:34:59 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #184):

usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.11

With the latest changes, pad(4) will return partial reads to allow a
more fine grained pacing of audio data. But this broke bta2dpd which
relied on full buffers returned (like reading from a file).

Replace the single read() in bta2dpd with a loop that fetches a full
buffer. This restores the old behaviour but loops in userland instead
of the kernel at the cost of a few extra system calls.

(martin)

2023-05-28 10:33:13 UTC MAIN commitmail json YAML

share/mk: finish USE_COMBINE, NOCOMBINE deprecation

Remove the leftover remnants of deprecated USE_COMBINE and NOCOMBINE,
as gcc -combine has been EOL for many years.

Completes the work done by maya@ on 2019-05-10 in bsd.kmodule.mk rev 1.61.

(lukem)

2023-05-28 10:23:12 UTC netbsd-9 commitmail json YAML

2023-05-28 10:21:15 UTC netbsd-9 commitmail json YAML

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

external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c: revision 1.15

reapply changes for the built-in drop-privs support by tsarna.

this commit doesn't reapply "dumping of the unicast server list
to the DumpStateLog debugging output" enhancement.
It doesn't build anymore, no idea how to rewrite.

Should fix PR 57442. Needs pull-ups for netbsd-9, netbsd-10.

(martin)

2023-05-28 10:20:08 UTC netbsd-10 commitmail json YAML

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

external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c: revision 1.15

reapply changes for the built-in drop-privs support by tsarna.

this commit doesn't reapply "dumping of the unicast server list
to the DumpStateLog debugging output" enhancement.
It doesn't build anymore, no idea how to rewrite.

Should fix PR 57442. Needs pull-ups for netbsd-9, netbsd-10.

(martin)

2023-05-28 10:14:36 UTC netbsd-10 commitmail json YAML

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

sys/arch/arm/nxp/imx6_platform.c: revision 1.8 (via patch)
sys/arch/arm/nxp/imx6_platform.c: revision 1.9 (via patch)
sys/arch/arm/nxp/imx6_ccmvar.h: revision 1.2
sys/arch/arm/nxp/imx6_ccmvar.h: revision 1.3
distrib/sets/lists/dtb/ad.earmv7hf: revision 1.10
sys/arch/arm/nxp/imx6sx_clk.c: revision 1.1
sys/arch/arm/nxp/imx6_ccm.c: revision 1.3
sys/arch/arm/nxp/imx6sx_clk.c: revision 1.2
sys/arch/arm/nxp/imx6_ccm.c: revision 1.4
sys/arch/arm/nxp/imx6sx_clk.c: revision 1.3
sys/arch/arm/nxp/imx6_spi.c: revision 1.8
sys/arch/arm/nxp/imx_sdhc.c: revision 1.8
sys/arch/arm/imx/imxusb.c: revision 1.19
sys/arch/arm/nxp/imx6_usb.c: revision 1.7
sys/arch/arm/nxp/imx6_usb.c: revision 1.8
sys/arch/arm/nxp/files.imx: revision 1.3
sys/arch/arm/nxp/imx6_clk.c: revision 1.5
sys/arch/arm/nxp/imx6_clk.c: revision 1.6
sys/arch/arm/nxp/imx6_reg.h: revision 1.2
sys/arch/arm/nxp/imx6_gpc.c: revision 1.4
sys/arch/arm/imx/imx23_usb.c: revision 1.6
sys/dtb/arm/Makefile: revision 1.6
sys/arch/arm/imx/imxusbvar.h: revision 1.7
sys/arch/evbarm/conf/GENERIC: revision 1.119
sys/arch/arm/nxp/imx6_ccmreg.h: revision 1.2
sys/arch/arm/nxp/imx6_iomux.c: revision 1.3
sys/arch/arm/nxp/imx6_usbphy.c: revision 1.3
sys/arch/arm/nxp/imx6_pcie.c: revision 1.7

In preparation of imx6sx support, move imx6q-specific definitions from
imx6_ccm.c to imx6_clk.c, and prefix with IMX6Q/imx6q:
- Clock IDs and related struct imx_clock_id
- Clock Parents and Divider Tables
- struct imx6_clk
and related static functions

Add a pointer to struct imx6_clk, and it's size to imx6ccm_softc

Pass a pointer to imx6ccm_softc to all functions from imx6_ccm.c
NFCI

i.mx6sx CPU support in the CCM module: the clock tree si different from
the i.mx6q
- move i.mx6q-specific functions and data to imx6_clk.c
- add i.mx6sx specific imx6sx_clk.c
- add a imx6sxccm device
i.mx6sx platform support:
- the i.mx6sx has a third AIPS, so KERNEL_IO_IOREG map has to be larger
- the uart clock is at 24Mhz instead of 80.

Add i.mx6sx compatible entries to drivers that should work as is.

Fix typo, preventing i2c4 from attaching
remove commented out entries, leftover from the imx6q ccm code.
introduce imx6sx_platform_bootstrap(), which calls imx_platform_bootstrap()
and then checks for an "arm,cortex-a9-twd-timer" compatible entry in the
fdt. If not present, create one so that a9ptmr will attach.
We need this entry as this is the only timer we support for this platform,
but the upstream imx6sx.dtsi is missing the entry for it (and all A9 CPUs
have it anyway).

Thanks to Jared McNeill for advices and review.

Also build dtb files for CONFIG_SOC_IMX6SX

experimental IMX6SX support:
- add options SOC_IMX6SX
- add imx6sxccm device
tested on a UDOO Neo Full board.

known to work:
- uart (console)
- sdmmc0
- ethernet (enet0)
known to not work:
- USB (device not detected).

needs a modified device tree at this time (add arm,cortex-a9-twd-timer entry
copied from the imx6qdl dtsi); for unkown reason the imx6sx.dtsi file lacks
an entry for the a9ptmr although it is present in the soc (and, from what I
understood, in all cortex A9 SoCs).

Add imx6sx dtb files

The i.mx6sx has 2 OTG and one host-only USB controller, while the 6q has
only one OTG.

Add a "uintptr_t data" argument to all sc_*_md_hook callbacks, which
gets the sc_md_hook_data value when called.

In imx6_usb.c use this to pass the number of OTG controllers to the callbacks.
imx6_usb_init() can then properly call init_otg() or init_h1() for unit 1.

In imx6_usb_attach(), test if there is a vbus-supply property in the fdt,
and enable the regulator if present.

Now the USB port of the UDOO Neo works.

(martin)

2023-05-28 10:07:11 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #181):

usr.bin/m4/gnum4.c: revision 1.13

use strchr

(martin)

2023-05-28 10:03:54 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #180):

usr.bin/m4/gnum4.c: revision 1.12

m4 -g: { and } aren't supported in patsubst() or regexp()

When running in -g (GNU m4) emulation, patsubst() and regexp()
use the GNU m4 emacs-like regexes as implemented by gnulib,
which don't support {..} intervals.

When converting a GNU m4 regex to a POSIX ERE, escape raw { and }.
Autoconf relies on the GNU m4 regex behaviour.

See:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Redefined-M4-Macros.html
- https://www.gnu.org/software/gnulib/manual/html_node/emacs-regular-expression-syntax.html

This fixes the tools/compat/configure regen.

PR toolchain/57431

(martin)

2023-05-28 10:00:53 UTC netbsd-10 commitmail json YAML

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

external/bsd/unbound/include/config.h: revision 1.11

Set PID path back to "/var/run/unbound.pid" so rc scripts work again.
Ok: Christos Zoulas

PR bin/57242 unbound rc.d script does not work with chrooted unbound

(martin)

2023-05-28 09:58:41 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #178):

etc/etc.mac68k/Makefile.inc: revision 1.24
distrib/cdrom/Makefile: revision 1.53

Creating Type&Creator mappings for .bin (macbinary encoded) files,
mkisofs changes files, then turns around and complains they have been
changed.

This is a self-inflicted wound, so demote the error to a warning.

Reported upstream as <https://codeberg.org/schilytools/schilytools/issues/58>.

Arguably fixes PR toolchain/42166

Request pull-ups to netbsd-{8,9,10}.
XXX What about macppc?

(martin)

2023-05-28 09:49:03 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #177):

tools/Makefile.gnuhost: revision 1.56
external/gpl3/gcc/usr.bin/host-libcpp/Makefile: revision 1.6

Fix passing -j NNN to gmake

Use a more restrictive pattern to extract -j NNN from MAKEFLAGS
into GMAKE_J_ARGS, to avoid false positives when the source directory
has "-j" in the path (e.g "amd64-job-000012" or "src-j9999").

Previously this could pass either -"-j" or "-j BIGNUM" to gmake
and result in "vfork: Resource temporarily unavailable" failures.

PR misc/54456

(martin)

2023-05-28 09:47:28 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by lukem in ticket #176):

external/gpl3/gcc/usr.bin/libdecnumber/Makefile: revision 1.9
external/gpl3/gcc/usr.bin/common/Makefile: revision 1.12
external/gpl3/gcc/usr.bin/backend/Makefile: revision 1.67
external/gpl3/gcc/usr.bin/common-target/Makefile: revision 1.12
external/gpl3/gcc/usr.bin/frontend/Makefile: revision 1.15
external/gpl3/gcc/usr.bin/libcpp/Makefile: revision 1.10

gcc: fix build with clang++ HOST_CXX

Define HOSTPROG_CXX before .include anything that brings in bsd.own.mk.

This ensures that HOST_DBG (etc) gets assigned before HOST_CFLAGS
and HOST_CXXFLAGS is created.

backend: .include <bsd.init.mk> much earlier, as per the other directories.

Fixes backend build when using clang++ as the host compiler (e.g., macOS),
because backend host tools are now built with -O.

Inspired by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255760

Note that gcc.old/Makefile.prog may be mis-used because it defines HOSTPROG_CXX
and this Makefile fragment is included after bsd.*.mk in other Makefiles,
but they seem to build ok so leaving it alone for now.

Fixes PR toolchain/57014

(martin)

2023-05-28 09:43:26 UTC netbsd-10 commitmail json YAML

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

sys/sys/proc.h: revision 1.371
sys/kern/vfs_lookup.c: revision 1.234

Default PROC_MACHINE_ARCH to machine_arch and use this for magic
symlinks to resolve "@machine_arch".

This keeps behaviour of magic symlinks and 'uname -p' output the same.
Fixes PR 57320.

(martin)

2023-05-28 08:21:24 UTC MAIN commitmail json YAML

s/Resture/Restore/ and s/restared/restarted/ in comments.

(andvar)

2023-05-28 08:17:00 UTC MAIN commitmail json YAML

Add RUMPHIJACK option "blanket=/DEV" so mount_ffs may canonicalise
and mount the device path.  Cannot use "/rump/DEV" here as the device
path is embedded in "struct ufs_args" where it doesnt get hijacked.

(hannken)

2023-05-28 08:09:34 UTC MAIN commitmail json YAML

s/explcit/explicit/ in comment.

(andvar)

2023-05-28 08:01:46 UTC MAIN commitmail json YAML

s/sessoin/session/ in warning message.

(andvar)

2023-05-28 07:59:17 UTC MAIN commitmail json YAML

With the latest changes, pad(4) will return partial reads to allow a
more fine grained pacing of audio data. But this broke bta2dpd which
relied on full buffers returned (like reading from a file).

Replace the single read() in bta2dpd with a loop that fetches a full
buffer. This restores the old behaviour but loops in userland instead
of the kernel at the cost of a few extra system calls.

(mlelstv)

2023-05-28 06:21:00 UTC MAIN commitmail json YAML

In sys/param.h document that MAXPATHLEN includes space for a null byte.

Also note that it's the same as PATH_MAX. Reflow the comment.

Suggested by Thierry Laronde.

(dholland)

2023-05-28 03:35:24 UTC MAIN commitmail json YAML

2023-05-27 21:38:06 UTC MAIN commitmail json YAML

2023-05-27 20:51:22 UTC MAIN commitmail json YAML

Explicitly run openssl's "gen" script in a shell

The script has permissions 755 in the repo but ends up with permissions
644 in the source sets, therefore we cannot invoke it simply as
path/to/gen .

(hgutch)

2023-05-27 17:58:59 UTC MAIN commitmail json YAML

reapply changes for the built-in drop-privs support by tsarna.
this commit doesn't reapply "dumping of the unicast server list
to the DumpStateLog debugging output" enhancement.
It doesn't build anymore, no idea how to rewrite.
Should fix PR 57442. Needs pull-ups for netbsd-9, netbsd-10.

(andvar)

2023-05-27 14:51:47 UTC MAIN commitmail json YAML

Revert to previous.

This change broke the intention of recent changes to pad(4).

The solution to address PR/57436 must be done in bta2dpd(8).

(nat)

2023-05-27 10:12:11 UTC MAIN commitmail json YAML

openssl: Add missing sparc compat openssl engines to set list.

(riastradh)

2023-05-27 02:30:40 UTC MAIN commitmail json YAML

openssl: Delete capi makefiles -- not likely to ever see use here.

(riastradh)

2023-05-27 02:28:46 UTC MAIN commitmail json YAML

2023-05-27 00:09:06 UTC MAIN commitmail json YAML

openssl: Fix typo in mips set list.

(riastradh)

2023-05-27 00:08:30 UTC MAIN commitmail json YAML

2023-05-26 23:13:37 UTC MAIN commitmail json YAML

openssl: Link engines against libcrypto so they can be loaded.

(riastradh)

2023-05-26 22:27:51 UTC MAIN commitmail json YAML

openssl: Wire up dynamic engine build goo.

This restores the devcrypto engine, which was converted from static
to dynamic since the previous OpenSSL update.

XXX Pretty sure I got some of the set list package names wrong, but
it's not clear what the right ones are or what consequences any of
this has.

XXX Needs testing.

(riastradh)

2023-05-26 22:26:25 UTC MAIN commitmail json YAML

openssl: Add /usr/lib/${ARCHDIR}/openssl/engines to aarch64 build.

(riastradh)

2023-05-26 22:26:11 UTC MAIN commitmail json YAML

src/crypto/external/bsd/openssl/lib/engines/Makefile@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/engines/capi/Makefile@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/capi/capi.map@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/dasync/Makefile@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/dasync/dasync.map@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/devcrypto/Makefile@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/devcrypto/devcrypto.map@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/engines.mk@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/engines/loader_attic/Makefile@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/loader_attic/loader_attic.map@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/ossltest/Makefile@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/ossltest/ossltest.map@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/padlock/Makefile@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/engines/padlock/padlock.map@1.3 / diff / nxr@1.3
src/distrib/sets/lists/base/ad.mips@1.86 / diff / nxr@1.86
src/distrib/sets/lists/base/ad.powerpc@1.44 / diff / nxr@1.44
src/distrib/sets/lists/base/ad.riscv@1.27 / diff / nxr@1.27
src/distrib/sets/lists/base/md.amd64@1.290 / diff / nxr@1.290
src/distrib/sets/lists/base/md.sparc64@1.260 / diff / nxr@1.260
src/distrib/sets/lists/base/mi@1.1321 / diff / nxr@1.1321
      :
(more 2 files)
Revert "openssl: Nix build goo for dynamically loaded engines."

Turns out there is a regression lurking here: the devcrypto engine
was made dynamic-only (https://github.com/openssl/openssl/pull/7859),
so to maintain that functionality, we need to build dynamic engines.
Will fix the aarch64 build issue and wire things up separately.

(riastradh)

2023-05-26 21:40:46 UTC MAIN commitmail json YAML

Fix potential null dereference by simply adding last_gd != NULL check
around the code block with last_gd usage after the inner loop.
It may mainly happen on bus_dmamap_load error.
Reported by Mootja _14, 2017.

(andvar)

2023-05-26 20:50:21 UTC MAIN commitmail json YAML

include arm/arm32/pte.h to gemini_ipm.c to fix GEMINI_MASTER/SLAVE config builds.
They fail with 'L1_S_SIZE' undeclared error otherwise from gemini.h declarations.
gemini_machdep.c includes it transitively, thus doesn't faili on GEMINI config.
Likely nobody is using them anyway though...

(andvar)

2023-05-26 13:21:52 UTC MAIN commitmail json YAML

openssl: Nix build goo for dynamically loaded engines.

- Engines are deprecated in openssl 3.

- We never actually had the .so engines wired up to be built in
  openssl 1.1, and judging by the lack of obsolete entries in the set
  lists, I don't think we ever had them wired up to be built at all.

(riastradh)

2023-05-26 12:10:13 UTC MAIN commitmail json YAML

Fix previous.

The previous commit was misleading due to the flag names used.

The rationale for this change is that it is ok to return EAGAIN on first
read as playback has not started.  Then it shoud wait on every subsequent read.

This is what makes the high precsision throttling of pad(4), for which these
degree of fine-grained sleeps are not possible in userland.  This is a
requirement of users of pad(4) such as bta2dpd(8).

(nat)

2023-05-26 10:44:59 UTC MAIN commitmail json YAML

/etc/rc.d/sshd: New check cmd and reload precmd.

- check cmd: run `sshd -t' to check sshd_config file

- reload precmd: run check cmd before reloading so we don't nuke sshd
  if there's an error in the sshd_config file

(It is still possible to effectively nuke sshd by changing the
configuration tosomething that won't work on your network, but at
least we avoid making sshd just exit on reload when you make a typo
in a config option.)

XXX pullup-9
XXX pullup-10

(riastradh)

2023-05-26 10:39:56 UTC MAIN commitmail json YAML

Fix logic for timing.

Addresses PR/57436.

XXX pullup-10.

(nat)

2023-05-26 06:36:39 UTC MAIN commitmail json YAML

set error to EIO on SKEY_ABORTED_COMMAND.
It is usually the case for other SCSI drivers, though they do implement retries too.
potentially same should be committed to prep(?).
discussed with riastradh.

(andvar)

2023-05-26 06:27:51 UTC MAIN commitmail json YAML

initialize error on definition to fix 'error' may not be initialized issue.
the commit unifies code between bebox and prep machines.
reported by Mootja _08.

(andvar)

2023-05-26 03:30:57 UTC MAIN commitmail json YAML

+CRDT  conflict-free replicated data type
+UDS    Unix Domain Socket

(jschauma)

2023-05-25 21:46:55 UTC MAIN commitmail json YAML

ddb: PR kern/57435 - fix duplicate "show mount"

Bolivar cannot carry double.  One of these commands should have been
"show mounts", cf. page/pages and a few others.  While here fix the
function name to be db_show_all_mounts to conform to the pattern.

(uwe)

2023-05-25 19:12:51 UTC MAIN commitmail json YAML

openssl: CWARNFLAGS, not COPTS, for -Wno-error=...

COPTS gets put too early, so these are cancelled out by -W flags
added later by bsd.sys.mk.  (How did this ever work???)

(riastradh)

2023-05-25 19:12:42 UTC MAIN commitmail json YAML

openssl: Note that -Wno-error=char-subscripts likely masks real bugs.

(riastradh)

2023-05-25 19:12:06 UTC MAIN commitmail json YAML

2023-05-25 17:37:05 UTC MAIN commitmail json YAML

pathadj() is required to succeed.  If it cannot, simply issuing a
warning and continuing is not good enough.  Change the warning to
an error (and hence immediate exit) instead, that's all we can do.

Problem pointed out by tlaronde@polynum.com

XXX - pullup -10 (others?)

(kre)

2023-05-25 17:24:17 UTC MAIN commitmail json YAML

If it isn't possible to determine the realpath() of ".", then simply
give up on attempting to resolve any relative path - there's no hope.

(kre)

2023-05-25 17:20:15 UTC MAIN commitmail json YAML

2023-05-25 16:05:28 UTC MAIN commitmail json YAML

openssl: Suppress clang warnings for using string literals as char *.

Not sure this is actually forbidden by the C standard.  There may be
bugs lurking here, but OpenSSL uses this extensively, so let's just
get the build going again.

(riastradh)

2023-05-25 15:52:30 UTC MAIN commitmail json YAML

src/crypto/external/bsd/openssl/lib/engines/engines.mk@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libapps/Makefile@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcommon/Makefile@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/Makefile@1.30 / diff / nxr@1.30
src/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/ec.inc@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ec.inc@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/crypto.inc@1.15 / diff / nxr@1.15
src/crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/crypto.inc@1.9 / diff / nxr@1.9
src/crypto/external/bsd/openssl/lib/libcrypto/arch/sparc64/ec.inc@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/crypto.inc@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/ec.inc@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/sha.inc@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/bf.inc@1.3 / diff / nxr@1.3
src/crypto/external/bsd/openssl/lib/libcrypto/gen@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/libc-sha256.c@1.4 / diff / nxr@1.4
src/crypto/external/bsd/openssl/lib/libcrypto/libc-sha512.c@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libcrypto/man/Makefile@1.9 / diff / nxr@1.9
src/crypto/external/bsd/openssl/lib/libcrypto/mkinc@1.2 / diff / nxr@1.2
src/crypto/external/bsd/openssl/lib/libcrypto/rc4.inc@1.5 / diff / nxr@1.5
src/crypto/external/bsd/openssl/lib/libdefault/Makefile@1.6 / diff / nxr@1.6
      :
(more 3 files)
openssl: Nix trailing whitespace in build goo.

No functional change intended.

(riastradh)

2023-05-25 14:30:03 UTC MAIN commitmail json YAML

libpthread: New pthread__smt_wait to put CPU in low power for spin.

This is now distinct from pthread__smt_pause, which is for spin lock
backoff with no paired wakeup.

On Arm, there is a single-bit event register per CPU, and there are two
instructions to manage it:

- wfe, wait for event -- if event register is clear, enter low power
  mode and wait until event register is set; then exit low power mode
  and clear event register

- sev, signal event -- sets event register on all CPUs (other
  circumstances like interrupts also set the event register and cause
  wfe to wake)

These can be used to reduce the power consumption of spinning for a
lock, but only if they are actually paired -- if there's no sev, wfe
might hang indefinitely.  Currently only pthread_spin(3) actually
pairs them; the other lock primitives (internal lock, mutex, rwlock)
do not -- they have spin lock backoff loops, but no corresponding
wakeup to cancel a wfe.

It may be worthwhile to teach the other lock primitives to pair
wfe/sev, but that requires some performance measurement to verify
it's actually worthwhile.  So for now, we just make sure not to use
wfe when there's no sev, and keep everything else the same -- this
should fix severe performance degredation in libpthread on Arm
without hurting anything else.

No change in the generated code on amd64 and i386.  No change in the
generated code for pthread_spin.c on arm and aarch64 -- changes only
the generated code for pthread_lock.c, pthread_mutex.c, and
pthread_rwlock.c, as intended.

PR port-arm/57437

XXX pullup-10

(riastradh)

2023-05-25 14:29:45 UTC MAIN commitmail json YAML

libpthread: Use __nothing, not /* nothing */, for empty macros.

No functional change intended -- just safer to do it this way in case
the macros are used in if branches or comma expressions.

PR port-arm/57437 (pthread__smt_pause/wake issue)

XXX pullup-10

(riastradh)

2023-05-25 13:18:44 UTC MAIN commitmail json YAML

osnet: on macOS, use <mach/boolean.h> for boolean_t

macOS/x86_64 defines boolean_t as 'unsigned int' not 'int',
which causes a build issue with tools/ctfmerge on that host
after my recent fixes for macOS semaphores.
So use the <mach/boolean.h> instead of a local typedef ifdef __APPLE__.

May fix a macOS/x86_64 build issue reported by cjep@.
Builds fine on NetBSD/amd64 or macOS/arm.

Note: this compat stuff is clunky, and based on the commit log,
annoyingly error prone. A newer sync of osnet from upstream /may/
improve a lot of these compat typedef workarounds for solaris types...

(lukem)

2023-05-25 12:57:38 UTC MAIN commitmail json YAML

revert my previous commit as there is no agreement on it being either desired
or appropriate

(jschauma)

2023-05-25 12:53:56 UTC MAIN commitmail json YAML

ctfmerge: fix macOS semaphore implementation, part 2

dispatch_semaphore_signal() doesn't return an error, just an
indicator of whether a thread was woken or not, so there's
no need to fail on non-zero return.

(lukem)

2023-05-25 12:07:43 UTC MAIN commitmail json YAML

amdgpu: Fix mostly harmless merge botch.

Avoids confusing error message that should have been confined to an
error branch.

(riastradh)

2023-05-25 06:17:18 UTC MAIN commitmail json YAML

Fix CLKF_INTR so that not all time is shown as being spent in interrupts.

(skrll)

2023-05-25 01:31:27 UTC MAIN commitmail json YAML

chflags(1): fix wrong markup in previous

(uwe)

2023-05-24 22:33:17 UTC MAIN commitmail json YAML

Briefly describe the 'arch' and 'nodump' flags.

(jschauma)

2023-05-24 22:14:31 UTC MAIN commitmail json YAML

2023-05-24 21:58:19 UTC MAIN commitmail json YAML

m4 -g: { and } aren't supported in patsubst() or regexp()

When running in -g (GNU m4) emulation, patsubst() and regexp()
use the GNU m4 emacs-like regexes as implemented by gnulib,
which don't support {..} intervals.
When converting a GNU m4 regex to a POSIX ERE, escape raw { and }.

Autoconf relies on the GNU m4 regex behaviour.

See:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Redefined-M4-Macros.html
- https://www.gnu.org/software/gnulib/manual/html_node/emacs-regular-expression-syntax.html

This fixes the tools/compat/configure regen.

PR toolchain/57431

(lukem)

2023-05-24 21:49:38 UTC MAIN commitmail json YAML

revert previous: autoconf doesn't use EREs

autoconf relies upon GNU m4 emacs-style regexs, which
don't support intervals so don't escape these.
A fix to usr.bin/m4 -g (GNU m4 emulation) is incoming.

(lukem)

2023-05-24 20:22:23 UTC MAIN commitmail json YAML

entropy(9): Avoid race between rnd_add_data and ioctl(RNDCTL).

XXX pullup-10

(riastradh)

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

entropy(9): On flags change, cancel any scheduled consolidation.

We've been instructed to lose confidence in existing entropy sources,
so let's make sure to re-gather enough entropy before the next
consolidation can happen, in case some of what would be counted in
consolidation is from those entropy sources.

XXX pullup-10

(riastradh)

2023-05-24 20:02:34 UTC MAIN commitmail json YAML

match the new compiler warning

(christos)

2023-05-24 18:22:05 UTC MAIN commitmail json YAML

2023-05-24 16:43:40 UTC MAIN commitmail json YAML

introduce imx6sx_platform_bootstrap(), which calls imx_platform_bootstrap()
and then checks for an "arm,cortex-a9-twd-timer" compatible entry in the
fdt. If not present, create one so that a9ptmr will attach.
We need this entry as this is the only timer we support for this platform,
but the upstream imx6sx.dtsi is missing the entry for it (and all A9 CPUs
have it anyway).

Thanks to Jared McNeill for advices and review.

(bouyer)

2023-05-24 14:34:16 UTC MAIN commitmail json YAML

2023-05-24 13:09:53 UTC MAIN commitmail json YAML

CHANGES: rm SHAREDSTRINGS, mkstr, xstr

(lukem)

2023-05-24 13:00:16 UTC MAIN commitmail json YAML

obsolete mkstr(1) and xstr(1)

These were only used on PDP-11 for two programs we don't ship,
and have been obsolete since the VAX days.

xstr never worked in the build.sh cross-build environment (22 years), or
parallel make environment (nearly 28 years), didn't work in the orignal 386bsd
import, and has never been needed in NetBSD as we don't have the older BSD
programs (pascal, pre-nvi ex) that needed mkstr/xstr on PDP-11.

PR toolchain/35964

(lukem)

2023-05-24 10:07:16 UTC MAIN commitmail json YAML

deprecate SHAREDSTRINGS build option

Hasn't worked for at least 20 years (and never in the cross-build environment,
nor did it work with parallel make), and has never been needed in NetBSD as we
don't have the older BSD programs (pascal, pre-nvi ex) that needed mkstr/xstr
on PDP-11.

PR toolchain/35964

(lukem)

2023-05-24 00:02:51 UTC MAIN commitmail json YAML

efi(4): Fix logic to handle buffer sizing.

Can't KASSERT(datasize <= databufsize) because the caller is allowed
to pass in a too-small size and get ERR_BUFFER_TOO_SMALL back, with
the actual size returned so it can resize its buffer.  So just clamp
the size to the smaller of what the caller provided and what the
firwmare provided, instead of asserting anything.

PR kern/57076

XXX pullup-10

(riastradh)

2023-05-23 20:26:52 UTC MAIN commitmail json YAML

ctfmerge tool fixes might need a clean tools build

(lukem)

2023-05-23 20:24:24 UTC MAIN commitmail json YAML

ctfmerge: pthread error handling. macos host fixes

(lukem)

2023-05-23 20:22:11 UTC MAIN commitmail json YAML

tools/compat: regen for dispatch_semaphore_create

(lukem)

2023-05-23 20:20:54 UTC MAIN commitmail json YAML

tools/compat: MAKEVERBOSE support in regen

(lukem)

2023-05-23 20:15:58 UTC MAIN commitmail json YAML

autoconf: AC_FUNC_ALLOCA(): add local fix for BSD support

Add local fix to AC_FUNC_ALLOCA() to include <stdlib.h> on BSD:
# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
#  include <stdlib.h>

This change avoids regen losing this change in tools/compat/configure
that was added in rev 1.75 on 2013-03-05 of tools/compat/configure,
and subsequent commits that keep re-adding these lines back
manually (e.g., rev 1.97 on 2019-06-22 of tools/compat/configure)

XXX: Arguably this could be fixed in a separate way to allow us to
use an unmodified modern autoconf in the future ?

(lukem)

2023-05-23 20:07:21 UTC MAIN commitmail json YAML

Set PID path back to "/var/run/unbound.pid" so rc scripts work again.

Ok: Christos Zoulas

PR bin/57242 unbound rc.d script does not work with chrooted unbound

(hannken)

2023-05-23 19:53:25 UTC MAIN commitmail json YAML

ctfmerge: fix macOS semaphore implementation

Use dispatch_semaphore_create() if present instead of sem_init().

macOS doesn't actually implement sem_init() (et al)
(even though it provides the prototypes as deprecated).
This was detected by the previous commit to ctfmerge
that added error handling.

Implement ctfmerge's barrier operations in terms of
dispatch(3) APIs such as dispatch_semaphore_create() (et al).

Update tools/compat/configure.ac to find dispatch_semaphore_create().

Fixes ctfmerge on macOS hosts.

Inspired by https://stackoverflow.com/a/27847103.

(lukem)

2023-05-23 18:54:58 UTC MAIN commitmail json YAML

ctfmerge: error check sem_*() and pthread_*() APIs

terminate() if sem_*() returns -1 or pthread_*() returns != 0.
(Set errno from pthread_*() so terminate() prints the strerror message).

Note: Failing on errors instead of ignoring them helps identify
reasons for intermittent failures, such as those on macOS host builds:
  ERROR: nbctfmerge: barrier_init: sem_init(bar_sem): Function not implemented

(lukem)

2023-05-23 18:16:28 UTC MAIN commitmail json YAML

indent: separate code for handling enums from the lexer

The lexer's responsibility is to generate tokens, it's not supposed to
update the parser state.  Centralize the state transitions that control
indentation of enum constants to keep the lexer code clean.

Skip comments, newlines and preprocessing lines when updating the parser
state for enum constants and for '*' in declarations.

(rillig)

2023-05-23 16:53:57 UTC MAIN commitmail json YAML

2023-05-23 12:12:29 UTC MAIN commitmail json YAML

indent: split debug output into paragraphs

The paragraphs separate the different processing steps: getting a token
from the lexer, processing the token, updating the parser state, sending
a finished line to the output.

(rillig)

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

centralize the warnings, try to fix clang

(christos)

2023-05-23 12:04:42 UTC MAIN commitmail json YAML

2023-05-23 11:37:23 UTC MAIN commitmail json YAML

indent: extract processing of a single token to separate function

No functional change.

(rillig)

2023-05-23 10:22:42 UTC MAIN commitmail json YAML

s/configuratin/configuration/ in comment, from Brad Harder (bch) by email.

(andvar)

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

use macros compatible with xf86-video-suncg14 to issue SX instructions
much more readable, alignment weirdness is handled automatically and code is
interchangable

(macallan)

2023-05-23 08:16:43 UTC MAIN commitmail json YAML

autoconf(9): Omit config_detach kernel lock assertion too for now.

like in config_attach_pseudo, this assertion almost certainly
indicates real bugs, but let's try to get the tests back and running
again before addressing those.

(riastradh)

2023-05-23 06:43:19 UTC MAIN commitmail json YAML

indent: fix spacing around '*' in declarations

(rillig)

2023-05-23 06:35:01 UTC MAIN commitmail json YAML

2023-05-23 06:18:00 UTC MAIN commitmail json YAML

2023-05-23 00:31:43 UTC MAIN commitmail json YAML

autoconf(9): Omit config_attach_pseudo kernel lock assertion for now.

Breaks too many things that I didn't test in the branch (cgd, fss,
&c.); let's address all forty-odd cases before turning it on.

(riastradh)

2023-05-22 23:03:16 UTC MAIN commitmail json YAML

2023-05-22 23:01:27 UTC MAIN commitmail json YAML

2023-05-22 22:36:53 UTC MAIN commitmail json YAML

Use the offset in mmap calculations.

It fixes wsfb(4) when used with intelfb(4).

Ok riastradh@

XXX pullup-10

(nat)

2023-05-22 22:09:46 UTC MAIN commitmail json YAML

indent: adjust indentation in lexer

No binary change.

(rillig)

2023-05-22 20:11:24 UTC MAIN commitmail json YAML

tests/lint1: allow whitespace in files containing the expected output

This reduces the amount of wizardry needed to interpret the files.  For
a more gentle introduction of the file format, see ../lint2/msg_000.ln.

The whitespace that is removed is very similar to the one in the lint2
tests, the difference is that '%<space>' and '%#' need to be preserved
in abbreviated printf and scanf format strings.

(rillig)

2023-05-22 19:36:13 UTC MAIN commitmail json YAML

lint.1: add a few examples

In default mode, lint runs in a mode that aids in migrating from
traditional C to C90, which is not widely useful nowadays.  Instead,
suggest some examples of using lint in more practical ways.

(rillig)

2023-05-22 18:10:58 UTC MAIN commitmail json YAML

lint: use consistent variable name for redeclared symbol

No binary change.

(rillig)

2023-05-22 17:53:27 UTC MAIN commitmail json YAML

2023-05-22 17:47:27 UTC MAIN commitmail json YAML

lint: clean up the name of a local variable

No binary change.

(rillig)

2023-05-22 16:28:34 UTC MAIN commitmail json YAML

i386/GENERIC: Enable EFI runtime support.

PR kern/57076

XXX pullup-10

(riastradh)

2023-05-22 16:28:25 UTC MAIN commitmail json YAML

i386/ALL: Enable EFI runtime support.

PR kern/57076

XXX pullup-10

(riastradh)

2023-05-22 16:28:16 UTC MAIN commitmail json YAML

efi(4): Translate between size_t and unsigned long.

Fixes i386 build.

PR kern/57076

XXX pullup-10

(riastradh)

2023-05-22 16:28:08 UTC MAIN commitmail json YAML

efi(4): Implement EFIIOC_GET_TABLE on x86.

PR kern/57076

XXX pullup-10

(riastradh)

2023-05-22 16:27:59 UTC MAIN commitmail json YAML

efi(4): Implement MI parts of EFIIOC_GET_TABLE.

Intended to be compatible with FreeBSD.

Not yet supported on any architectures.

PR kern/57076

XXX pullup-10

(riastradh)

2023-05-22 16:27:49 UTC MAIN commitmail json YAML

2023-05-22 16:27:39 UTC MAIN commitmail json YAML

efi(4): Parenthesize EFIERR argument out of paranoia.

PR kern/57076

XXX pullup-10

(riastradh)

2023-05-22 15:12:54 UTC MAIN commitmail json YAML

dtrace_fbt: Read and write instructions appropriately-endian on arm.

arm is a little more complicated because it has three cases:
- big-endian data, big-endian instructions
- big-endian data, little-endian instructions
- little-endian data, little-endian instructions

(riastradh)

2023-05-22 15:00:17 UTC MAIN commitmail json YAML

dk(4): Add locking notes.

(riastradh)

2023-05-22 15:00:06 UTC MAIN commitmail json YAML

dk(4): Explain why no need for device reference in dksize, dkdump.

(riastradh)

2023-05-22 14:59:58 UTC MAIN commitmail json YAML

dk(4): Strengthen preconditions of various devsw operations.

These can only happen between dkopen and dkclose, so there's no need
to test -- we can assert instead that the wedge exists and is fully
initialized.

(riastradh)

2023-05-22 14:59:50 UTC MAIN commitmail json YAML

dk(4): Strengthen dkclose preconditions.

Like dkopen, except it is possible for this to be called after the
wedge has transitioned to dying.

XXX sc_state read here races with sc_state write in dkwedge_detach.
Could change this to atomic_load/store.

(riastradh)

2023-05-22 14:59:42 UTC MAIN commitmail json YAML

dk(4): Strengthen dkopen preconditions.

This cannot be called before dkwedge_attach for the same unit
returns, so sc->sc_dev is guaranteed to be set to a nonnull device_t
and the state is guaranteed not to be larval.

And this cannot be called concurrently with dkwedge_detach, or after
dkwedge_detach does vdevgone until another wedge with the same number
is attached (which can't happen until dkwedge_detach completes), so
the state is guaranteed not to be dying or dead.

Hence sc->sc_dev != NULL and sc->sc_state == DKW_STATE_RUNNING.

(riastradh)

2023-05-22 14:59:34 UTC MAIN commitmail json YAML

dk(4): Prevent race between dkwedge_get_parent_name and wedge detach.

Still races with parent detach but maybe this is better.

XXX Maybe we should ditch dkwedge_get_parent_name -- it's used only
by rf_containsboot, which kinda suggests it shouldn't exist.

(riastradh)

2023-05-22 14:59:25 UTC MAIN commitmail json YAML

dk(4): Split unsafe lookups into safe subroutines and unsafe wrappers.

No functional change intended.

Eventually we should adjust the callers to use the safe subroutines
instead and device_release when done.

(riastradh)

2023-05-22 14:59:17 UTC MAIN commitmail json YAML

dk(4): Don't hold lock around uiomove in dkwedge_list.

Instead, hold a device reference.  dkwedge_detach will not run until
the device reference is released.

(riastradh)

2023-05-22 14:59:08 UTC MAIN commitmail json YAML

dk(4): Skip larval wedges in various lookup routines.

These have not yet finished a concurent dkwedge_attach, so there's
nothing we can safely do with them.  Just pretend they don't exist --
as if we had arrived at the lookup a moment earlier.

(riastradh)

2023-05-22 14:58:59 UTC MAIN commitmail json YAML

dk(4): Simplify dkwedge_delall by detaching directly.

No need for O(n^2) algorithm and potentially racy lookups -- not that
n is large enough for n^2 to matter, but the mechanism is simpler
this way.

(riastradh)

2023-05-22 14:58:51 UTC MAIN commitmail json YAML

dk(4): Use device_lookup_private for dkwedge_lookup.

No longer necessary to go through the dkwedges array.

Currently device_lookup_private still involves touching other global
locks, but that will change eventually to a lockless pserialized fast
path.

(riastradh)

2023-05-22 14:58:41 UTC MAIN commitmail json YAML

dk(4): dkunit is no longer needed; nix it.

dkwedges array indexing now coincides with autoconf device numbering.

(riastradh)

2023-05-22 14:58:33 UTC MAIN commitmail json YAML

dk(4): Use config_attach_pseudo_acquire to create wedges.

This way, indexing of the dkwedges array coincides with numbering of
autoconf dk(4) instances.

As a side effect, this plugs a race in dkwedge_add with concurrent
drvctl -r.  There are a lot of such races in dk(4) left -- to be
addressed with more device references.

(riastradh)

2023-05-22 14:58:22 UTC MAIN commitmail json YAML

autoconf(9): New functions for referenced attach/detach.

New functions:

- config_found_acquire(dev, aux, print, cfargs)
- config_attach_acquire(parent, cf, aux, print, cfargs)
- config_attach_pseudo_acquire(cf, aux)
- config_detach_release(dev, flags)
- device_acquire(dev)

The config_*_acquire functions are like the non-acquire versions, but
they return a referenced device_t, which is guaranteed to be safe to
use until released.  The device's detach function may run while it is
referenced, but the device_t will not be freed and the parent's
.ca_childdetached routine will not be called.

=> config_attach_pseudo_acquire additionally lets you pass an aux
  argument to the device's .ca_attach routine, unlike
  config_attach_pseudo which always passes NULL.

=> Eventually, config_found, config_attach, and config_attach_pseudo
  should be made to return void, because use of the device_t they
  return is unsafe without the kernel lock and difficult to use
  safely even with the kernel lock or in a UP system.  For now,
  they require the caller to hold the kernel lock, while
  config_*_acquire do not.

config_detach_release is like device_release and then config_detach,
but avoids the race inherent with that sequence.

=> Eventually, config_detach should be eliminated, because getting at
  the device_t it needs is unsafe without the kernel lock and
  difficult to use safely even with the kernel lock or in a UP
  system.  For now, it requires the caller to hold the kernel lock,
  while config_detach_release does not.

device_acquire acquires a reference to a device.  It never fails and
can be used in thread context (but not interrupt context, hard or
soft).  Caller is responsible for ensuring that the device_t cannot
be freed; in other words, the device_t must be made unavailable to
any device_acquire callers before the .ca_detach function returns.
Typically device_acquire will be used in a read section (mutex,
rwlock, pserialize, &c.) in a data structure lookup, with
corresponding logic in the .ca_detach function to remove the device
from the data structure and wait for all read sections to complete.

Proposed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2023/05/10/msg028889.html

(riastradh)

2023-05-22 14:07:37 UTC MAIN commitmail json YAML

tty(9): Make ttwrite update uio with only how much it has consumed.

As is, it leaves uio in an inconsistent state.  Good enough for the
write(2) return value to be correct for a userland caller to restart
write(2) where it left off, but not good enough for a loop in the
kernel to reuse the same uio.

Reported-by: syzbot+e0f56178d0add0d8be20@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=6290eb02b8fe73361dc15c7bc44e1208601e6af8

Reported-by: syzbot+7caa189e8fccd926357e@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=c0a3b77b4831dfa81fc855857bde81755d246bd3

Reported-by: syzbot+4a1eff91eb4e7c1970b6@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=10523a633a4ad9749f57dc7cf03f9447d518c5b8

Reported-by: syzbot+1d3c280f59099dc82e17@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=8e02ebb0da76a8e286461f33502117a1d30275c6

Reported-by: syzbot+080d51214d0634472b12@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=1f617747db8087e5554d3df1b79a545dee26a650

Reported-by: syzbot+dd50b448e49e5020131a@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=f71c8cef4110b7eeac6eca67b6a4d1f4a8b3e96f

Reported-by: syzbot+26b675ecf0cc9dfd8586@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=57b1901f5b3e090a964d08dd0d729f9909f203be

Reported-by: syzbot+87f0df2c9056313a5c4b@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=67994a3da32d075144e25d1ac314be1d9694ae6e

Reported-by: syzbot+e5bc98e18aa42f0cb25d@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=6374bd286532423c63f2b331748280729134224c

Reported-by: syzbot+7e587f4c5aaaf80e84b3@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=976210ed438d48ac275d77d7ebf4a086e43b5fcb

(riastradh)

2023-05-22 14:07:24 UTC MAIN commitmail json YAML

uiomove(9): Add uiopeek/uioskip operations.

This allows a caller to grab some data, consume part of it, and
atomically update the uio with only the amount it consumed.  This
way, the caller can use a buffer of a size that doesn't depend on how
much it will actually consume, which it may not know in advance --
e.g., because it depends on how much an underlying hardware tty
device will accept before it decides it has had too much.

Proposed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2023/05/09/msg028883.html

(Opinions were divided between `uioadvance' and `uioskip'.  I stuck
with `uioskip' because that was less work for me.)

(riastradh)

2023-05-22 12:55:45 UTC MAIN commitmail json YAML

man0: support objdirs, tools, parallel builds

man0 creates files, so write to the the OBJDIR instead of the
source directory.

Use TOOL_ appropriately.
Add MAKEVERBOSE support.

Add separate rules to generate:
- all.files: the list of all man files to process (based on mkman)
- manNpages.files: per-section files from all.files. (based on mkman)
- manNpages.ps: per-section .ps from manNpages.files, with
  per-file MAKEVERBOSE messages to stderr (as before, just prettier).
- manNpages.pdf: per-section .pdf from manNpages.ps.

Remove the now-obsolete mkman script.

Add TOOL_GROPS and _MKSHMSG_FORMAT to <bsd.own.mk>

(lukem)

2023-05-22 12:55:04 UTC MAIN commitmail json YAML

2023-05-22 12:34:48 UTC MAIN commitmail json YAML

man0: add bind/dist/bin/tests to noman

(lukem)

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

tests/lint: demonstrate wrong emitted array length in initialization

Seen in usr.bin/indent/debug.c, in the various 'name' arrays.

(rillig)

2023-05-22 10:28:59 UTC MAIN commitmail json YAML

2023-05-22 06:50:52 UTC MAIN commitmail json YAML

2023-05-22 06:35:56 UTC MAIN commitmail json YAML

tests/indent: skip creating an intermediate file in tests

(rillig)

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

Fix a bug when a media is changed to IFM_AUTO.

Fix a bug that ifconfig ifN media auto doesn't change the setting when
the previous media setting used autonego. When the mii_phy_setmedia()
function is called to change the media to IFM_AUTO, the BMCR_AUTOEN bit was
used to check if the previous setting was IFM_AUTO. It's not correct.
IFM_1000_T also uses autonego. So if a previous setting is IFM_1000_T and
the next setting is IFM_AUTO, mii_phy_auto() is not called if neither
MIIF_FORCEANEG nor MIIF_DOPAUSE are set. As a result, after changing
IFM_AUTO, neither 10Mbps nor 100Mbps are not advertised.

Note that almost all drivers uses MIIF_DOPAUSE flags.

TODO: cleanup ciphy.c and rgephy.c. Those have #ifdef foo.

(msaitoh)

2023-05-21 18:01:38 UTC MAIN commitmail json YAML

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

iscsictl uses authentication types (n)one, (c)hap and mutual (C)hap.

(mlelstv)

2023-05-21 10:18:44 UTC MAIN commitmail json YAML

2023-05-21 10:05:20 UTC MAIN commitmail json YAML

indent: don't read out-of-bounds memory in preprocessing lines

(Since a few minutes.)

If a line '#if 0' was followed by an unlikely line '#', the second line
was interpreted as '#if' as well.

To detect this bug automatically, a dynamic analysis tool would need to
know that only the memory between lab.mem and lab.mem + lab.len has
defined content.  This constraint, in turn, would throw up at the bottom
of copy_comment_wrap, which for a brief moment intentionally violates
this constraint.

(rillig)

2023-05-21 09:48:22 UTC MAIN commitmail json YAML

indent: don't error out on unrecognized preprocessor directives

This allows indent to be used on the GCC preprocessor output.

(rillig)

2023-05-21 00:35:38 UTC MAIN commitmail json YAML

small fixes, code shuffle for ease of understanding.

(nisimura)

2023-05-20 22:08:07 UTC MAIN commitmail json YAML

tests/indent: prevent 'indent end' with arguments

(rillig)

2023-05-20 21:32:06 UTC MAIN commitmail json YAML

tests/indent: migrate test driver from AWK to Lua

Lua reports more details when os.execute fails, which is useful when
running old versions of indent for comparison.  The new test driver also
supports multiple test files in the same run.

(rillig)

2023-05-20 17:31:53 UTC MAIN commitmail json YAML

tests/indent: clean up test driver

No functional change.

(rillig)

2023-05-20 16:31:31 UTC MAIN commitmail json YAML

indent: remove redundant checks in processing of '}'

No functional change.

(rillig)

2023-05-20 14:44:30 UTC MAIN commitmail json YAML

remove old files that cause conflicts on case insensitive filesystems. Reported
by lukem@

(christos)

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

indent: don't insert blank line between two closing lines

(rillig)

2023-05-20 11:53:53 UTC MAIN commitmail json YAML

indent: extract the output state from the parser state

The parser state depends on the preprocessing lines, the output state
shouldn't.

(rillig)

2023-05-20 11:19:17 UTC MAIN commitmail json YAML

2023-05-20 10:46:22 UTC MAIN commitmail json YAML

2023-05-20 10:25:47 UTC MAIN commitmail json YAML

indent: ensure that no blank lines are inserted in INDENT OFF mode

No blank lines were inserted previously, but the code looked
suspicious as if that were possible.

(rillig)

2023-05-20 10:09:03 UTC MAIN commitmail json YAML

2023-05-20 09:41:34 UTC MAIN commitmail json YAML

ALso fix chgrp Synopsis to include -d option

(pgoyette)

2023-05-20 02:47:35 UTC MAIN commitmail json YAML

indent: add debug logging for brace indentation

No functional change outside debug mode, as the initialization of
di_stack[0] was redundant.

(rillig)

2023-05-20 01:28:14 UTC MAIN commitmail json YAML

indent: clean up lexing of word tokens

No functional change.

(rillig)

2023-05-20 00:54:15 UTC MAIN commitmail json YAML

dd -d to the Synopsis

(pgoyette)

2023-05-20 00:17:56 UTC MAIN commitmail json YAML

indent: separate detection of function definitions from lexing '*'

No functional change.

(rillig)

2023-05-19 23:28:22 UTC MAIN commitmail json YAML

gcc: fix build with clang++ HOST_CXX

Define HOSTPROG_CXX before .include anything that brings in bsd.own.mk.
This ensures that HOST_DBG (etc) gets assigned before HOST_CFLAGS
and HOST_CXXFLAGS is created.

backend: .include <bsd.init.mk> much earlier, as per the other directories.
Fixes backend build when using clang++ as the host compiler (e.g., macOS),
because backend host tools are now built with -O.
Inspired by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255760

Note that gcc.old/Makefile.prog may be mis-used because it defines HOSTPROG_CXX
and this Makefile fragment is included after bsd.*.mk in other Makefiles,
but they seem to build ok so leaving it alone for now.

Fixes PR toolchain/57014

(lukem)

2023-05-19 19:50:59 UTC MAIN commitmail json YAML

chflags(1): minor markup fixes

(uwe)

2023-05-19 18:45:53 UTC MAIN commitmail json YAML

vax-inate (does not have _pic, .a is pic)

(christos)

2023-05-19 16:14:00 UTC MAIN commitmail json YAML

We mention secmodel_securelevel(9) in the details, so might as well add it to
SEE ALSO.

(jschauma)

2023-05-19 15:42:43 UTC MAIN commitmail json YAML

Neither limit the number of requests for the page daemon.
Otherwise you may deadlock when the backend needs to allocate
memory and the page daemon needs to flush dirty vnd buffers.

See PR 57421 for details.

(mlelstv)

2023-05-19 14:47:16 UTC MAIN commitmail json YAML

Creating Type&Creator mappings for .bin (macbinary encoded) files,
mkisofs changes files, then turns around and complains they have been
changed.

This is a self-inflicted wound, so demote the error to a warning.

Reported upstream as <https://codeberg.org/schilytools/schilytools/issues/58>.

Arguably fixes PR toolchain/42166

Request pull-ups to netbsd-{8,9,10}.

XXX What about macppc?

(hauke)

2023-05-19 11:43:20 UTC MAIN commitmail json YAML

2023-05-19 10:42:34 UTC MAIN commitmail json YAML

Fix passing -j NNN to gmake

Use a more restrictive pattern to extract -j NNN from MAKEFLAGS
into GMAKE_J_ARGS, to avoid false positives when the source directory
has "-j" in the path (e.g "amd64-job-000012" or "src-j9999").
Previously this could pass either -"-j" or "-j BIGNUM" to gmake
and result in "vfork: Resource temporarily unavailable" failures.

PR misc/54456

(lukem)

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

tests/indent: test multi-line comments with -ncdb

(rillig)

2023-05-19 06:50:07 UTC MAIN commitmail json YAML

2023-05-19 06:41:41 UTC MAIN commitmail json YAML

No need for double semi-colon

Indent END the same as ENTRY.

NFCI.

(skrll)

2023-05-19 06:31:01 UTC MAIN commitmail json YAML

2023-05-19 05:28:54 UTC MAIN commitmail json YAML

cat: fix misleading indentation

Found by indent, but not by GCC 10.

No binary change.

(rillig)

2023-05-18 19:08:16 UTC MAIN commitmail json YAML

Note that the ability to change certain flags depends on the current securelevel.

(jschauma)

2023-05-18 14:22:53 UTC MAIN commitmail json YAML

BUILDING: TMPDIR must not be noexec

Describe $TMPDIR as used by build.sh, and
add a note that it can't be mounted noexec.

PR toolchain/44459

(lukem)

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

Make "shadow" warnings non-fatal for now (triggered by lots BN_* macros).

(martin)

2023-05-18 08:09:28 UTC MAIN commitmail json YAML

2023-05-18 07:13:05 UTC MAIN commitmail json YAML

indent: remove detailed rules for blank before comment

(rillig)

2023-05-18 06:01:39 UTC MAIN commitmail json YAML

2023-05-18 05:33:27 UTC MAIN commitmail json YAML

2023-05-18 04:23:03 UTC MAIN commitmail json YAML

indent: switch to standard code style

Taken from share/misc/indent.pro.

Indent does not wrap code to fit into the line width, it only does so
for comments.  The 'INDENT OFF' sections and too long lines will be
addressed in a follow-up commit.

No functional change.

(rillig)

2023-05-18 03:38:34 UTC MAIN commitmail json YAML

indent: remove unnecessary variable size optimization

Due to the enum that follows in the struct, the short variable was
padded to 4 bytes anyway.

No functional change.

(rillig)

2023-05-18 00:28:37 UTC MAIN commitmail json YAML

2023-05-18 00:27:08 UTC MAIN commitmail json YAML

2023-05-18 00:24:22 UTC MAIN commitmail json YAML

2023-05-17 19:10:04 UTC MAIN commitmail json YAML

enable (and disable) warnings centrally

(christos)

2023-05-17 19:09:42 UTC MAIN commitmail json YAML

2023-05-17 18:20:30 UTC MAIN commitmail json YAML

Update URL of the technical manual.

(tsutsui)

2023-05-17 18:03:25 UTC MAIN commitmail json YAML

indent: fix indentation in preprocessor line

No binary change.

(rillig)

2023-05-17 15:01:17 UTC MAIN commitmail json YAML

fix mips OpenSSL-3.x compat

(christos)

2023-05-17 09:54:59 UTC MAIN commitmail json YAML

2023-05-17 06:44:38 UTC MAIN commitmail json YAML

sys/fs/autofs: Remove unused APRINTF macro

Remove a debug print macro (originates from DragonFly autofs)
I had intentionally kept at the time.

(tkusumi)

2023-05-17 03:16:11 UTC MAIN commitmail json YAML

t_ptm.c: add a test case that passes extra flags

Validate that O_NONBLOCK and O_CLOEXEC are actually set by
posix_openpt(3), as until circa 9.99.101 they were not.

If/when other flags are added like close-on-fork, this test could be
adjusted. The current concern is with supporting the expectations of
components like vte3, used by various graphical terminal clients.

(gutteridge)

2023-05-17 01:35:00 UTC MAIN commitmail json YAML

installboot(8): fix up markup

Don't overuse .Sy - when everything is highlighted, nothing is.  Use
.Ic for options &c to get correct PostScript output (both are bold in
plain text).

Use Aq Ar inside .Pa, as both Pa and Ar are rendered as underscored
text in plain text output, and the distinction is lost.

Don't set examples in bold, but give them .Pp space around - they are
much easier to read this way.

Use consistent -width in FILES.

(uwe)

2023-05-16 22:00:23 UTC MAIN commitmail json YAML

ftp 20230516 for openssl 3.0 compat SSL_OP_IGNORE_UNEXPECTED_EOF

(lukem)

2023-05-16 21:52:42 UTC MAIN commitmail json YAML

installboot(8): formatting improvements

Use Ar foo instead of <foo>; this is mdoc.
Other formatting tweaks.

(lukem)

2023-05-16 21:39:26 UTC MAIN commitmail json YAML

build.sh, BUILDING: consistency improvements

Consistently use "show", instead of sometimes using "display" or "print".
Fix mdoc markup (even though BUILDING is raw text).
Document help, -P, -?

(lukem)