[Midnightbsd-cvs] [MidnightBSD/src] f9c2f1: witness: Record the first acquired file and line f...

Mark Johnston noreply at github.com
Tue Dec 16 23:01:58 EST 2025


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: f9c2f100b2ea6bbca28fb6139fc90f7e35adbb2e
      https://github.com/MidnightBSD/src/commit/f9c2f100b2ea6bbca28fb6139fc90f7e35adbb2e
  Author: Zhenlei Huang <zlei at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/kern/subr_witness.c

  Log Message:
  -----------
  witness: Record the first acquired file and line for recursable locks

and the last acquired file and line to witness object.

For recursable locks, unfortunately current implementation records only
the recurse count and the last acquired file and line, but does not
restore the previous acquired file and line on unlock. Hence it is
possible to report false acquired file and line, and that may mislead
developers and make the report by users a little harder to analyse.

Since subsequent recurse locks do not affect how witness order check,
record the first acquired file and line so that the logic is much clear.

Reported by:	bz
Reviewed by:	kib (previous version), markj
See also:	https://lists.freebsd.org/archives/freebsd-current/2025-June/007944.html
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D52496

(cherry picked from commit 2d85bc89294baa04daf509e81ec3880bff79cc10)
(cherry picked from commit 3dc9f96a489cd53710af8205a1f3901c11b760a5)
(cherry picked from commit 7838ad85fb1a75464e53525b4cdb064ca1e97a47)


  Commit: 30bb7a51866692e4812de8528cc55dfdabfa9521
      https://github.com/MidnightBSD/src/commit/30bb7a51866692e4812de8528cc55dfdabfa9521
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M ObsoleteFiles.inc
    M lib/nss_tacplus/Makefile

  Log Message:
  -----------
  fix typo


  Commit: 01e1c497142a2b13e617ae665c5da6adbbb6afca
      https://github.com/MidnightBSD/src/commit/01e1c497142a2b13e617ae665c5da6adbbb6afca
  Author: Ed Maste <emaste at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M Makefile.inc1

  Log Message:
  -----------
  Makefile.inc1: Avoid including cwd in path

Buildworld failed when objcopy tried to overwrite itself, with `objcopy:
open objcopy failed: Text file busy`.  The PATH ended up with `::`,
effectively including the current directory, and we found the wrong
objcopy.

PR:		261215
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ac7ed266dc73a1d55f2bc1e90bfce3c93757e8b4)
(cherry picked from commit e425d433c5adaa0f7a513ba836fa378137ed7be4)


  Commit: 24a39df5c0ece2bbc8a7ede248920b1ec0ea6dc0
      https://github.com/MidnightBSD/src/commit/24a39df5c0ece2bbc8a7ede248920b1ec0ea6dc0
  Author: Ed Maste <emaste at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/reboot/boot_i386.8

  Log Message:
  -----------
  boot_i386.8: Mention this is legacy

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49704

(cherry picked from commit b8437cbae173308180fbaddc6a74bfb6f8c4410b)
(cherry picked from commit 96743bfb95431f396e71d35eb92258122233334f)


  Commit: e3efd19641333c2da5033bc0425fa917eb9e8bcc
      https://github.com/MidnightBSD/src/commit/e3efd19641333c2da5033bc0425fa917eb9e8bcc
  Author: Ed Maste <emaste at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M contrib/llvm-project/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp

  Log Message:
  -----------
  Merge commit 7a66a26658f4 from llvm git (by Fangrui Song):

  --discard-locals/--discard-all: allow and keep symbols referenced by relocations

  In GNU objcopy, symbols referenced by relocations are retained. Our
  COFF (https://reviews.llvm.org/D56480) and Mach-O
  (https://reviews.llvm.org/D75104) ports port the behavior, but the ELF
  port doesn't.

  This PR implements the behavior for ELF.
  Close #47468 (tcl has a use case that requires `strip -x tclStubLib.o`
  to strip local symbols not referenced by relocations.)

  Pull Request: https://github.com/llvm/llvm-project/pull/130704

PR:		258820
Approved by:	dim
Differential Revision: https://reviews.freebsd.org/D52198

(cherry picked from commit 959806e0a8448ef5df372468b8deddc20d976702)
(cherry picked from commit 4558fc4f91dc1d3909083ea664b384595f66c3ae)


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

  Changed paths:
    M usr.bin/tail/tests/tail_test.sh

  Log Message:
  -----------
  tail: Tweak follow_rename test case

Add a brief sleep to give tail time to start following the file before
we rename it.

PR:		289902
MFC after:	1 week
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D52887

(cherry picked from commit a9c72543d287afa8dd30bec0f49873e88057c192)


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

  Changed paths:
    M bin/cp/tests/cp_test.sh

  Log Message:
  -----------
  cp: Simplify sameness checks

Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D52926

(cherry picked from commit 95de78614a57733807c28c05125ed0636309d88b)


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

  Changed paths:
    M bin/ln/tests/ln_test.sh

  Log Message:
  -----------
  ln: Simplify sameness checks

Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D52927

(cherry picked from commit 18997fb9eca651a7ef13e6755a4d2cdd3ddede10)


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

  Changed paths:
    M sbin/rcorder/rcorder.c

  Log Message:
  -----------
  rcorder: Fix grammar in warning about loops

MFC after:	1 week
Reviewed by:	ae
Differential Revision:	https://reviews.freebsd.org/D52951

(cherry picked from commit d96f9a4688668ececc09c61dcf6b539a55112cc0)


  Commit: 3330016a618bd9b2f073a165a7e35f6e227fb827
      https://github.com/MidnightBSD/src/commit/3330016a618bd9b2f073a165a7e35f6e227fb827
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/ipf/libipf/printpooldata.c

  Log Message:
  -----------
  ipfilter ippool: Flag deleted entries with "#"

List deleted entries prefixed by "#". This is consistent with other
ippool list functions.

Fixes:		7531c434a593

(cherry picked from commit 94758e72fdbd6b218e79884e22347eb357a7e51d)


  Commit: 10c044cb9a9d8fe4a26cb7148f42d3eb72ea0c8e
      https://github.com/MidnightBSD/src/commit/10c044cb9a9d8fe4a26cb7148f42d3eb72ea0c8e
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/ipf/libipf/printhashdata.c

  Log Message:
  -----------
  ipfilter ippool: Prefix deleted entries with "#"

To maintain consistency with ippool list functions, prefix deleted
entries with "#".

(cherry picked from commit f3ff6abb9d816a68e65af5ed55552d152a58b5e4)


  Commit: be6041f8d1d75c51771bfe3be09cbd9b95007aaf
      https://github.com/MidnightBSD/src/commit/be6041f8d1d75c51771bfe3be09cbd9b95007aaf
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/ipf/libipf/printhash_live.c
    M sbin/ipf/libipf/printhashdata.c

  Log Message:
  -----------
  ipfilter/ippool: Dump a copy of ippool hash data in "new" format

As with 7531c434a593, which dumped ippool table data in the "new"
format, print hash data in the "new" format.

(cherry picked from commit 2f30b43fa269bc63086b0428f45c79e982abb02f)


  Commit: fc26b9efa9e30c4fd7e2b59b74c160b09cebd648
      https://github.com/MidnightBSD/src/commit/fc26b9efa9e30c4fd7e2b59b74c160b09cebd648
  Author: Cy Schubert <cy at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sbin/ipf/libipf/printdstl_live.c
    M sbin/ipf/libipf/printdstlist.c
    M sbin/ipf/libipf/printdstlistdata.c

  Log Message:
  -----------
  ipfilter/ippool: Dump a copy of ippool dstlist data in "new" format

As with 7531c434a593, which dumped ippool table data in the "new"
format, print dstlist data in the "new" format.

MFC after:      1 week

(cherry picked from commit eee36ffa0d874f1c8aca912f7c2a8eba34509927)


  Commit: b66d8798ba8708c4987576945c438d8a72ae5d89
      https://github.com/MidnightBSD/src/commit/b66d8798ba8708c4987576945c438d8a72ae5d89
  Author: Gregory Neil Shapiro <gshapiro at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M contrib/sendmail/src/newaliases.1

  Log Message:
  -----------
  MFC: Merge commit '1fdae2e33fdc751bc2ec74c81fcde14323e4e965'

Be explicit that newaliases for sendmail
(Upstream sendmail.org commit 3084151d898)

PR:	289259

(cherry picked from commit e9f7c3de111b9dda23e1763e030688d78a71d8ff)


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

  Changed paths:
    M lib/msun/src/e_remainder.c

  Log Message:
  -----------
  libm: remainder: make sure x is zero

Make sure the entirety of x is zero before flipping the sign bit.
Otherwise the sign would be wrong for small values of x when x is
negative and |n*y| > |x|

Reported by:	alfredo
PR:		251091
Reviewed by:	kargl
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D53023

(cherry picked from commit 25cca51ed294890d20a3c0290814cd26875db686)


  Commit: 5034bd90ae936375887ac724bbfb39ae10e14230
      https://github.com/MidnightBSD/src/commit/5034bd90ae936375887ac724bbfb39ae10e14230
  Author: Jose Luis Duran <jlduran at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M tools/tools/nanobsd/rescue/Files/root/ZFS_Create.txt

  Log Message:
  -----------
  nanobsd: rescue: Update legacy sysctls

Reviewed by:	emaste
MFC after:	1 hour
Differential Revision:	https://reviews.freebsd.org/D34598

(cherry picked from commit 93ee9bb424619f0189b3454380588c955222b89b)


  Commit: ce1eb9105703c41044430e8d783426519d87d827
      https://github.com/MidnightBSD/src/commit/ce1eb9105703c41044430e8d783426519d87d827
  Author: Jose Luis Duran <jlduran at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M tools/tools/netrate/tcpp/README
    M tools/tools/sysdoc/tunables.mdoc

  Log Message:
  -----------
  tools: Update sysctl to its new name

The kern.ipc.somaxconn sysctl has been replaced with
kern.ipc.soacceptqueue since FreeBSD 10.0.

Reviewed by:	emaste
MFC after:	1 hour
Differential Revision:	https://reviews.freebsd.org/D34598

(cherry picked from commit 84333aada464296c1e28126b5c91ae2fb3f79eef)


  Commit: 902764ffdd38a87e3d0fcf5291a6745dd6096780
      https://github.com/MidnightBSD/src/commit/902764ffdd38a87e3d0fcf5291a6745dd6096780
  Author: Paul Armstrong <freebsd at otoh.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M usr.bin/login/login.conf

  Log Message:
  -----------
  login.conf: Remove never used ignoretime/ignoretime@

PR:		240378
Reviewed by:	otis (mentor), glebius (src committer)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D52991

(cherry picked from commit 4835fc45efe8b593fa49786ec4bfb6ce5050756c)


  Commit: 34beeb6bf54558f46a7edd91a8cff7277319a523
      https://github.com/MidnightBSD/src/commit/34beeb6bf54558f46a7edd91a8cff7277319a523
  Author: Michael Osipov <michaelo at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M share/man/man5/linprocfs.5
    M share/man/man5/linsysfs.5

  Log Message:
  -----------
  manpages: Use canonical names for Linux filesystems

The manpages of linprocfs(5) and linsysfs(5) document incomplete names without
"fs" suffix. Make them identical to other filesystems.

PR:		283079
MFC after:	3 days
Reviewed by:	ziaee, markj
Differential Revision:	https://reviews.freebsd.org/D53155

(cherry picked from commit 88b9ca860ef332d4d32e97e0f8a166f12cffc8e3)


  Commit: ea7fe3cfbd9e2dc3a5b06047619a48e3b62d1205
      https://github.com/MidnightBSD/src/commit/ea7fe3cfbd9e2dc3a5b06047619a48e3b62d1205
  Author: Jose Luis Duran <jlduran at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M libexec/rc/rc.conf

  Log Message:
  -----------
  rc.conf: Fix typo interferring -> interfering

Reviewed by:	emaste
MFC after:	2 days
Differential Revision:	https://reviews.freebsd.org/D53168

(cherry picked from commit 982d70ca2e6333b7e8ccf828b004ccf20a9cc550)


  Commit: b0e207f87d6702386ef839f970dd716c76715fb8
      https://github.com/MidnightBSD/src/commit/b0e207f87d6702386ef839f970dd716c76715fb8
  Author: Jose Luis Duran <jlduran at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M libexec/rc/rc.conf
    M libexec/rc/rc.d/dmesg

  Log Message:
  -----------
  rc: dmesg: Allow umask to be configurable

Allow umask to be configurable.

Being able to set the umask via an rc variable is useful when setting:

    security.bsd.unprivileged_read_msgbuf=0

As it allows a user to configure:

    dmesg_umask="066"

Without modifying the rc script, and preventing the contents of the
$dmesg_file (/var/run/dmesg.boot) from being publicly readable.

PR:		272552
Reviewed by:	netchild
MFC after:	2 days
Differential Revision:	https://reviews.freebsd.org/D53169

(cherry picked from commit edadbc6ee95570627679f3bc14a1d5476d0ce339)


  Commit: 451acad689609bbe58468bca22878e4be766475c
      https://github.com/MidnightBSD/src/commit/451acad689609bbe58468bca22878e4be766475c
  Author: Mark Johnston <markj at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/netpfil/ipfw/ip_fw_nat.c

  Log Message:
  -----------
  ipfw: Check for errors from sooptcopyin() and sooptcopyout()

Note, it looks like this code may be unused since commit 4a77657cbc01
("ipfw: migrate ipfw to 32-bit size rule numbers").  In particular, it
looks like the ipfw_nat_*_ptr pointers are unused now.

Reviewed by:	ae
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53068

(cherry picked from commit 2df39ce5d4a8836ef5fd3c2666f48041042eff42)


  Commit: e1adf4eaedc30357bef04e32a92bbe56ac8b5ad3
      https://github.com/MidnightBSD/src/commit/e1adf4eaedc30357bef04e32a92bbe56ac8b5ad3
  Author: Mark Johnston <markj at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/contrib/libnv/bsd_nvpair.c

  Log Message:
  -----------
  libnv: Fix a length check in nvpair_unpack_string_array()

A string array is represented by a set of nul-terminated strings
concatenated together.  For each string, we check to see if there's a
nul terminator at the end, taking care to avoid going past the end of
the buffer.  However, the code fails to handle the possibility that
size == 0 at the end of an iteration, leading to underflow.

Fix the length check.

Reported by:	Ilja van Sprundel <ivansprundel at ioactive.com>
Reviewed by:	emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53069

(cherry picked from commit 937693fc9e4ff4045cc674a14902f0d53e84ec98)


  Commit: e893cc95c5e175ce87418055e4ceeb80077ea4d0
      https://github.com/MidnightBSD/src/commit/e893cc95c5e175ce87418055e4ceeb80077ea4d0
  Author: Mark Johnston <markj at FreeBSD.org>
  Date:   2025-12-16 (Tue, 16 Dec 2025)

  Changed paths:
    M sys/kern/imgact_elf.c

  Log Message:
  -----------
  imgact_elf: Check note body sizes

In parse_notes we validate that the note name fits within the note
buffer, but we do not do the same for the note data, so there is some
potential for an OOB read in the note handler.  Add a bounds check.

Reported by:	Ilja Van Sprundel <ivansprundel at ioactive.com>
Reviewed by:	kib, emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53063

(cherry picked from commit c86af2cc4cd12fb0174843b22d737c3b5b5d55d0)


Compare: https://github.com/MidnightBSD/src/compare/30d80223c810...e893cc95c5e1

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