From nobody Sun Nov 01 22:08:42 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 4jHprW0Cglz6y2xx for ; Sun, 01 Nov 2026 22:08:43 +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 4jHprV4XJqz4jsq for ; Sun, 01 Nov 2026 22:08:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793570922; 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=jG2mNjNcXK7GZFK80UjhAG1CnR1AFprUKdGYwk936Rk=; b=Hcx1EYzWWrnYVUMF9VKVnzbcwYIla02nenPNQrajKkkXWl0gn2PYGEmtuyEp4fQgGeQc6M 778jIQYpyq5v9SmiOLPExTVcYW/6oNThdYPqpQkdDy657n25KuL8nf59VUMEzeCxjk1hh7 3KNGJtTMj69jD0+7CKxPvfZTpnOu1KPXxE6NIKiv9eYDrDrlEXLzWtDAHffEn17k4L6bQC UTwaKFrk3N0BlXMkU6Rc3myMYYNgsW83HQ3mLqIiBEXtIGp+gV9IJRtM64cqkyTwPKVi7F JBcmJTr+aA+HqjODfez7R0n/42ANL5Oo2oK1VyVdDW9zzxN0AyErLShhfrG9UA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793570922; b=A8mZQXQBM8ziv4aE7k3PwW+PvIXgy08TqzZFloRGWZ6Oki4r5z6pa4kPkX1ju2syU1M0u5 IVQXkMzFXtJQ3o6nx+vLt2Sl8wJHU9v1MSrBwTViexpaALJKO+X7rBtShcgP0+Aoqwb9Zl 2DN7LCFZzED3s5334A6bWFwSfgvJQpdlhvO9dHlHb37j1ZXesMfNXfeRyhgkFQIrvo1fos JgRakuUtlbmb/54y+czGfDM9iz1pNXEOIktfFxcF4BvKaBA0KsZIt2Gra8CZX/HcrIeCIx NAnbI7NVucRNQHZL8Hpf+de3M5AcukoraqnBCpWPe7IUanzoEmZ8U1W8TP8aLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793570922; 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=jG2mNjNcXK7GZFK80UjhAG1CnR1AFprUKdGYwk936Rk=; b=mqpzwjHVIEV6F8/uf9GtsTHHtqCODPkgoaLYM0IbktXEVwPpdT5+ZlWEsFsdohhX+hVPuB btJnlSMd9fjzaZ9HX9ph3PZHiuR4UFxyF7wK4/mBK4iiUYxABOOHo0eto8R77u86uA+fxB 6a/iT0a1+viEdaMy7kctb9ju+QrwJjaBev5IKl2E7WzaIWfOrqSssWfpT9EPqJRNTEwcA9 btv7ug9iixTi+nwljvX5RgIH6cP6edbKMAsRBe1BAm8eutxybZPH12tGtLVzOEsGfRVG9W RnMvg1ddccZivxMspxv/R4mpaKcPao7O7uIlGu2A9eLJSeK827tkgDeszdwNfw== 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 4jHprV3mcQzGPF for ; Sun, 01 Nov 2026 22:08:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41f1c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 01 Nov 2026 22:08:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: ShengYi Hung Subject: git: e3e0f6e7a517 - stable/15 - linux: cap mount id to INT_MAX List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: aokblast X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: e3e0f6e7a517f828679830e34ff91a3600975115 Auto-Submitted: auto-generated Date: Sun, 01 Nov 2026 22:08:42 +0000 Message-Id: <6ae7b86a.41f1c.8676a57@gitrepo.freebsd.org> The branch stable/15 has been updated by aokblast: URL: https://cgit.FreeBSD.org/src/commit/?id=e3e0f6e7a517f828679830e34ff91a3600975115 commit e3e0f6e7a517f828679830e34ff91a3600975115 Author: ShengYi Hung AuthorDate: 2026-08-26 20:44:47 +0000 Commit: ShengYi Hung CommitDate: 2026-11-01 22:08:22 +0000 linux: cap mount id to INT_MAX linux stores mount id as a int32_t, using xor would make it becomes negative in some cases. As a result, we cap the value to INT_MAX to prevent getting a negative value from userspace. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D59202 (cherry picked from commit 23626eb9e3d61928358c9c813aa5a17e797ba404) --- sys/compat/linprocfs/linprocfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 9d0ceaa6245e..1b00c2f8f736 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -621,7 +621,8 @@ linprocfs_doprocmountinfo(PFS_FILL_ARGS) * (5) mountto path */ sbuf_printf(sb, "%u 0 0:0 / %s ", - sp->f_fsid.val[0] ^ sp->f_fsid.val[1], mntto); + (sp->f_fsid.val[0] ^ sp->f_fsid.val[1]) & 0x7fffffff, + mntto); /* (6) mount options */ _sbuf_mntoptions_helper(sb, sp->f_flags); /*