mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Restore the td_cookie value for the tmpfs directory entry which was a
dup entry, upon detach from the parent directory. If the node is renamed, the entry is re-attached at the different directory, and invalud cookie value triggers assert (or corrupts directory rb tree, it seems). Reported by: clusteradm (gjb, antoine) Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
bc97daa07e
commit
8551285097
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284594
@ -1031,6 +1031,7 @@ tmpfs_dir_detach(struct vnode *vp, struct tmpfs_dirent *de)
|
||||
tmpfs_free_dirent(tmp, xde);
|
||||
}
|
||||
}
|
||||
de->td_cookie = de->td_hash;
|
||||
} else
|
||||
RB_REMOVE(tmpfs_dir, head, de);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user