From nobody Sat Mar 25 21:59:17 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 4PkXzV0WJgz41mSF; Sat, 25 Mar 2023 21:59:18 +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 4PkXzT6wtLz42Ty; Sat, 25 Mar 2023 21:59:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679781558; 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=cIzQkRf/O2wAxn+BhqFUreVvWfB0NQTkLx3PL/T64Ro=; b=pvcZKrjEC+mBOHmkmy8795ZqwvUoetov2OhkzRgK6bO01CjxGdQZJ7pLOMwjY6w21FSQqI IRK7BgR9OWKhtpqsVXqpP/1fcwgRyABRlDgudGzWKIEm50DYItFmYbjk4VEpDDu3dGYYja EZqkwjhCngXmJeEAl5b6XX9Nhv0CD3kjlvOSaCX5P3Nr7ImxQcECK5da5hXypTLpohNnEx +IVKlBpqlZKP+/+c6z8uFB/vv/bTSOA3zjcaxarYRe0EcUxWGQTgQNelJdbSQN3k8uqMQS r64VJkDRbn5ytz4UEtEMVA19ssopNF31Jui40MclU6Au8YV/yaSgCy4Eu0CzkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679781558; 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=cIzQkRf/O2wAxn+BhqFUreVvWfB0NQTkLx3PL/T64Ro=; b=pCx5CVy6YiN65lYDoVxsSVtC6ymjC+eIKITN9r3FNnAaJEqZmFIA2MLXc00sG48bSOAa40 DSvGWC/+XJlRjdlq0hJeiuenphgPYpNfffD76LIywrZhulAEbMAyn4TPt1Pzl4njICsAxh qWl44HJAWnIygVOl3jCYgjHJp4Odx+SpAb/ZbUuk0KmAW915ngsi9DAJ2zv5IM3iGoEcVz uaLtpjmvf/QbkoWeQ2YVqb0wV6ZGmwZtR+3zqOfe09hPZIrzWna37meA+QKXXXqCA2xIfx kqCCq9BZnAW8XkpBGUeMgDudu8Y9kFQgkYqDud7RUmUTg1Zk1a8MeMcPHhh1wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679781558; a=rsa-sha256; cv=none; b=iKWtG2yZ5HMdInFN8ILnbjmJ8KLMc5qUS0fCOYjB+SoGG3c9qY6IkXJsbHOhrZbKNCIbAa Z55qBOLIioiyR/K+6kkmHDo6d9Uu/9UMUkqiJqAGgyCngUl+krQ04AxVwiRxLtoyIRjU+f dio/ZDBRaPT79qdgF5BDajZt+WwBMYUBi5t1hHwCyYyzvRmnzKwNbppR3CPxyGoC2FZVFx zhSg/H6XkR5Tq5Im9Ya6IVgubsGkWQRaJfaU+uiVNlpx7MLbZTJdbKKRi8BOZ4NMhrj9YU 2jMC6BFTtRUR+9oVcmO8Grfai8LkHPhADbsQ+lSzJ6Cmk/nFc8V0jxs0wOvx1w== 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 4PkXzT5ls2zGM9; Sat, 25 Mar 2023 21:59:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32PLxHda055647; Sat, 25 Mar 2023 21:59:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32PLxHoU055646; Sat, 25 Mar 2023 21:59:17 GMT (envelope-from git) Date: Sat, 25 Mar 2023 21:59:17 GMT Message-Id: <202303252159.32PLxHoU055646@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: 22eb66d961dc - main - vfs cache: always assert on ndp->ni_resflags 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: 22eb66d961dc919538e0a418e7ad97c89aa4ac5b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=22eb66d961dc919538e0a418e7ad97c89aa4ac5b commit 22eb66d961dc919538e0a418e7ad97c89aa4ac5b Author: Mateusz Guzik AuthorDate: 2023-03-23 23:27:54 +0000 Commit: Mateusz Guzik CommitDate: 2023-03-25 21:57:55 +0000 vfs cache: always assert on ndp->ni_resflags --- 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 e716113e6085..cc93158078d3 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -6148,6 +6148,7 @@ cache_fplookup(struct nameidata *ndp, enum cache_fpl_status *status, ("%s: internal flags found in cn_flags %" PRIx64, __func__, cnp->cn_flags)); MPASS(cnp->cn_nameptr == cnp->cn_pnbuf); + MPASS(ndp->ni_resflags == 0); if (__predict_false(!cache_can_fplookup(&fpl))) { *status = fpl.status; @@ -6172,7 +6173,6 @@ cache_fplookup(struct nameidata *ndp, enum cache_fpl_status *status, if (cnp->cn_pnbuf[0] == '/') { dvp = cache_fpl_handle_root(&fpl); - MPASS(ndp->ni_resflags == 0); ndp->ni_resflags = NIRES_ABS; } else { if (ndp->ni_dirfd == AT_FDCWD) {