From nobody Thu Jul 9 13:41:49 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 4gwx2k33mGz6lDNJ for ; Thu, 09 Jul 2026 13:41:50 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gwx2j5ly1z47Lg for ; Thu, 09 Jul 2026 13:41:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783604509; 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=z+7YWZ7ZUJqYfFcG3HO9HSr7YI+evP25g6MY6iLHv6s=; b=F760KGJAYJOi1uRiZtI+i0pXeMy87W2p4VB9kCCMyHW4EojN55AEIPW5Qlthbs/mwiIn+3 FmDukRvSMd4LJMJrHVnUdcMxbSuMIqxenU7QVgarkMb9G82mnX2Xu+JUuCvU7AJb5PpTFr TEpShFDf4kZSh1YxWbSrBF8n9DbMayBvAJtiURH18Ih9FG32WmgO+0Am14HByDB2CtUuvD DeXyZ4U1rp1N4aw9W3HX7tS7AxRe8FQYZbinHWMy0Bv1Gyoylsh+oPvi2zj4VXE/PuVqDF 12X3o0Q9ffpjQn3n455KWptJTjp0i/lAhBVb246n8kEgDMwK+3z1z/hHiCZxcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783604509; a=rsa-sha256; cv=none; b=uEC6D8UEUzhX3oS8JfPJMIh4jviIPfXCVSmUpeL83swV3Rm/CRzmRHIOyAFvL4OJ4Pw+0R wZL3PXElaJqOfcxDc0M/bfjQ1WBJeZwR5ZuYimcpea7PL9ZLIhxrFwFAjgrYG9UkO2qIXg EcaOwHyF2obOXBmk9hNnGcaNJ/cxmQm4HA3sCAtSFB4Im+folt1fKXCKoocEouDtR6Jvoi zbw9qCZu4gTxI6fso5EOWEqVTe/65p0a71/uhIz9rXO/pzhvBsf9mfmUO9ol7POhH1tnE7 wzVRwK1inZclbsLrmX4EzSycjVJcsWDznrnUQAMwCVHattEVycs66WHckio7qQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783604509; 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=z+7YWZ7ZUJqYfFcG3HO9HSr7YI+evP25g6MY6iLHv6s=; b=tK6Ycs97EOmLEdBp/8gehYaHxLHQ0c403qVD7ij0Tazp83+Y4yK3sDzGGoeUCbGNsQg4+M Ikns+CLZpXruZfXqzCUtJ5HFjgv6nGfTyZUvJceWrpf6hcUg7yG6gB4dUhqGE4W6swJAYH ym1KKqhN+whdD5T1jUqjWXiUKO31toeBgopMi3b0NOXtLAwzlRC3H1Im4oiNlm+a3vw47q k0btmnlLqet2rHy6MdZg6aPufRoamMRte1EpLMVQlaP61niomTeJvY/6lh+jTyfpYySkI+ jjtuo6l3dyAIHC2jZK8C/v0bTvoHHaGv28L1XKKWkLJ0L6G431/O9SyUoVc6lg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gwx2j4jDcz19TJ for ; Thu, 09 Jul 2026 13:41:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1fd8f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 09 Jul 2026 13:41:49 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f370bf9fafce - main - inotify: Ensure that "allocfail" is initialized in inotify_log_one() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: 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: f370bf9fafce82851bedb2b88bc21ec6ca0182df Auto-Submitted: auto-generated Date: Thu, 09 Jul 2026 13:41:49 +0000 Message-Id: <6a4fa51d.1fd8f.7e167e4f@gitrepo.freebsd.org> The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f370bf9fafce82851bedb2b88bc21ec6ca0182df commit f370bf9fafce82851bedb2b88bc21ec6ca0182df Author: Mark Johnston AuthorDate: 2026-07-08 19:28:43 +0000 Commit: Mark Johnston CommitDate: 2026-07-09 13:41:27 +0000 inotify: Ensure that "allocfail" is initialized in inotify_log_one() Fixes: b70997c8c75a ("inotify: Unconditionally generate IN_IGNORED events for files/dirs") --- sys/kern/vfs_inotify.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/vfs_inotify.c b/sys/kern/vfs_inotify.c index 473ce9358276..bc8db76d848b 100644 --- a/sys/kern/vfs_inotify.c +++ b/sys/kern/vfs_inotify.c @@ -627,14 +627,13 @@ inotify_log_one(struct inotify_watch *watch, const char *name, size_t namelen, if (!notify && !delete && !unmount) return; + allocfail = false; if (notify || unmount) { rec = inotify_alloc_record(watch->wd, name, namelen, event, cookie, M_NOWAIT); if (rec == NULL) { rec = &sc->overflow; allocfail = true; - } else { - allocfail = false; } } else { rec = NULL;