⬢ DragonFlyBSD Kernel Audit
DF-5798 / fix.diff
← back to finding ↓ download raw
--- a/sys/kern/vfs_syscalls.c	2026-10-12 21:04:10.265498261 +0000
+++ b/sys/kern/vfs_syscalls.c	2026-10-12 21:05:13.212681171 +0000
@@ -774,8 +774,10 @@
 	info = arg;
 	mp = info->mp;
 
+	lwkt_gettoken(&p->p_token);
 	if (p->p_textnch.mount == mp)
 		cache_drop(&p->p_textnch);
+	lwkt_reltoken(&p->p_token);
 	if (info->sig && process_uses_mount(p, mp)) {
 		lwkt_gettoken(&p->p_token);
 		p->p_flags |= P_MUSTKILL;