From nobody Fri Nov 24 17:22:34 2023 X-Original-To: dev-commits-src-branches@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 4ScMHZ2JPqz51JJ9; Fri, 24 Nov 2023 17:22: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 4ScMHZ1q2sz4GTq; Fri, 24 Nov 2023 17:22:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700846554; 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=+aw41kTqqDOaKN+AI6mUzgwVWJfBH2cFqNgN4fUwcYY=; b=aU70mR2w6Z6ucnC3cnwpvcaYMY8K3Jju6mABiiMC7t4iGGWvo7/t4lyMU9l3fs6iH/asmH 7iQWZ47ApFowbFEYj3y+YHdV2vsq/SGjrEQ3DipicPK/DHFGDqNYI0zoWdGvfskmUyG3RS g1N80OM6o49USnpsyVuLSz5hwfCACfmKrtLyCZPSG65mr1hCRjR8gGZ0R0vkCqrrUadNpy txa6M6EuHT1rR4TCC4cEhq8NO/UBA9DsN6tOglUv+rAbCwfqv5nOi1SsZFdzQGY0KjHJTR dHO76Mjuf8NLiQyedWIMX3i+vwJ+KGs3yjlfP5HtEi8NS0GN+77/gLG7Tw57+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700846554; 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=+aw41kTqqDOaKN+AI6mUzgwVWJfBH2cFqNgN4fUwcYY=; b=T6glgLa1Gp7Z4ic3fm49xN9jqSegt6/35jnNUXwasqvWQwhrgO7yM56JxVMV/TJMP9rf8P lZVa9mdauZ2RD+udbgq6wr46Gd+732/RX3UTExbNH5EACTiWoZSvkmY+nuq22z2a0DIIOx b4sgKPUl8kcHVPdjqmy8oEczLOMxALzieB8JH5xPFmaAO0kH/dgSNnhUa8a4SspA9NaoiI P8TBQgx4IzAsb/39q+6He8XPQr/wz4OWdWNLhMbF3uG/ZBYDaCcziHRR429QmzDYkHWb0k +h7z2iRXZRV53Dce7jnLuSa8a5C7Nz/1A3629iO/8UkiDZXEqMssBv+QppIMxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700846554; a=rsa-sha256; cv=none; b=CXEMv2mqlxSD8MSKFPf923pwwItf2Sn4QGW9QlIMgauAP6lAK0uOO7FmVTUq6N044/TRHd jOTv+0mraO/2FpRw3EANkt9qePH0uyoL0x/AuTThxAG1f/UHYc3VsND53XFBo1/Z+B8gWl AnULG0gSMgeYAUPO3xmVpB1uwdXyCe7zV4J2bKGJEEV0gU4kqesOX+heJ2WH6J0ZcoXjiT h4EIGIAnVUVE4jL3kL/9mfIHBuQM14EQc/01QBPZBgXn6qocgcz0x65a43TqPVAfG96kGI spIGBjyv7WYzc+Pz52HorkwVzxjxRTU/xdDxbP2PlmqQLCjokAtwrot54dxnzg== 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 4ScMHZ0jVdztp4; Fri, 24 Nov 2023 17:22: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 3AOHMYuj050633; Fri, 24 Nov 2023 17:22:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AOHMXBM050630; Fri, 24 Nov 2023 17:22:34 GMT (envelope-from git) Date: Fri, 24 Nov 2023 17:22:34 GMT Message-Id: <202311241722.3AOHMXBM050630@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Guzik Subject: git: 94bddd2ab75f - stable/14 - pseudofs: fix off by one in hash iteration in pfs_purge List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 94bddd2ab75fd59fb25c7e162b3b335679bc518a Auto-Submitted: auto-generated The branch stable/14 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=94bddd2ab75fd59fb25c7e162b3b335679bc518a commit 94bddd2ab75fd59fb25c7e162b3b335679bc518a Author: Alvin Chen AuthorDate: 2023-11-20 05:55:35 +0000 Commit: Mateusz Guzik CommitDate: 2023-11-24 17:22:15 +0000 pseudofs: fix off by one in hash iteration in pfs_purge Sponsored by: Dell Technologies Differential Revision: https://reviews.freebsd.org/D42628 (cherry picked from commit e0d0f0930ee22af7bf38d28d8590d4e6c822871d) --- 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)