From nobody Sun May 26 17:36:51 2024 X-Original-To: dev-commits-src-main@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 4VnQv76sMkz5LPZH; Sun, 26 May 2024 17:36:51 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VnQv75wZFz5312; Sun, 26 May 2024 17:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716745011; 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=APBMqQrNTPamIMGOvIm3QaLECAn9wbbXlrGFR5K/aXA=; b=pbdXaejEoKPUcAMqbwvcoJMxLA7rKxi9tzwCm5LR6rY1d0GFhPLo7OVRmVBXbOpSCp0N7I 431ADtyBU8DGIuH0lfHHtKp4s5aLKyxwxThggvXqJ1sc/uEkntnqGL1l/NohPaa5Ykmjem obtopdjY2j73TJ1GIggBY0p/uxcoFGkmdpYOzGlwLG0HSxhcFo8+TcDXXbW1we/GG7rjsP YRRQe/YeHE3fS8KnaMO+uIam1ggm/ALKgniJV81J8WJsJcH4kn/i9mYgLgs00osqB8zPpG 5IE2/zccmsWEekySkwMFsqZZRdNDS7s64SmbLTiqZR4xxD2tlmFz/th+tlAiNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716745011; a=rsa-sha256; cv=none; b=j1fyuanykBftSsHakBquLorouRPwooHSNjz8wHM4U/JQMfOz/xD14amhPW/advctheTsLU 0/JlqU7AA9k/t5H9aRpPRC1924R36O6nQH18BXqq1+a9ZXn8B/vvMae+h/cvpyAA9FaWzh KPzjavry21WOGlFJh9IhUBMDH14YNQDJaa2BMqNUAFdV3Wc8kCYyzgXHr6qqxD5462uMow 8diQKog//fw6tjVXw5Bzh9WCzBIGudQpKLiQyOtpl4LYIhyCUdiHXZJ3Qf3FOSRo0ccTsO 280aHGFP54L+NeT4YzO8DlIR0E/JL0v5hmSqtIcxHsXLYVcmj9Fb9Mprm/AiiQ== 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=1716745011; 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=APBMqQrNTPamIMGOvIm3QaLECAn9wbbXlrGFR5K/aXA=; b=Bvxw43ZjmZo3IaYWY+WIRD1qfvMBnVT/J/0+wCaA3AQL5t1Zq2Gki9MSKWHfjc9WoSN2JJ 1MhMWPnPHmGhZUpdyPVVbrkh5Kk1F0kqbyG1z5obfE5VUt2qyvlwba3poXiraiirkbFntl EiVTB26wtqXRjjFUqRM29xD7nRMJxJpTuoqaLJp5ouCAEbkh3OZpZzCOQwNRFz/im4ewK3 rHKi0Nx/VxFCHUX52NRtCDSbpxI/TQfbOirYMWRn0lsjQ7ALL51A5lflm9s8jIbJuIWNfl Sb8RfAqprBbdqMPDIV/Wbz6X8qZ0h6uIvYDTlJRQ+qxM7TBV5BunNnt1NI1PUA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VnQv75LhVz18S0; Sun, 26 May 2024 17:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44QHapQZ076129; Sun, 26 May 2024 17:36:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44QHapIO076126; Sun, 26 May 2024 17:36:51 GMT (envelope-from git) Date: Sun, 26 May 2024 17:36:51 GMT Message-Id: <202405261736.44QHapIO076126@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: 6bd3f23a2a82 - main - tmpfs_node_init: use MTX_NEW on lock from uninitialized memory List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6bd3f23a2a828350b23350b0b183754f6f9c8d08 Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=6bd3f23a2a828350b23350b0b183754f6f9c8d08 commit 6bd3f23a2a828350b23350b0b183754f6f9c8d08 Author: Ryan Libby AuthorDate: 2024-05-26 17:20:52 +0000 Commit: Ryan Libby CommitDate: 2024-05-26 17:20:52 +0000 tmpfs_node_init: use MTX_NEW on lock from uninitialized memory Reported by: netchild Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45364 --- sys/fs/tmpfs/tmpfs_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index 53781202b066..3f74c383a171 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -349,7 +349,7 @@ tmpfs_node_init(void *mem, int size, int flags) node = mem; node->tn_id = 0; - mtx_init(&node->tn_interlock, "tmpfsni", NULL, MTX_DEF); + mtx_init(&node->tn_interlock, "tmpfsni", NULL, MTX_DEF | MTX_NEW); node->tn_gen = arc4random(); return (0); }