git: 59b6d076b443 - releng/14.3 - namei: clear internal flags in NDREINIT()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jan 2026 19:16:20 UTC
The branch releng/14.3 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=59b6d076b44369d7ce102fcd5bff1315391fc145
commit 59b6d076b44369d7ce102fcd5bff1315391fc145
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-05-28 21:51:42 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-01-26 16:49:29 +0000
namei: clear internal flags in NDREINIT()
same as it is done for NDRESTART()
Approved by: so
Fixes: e05e33041c252
Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 58b2bd33aff71c0268d99d63e9c83f6544d3beb3)
(cherry picked from commit 53963866f7088dd96f6d56169e6b4fb899277306)
---
sys/sys/namei.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index 130b82131368..5dbf31f6c606 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -265,6 +265,7 @@ do { \
filecaps_free(&_ndp->ni_filecaps); \
_ndp->ni_resflags = 0; \
_ndp->ni_startdir = NULL; \
+ _ndp->ni_cnd.cn_flags &= ~NAMEI_INTERNAL_FLAGS; \
} while (0)
#define NDPREINIT(ndp) do { \