[Midnightbsd-cvs] [MidnightBSD/src] 7508a0: libgeom: Fix 32-bit gcc build

Jose Luis Duran noreply at github.com
Sun Jan 18 17:05:20 EST 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 7508a052cd1bffb43782c352d5d70dc2afdacb70
      https://github.com/MidnightBSD/src/commit/7508a052cd1bffb43782c352d5d70dc2afdacb70
  Author: Dag-Erling Smørgrav <des at FreeBSD.org>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M lib/libgeom/geom_xml2tree.c

  Log Message:
  -----------
  libgeom: Fix 32-bit gcc build

MFC after:	1 week
Fixes:		27894e20f140 ("libgeom: Fix segfault in 32-on-64 case")

(cherry picked from commit 17355cf50fcbd0d8ddb638e1f2fd5861b526edbe)


  Commit: a8503d9142f08f4c32ccc6b3eeb043b1ebabf093
      https://github.com/MidnightBSD/src/commit/a8503d9142f08f4c32ccc6b3eeb043b1ebabf093
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M sys/netgraph/ng_tty.c

  Log Message:
  -----------
  ng_tty: avoid the sign extention of char

When c is compared to sc->hotchar, both undergo integer promotion, which
can lead to c being sign extended. Fix this by casting c to an unsigned
char.

Reviewed by:	kevans
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D54544

(cherry picked from commit 9b2478f60bfda663c84b48e272a2293159e1b0a0)


  Commit: f005bbb2d0af9a6daba7c05a61e6b432b4673619
      https://github.com/MidnightBSD/src/commit/f005bbb2d0af9a6daba7c05a61e6b432b4673619
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M stand/efi/loader/framebuffer.c

  Log Message:
  -----------
  loader.efi: probe for UGA if GOP isn't found

Probe for UGA instead of returning early if we can't find GOP.

Reviewed by:	tsoome
PR:		291935
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54431

(cherry picked from commit 5d85dde27b4769604fc108b89328607e70e767ed)


  Commit: 55768a2b87697f67e241ad79bad6229030c291ae
      https://github.com/MidnightBSD/src/commit/55768a2b87697f67e241ad79bad6229030c291ae
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M stand/common/gfx_fb.c

  Log Message:
  -----------
  loader.efi: only use firmware provided Blt on GOP

gfx_state.tg_private points to a EFI_GRAPHICS_OUTPUT_PROTOCOL only when
using GOP.

The firmware provided Blt functions on UGA platforms have been observed
to not work on old MacBooks, and are likley hit or miss anyways as UGA
has been deprecated since 2006.

Reviewed by:	tsoome
PR:		291935
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54432

(cherry picked from commit 9595055ae7494997bb07b4aaed544f88ac4c5e7f)


  Commit: ca8679a2a6ab307aa59ac0e51cb78f7d5efee96d
      https://github.com/MidnightBSD/src/commit/ca8679a2a6ab307aa59ac0e51cb78f7d5efee96d
  Author: Frank Hilgendorf <frank.hilgendorf at posteo.de>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M stand/efi/loader/framebuffer.c

  Log Message:
  -----------
  loader.efi: add stride & offset for MacBookPro3,1

Note that there are three variants of this MacBook. We only have the
stride and offset values for the 17" 1680x1050 model.

Reviewed by:	vexeduxr
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1584

(cherry picked from commit be6ba97aaee762c2e5300834f1916ae5dfd5a0b9)


  Commit: 0c4a039478ef868019d79dfb52a08d89bf72506d
      https://github.com/MidnightBSD/src/commit/0c4a039478ef868019d79dfb52a08d89bf72506d
  Author: Dimitry Andric <dim at FreeBSD.org>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M sys/contrib/openzfs/module/icp/asm-x86_64/modes/aesni-gcm-x86_64.S
    M sys/contrib/openzfs/module/icp/asm-x86_64/modes/ghash-x86_64.S

  Log Message:
  -----------
  zfs: emit .note.GNU-stack section for all ELF targets

On FreeBSD, linking the zfs kernel module with binutils ld 2.44 shows
the following warning:

    ld: warning: aesni-gcm-avx2-vaes.o: missing .note.GNU-stack section implies executable stack
    ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

Some of the `.S` files under `module/icp/asm-x86_64/modes` check whether
to emit the `.note.GNU-stack` section using:

    #if defined(__linux__) && defined(__ELF__)

We could add `&& defined(__FreeBSD__)` to the test, but since all other
`.S` files in the OpenZFS tree use:

    #ifdef __ELF__

it would seem more logical to use that instead. Any recent ELF platform
should support these note sections by now.

Reviewed by:	emaste, kib, imp
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D54578

(cherry picked from commit eb1b6ec7a79aff05f5f10e1d6b1c63a0d8dc5f2f)


  Commit: 90ac39732d93e2a7d83755616fc758f35e38291e
      https://github.com/MidnightBSD/src/commit/90ac39732d93e2a7d83755616fc758f35e38291e
  Author: Jose Luis Duran <jlduran at FreeBSD.org>
  Date:   2026-01-18 (Sun, 18 Jan 2026)

  Changed paths:
    M usr.sbin/makefs/msdos/msdosfs_vfsops.c

  Log Message:
  -----------
  makefs: Fix typo 's/mirrorring/mirroring/'

MFC after:	1 week

(cherry picked from commit 73af599fb7be6806b553ac6f470d76711b74286c)


Compare: https://github.com/MidnightBSD/src/compare/f803223b558f...90ac39732d93

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications



More information about the Midnightbsd-cvs mailing list