NetBSD/src eaJDPdc — distrib/evbarm/gzboot/gzimg Makefile, sys/arch/evbarm/stand/board netwalker.c

   evbarm: add gzboot for NetWalker

   When booting from SD, the NetWalker RedBoot does not stop the
   watchdog power-down counter, so the board resets 16 seconds after
   power-on.  RedBoot loads the kernel too slowly for the current
   NETWALKER kernel (8.8MB).  Boot it through gzboot instead: the image
   is about 4MB, and gzboot stops the counter first.

   Build gzboot with the default EABI, -mfloat-abi=soft and
   -mno-unaligned-access instead of ARM_APCS_FLAGS.  On ARMv7 the
   compiler_rt division routines are Thumb-2 and cannot be called from
   non-interworking APCS code.  The FPU is not enabled at boot, and with
   the MMU off unaligned accesses fault.

   Add NETWALKER to the armv7 kernel sets so that gzimg can be built.

   Tested on NetWalker: the gzimg image boots the NETWALKER kernel from
   SD.  Built gzboot for all boards on earmv7hf, earmv5 and earmv4.
VersionDeltaFile
1.1+92-0sys/arch/evbarm/stand/gzboot/NETWALKER_dram_0x90008000/ldscript
1.1+61-0sys/arch/evbarm/stand/board/netwalker.c
1.1+17-0sys/arch/evbarm/stand/gzboot/NETWALKER_dram_0x90008000/Makefile
1.13+6-1sys/arch/evbarm/stand/gzboot/Makefile
1.39+4-2sys/arch/evbarm/stand/gzboot/Makefile.gzboot
1.29+5-1distrib/evbarm/gzboot/gzimg/Makefile
+185-41 files not shown
+188-57 files

NetBSD/src 6uWHKu7 — sys/dev/pci machfb.c

   properly support underline with anti-aliased fonts
VersionDeltaFile
1.112+21-10sys/dev/pci/machfb.c
+21-101 files

NetBSD/src CQQu0IQ — sys/dev/pci machfb.c

   support WSDISPLAYIO_GVIDEO to let userland know we can blank the screen
VersionDeltaFile
1.111+5-2sys/dev/pci/machfb.c
+5-21 files

NetBSD/src 8ZCRDhX — crypto/external/bsd/heimdal/dist/lib/krb5 context.c

   heimdal: Stop requiring a config file to use krb5.

   With this change, you can now do `kinit jrandomuser at EXAMPLE.COM' to
   log into client-side single-sign-on out of the box, no configuration
   required.

   We had previously been carrying this local patch for decades in order
   to paper over bad user experience (as well as what is essentially a
   vulnerability) in kerberized non-pam login(1) and su(1), where they
   would wait for network delays for Kerberos DNS autoconfiguration even
   if they have no Kerberos service key to actually do any meaningful
   authentication checks -- the local patch turned the existence of
   /etc/krb5.conf into a systemwide knob for whether any application is
   allowed to try Kerberos at all.

   Unfortunately, that systemwide knob also affects client-side SSO
   applications, not just system verification of user credentials.

   To make sure that reverting this local patch doesn't create new

    [23 lines not shown]
VersionDeltaFile
1.9+2-2crypto/external/bsd/heimdal/dist/lib/krb5/context.c
+2-21 files

NetBSD/src mb7B6P6 — lib/libpam/modules/pam_ksu pam_ksu.c

   pam_ksu(8): Fix memory leaks in error branches.

   Cleanup prompted by:

   PR lib/61084: kinit: krb5_init_context failed: 6
VersionDeltaFile
1.13+11-9lib/libpam/modules/pam_ksu/pam_ksu.c
+11-91 files

NetBSD/src HRPjdxt — lib/libpam/modules/pam_ksu pam_ksu.c

   pam_ksu(8): Check for service keys without talking to the network.

   This way, testing whether it is reasonable to even try krb5 auth
   won't incur any network-related delays on systems that still have
   pam_ksu enabled by default in /etc/pam.d/su, when we remove the patch
   to krb5_init_context that makes it fail without /etc/krb5.conf, for
   the benefit of client-side SSO.

   This should have no security impact because we still verify
   everything the same way later on, in the conditions under which
   pam_ksu could allow the user switch anyway.

   PR lib/61084: kinit: krb5_init_context failed: 6
VersionDeltaFile
1.12+141-2lib/libpam/modules/pam_ksu/pam_ksu.c
+141-21 files

NetBSD/src OCr3SaO — lib/libpam/modules/pam_krb5 pam_krb5.c

   pam_krb5(8): Check for service keys without talking to the network.

   This way, testing whether it is reasonable to even try krb5 auth
   won't incur any network-related delays on systems that still have
   pam_krb5 enabled by default in /etc/pam.d/system, when we remove the
   patch to krb5_init_context that makes it fail without /etc/krb5.conf,
   for the benefit of client-side SSO.

   This should have no security impact because we still verify
   everything the same way later on, in the conditions under which
   pam_krb5 could allow the user in anyway.

   PR lib/61084: kinit: krb5_init_context failed: 6
VersionDeltaFile
1.33+114-45lib/libpam/modules/pam_krb5/pam_krb5.c
+114-451 files

NetBSD/src 1tD82ch — usr.bin/login k5login.c

   login(1): Minor tidying in kerberized path.

   Avoid some leaks.  Followup for:

   PR lib/61084: kinit: krb5_init_context failed: 6
VersionDeltaFile
1.36+12-6usr.bin/login/k5login.c
+12-61 files

NetBSD/src hkT8Eho — usr.bin/login login.c k5login.c

   login(1): Quietly check for service key before trying krb5 password.

   Don't provoke any Kerberos-related network traffic until we confirm
   that we have a service key in the default keytab for host/$(hostname)
   in some realm; without any such service key, we have no hope of
   authenticating a service ticket, so there is no point in even trying
   to verify the user's password by acquiring Kerberos with it.

   This way, simply having a krb5.conf -- or removing our local Heimdal
   patch to make krb5_init_context fail when there is no krb5.conf --
   won't cause login(1) to be subject to Kerberos-induced network delays
   unless you _also_ configure a host service key for it to use.

   This change applies only to the MKPAM=no MKKERBEROS=yes case.

   PR lib/61084: kinit: krb5_init_context failed: 6
VersionDeltaFile
1.35+199-17usr.bin/login/k5login.c
1.106+4-20usr.bin/login/login.c
+203-372 files

NetBSD/src XQMTXaX — usr.bin/login k5login.c

   login(1): Require keytab in kerberized login with MKPAM=no.

   The kerberized login procedure works as follows:

   1. User enters a password.
   2. login(1) tries to get a ticket-granting ticket with that password,
      which may entail:
      (a) ask DNS for realm of this hostname
      (b) ask DNS for KDC of this realm
      (c) send KDC an AS-REQ
      If no TGT, fail.
   3. login(1) tries to get a service ticket for host/<hostname>.
   4. login(1) tries to verify the service ticket with the service key
      for host/<hostname>.

   If there is no keytab having the service key of host/<hostname>, step
   (4) won't work.  Previously, this path would fail open: if there is
   no keytab and service key, a fraudulent KDC could enable an attacker
   to log in with a password of their choice.

    [16 lines not shown]
VersionDeltaFile
1.34+12-39usr.bin/login/k5login.c
+12-391 files

NetBSD/src iXKT84I — usr.bin/su su.c

   su(1): Quietly check for service key before trying krb5 password.

   Don't provoke any Kerberos-related network traffic until we confirm
   that we have a service key in the default keytab for host/$(hostname)
   in some realm; without any such service key, we have no hope of
   authenticating a service ticket, so there is no point in even trying
   to verify the target user's password by acquiring Kerberos with it.

   This way, simply having a krb5.conf -- or removing our local Heimdal
   patch to make krb5_init_context fail when there is no krb5.conf --
   won't cause su(1) to be subject to Kerberos-induced network delays
   unless you _also_ configure a host service key for it to use.

   This change applies only to the MKPAM=no MKKERBEROS=yes case.

   PR lib/61084: kinit: krb5_init_context failed: 6
VersionDeltaFile
1.77+149-35usr.bin/su/su.c
+149-351 files

NetBSD/src sLR9aGt — crypto/external/bsd/openssh/dist auth.h auth-krb5.c

   sshd(8): Cull long-disused auth_krb5_tgt subroutine.

   This was used only in ssh protocol 1, which has been defunct since
   openssh-7.4.

   Cleanup prompted by:

   PR bin/61100: openssh: various nonstandard krb5 issues
VersionDeltaFile
1.21+2-67crypto/external/bsd/openssh/dist/auth-krb5.c
1.29+1-2crypto/external/bsd/openssh/dist/auth.h
+3-692 files

NetBSD/src hsTchRE — crypto/external/bsd/openssh/dist monitor.c auth2-methods.c

   sshd(8): Fix kerberos-2 at ssh.com configuration.

   This had bitrotted in the openssh-6.2 and openssh-9.8 updates.

   PR bin/61100: openssh: various nonstandard krb5 issues
VersionDeltaFile
1.3+5-2crypto/external/bsd/openssh/dist/auth2-methods.c
1.55+3-3crypto/external/bsd/openssh/dist/monitor.c
+8-52 files

NetBSD/src 265ND5s — crypto/external/bsd/openssh/dist auth2-krb5.c

   sshd(8): Fix parsing of kerberos-2 at ssh.com authentication packets.

   These are length-delimited byte strings, not NUL-delimited C strings.

   Fixes:

   userauth_kerberos: invalid format

   which had been broken since the openssh-7.6 import in 2017, when
   merge conflict resolution adapting the packet_get_string/cstring ->
   sshpkt_get_string/cstring change mixed up the `string' and `cstring'
   versions.

   https://mail-index.netbsd.org/source-changes/2017/10/07/msg088672.html

   PR bin/61100: openssh: various nonstandard krb5 issues
VersionDeltaFile
1.13+5-5crypto/external/bsd/openssh/dist/auth2-krb5.c
+5-51 files

NetBSD/src rWMsHj1 — crypto/external/bsd/openssh/dist auth2.c

   sshd(8): Fix ordering of pam account mgmt with multiple auth methods.

   Can't do it until we've completed all of the necessary authentication
   methods.  Otherwise the process fails with:

   debug1: do_pam_account: called
   debug2: do_pam_account: auth information in SSH_AUTH_INFO_0
   debug3: PAM: do_pam_account pam_acct_mgmt = 0 (Success)
   debug3: mm_request_send: entering, type 103
   debug3: auth2_update_methods_lists: updating methods list after "unknown"
   auth2_update_methods_lists: method not in AuthenticationMethods

   PR bin/61099: sshd(8): Multiple AuthenticationMethods broken PAM
VersionDeltaFile
1.38+19-19crypto/external/bsd/openssh/dist/auth2.c
+19-191 files

NetBSD/src Zw4rIWe — crypto/external/bsd/openssh/dist monitor.c

   sshd(8): Fix authentication submethod naming for pam.

   This had been presumably broken in some way in 2013 with the
   openssh-6.4 update, which introduced authentication submethods:

   https://mail-index.netbsd.org/source-changes/2013/11/08/msg049052.html

   PR bin/61099: sshd(8): Multiple AuthenticationMethods broken PAM
VersionDeltaFile
1.54+5-5crypto/external/bsd/openssh/dist/monitor.c
+5-51 files

NetBSD/src pQecP7A — sys/dev/pci r128fbreg.h

   fix a tpyo I made 15 years ago
VersionDeltaFile
1.8+2-2sys/dev/pci/r128fbreg.h
+2-21 files

NetBSD/src 3oTALCn — sys/arch/aarch64/aarch64 genassym.cf

   Add ID_AA64PFR0_EL1_GIC_CPUIF_NONE for locore - unbreak aarch64 builds
VersionDeltaFile
1.47+2-1sys/arch/aarch64/aarch64/genassym.cf
+2-11 files

NetBSD/src xFcYsvu — sys/external/bsd/drm2/linux linux_sync_file.c

   drm: Fix missing fd type check.

   PR kern/61098: drm: missing fd type check in sync_file_get_fence
VersionDeltaFile
1.4+6-4sys/external/bsd/drm2/linux/linux_sync_file.c
+6-41 files

NetBSD/src ZwBc5bK — sys/arch/arm/imx imxpwm.c, sys/arch/arm/nxp imx6_pwm.c

   imxpwm: fix polarity handling

   - get_config() returned the wrong polarity.
   - imx6_pwm: the polarity was set incorrectly.
   - Use the SAR mask, not the PR mask, when writing PWMSAR.
   - In attach, clear only the CLKSRC field of PWMCR, not the other bits.

   Tested on NETWALKER: the LCD is lit at boot, and the polarity no
   longer flips when the brightness is changed. Built GENERIC.
VersionDeltaFile
1.3+5-5sys/arch/arm/imx/imxpwm.c
1.4+3-3sys/arch/arm/nxp/imx6_pwm.c
+8-82 files

NetBSD/src 6qCbJOu — sys/arch/m68k/include linux_bootinfo.h

   Note that BI_MACHDEP(6) is deprecated / reserved for the VIRT machine.
VersionDeltaFile
1.7+2-1sys/arch/m68k/include/linux_bootinfo.h
+2-11 files

NetBSD/src iA8FpsD — sys/dev/sun cgthree.c

   cgthree: make cgthreeloadcmap arguments unsigned

   wsdisplay_cmap and fbcmap already have these fields as unsigned.
   Makes KUBSAN -Werror=array-bounds happy.
VersionDeltaFile
1.37+5-5sys/dev/sun/cgthree.c
+5-51 files

NetBSD/src mla9xiX — sys/dev/sun cgsix.c

   cgsix: make cg6_loadcmap arguments unsigned

   wsdisplay_cmap and fbcmap already have these fields as unsigned.
   Makes KUBSAN -Werror=array-bounds happy.
VersionDeltaFile
1.79+5-5sys/dev/sun/cgsix.c
+5-51 files

NetBSD/src YjRru7X — sys/ufs/lfs lfs_vfsops.c lfs_segment.c

   Remove the workqueues for cluster and superblock callbacks; instead do this
   work directly in the aiodone callback.
VersionDeltaFile
1.324+2-20sys/ufs/lfs/lfs_segment.c
1.411+2-11sys/ufs/lfs/lfs_vfsops.c
+4-312 files

NetBSD/src iXVN10m — sys/ufs/lfs lfs_vnops.c

   Reinstate rev 1.358 now that the indirect block issue has been fixed in
   lfs_segment.c rev 1.323.

   Check for dirty blocks, in addition to checking for IN_MODIFIED, when
   inactivating a vnode.  Should address PR kern/61000.
VersionDeltaFile
1.360+14-5sys/ufs/lfs/lfs_vnops.c
+14-51 files

NetBSD/src rNOnpEy — sys/ufs/lfs lfs_segment.c

   Do not create duplicate copies of indirect blocks if the inode to which
   they are attached has been deleted.  The duplicate indirect block prevents
   lfs_inactive from cleaning all the blocks.  This is part of the fix for
   PR kern/61000.
VersionDeltaFile
1.323+13-9sys/ufs/lfs/lfs_segment.c
+13-91 files

NetBSD/src miXgQXA — sys/arch/aarch64/aarch64 locore_el2.S

   aarch64: allow GICv4.1 system register access for EL1

   Invert the test for GIC system register availability and cover the

   0b0001 versions 3.0 and 4.0 of the GIC CPU interface is supported.
   0b0011 version 4.1 of the GIC CPU interface is supported.

   meanings of ID_AA64PFR0_EL1.GIC

   From Jared.
VersionDeltaFile
1.17+5-5sys/arch/aarch64/aarch64/locore_el2.S
+5-51 files

NetBSD/src Zg9SNCA — sys/dev/ic mk48txx.c

   mk48txx: small oscillator-related fixes:
     mask off the stop bit when reading the seconds (avoids returning secs > 60)
     use SYSCTL_DESCR for the description
VersionDeltaFile
1.31+6-4sys/dev/ic/mk48txx.c
+6-41 files

NetBSD/src wUU3g1y — sys/dev/pci r128fb.c

   support underline and (for mono fonts) bold
VersionDeltaFile
1.51+95-23sys/dev/pci/r128fb.c
+95-231 files

NetBSD/src QGRQcCZ — sys/dev/pci r128fb.c

   g/c OFB_ALLOW_OTHERS - hasn't been used for at least a decade
VersionDeltaFile
1.50+4-11sys/dev/pci/r128fb.c
+4-111 files