From nobody Mon Nov 20 05:58:34 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 4SYcJB6wV2z51xgF; Mon, 20 Nov 2023 05:58:34 +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 4SYcJB6Mtqz4fFl; Mon, 20 Nov 2023 05:58:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700459914; 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=gL6inpijVOFYa7836CRJMmlGwgzSc9mTBqJqLsgDgRg=; b=ODPrfpr1RoeckzUdq8DxY31pHkZsLqkKJowXSodkH/lRiMcmIbQh9hBtIWHVsqWmow8Or/ HFxYOYaE57St3NIBV5jpnqIhC1Q4RpMRdA5AHPHnU4HQAY/wYPXeamRnRRNsPNIUu80mLb EP0QoENvM5eFHy9UcpCK+6A3ljfv+xkeHPe7lVUk0pPgfSOmBpeJhbGqiTnPvIbCYkEob2 xYxawqRrAASzUEgZRARBqRSTRbBTOCDgdtGX3sQH6eTYTkZxpSGEu5G9lSleaRpuVFX4Hr l8VLh5AoIcU3MdmX9QNx7Pbn4In17DTMv1CqPrL8GZZsG7wY9cPZzACYlSY3Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700459914; 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=gL6inpijVOFYa7836CRJMmlGwgzSc9mTBqJqLsgDgRg=; b=eJ38vkZP3KPhHwAlV3GHGPNkXtvXnQ07t2uvQP7EsKEttrMNfGEC44Y90Z0SWBkJlyWrSW xor2eoXEQ8zrdGufr72Od/pGvc4ejFY1lH2jXhNAK176RTfbPjSlF5wQ+8L8mVfO6VjGna pgR3b8d+8l6Zh11qocny6nz9tOuWSNb4gKNSNubhqKCWKHUYrzaZn0807hTQAQXuwp2HLC 2c07WUbqC+d6flHIXZzYryeAn21fQPmrfbTomBDRXg3rAc/WY5lM8m43/AjAo9qxbdhVwI pSQaIsRJcUIZD7Hgb4bUnhxZgkF1Js3jntNsEhccQTNNs4F3NWUnC/p0z0HrJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700459914; a=rsa-sha256; cv=none; b=mduwhoHjsUrNb0ley7IJTtHJuVnWZia/IP6zqBwHPjpZ9iLMNMEh7WvP+SqQhSpn5n7+9f AS1CFvizkOeh7bA57srWLMRS5CZtLszIKq2wkxxwGgM3v7tMC6KIOUFGXJPEZr9ZVkU8MX Bq69Yi7t73HtzxPATYzMT4bLaQcBSHsRo9jkFJbXWlbyNKZy7hm3tPBPZ83JluJkv5GHGn hrN2vTe7X2IpbE1VBGrSpqTemmWrx3CyWL+WBIdbn8WYFvf9MJhm+ERBYSBabi5wFRu3M/ oLxjZACX3OWFhsiEKCYkBvus4aYodASghuLzF/nJ/KSBU1jlRTDtZiy1O0luUw== 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 4SYcJB5RYSzgpX; Mon, 20 Nov 2023 05:58:34 +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 3AK5wYx6072260; Mon, 20 Nov 2023 05:58:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AK5wYhT072257; Mon, 20 Nov 2023 05:58:34 GMT (envelope-from git) Date: Mon, 20 Nov 2023 05:58:34 GMT Message-Id: <202311200558.3AK5wYhT072257@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: e0d0f0930ee2 - main - pseudofs: fix off by one in hash iteration in pfs_purge 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e0d0f0930ee22af7bf38d28d8590d4e6c822871d Auto-Submitted: auto-generated The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=e0d0f0930ee22af7bf38d28d8590d4e6c822871d commit e0d0f0930ee22af7bf38d28d8590d4e6c822871d Author: Alvin Chen AuthorDate: 2023-11-20 05:55:35 +0000 Commit: Mateusz Guzik CommitDate: 2023-11-20 05:57:25 +0000 pseudofs: fix off by one in hash iteration in pfs_purge Sponsored by: Dell Technologies Differential Revision: https://reviews.freebsd.org/D42628 --- sys/fs/pseudofs/pseudofs_vncache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c index 33023dd0d08f..e58aced7f81b 100644 --- a/sys/fs/pseudofs/pseudofs_vncache.c +++ b/sys/fs/pseudofs/pseudofs_vncache.c @@ -306,7 +306,7 @@ pfs_purge(struct pfs_node *pn) mtx_lock(&pfs_vncache_mutex); restart: removed = 0; - for (i = 0; i < pfs_vncache_hash; i++) { + for (i = 0; i <= pfs_vncache_hash; i++) { restart_chain: SLIST_FOREACH(pvd, &pfs_vncache_hashtbl[i], pvd_hash) { if (pn != NULL && pvd->pvd_pn != pn)