From nobody Tue Jul 04 03:20:10 2023 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 4Qw7MZ2k1Bz4lVwR; Tue, 4 Jul 2023 03:20:10 +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 4Qw7MZ2FHpz4317; Tue, 4 Jul 2023 03:20:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688440810; 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=up7YXPp+g+gc6vM8tmyIraxT7O+zN6+bi/IIY+Rsio8=; b=TlC4q4NtPVfZMf9l+bTIaoq9B+GsJiCXsEskUd5CioYJcgmRUhAWtGOQP+01oRXGDogpLq Jhge0/VkAWIt82KSb5GbIFUo+K9oF1opOGRXCm+Md/gNd2gIyDDBi0okVZlVFx0sxe51gL TnSqeBFSoDuWf1sMae8snPv7HzZN0S0mldXWY26bVqN9nT9JQn+uYXTSOrSw6l3K3oPfGi zZKtJGCAas1zcN14ffdDODrvIVpcWMGElqCFiyB9DwPD8kH4CDTgneGwGBrL1IuNZj8Rpe hSbTwFXkdNMBJQboy3P1yw32LjOViUfPoN2ALaARl+9RadArlujyphAR3xmBXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688440810; 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=up7YXPp+g+gc6vM8tmyIraxT7O+zN6+bi/IIY+Rsio8=; b=gPamqy6E/vwY0aCMkayzUOZNWbZnBC+wZIwnMt7tM79TH+0AyBG4Y1PuJzNSDthVQmPIls Iu7jjzT3vicVKN2A9NBom8PR4FZpRwV1o81D9toCIfJYLy0jgAuaGhCN+1U7zG/L9Abi0j GiA+95bOFF/aDiBrem75HN7n0Wun5akhXIq2QpD1QMRgmrYecWxUBgzhE51F0s6qI+wLoj 2rF5DfwoJuVK5E1HAIHXapHXr8oLXz46u9YqCTwkKKYRH0FndActh+vrOogwwEXFtE62F1 zMfDDjWnRM32IpGjQSX3wesmdm9mtGiX3t3ZNGfV8Qz9UfsisD9v/XRTfO+Kfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688440810; a=rsa-sha256; cv=none; b=fILKKOMr9PhMnr0U5QOgOobOKHi3HJXnW+qUE5uadJYh/UjcGVqvA8q+6bawyyMEtOaJz1 IjHRU8HUXSXnpqCrebR19uz0JXMJcB9LpPg2+gLz6XUSESQWHv5LZO84cuue4g6ZVKvHm2 oGxjdMmeDtjmkWpb5MBwBwdyflKQzpV4X2v0z6riHx56LKuGcTzWCu0iVRjPEsJRROkT6k dRcTfH7QaCaVjWdxiQUAFPDzj0WsfLMTP40G0lrRh9e3X14BFfXxOKY5mE5/IG6bCsKdhY LZ+rjeT4shz7t+5PZFXdsrT3v11x3vzB+RNTeYF3To9Tt/QX+eKkcmkS2hZFYA== 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 4Qw7MZ1GNczGnY; Tue, 4 Jul 2023 03:20:10 +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 3643KAxD014351; Tue, 4 Jul 2023 03:20:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3643KAJR014345; Tue, 4 Jul 2023 03:20:10 GMT (envelope-from git) Date: Tue, 4 Jul 2023 03:20:10 GMT Message-Id: <202307040320.3643KAJR014345@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: d6b900c915c1 - main - vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d6b900c915c19ac1bb5d57659695fd143864be66 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d6b900c915c19ac1bb5d57659695fd143864be66 commit d6b900c915c19ac1bb5d57659695fd143864be66 Author: Konstantin Belousov AuthorDate: 2023-07-03 17:22:33 +0000 Commit: Konstantin Belousov CommitDate: 2023-07-04 03:19:47 +0000 vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer Reported by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 09a93c8303b2..25918f5a0b6e 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -3866,7 +3866,7 @@ vn_path_to_global_path_hardlink(struct thread *td, struct vnode *vp, if (error != 0) { vrele(vp); - goto out; + return (error); } if (strlen(rpath) >= pathlen) {