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

2024-05-10 17:24:30 UTC Now

2023-10-04 07:35:27 UTC MAIN commitmail json YAML

igc(4): Add support to Intel I225 / I226 series ethernet devices

Originally written by kevlo@o for OpenBSD, and ported by knakahara@,
msaitoh@, and myself.

The driver is *EXPERIMENTAL* at the moment, as some minor error
handling paths are not fully implemented.

Hardware VLAN tagging and TSO are not supported yet.

Although, we have never observed strange behaviors at least on amd64,
aarch64{,eb}, and evbppc (IBM405), except for PR port-arm/57643.

We will send pullup request to netbsd-10, after successful snapshot
build for -current.

(rin)

2023-10-04 07:19:37 UTC MAIN commitmail json YAML

2023-10-04 07:17:59 UTC MAIN commitmail json YAML

pcidevs: Add missing I225/I226 series devices

(rin)

2023-10-04 04:31:25 UTC MAIN commitmail json YAML

ixgbe: Fix typo in comment. No functional change.

(msaitoh)

2023-10-04 03:10:08 UTC MAIN commitmail json YAML

2023-10-04 03:09:42 UTC MAIN commitmail json YAML

Add Intel 82599 LS.

(msaitoh)

2023-10-04 00:04:42 UTC MAIN commitmail json YAML

resize_root: quote $rootdev consistently in resize_ffs(8) calls

(gutteridge)

2023-10-03 19:17:42 UTC MAIN commitmail json YAML

2023-10-03 10:15:31 UTC netbsd-8 commitmail json YAML

2023-10-03 10:14:13 UTC netbsd-8 commitmail json YAML

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

libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

(martin)

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

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

libexec/ftpd/ftpd.c: revision 1.208

pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.

(martin)

2023-10-03 10:10:42 UTC netbsd-8 commitmail json YAML

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

libexec/ftpd/conf.c: revision 1.65

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@

(martin)

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

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

libexec/ftpd/ftpcmd.y: revision 1.95

Add missing check_login checks for MLST and MLSD

(martin)

2023-10-03 10:07:45 UTC netbsd-8 commitmail json YAML

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

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.

Consistent logging and fatal exit if uid/gid switching fails.

Log correct errno if dataconn() fails.

(martin)

2023-10-03 10:05:06 UTC netbsd-8 commitmail json YAML

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

libexec/ftpd/ftpd.c: revision 1.206

Treat failed chdir/chroot for guest and chroot accounts as fatal.

Also treat failed set{e,}(u,g}id calls as fatal.

Addresses CVE-2020-7468, via FreeBSD.

(martin)

2023-10-03 10:03:24 UTC netbsd-8 commitmail json YAML

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

libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205

bump sizes

(martin)

2023-10-03 09:54:24 UTC netbsd-8 commitmail json YAML

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

libexec/ftpd/ftpd.8: revision 1.87
libexec/ftpd/ftpd.c: revision 1.204

Add -f option to ftpd to stay in foreground with -D.

>From nia in PR bin/53221.

(martin)

2023-10-03 09:48:19 UTC MAIN commitmail json YAML

PR 57628: at the end of _rtld_init() explicitly initialize the ld.elf_so
local copy of the atomic access support functions for machines that do not
implement all required ops in hardware (like 32bit sparc).

XXX would be better to figure out a way to share this copy with libc
(thereby using half as many RAS sections). But even if we would share it,
we have to init it early enough for ld.elf_so internal uses.

(martin)

2023-10-03 08:23:07 UTC MAIN commitmail json YAML

2023-10-03 06:06:51 UTC MAIN commitmail json YAML

Remove obsolete comment.

(msaitoh)

2023-10-02 21:50:18 UTC MAIN commitmail json YAML

Tweak a couple of comments.

(ad)

2023-10-02 21:03:55 UTC MAIN commitmail json YAML

Use kmem_intr_*() variants for lock objects since aiodoned was done away
with and we process these I/Os in soft interrupt context now.

(ad)

2023-10-02 20:59:12 UTC MAIN commitmail json YAML

kauth_cred_groupmember(): check egid before a tedious scan of groups.

(ad)

2023-10-02 17:41:04 UTC netbsd-8 commitmail json YAML

2023-10-02 17:40:28 UTC netbsd-9 commitmail json YAML

2023-10-02 17:39:38 UTC netbsd-10 commitmail json YAML

2023-10-02 17:38:23 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #391):

external/bsd/jemalloc/lib/jemalloc_stub.c: revision 1.2
external/bsd/jemalloc/lib/jemalloc_stub.c: revision 1.3
external/bsd/jemalloc/lib/jemalloc_stub.c: revision 1.4
external/bsd/jemalloc/lib/Makefile: revision 1.5

libjemalloc: Compile in empty jemalloc_stub.c for HAVE_JEMALLOC=100

Fix strange parallel build failures observed on vax and sun2, which
should be due to empty SRCS.

No functional changes as library itself.

jemalloc_stub.c: Provide stubs for HAVE_JEMALLOC > 100

Instead of HAVE_JEMALLOC != 100. Just for sure.

jemalloc_stub.c: Forgot to update comment. No binary changes.

(martin)

2023-10-02 17:31:39 UTC netbsd-9 commitmail json YAML

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

libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

(martin)

2023-10-02 17:28:58 UTC netbsd-10 commitmail json YAML

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

libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

(martin)

2023-10-02 17:25:55 UTC netbsd-9 commitmail json YAML

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

libexec/ftpd/ftpd.c: revision 1.208

pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.

(martin)

2023-10-02 17:24:44 UTC netbsd-10 commitmail json YAML

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

libexec/ftpd/ftpd.c: revision 1.208

pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.

(martin)

2023-10-02 17:22:10 UTC netbsd-9 commitmail json YAML

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

libexec/ftpd/conf.c: revision 1.65

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@

(martin)

2023-10-02 17:21:07 UTC netbsd-10 commitmail json YAML

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

libexec/ftpd/conf.c: revision 1.65

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@

(martin)

2023-10-02 17:18:37 UTC netbsd-10 commitmail json YAML

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

share/examples/ftpd/ftpusers: revision 1.4

ftpusers(5) example: use IP & DNS examples

Use .example TLD, per IETF RFC 2606.

Use 192.0.2.0/24, per IETF RFC 5737.

Use 127.0.0.1/24 for localguest, not network that ftp.NetBSD.org used to be in.

(martin)

2023-10-02 17:16:50 UTC netbsd-9 commitmail json YAML

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

libexec/ftpd/ftpcmd.y: revision 1.95

Add missing check_login checks for MLST and MLSD

(martin)

2023-10-02 17:15:34 UTC netbsd-10 commitmail json YAML

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

libexec/ftpd/ftpcmd.y: revision 1.95

Add missing check_login checks for MLST and MLSD

(martin)

2023-10-02 17:13:34 UTC netbsd-9 commitmail json YAML

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

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.

(martin)

2023-10-02 17:11:21 UTC netbsd-9 commitmail json YAML

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

libexec/ftpd/ftpd.c: revision 1.206

Treat failed chdir/chroot for guest and chroot accounts as fatal.

Also treat failed set{e,}(u,g}id calls as fatal.

Addresses CVE-2020-7468, via FreeBSD.

(martin)

2023-10-02 17:09:42 UTC netbsd-9 commitmail json YAML

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

libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205

bump sizes

(martin)

2023-10-02 13:45:42 UTC netbsd-10 commitmail json YAML

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

libexec/ftpd/ftpd.c: revision 1.207
libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.

(martin)

2023-10-02 13:36:06 UTC netbsd-8 commitmail json YAML

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

share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

wpa_supplicant.conf: fix connection string for Eduroam
"MSCHAPV2" must have an uppercase "V" in the connection string.

Reported by nebbionegiuseppe at gmail.com in PR misc/57634.

(martin)

2023-10-02 13:34:57 UTC netbsd-9 commitmail json YAML

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

share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

wpa_supplicant.conf: fix connection string for Eduroam
"MSCHAPV2" must have an uppercase "V" in the connection string.

Reported by nebbionegiuseppe at gmail.com in PR misc/57634.

(martin)

2023-10-02 13:33:44 UTC netbsd-10 commitmail json YAML

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

share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

wpa_supplicant.conf: fix connection string for Eduroam
"MSCHAPV2" must have an uppercase "V" in the connection string.

Reported by nebbionegiuseppe at gmail.com in PR misc/57634.

(martin)

2023-10-02 13:31:14 UTC netbsd-9 commitmail json YAML

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

external/cddl/osnet/sys/kern/kmem.c: revision 1.4

solaris: Use pool_cache_reclaim, not pool_cache_invalidate.

pool_cache_invalidate invalidates cached objects, but doesn't return
any backing pages to the underlying page allocator.
pool_cache_reclaim does pool_cache_invalidate _and_ reutrns backing
pages to the underlying page alloator, so it is actually useful for
the page daemon to do when trying to free memory.

PR kern/57558

(martin)

2023-10-02 13:29:59 UTC netbsd-10 commitmail json YAML

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

external/cddl/osnet/sys/kern/kmem.c: revision 1.4

solaris: Use pool_cache_reclaim, not pool_cache_invalidate.

pool_cache_invalidate invalidates cached objects, but doesn't return
any backing pages to the underlying page allocator.
pool_cache_reclaim does pool_cache_invalidate _and_ reutrns backing
pages to the underlying page alloator, so it is actually useful for
the page daemon to do when trying to free memory.

PR kern/57558

(martin)

2023-10-02 13:27:41 UTC netbsd-10 commitmail json YAML

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

distrib/utils/embedded/files/ec2_init: revision 1.6

ec2_init: Suppress error message for nonexistent sysctl.

We're querying to see whether the sysctl node is available and if so
what its text is, not interested in the error message.

(martin)

2023-10-02 13:26:04 UTC netbsd-10 commitmail json YAML

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

distrib/utils/embedded/conf/evbarm.conf: revision 1.42
distrib/sets/lists/etc/mi: revision 1.273
etc/rc.d/Makefile: revision 1.118
distrib/utils/embedded/conf/usermode.conf: revision 1.7
etc/rc.d/certctl_init: revision 1.1
distrib/evbarm/liveimage/armimage/rc.conf.armimage: revision 1.2
etc/defaults/rc.conf: revision 1.166
distrib/amd64/liveimage/emuimage/rc.conf.emuimage: revision 1.3
distrib/utils/embedded/conf/x86.conf: revision 1.11
distrib/utils/embedded/conf/evbmips.conf: revision 1.4

/etc/rc.d/cerctl_init: New script for certctl rehash in live images.

This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

/etc/rc.d/certctl_init: Default off.
Otherwise in systems without certctl_init=YES, such as systems
installed with sysinst(8) where it's unnecessary because the rehash
has already happened at install time, you'll get spurious warnings.

(martin)

2023-10-02 13:09:01 UTC netbsd-8 commitmail json YAML

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

lib/libpam/modules/pam_krb5/pam_krb5.c: revision 1.32

pam_krb5: Fix PR lib/57631.

Loose ends in the fix for NetBSD-SA2023-006 that weren't caught by
review or, somehow, by my own testing.  Evidently we need automatic
tests for this pam business.

(martin)

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

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

lib/libpam/modules/pam_krb5/pam_krb5.c: revision 1.32

pam_krb5: Fix PR lib/57631.

Loose ends in the fix for NetBSD-SA2023-006 that weren't caught by
review or, somehow, by my own testing.  Evidently we need automatic
tests for this pam business.

(martin)

2023-10-02 13:05:41 UTC netbsd-10 commitmail json YAML

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

lib/libpam/modules/pam_krb5/pam_krb5.c: revision 1.32

pam_krb5: Fix PR lib/57631.

Loose ends in the fix for NetBSD-SA2023-006 that weren't caught by
review or, somehow, by my own testing.  Evidently we need automatic
tests for this pam business.

(martin)

2023-10-02 13:01:46 UTC netbsd-10 commitmail json YAML

Pull up following revision(s) (requested by ad in ticket #379):

sys/uvm/uvm_pdaemon.c: revision 1.134

uvmpd_trylockowner(): release pg->interlock before calling rw_obj_free()
since it can call back into the VM system.

(martin)

2023-10-02 12:58:51 UTC netbsd-10 commitmail json YAML

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

tests/net/if_ipsec/t_ipsec_unnumbered.sh: revision 1.2
sys/net/if_ipsec.c: revision 1.35
sys/netipsec/key.c: revision 1.281

Use kmem_free instead of kmem_intr_free, as key_freesaval() is not called in softint after key.c:r1.223.
E.g. key_freesaval() was called the following call path before SAD MP-ify.
  esp_input_cb()
    KEY_FREESAV()
      key_freesav()
        key_delsav()
          key_freesaval()
ok'ed by ozaki-r@n.o.

Use unit id instead of if_index to reduce fixed_reqid space.

Update for sys/net/if_ipsec.c:r1.35

(martin)

2023-10-02 08:42:20 UTC MAIN commitmail json YAML

armpmu(4): Add missing newline to error message.

(riastradh)

2023-10-02 00:16:42 UTC MAIN commitmail json YAML

acronyms.comp: SFP -- Small Form-factor Pluggable

(riastradh)

2023-10-02 00:02:34 UTC MAIN commitmail json YAML

2023-10-01 21:04:10 UTC MAIN commitmail json YAML

remove unncessary leading space in #ifdef FPSP block.
remove one trailing whitespace.

(andvar)

2023-10-01 19:28:36 UTC MAIN commitmail json YAML

Improve KGDB enabled build for news68k:
* include sys/kgdb.h in news68k/trap.c for missing definitions.
* cast second kgdb_trap argument to (db_regs_t *).
* build m68k/kgdb_machdep.c for kgdb_trap() implementation.

Same as for mvme68k, build complains about undefined reference to zs_check_kgdb
due to missing port specific zs kgdb implementation for MI zs(4) driver though.

(andvar)

2023-10-01 18:50:53 UTC MAIN commitmail json YAML

include fpsp Makefile.inc in Makefile.news68k, same as other m68k ports.

needed for FPSP option to build, otherwise FPSP specific vectors are undefined.

(andvar)

2023-10-01 09:34:29 UTC MAIN commitmail json YAML

Fix output for big-endian hardware.
Also optimize the output scaling routine.

(mlelstv)

2023-10-01 06:55:27 UTC MAIN commitmail json YAML

Apply the new diff from

kern/55273 urndis(4) error "could not find data bulk in/out" without CDC union descriptor

Fallback to the interface association descriptor if  no CDC Union Descriptor is
found.

(skrll)

2023-10-01 06:15:30 UTC MAIN commitmail json YAML

tnftpd 20231001 release

Changes since tnftpd 20200704
* Security fixes to improve error handling when switching UID/GID,
  and to prevent MLSD and MLST before authentication succeeds.
* Fix buffer overflows when counting users, and when authenticating
  using PAM.

(lukem)

2023-10-01 05:56:23 UTC MAIN commitmail json YAML

todo: portability issues, libnetbsd updates

(lukem)

2023-10-01 03:11:30 UTC MAIN commitmail json YAML

2023-10-01 03:10:51 UTC MAIN commitmail json YAML

always use $YACC even without --enable-maintainer-mode

Provide custom rules to create ftpcmd.c from $(YACC) ftpcmd.y,
instead of relying upon automake's default rules, so that
we always use $(YACC) even without --enable-maintainer-mode,
and we ship ftpcmd.y not ftpcmd.c.

(There should be an easier way in automake to do this.)

Display YACC and YFLAGS at end of configure.

(lukem)

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

2023-10-01 01:48:50 UTC MAIN commitmail json YAML

2023-09-30 21:00:43 UTC MAIN commitmail json YAML

Improve kgdb build for mvme68k:
* include sys/kgdb.h in mvme68k/trap.c for missing definitions.
* cast second kgdb_trap argument to (db_regs_t *).
* build m68k/kgdb_machdep.c in kgdb enable build for kgdb_trap() implementation.

KGDB build still fails, apparently due to missing zs_kgdb.c implementation.

(andvar)

2023-09-30 20:15:55 UTC MAIN commitmail json YAML

s/resonably/reasonably/.

(andvar)

2023-09-30 18:10:55 UTC MAIN commitmail json YAML

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

(shm)

2023-09-30 18:06:24 UTC MAIN commitmail json YAML

pam_set_item PAM_SOCKADDR expects sockaddr_storage structure

Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.

(shm)

2023-09-30 13:26:31 UTC MAIN commitmail json YAML

acronyms.comp: Add various CPU- and barrier-related acronyms.

CET, DMB, DSB, HLE, IBT, ISB, MDS, SSB, SSBB, SSBD, TAA, TSX

PR misc/57636

(riastradh)

2023-09-30 10:46:46 UTC MAIN commitmail json YAML

drm: enable almost all PCIe functionality

linux_pci.c revisions 1.24 and 1.25 implemented most of the remaining
missing PCIe backends, but only enabled them for some amdgpu portions.

this enables all code marked with "XXX amdgpu pcie", "XXX radeon pcie",
and "XXX pcie speed".  for most of it, simply removing #ifndefs __NetBSD__
to enable compliation was required, once the new "bus->max_bus_speed"
member was added to struct pci_bus.  add an "always fails" backend for
pci_enable_atomic_ops_to_root() which seems to only be necessary
for virtual GPU functionality (and could be implemented if needed.)

tested on radeon 5450, 7750, R7 240 [radeon], and RX 550 [amdgpu], and
nvidia 750 and 1030 [nouveau].

this still does not quite work on nvidia cards.  there are two problems
that remain:

- the call to set the link speed is skipped because the speed is set
  to the default value of "-1".  nvkm_pcie_set_link() will actually
  determine the right value for this and for some cards, calling this
  function if the current speed is -1 helps set the link speed.  it
  may be that on linux other paths we don't have enabled properly
  would set this (there's one via debugfs, and a jetson specific one,
  though perhaps setting either AC or DC speed values as boot options
  (after hooking up these for netbsd) would currently work.

- worse, cards newer than kepler - geforce 900, 1000, and newer, are
  all lacking the backing support to set pcie link speed.  the GT 1030
  card i have been testing with remains at pcie 1.0.

(mrg)

2023-09-30 10:38:31 UTC MAIN commitmail json YAML

avoid an unlikely array bounds issue picked up by GCC 12.

nvkm_pcie_speed() can return -1, which is then used as an array index,
so make this default return PCIe 1.0 speeds.

(mrg)

2023-09-30 08:29:13 UTC MAIN commitmail json YAML

2023-09-29 21:23:33 UTC MAIN commitmail json YAML

Remove h->sock from DPRINTF arguments, it is leftover from shpcic_handle, removed
when code was moved to mmeye specific device code in 2002.
Add const for *width_names[] definition.
Redefine ioaddr in mmeyepcmcia_chip_io_alloc() and calculate in advance, since
DPRINTF() expects it as one of the arguments. This code was simplified with mmEye-WL
added support in 2011, but broke debug code.

Fixes MMEYEPCMCIADEBUG enabled build.

(andvar)

2023-09-29 18:56:14 UTC MAIN commitmail json YAML

+VDP  vulnerability disclosure policy

(jschauma)

2023-09-29 14:49:03 UTC MAIN commitmail json YAML

Fix uninitialized memory usage in count_users()

If the file was previously empty, pids table is not set, the code however used
pids[0] which is uninitialized in this case. In some scenarios it may lead to
propagate garbage value from pids[0] to the file and cause writing outside of
allocated memory.

OK lukem@

(shm)

2023-09-29 14:05:28 UTC MAIN commitmail json YAML

wpa_supplicant.conf: fix connection string for Eduroam

"MSCHAPV2" must have an uppercase "V" in the connection string.
Reported by nebbionegiuseppe@gmail.com in PR misc/57634.

(gutteridge)

2023-09-29 12:08:03 UTC MAIN commitmail json YAML

Check for non-printable characters in ut_host.
reported by https://twitter.com/adamsimuntis

(christos)

2023-09-29 09:08:30 UTC MAIN commitmail json YAML

2023-09-29 09:08:16 UTC MAIN commitmail json YAML

miidevs: Update I22[56]

- Add model 0x0001 and 0x0005 for I226 and 0x000c for I225.
  Need more info to write better descriptions.
- Modify GPY211's description a little.

(msaitoh)

2023-09-29 06:09:20 UTC MAIN commitmail json YAML

reorder includes alphabetically to match mmeye counterpart, NFCI.

(andvar)

2023-09-29 05:25:15 UTC MAIN commitmail json YAML

reorder includes alphabetically.
remove sh4 specific includes, since mmeye version doesn't have sh4 code.
missed in previous commit, despite mentioning that in commit message.

(andvar)

2023-09-29 03:39:00 UTC MAIN commitmail json YAML

2023-09-29 03:38:36 UTC MAIN commitmail json YAML

Add MaxLinear GPY21[125] 2.5G PHY.

(msaitoh)

2023-09-28 21:45:43 UTC MAIN commitmail json YAML

apply few commits from uwe in evbsh3/locore.S to mmeye counterpart:
1) Wrap _ROM_START in #ifdef ROMIMAGE to match its use.
2) Use symbolic constants for SR init values.
3) Don't write SR twice.
reduces diff between two mainly to SH4 specific code and few other lines.
NFCI
(confirmed with uwe by email)

Additionally:
rearrange includes alphabetically and remove sh3/mmu_sh4.h, since SH4 specific
code is missing.

(andvar)

2023-09-28 15:50:24 UTC MAIN commitmail json YAML

Fix root search in RAID 1 sets

We use the wedge information given by bootstrap, where the kernel was
found. This requires src/sys/arch/i386/stand/i386/lib/biosdisk.c 1.59
to work in all cases.

(manu)

2023-09-28 15:46:55 UTC MAIN commitmail json YAML

Align the behavior of different boot methods in RAIDframe

We enforce the documented and paritally implemented behavior when
looking for the kernel in RAID 1 sets without a partition name given.
We search for:
- A GPT partition with bootme attribute set
- A FFS or LFS patititon
- The first partition

(manu)

2023-09-28 13:31:11 UTC MAIN commitmail json YAML

Add testing for pad resetting (Jose Luis Duran)

(christos)

2023-09-28 10:03:41 UTC MAIN commitmail json YAML

Fix padding for formats with mutliple padded values.
PR lib/57633, fix from FreeBSD.

(martin)

2023-09-28 06:34:22 UTC MAIN commitmail json YAML

2023-09-28 06:24:37 UTC MAIN commitmail json YAML

#define<space> -> #define<tab> for consistency

(skrll)

2023-09-28 06:23:43 UTC MAIN commitmail json YAML

#define<space> -> #define<tab> for consistency

(skrll)

2023-09-28 06:19:19 UTC MAIN commitmail json YAML

2023-09-28 02:31:05 UTC MAIN commitmail json YAML

pam_krb5: Fix PR lib/57631.

Loose ends in the fix for NetBSD-SA2023-006 that weren't caught by
review or, somehow, by my own testing.  Evidently we need automatic
tests for this pam business.

XXX pullup-10
XXX pullup-9
XXX pullup-8

(riastradh)

2023-09-27 09:44:10 UTC MAIN commitmail json YAML

gpt(8): Make gpt type array and enum match again.

Add cross-referencing comment to reduce the probability of these
getting out of sync again.

Should fix a slew of failing tests since kre's recent change to add
windows-recovery to the array but not to the enum:

sbin/gpt/t_gpt:create_2part
sbin/gpt/t_gpt:migrate_disklabel
sbin/gpt/t_gpt:recover_backup
sbin/gpt/t_gpt:recover_primary
sbin/gpt/t_gpt:remove_2part
sbin/gpt/t_gpt:resize_2part
sbin/gpt/t_gpt:restore_2part

Fail: stdout does not match golden output
--- /usr/tests/sbin/gpt/gpt.2part.show.normal  2023-09-26 15:48:30.000000000 +0000
+++ /tmp/check.sc6ylB/stdout                    2023-09-26 23:30:42.388157924 +0000
@@ -3,6 +3,6 @@
      1      1        Pri GPT header
      2    32        Pri GPT table
      34  1024      1  GPT part - EFI System
-  1058  9150      2  GPT part - NetBSD FFSv1/FFSv2
+  1058  9150      2  GPT part - NetBSD Cryptographic Disk
  10208    32        Sec GPT table
  10240      1        Sec GPT header

https://releng.netbsd.org/b5reports/i386/commits-2023.09.html#build-2023.09.26.15.47.11

(riastradh)

2023-09-27 08:48:01 UTC MAIN commitmail json YAML

Update for sys/net/if_ipsec.c:r1.35

(knakahara)

2023-09-27 01:27:32 UTC MAIN commitmail json YAML

/etc/rc.d/certctl_init: Default off.

Otherwise in systems without certctl_init=YES, such as systems
installed with sysinst(8) where it's unnecessary because the rehash
has already happened at install time, you'll get spurious warnings.

PR install/57629

XXX pullup-10

(riastradh)

2023-09-27 00:28:32 UTC MAIN commitmail json YAML

mozilla-certdata: Run certdata.awk with LC_ALL=C.

This has to be able to printf("%c", ...) to emit arbitrary bytes of
output in order to decode the octal-formatted DER data and print it
as raw binary DER data.

Relevant only at import time, doesn't affect builds.

(riastradh)

2023-09-27 00:27:07 UTC MAIN commitmail json YAML

ec2_init: Suppress error message for nonexistent sysctl.

We're querying to see whether the sysctl node is available and if so
what its text is, not interested in the error message.

XXX pullup-10

(riastradh)

2023-09-27 00:24:13 UTC MAIN commitmail json YAML

/etc/rc.d/cerctl_init: New script for certctl rehash in live images.

This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

XXX pullup-10

(riastradh)

2023-09-26 21:38:11 UTC MAIN commitmail json YAML

3RDPARTY: note jemalloc is now at 5.3.0

While here, mention that there is a second, much older version still in
tree, should someone else stumble over both and be confused (e.g., ask
nxr.netbsd.org about jemalloc, forget that it doesn't index anything
under src/external, then read code in the wrong place).

(gutteridge)

2023-09-26 15:55:46 UTC MAIN commitmail json YAML

When extracting the attributes (to printable form), avoid simply ignoring
any attribute bits which are unknown, print them as a hex value.  This
avoids "Attributes: " for most windows filesystem types, which all seem
to have but 63 set (which is supposed to mean "don't assign a drive letter"
which is akin to "noauto" in fstab - except it is set even on partitions
which do get mounted, so must mean something subtly different).

These upper 16 attribute bits are supposed to be file system type speficic
(in practice, they seem to be common to all filesystem types from one vendor)
but we don't have the info (yet anyway) to treat them like that.

ChromeOS seems to treat some of the bits as bit fields containing numeric
values - add #if 0'd (but compile tested) code to deal with those (maybe,
compile tested - but not execution tested) should someone ever get an
environment where these things occur, and could add the missing definitions
to actually test this.

(kre)

2023-09-26 15:48:31 UTC MAIN commitmail json YAML

Recognise Windows Recovery partitions.

(kre)

2023-09-26 15:47:11 UTC MAIN commitmail json YAML

Add the GUID for Microsoft Recovery partitions.

(kre)

2023-09-26 14:33:55 UTC MAIN commitmail json YAML

2023-09-26 12:46:30 UTC MAIN commitmail json YAML

2023-09-26 12:15:45 UTC MAIN commitmail json YAML

Perform quoting of variable expansions, etc correctly.  That includes
(some) removing of quotes from where they're useless (superstition).

This should be NFC for these tests, as the data being quoted doesn't
happen to require it, but depending upon the data not altering, or the
code not being copied to a different environment is unwise, when it is
so easy to simply do it correctly.

A few line wrapping and white space changes as well.

Nothing changed here is intended to alter the way that the tests run,
or results generated.

(kre)

2023-09-26 03:43:27 UTC MAIN commitmail json YAML

Use unit id instead of if_index to reduce fixed_reqid space.

(knakahara)

2023-09-25 21:59:39 UTC MAIN commitmail json YAML

We no longer need the deprecated copyback functionality now that
incorporating a used spare is automatic.

Copyback has always been an issue, as to do a copyback all IO to
the array had to be suspended, and so was very, very unlikely to
have been used in anything resembling a production system.

(oster)

2023-09-25 18:55:53 UTC MAIN commitmail json YAML

sys/sleepq.h: Fix more syncobj_t creep.

(riastradh)

2023-09-25 18:30:44 UTC MAIN commitmail json YAML

sys/lwp.h: Oops -- l_syncobj needs const now.

(riastradh)

2023-09-25 17:09:27 UTC MAIN commitmail json YAML

sys/lwp.h: Revert unnecessary style- and build-breaking change.

Broke the clang builds because of duplicate syncobj_t definitions.

Just use `struct syncobj'; the `syncobj_t' alias causes more trouble
than it's worth -- KNF now advises against it and I see no compelling
reason to make an exception here.

(riastradh)

2023-09-25 16:16:50 UTC MAIN commitmail json YAML

snprintf() should really include a format.

(oster)

2023-09-25 14:56:56 UTC MAIN commitmail json YAML

sbmips/systemsw.h: sys/stdbool.h for bool.

XXX sys/types.h should bring this in too, but that doesn't happen in
the crash(8) build, perhaps because sys/types.h only includes
sys/stdbool.h under _KERNEL or _STANDALONE but not _KMEMUSER -- maybe
we should fix that but this is a lower-risk change for now to fix a
build problem.

Found by Jan-Benedict Glaw.

(riastradh)

2023-09-25 09:15:48 UTC MAIN commitmail json YAML

wm(4): Replace /* nothing */ to __nothing for evcnt macros

Prevent empty if bodies for !WM_EVENT_COUNTERS.

(rin)

2023-09-25 08:42:05 UTC MAIN commitmail json YAML

defflag AUDIO_DEBUG

(macallan)

2023-09-25 08:18:14 UTC MAIN commitmail json YAML

wm(4): Modify descriptions of flow control related event counters.

(msaitoh)

2023-09-25 07:12:25 UTC MAIN commitmail json YAML

wm(4): the IAC(Interrupt Assertion Count) register is for 82571 and newer.

(msaitoh)

2023-09-25 07:11:08 UTC MAIN commitmail json YAML

wm(4): Add some info to some event counters.

- The difference between the RUC(Rx Undersize) and RFC(Rx Fragment) is whether
  the CRC is valid or not.
- The difference between the ROC(Rx Oversize) and RJC(Rx Jabber) is whether
  the CRC is valid or not.
- LENERRS(Length Errors) is for the length/type field <= 1500.

(msaitoh)

2023-09-25 06:18:09 UTC MAIN commitmail json YAML

wm(4): Use SCVPC and HRMPC for 82575 and newer.

  The SCVPC(SerDes/SGMII Code Violation Packet Count) register and the HRMPC
  (Header Redirection Missed Packet Count) register were added in if_wm.c
  rev. 1.776 but the location in the code were incorrect. Fix them.

(msaitoh)

2023-09-24 20:41:52 UTC MAIN commitmail json YAML

ext.h: fix spelling and grammar in a comment

(gutteridge)

2023-09-24 20:17:26 UTC MAIN commitmail json YAML

Nix trailing whitespace.

(andvar)

2023-09-24 19:57:10 UTC MAIN commitmail json YAML

unify ROMIMAGE specific assembler code between evbsh3 and mmeye.

fixes mmeye ROMIMAGE enabled build and in turn MMTAROMNEW kernel config.
patch checked by martin. PR port-mmeye/57627.

(andvar)

2023-09-24 16:33:42 UTC MAIN commitmail json YAML

UPDATING: fix a couple of spelling mistakes

(gutteridge)

2023-09-24 13:59:38 UTC MAIN commitmail json YAML

disable all phy devices in config, since network is disabled in general.
add SH7708R option from MMTA config, one CPU option is required.
enable pseudo-terminal device, also needed for config to build.

changes fix the kernel config itself, but build fails on locore.S asm code,
will file a PR for that.

P.S. would be good to update descriptions of kernel configs, since all copied
from GENERIC and it is difficult to decipher their purpose and relevance.

(andvar)

2023-09-24 11:08:32 UTC MAIN commitmail json YAML

2023-09-24 10:59:24 UTC MAIN commitmail json YAML

pass NULL to the second dbdma_alloc() expected argement.
it was not adjusted after it acquired one 7 years ago.

fixes ZS_TXDMA enabled build for macppc.

(andvar)

2023-09-24 10:51:28 UTC MAIN commitmail json YAML

define i variable in for loop.
valkyriefb_attach() doesn't have one defined in the function scope.

fixes VALKYRIEFB_DEBUG enabled build for macppc.

(andvar)

2023-09-24 10:13:44 UTC MAIN commitmail json YAML

Add a bunch of system registers and their bit / bit field definitions.
Taken from ryo's nvmm branch with updates from me.

(skrll)

2023-09-24 09:33:27 UTC MAIN commitmail json YAML

PR kern/57626: instead of an (arbitrary) FAKE_PAGE_SHIFT (and always
using 4k pages), query the hypervisor for the real page size of the host
kernel and use that for architectures that do not have compile time
constant page sizes.

(martin)

2023-09-24 08:20:06 UTC MAIN commitmail json YAML

define i variable in for loop.
mesh_msgin() doesn't have one defined in the function scope.

fixes MESH_DEBUG enabled build for macppc.

(andvar)

2023-09-24 04:54:13 UTC MAIN commitmail json YAML

configure: remove obsolete macros

Remove macros marked obsolescent in autoconf 2.69 and
warned as obsolete in autoconf 2.71:
AC_HEADER_STDC()
AC_HEADER_TIME()
AC_TYPE_SIGNAL()

(lukem)

2023-09-24 02:07:12 UTC MAIN commitmail json YAML

configure: improve check for inet_net_pton()

Look for inet_net_pton() in -lresolv (for glibc).
Move library checks after header checks, in case latter are needed for former.
Display vars at end of configure: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS

(lukem)

2023-09-24 01:23:17 UTC MAIN commitmail json YAML

update ChangeLog for yesterday's improvements

(lukem)

2023-09-23 21:26:16 UTC MAIN commitmail json YAML

add ifdef NWSDISPLAY > 0 around rascons_* functions usage,
otherwise implementation is not available, which breaks macppc MAMBO config.

potentially better solution to provide empty implementation, comments welcome.

(andvar)

2023-09-23 20:23:07 UTC MAIN commitmail json YAML

Sigh..  Adjust previous to work as intended.  The boosted LWP priority
didn't persist as far as the run queue because l_syncobj gets reset
earlier than I recalled.

(ad)

2023-09-23 19:17:38 UTC MAIN commitmail json YAML

kmem_free() -> kmem_intr_free().  Spotted by rin@.

(ad)

2023-09-23 18:49:16 UTC MAIN commitmail json YAML

NetBSD 10.99.9 - struct lwp changed

(ad)

2023-09-23 18:48:05 UTC MAIN commitmail json YAML

- Simplify how priority boost for blocking in kernel is handled.  Rather
  than setting it up at each site where we block, make it a property of
  syncobj_t.  Then, do not hang onto the priority boost until userret(),
  drop it as soon as the LWP is out of the run queue and onto a CPU.
  Holding onto it longer is of questionable benefit.

- This allows two members of lwp_t to be deleted, and mi_userret() to be
  simplified a lot (next step: trim it down to a single conditional).

- While here, constify syncobj_t and de-inline a bunch of small functions
  like lwp_lock() which turn out not to be small after all (I don't know
  why, but atomic_*_relaxed() seem to provoke a compiler shitfit above and
  beyond what volatile does).

(ad)

2023-09-23 18:21:43 UTC MAIN commitmail json YAML

2023-09-23 18:21:12 UTC MAIN commitmail json YAML

Repply this change with a couple of bugs fixed:

- Do away with separate pool_cache for some kernel objects that have no special
  requirements and use the general purpose allocator instead. On one of my
  test systems this makes for a small (~1%) but repeatable reduction in system
  time during builds presumably because it decreases the kernel's cache /
  memory bandwidth footprint a little.
- vfs_lockf: cache a pointer to the uidinfo and put mutex in the data segment.

(ad)

2023-09-23 18:20:20 UTC MAIN commitmail json YAML

uvm_phys_to_vm_page() turns out to be a fairly central routine due to the
way that some of the pmaps work, so try to optimise it a little.

(ad)

2023-09-23 14:41:16 UTC MAIN commitmail json YAML

2023-09-23 14:40:42 UTC MAIN commitmail json YAML

kernel_lock isn't needed to synchronise kthread_exit() and kthread_join().

(ad)

2023-09-23 14:19:12 UTC MAIN commitmail json YAML

Remove last remnant of the long-dead PGINPROF option.

(ad)

2023-09-23 13:45:50 UTC MAIN commitmail json YAML

pass just l param to exec_aout_prep_oldzmagic instead of l->l_proc.

In a huge "merge ktrace-lwp." commit struct proc was changed by struct lwp.
seemingly all 68k ports just replaced p with l, however mac68k changed to
refer to l->l_proc. I assume it was accidental leftover during refactoring.

fixes COMPAT_NOMID enabled build for mac68k.

(andvar)

2023-09-23 13:01:16 UTC MAIN commitmail json YAML

When attaching and detaching disks, use the proper index, skipping the
first 4, which are used for the controller itself (Edgar Fuss)

(christos)

2023-09-23 12:48:23 UTC MAIN commitmail json YAML

some whitespace cleanup for debug printf calls.

(andvar)

2023-09-23 12:29:25 UTC MAIN commitmail json YAML

change zsprintf to printf. It was defined as printf in include/z8530var.h
up to rev 1.4, then removed with conversion to MI 8530 SCC driver back in 1997.

Fixes build with ZSMACDEBUG option enabled for mac68k and macppc.

(andvar)

2023-09-23 05:40:42 UTC MAIN commitmail json YAML

2023-09-23 05:39:48 UTC MAIN commitmail json YAML

improve netbsd2tnftpd conversion

replace ftpd with tnftpd in more macros

(lukem)

2023-09-23 05:30:36 UTC MAIN commitmail json YAML

2023-09-23 04:50:42 UTC MAIN commitmail json YAML

2023-09-23 04:50:32 UTC MAIN commitmail json YAML

2023-09-23 04:47:47 UTC MAIN commitmail json YAML

libnetbsd: add placeholder source to avoid an empty library

(lukem)

2023-09-23 04:45:03 UTC MAIN commitmail json YAML

configure: only replace fts_open if required FTS_ flags aren't available

Use system fts_open() if it provides the flags we use:
FTS_COMFOLLOW|FTS_LOGICAL|FTS_NOSTAT|FTS_PHYSICAL|FTS_SEEDOT

(lukem)

2023-09-23 04:28:51 UTC MAIN commitmail json YAML

todo: DONE: fgetln and glob

(lukem)

2023-09-23 04:28:10 UTC MAIN commitmail json YAML

configure: only replace glob if required GLOB_ flags aren't available

Use system glob() if it provides the flags we use:
GLOB_BRACE|GLOB_LIMIT|GLOB_NOCHECK|GLOB_TILDE

(lukem)

2023-09-23 04:12:32 UTC MAIN commitmail json YAML

configure: enable AC_USE_SYSTEM_EXTENSIONS()

We use various POSIX extensions, so enable them.

(lukem)

2023-09-23 04:05:57 UTC MAIN commitmail json YAML

configure: use --option-name in feature display

Use the appropriate option name in the feature display.
Sort the options.

(lukem)

2023-09-23 04:00:21 UTC MAIN commitmail json YAML

adapt __progname to setprogname() / getprogname()

Import setprogname() and getprogname() from
othersrc/usr.bin/tnftp/libnetbsd/setprogname.c rev 1.4.

Use getprogname() instead of __progname.

Fixes link error on modern NetBSD which correctly complained
about duplicate definition of __progname.

(lukem)

2023-09-23 03:33:32 UTC MAIN commitmail json YAML

regen with automake 1.16.1, libtool 2.4.6

(lukem)

2023-09-23 03:32:42 UTC MAIN commitmail json YAML

2023-09-23 03:26:02 UTC MAIN commitmail json YAML

configure.ac: deprecate AC_REVISION

Allows regen as part of the release commit / tag

(lukem)

2023-09-23 02:56:09 UTC MAIN commitmail json YAML

sync lib/libc/gen/stringlist.c 1.13

Functional changes since upstream 1.8:
- 1.11: Add sl_delete. Change sl_find() to use const char * argument.
- 1.10: Don't update the size of allocated storage until realloc successes.

Note: not updating to upstream 1.15 because that was a refactor to
use reallocarr() which I'm deferring for now.

Comment out other unneeded upstream code to minimise differences.

Update sl_find() and sl_delete() declarations in tnftpd.h
per include/stringlist.h rev 1.6.

(lukem)

2023-09-23 02:30:54 UTC MAIN commitmail json YAML

sync lib/libc/inet/inet_pton.c 1.8

Functional changes since upstream 1.3:
- 1.8: fix lint issues
- 1.4: hex formatting change from bind 9.4.0

Retain tnftpd local changes:
- 1.3: don't use non-standard u_char u_int u_int32_t
- 1.1: only enable IPv6 ifdef INET6.

Comment out other unneeded upstream code to minimise differences.

(lukem)

2023-09-23 02:20:39 UTC MAIN commitmail json YAML

sync lib/libc/inet/inet_ntop.c 1.12

Functional changes since upstream 1.3:
- 1.10, 1.12: always set errno when returning NULL

Retain tnftpd local changes:
- 1.3: don't use non-standard u_char u_int
- 1.1: only enable IPv6 ifdef INET6.

Comment out other unneeded upstream code to minimise differences.

(lukem)

2023-09-23 00:02:05 UTC MAIN commitmail json YAML

sync lib/libc/inet/inet_net_pton.c 1.5

Functional changes since upstream 1.1:
- 1.3: fix lint issues
- 1.2: Check bits on each loop to prevent integer oveflow.

Retain tnftpd local changes:
- 1.3: don't use non-standard u_char u_int
- 1.1: only enable IPv6 ifdef INET6.

Comment out other unneeded upstream code to minimise differences.

(lukem)

2023-09-22 22:48:31 UTC MAIN commitmail json YAML

sync tools/compat/fgetln.c 1.12

Switch to a version that does not suffer from reporting the wrong length
if the file contains NULs. From OpenBSD.

(lukem)

2023-09-22 22:31:34 UTC MAIN commitmail json YAML

2023-09-22 22:23:42 UTC MAIN commitmail json YAML

sync share/examples/ftpd/ftpusers 1.4

ftpusers(5) example: use IP & DNS examples

Use .example TLD, per IETF RFC 2606.
Use 192.0.2.0/24, per IETF RFC 5737.
Use 127.0.0.1/24 for localguest, not network that ftp.NetBSD.org used to be in.

(lukem)

2023-09-22 22:15:47 UTC MAIN commitmail json YAML

ftpusers(5) example: use IP & DNS examples

Use .example TLD, per IETF RFC 2606.
Use 192.0.2.0/24, per IETF RFC 5737.
Use 127.0.0.1/24 for localguest, not network that ftp.NetBSD.org used to be in.

(lukem)

2023-09-22 21:57:55 UTC MAIN commitmail json YAML

version NetBSD-ftpd 20230922 for MLSD/MLST fix

(lukem)

2023-09-22 15:28:36 UTC MAIN commitmail json YAML

Fix off by one in telrcv()

In case of "\r" in the data buffer, the code was unconditionally looking ahead
to next character, even if "\r" was last character in the buffer. That
condition leads to read outside of the data (one byte after the array)

Thanks christos@ for the review

(shm)

2023-09-22 14:14:00 UTC MAIN commitmail json YAML

update present variable when disks are added or removed (Edgar Fuss)

(christos)

2023-09-22 11:23:28 UTC MAIN commitmail json YAML

Add missing check_login checks for MLST and MLSD

(shm)

2023-09-21 20:30:59 UTC MAIN commitmail json YAML

make: remove obsolete comments, clean up comments and identifiers

No binary change, except for the line numbers in assertions.

(rillig)

2023-09-21 14:00:34 UTC MAIN commitmail json YAML

Fix memory leak - free resources allocated by getaddrinfo

(shm)

2023-09-21 13:46:12 UTC MAIN commitmail json YAML

Fix memory leak in getent()

Memory was not freed if record was not found

(shm)

2023-09-21 13:38:03 UTC MAIN commitmail json YAML

+CVSS  Common Vulnerability Scoring System

(jschauma)

2023-09-21 13:23:45 UTC netbsd-10 commitmail json YAML

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

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

sys/netinet/tcp_output.c: revision 1.219

Handle EHOSTDOWN the same way as EHOSTUNREACH and ENETDOWN for established
connections. Avoid premature end of tcp connection with "Host is down" error
in case of transient link-layer failure.

Discussed and patch proposed in
http://mail-index.netbsd.org/tech-net/2023/09/11/msg008610.html
and followups.

(martin)

2023-09-21 09:31:50 UTC MAIN commitmail json YAML

2023-09-21 09:24:09 UTC MAIN commitmail json YAML

2023-09-21 01:48:41 UTC MAIN commitmail json YAML

Remove a couple of unneeded comments.

(oster)

2023-09-21 01:40:44 UTC MAIN commitmail json YAML

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

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

For example,

    raidctl raid0 create mirror absent /dev/wd1e

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

Also: Only print out Autoconfig status if being verbose.

(oster)

2023-09-20 15:22:41 UTC MAIN commitmail json YAML

+EPP extensible provisioning protocol (RFC5730)

(jschauma)

2023-09-20 08:41:35 UTC MAIN commitmail json YAML

Removed unnecessary comment

Thanks leot@ for pointing this out

(shm)

2023-09-20 07:13:35 UTC MAIN commitmail json YAML

Fix off-by-one in bozo_decode_url_percent

In case of strings that end with '%', debug function was reading past buffer.

(shm)

2023-09-20 07:09:14 UTC MAIN commitmail json YAML

Remove unused variable (bp)

(shm)

2023-09-19 22:15:32 UTC MAIN commitmail json YAML

Fix a comment.

(ad)

2023-09-19 22:14:25 UTC MAIN commitmail json YAML

Don't needlessly bump a couple of fault counters if upgrading the rwlock
failed.

(ad)

2023-09-19 17:43:44 UTC MAIN commitmail json YAML

make: clean up code for parsing the '-j' command line option

No binary change.

(rillig)

2023-09-19 11:55:14 UTC MAIN commitmail json YAML

Don't expect the net/carp/t_basic/carp_handover_ipv6_halt_nocarpdevip
and carp_handover_ipv6_ifdown_nocarpdevip test cases to fail.  At
least on the TNF i386 and amd64 testbeds, they pass more often than
not since the commit of src/sys/netinet/ip_carp.c 1.119 by mlelstv on
2023.04.07.06.44.08.

(gson)

2023-09-19 07:51:43 UTC MAIN commitmail json YAML

Fix hr_authrealm memory leak

hr_authrealm might be already set, so we need to free it before overwriting
the value

(shm)

2023-09-18 19:01:14 UTC netbsd-9 commitmail json YAML

2023-09-18 19:00:21 UTC netbsd-9 commitmail json YAML

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

sys/dev/raidframe/rf_netbsdkintf.c: revision 1.413

A component that is in state rf_ds_reconstructing has failed, and should
not be consulted for DIOCGCACHE.

Fixes an observed panic when rf_get_component_caches() does an IOCTL to
a failed device while reconstruction is in progress.

(martin)

2023-09-18 18:59:30 UTC netbsd-10 commitmail json YAML

2023-09-18 18:57:33 UTC netbsd-10 commitmail json YAML

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

sys/dev/raidframe/rf_netbsdkintf.c: revision 1.413

A component that is in state rf_ds_reconstructing has failed, and should
not be consulted for DIOCGCACHE.

Fixes an observed panic when rf_get_component_caches() does an IOCTL to
a failed device while reconstruction is in progress.

(martin)