[Midnightbsd-cvs] [MidnightBSD/src] 2b8eeb: ng_tty: don't increment m_data

Dag-Erling Smørgrav noreply at github.com
Tue Dec 16 19:05:21 EST 2025


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 2b8eebfa8b9d597934d2665098137c3cc309240a
      https://github.com/MidnightBSD/src/commit/2b8eebfa8b9d597934d2665098137c3cc309240a
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/netgraph/ng_tty.c

  Log Message:
  -----------
  ng_tty: don't increment m_data

Stop incrementing m_data so the callee can read the mbuf.

MFC after:	3 days
Reviewed by:	glebius
Differential Revision:	https://reviews.freebsd.org/D52702

(cherry picked from commit 57d5a8feda3fd25a650eaab5998db13633d62d2d)


  Commit: c7e2f77c3db2af9b0442d1f5d1652525e2dd7bb2
      https://github.com/MidnightBSD/src/commit/c7e2f77c3db2af9b0442d1f5d1652525e2dd7bb2
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/netgraph/ng_tty.c

  Log Message:
  -----------
  ng_tty: copy to the correct mbuf

memcpy should copy to the current mbuf, otherwise we're copying to the
first mbuf in the chain over and over.

Reported by:	kevans
Reviewed by:	glebius
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D52713

(cherry picked from commit e05521121f05a1b1e0d7c7b5fbe79f83fc303cd0)


  Commit: 828c1c5ba0352e7a4b8173da801a294657915257
      https://github.com/MidnightBSD/src/commit/828c1c5ba0352e7a4b8173da801a294657915257
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/dev/gpio/gpioc.c

  Log Message:
  -----------
  gpioc: allocate priv->events with the correct size

MFC after:	1 day

(cherry picked from commit fa26e445544eb88f05779258e2ab9c96384fe74d)


  Commit: dadabcf00308f8b3999b70c737085b285c5891b2
      https://github.com/MidnightBSD/src/commit/dadabcf00308f8b3999b70c737085b285c5891b2
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/dev/gpio/gpioc.c

  Log Message:
  -----------
  gpioc: fix race in ioctl(GPIOCONFIGEVENTS)

A race can occur in gpioc_ioctl when it is called with GPIOCONFIGEVENTS
closely followed by GPIOSETCONFIG. GPIOSETCONFIG can alter the
priv->pins list, making it no longer empty and opening the door for
access to priv->events while we are reallocating it. Fix this by holding
priv->mtx while handling GPIOCONFIGEVENTS.

Reported by:	Qiu-ji Chen
PR:		289120
Reviewed by:	mmel
MFC after:	1 day
Differential Revision:	https://reviews.freebsd.org/D52783

(cherry picked from commit d000adfe41e6f2fe8f3dbe92d8fc2d34ae882086)


  Commit: f924b23a37ad6c24f2be16e64d7672fca3f90cf5
      https://github.com/MidnightBSD/src/commit/f924b23a37ad6c24f2be16e64d7672fca3f90cf5
  Author: Ahmad Khalifa <vexeduxr at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/dev/gpio/gpioc.c

  Log Message:
  -----------
  gpioc: allocate new fifo size

This slipped through after I resolved some merge conflicts.

Fixes:		d000adfe
MFC after:	1 day

(cherry picked from commit 2679636b4412927242e46d3806fbb58e2702eddb)


  Commit: 83c286f9511767d1324ceda70844ef53a58cded4
      https://github.com/MidnightBSD/src/commit/83c286f9511767d1324ceda70844ef53a58cded4
  Author: Mateusz Piotrowski <0mp at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M usr.bin/mktemp/mktemp.1

  Log Message:
  -----------
  mktemp.1: Document TMPDIR in ENVIRONMENT

While here, use Ev for TMPDIR consistently.

MFC after:	3 days
Event:		EuroBSDCon 2025

(cherry picked from commit 6b164f18118d0e8dbf9826d7117e0e757f7eb727)


  Commit: 4d43da246fe902132450b0b7b864960220aec571
      https://github.com/MidnightBSD/src/commit/4d43da246fe902132450b0b7b864960220aec571
  Author: Dag-Erling Smørgrav <des at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M lib/nss_tacplus/Makefile

  Log Message:
  -----------
  nss_tacplus: Fix typo in Makefile

Reported by:	ivy@
MFC after:	3 days

(cherry picked from commit e98d3416916cdb6285d4d1807582baf6faa3ddcc)


Compare: https://github.com/MidnightBSD/src/compare/26f009b78e3e...4d43da246fe9

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