From nobody Sun Nov 22 17:41:29 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jXbwT4kVYz72K83 for ; Sun, 22 Nov 2026 17:41:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jXbwT3X5Nz3GZq for ; Sun, 22 Nov 2026 17:41:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795369289; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4ltxU+U5O1HC8NmZoE2INtweHnFO1jumAIN9n0QLFWY=; b=qzIVoTQi405+SeBFjZuAlQIx3O1SlpR3Au8zNyt2L0Ly+itWxUGt2luTH7RVzUjvWYkeft JO13vXue7mob0XRgVn+5SQt8bABhmRRN/0lMHks9u0mAMpSwbl+oyHngKsEs3iMBaR9BWL W81nDmWQYYyO1wZxxyXw5m4zDwoHDfwACfsKyGXMk+w2n9SGIQuvdSHiTls3w00TLYElS3 pj+X/uCT7Wl67nQQYUwbj2O0y/mM7/rrMfdXf1/jICErpOhgUb45B45shfhjVULhG7PQsJ yNICOrGNH6+J9G1x08PKNFXcE6JoGKDDu8cSAmCAjnHoOmXgb66aoAvWS5S80Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795369289; b=bLQqdfWiWzl4mCRSp6BnUzRR+exC3jA9q6RbKFQe32LAc2UZ42o+yLfCRqpTh8NKzm7PXa aV2k2xHJ/m9WQ2MqEq8d+6W3k36HdPtZlEC2MdeXRyKVNcmRt3EWlVsLHRr2KqdauPWDhf 0QMbjZNxKLEhMP+xBIhvOG+9swbOy4zl1FpM9GcsE0j/TGHERS3EUAqMla5VI78YENuFSM znz20By8nN/tEfDwLuP/pg3cPzpFaLVuOk3q+qDwkvVkAJpUWs1rHckPcmWIDal21QL22y MHTGkXnJ/TO6kOpm67G59g8f20DBvfIyzM9c30x+5GO2/n6cwWtx66tZsJBeDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795369289; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4ltxU+U5O1HC8NmZoE2INtweHnFO1jumAIN9n0QLFWY=; b=I5MC6+/vFYQz1qMbsl6+79iJh9ZxJ9v1wYq2vQwDOzaRm4C7Z2K6hgNNYbDe+POhOxHEF1 c+rHTvu+Vmu2LbB0/EnqxCIIK8ZQhw4z4AcksmmDfVuslA2Umv86fdeie/m61d6hntM7Nt 0CfaSDkaNbmgbSA2jeChGphAJ7ON74rJTtuH+Y1D6TOYux9aXr9VAa77aNSTuEm4ps+U/t SBiofrVxA2RVLhaqZRfcO4fcIUByHGqGUuF8Ryg1AbArvGFxD/0zppZ+7eyu8UjGw/lBk/ GKVwwjq8BbTvkFcCqpL0OajudFYlOlYc45EsmzSlTmuEaP+7YjIv222TJpM0pA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jXbwT2sGrz1RSk for ; Sun, 22 Nov 2026 17:41:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1aa9d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 22 Nov 2026 17:41:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 2aa874ba94b4 - main - linux: Pass a valid thread pointer to linux_msg() List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2aa874ba94b466a08806ff08018696d4669c338a Auto-Submitted: auto-generated Date: Sun, 22 Nov 2026 17:41:29 +0000 Message-Id: <6b032949.1aa9d.3e4898d1@gitrepo.freebsd.org> The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2aa874ba94b466a08806ff08018696d4669c338a commit 2aa874ba94b466a08806ff08018696d4669c338a Author: Mark Johnston AuthorDate: 2026-11-22 15:37:35 +0000 Commit: Mark Johnston CommitDate: 2026-11-22 17:41:07 +0000 linux: Pass a valid thread pointer to linux_msg() linux_msg() will dereference that pointer if a debugging flag is set. Reported by: Tianyi Chen Fixes: 3965de642c29 ("linux: Add inotify support") MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/compat/linux/linux_file.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 851064537b39..6a6e8bbd1cb7 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1958,13 +1958,12 @@ linux_writev(struct thread *td, struct linux_writev_args *args) } static int -linux_inotify_init_flags(int l_flags) +linux_inotify_init_flags(struct thread *td, int l_flags) { int bsd_flags; if ((l_flags & ~(LINUX_IN_CLOEXEC | LINUX_IN_NONBLOCK)) != 0) - linux_msg(NULL, "inotify_init1 unsupported flags 0x%x", - l_flags); + linux_msg(td, "inotify_init1 unsupported flags 0x%x", l_flags); bsd_flags = 0; if ((l_flags & LINUX_IN_CLOEXEC) != 0) @@ -1979,7 +1978,7 @@ inotify_init_common(struct thread *td, int flags) { struct specialfd_inotify si; - si.flags = linux_inotify_init_flags(flags); + si.flags = linux_inotify_init_flags(td, flags); return (kern_specialfd(td, SPECIALFD_INOTIFY, &si)); } @@ -2055,7 +2054,7 @@ linux_inotify_add_watch(struct thread *td, struct linux_inotify_add_watch_args *args) { if ((args->mask & ~(LINUX_IN_ALL_EVENTS | LINUX_IN_ALL_FLAGS)) != 0) { - linux_msg(NULL, "inotify_add_watch unsupported flags 0x%x", + linux_msg(td, "inotify_add_watch unsupported flags 0x%x", args->mask); return (EINVAL); }