User Details
- User Since
- Jul 18 2014, 8:51 PM (644 w, 5 d)
Today
So far I've been dealing with underlying issues, and ext2 not catching up with UFS... this is different, a true issue with orphan management.
The log0705 panic shows a recursive vnode teardown triggered by
ext2_orphan_unlink() calling VFS_VGET() which triggers ext2_inactive()
on another vnode, which calls ext2_orphan_release() which calls
ext2_orphan_unlink() again, creating infinite recursion.
Removed the redundant vput(vp) from the collision path. The vnode is already properly disposed by vfs_hash_insert().
Changed ext2_alloc.c:843-849 to follow UFS pattern (ufs/ffs/ffs_vfsops.c:1815-1825):
Fix a bug introduced in the previous commit.
Fix for NULL credential dereference
Yesterday
Cause:
insmntque(dtr=true) and vfs_hash_insert() on failure internally call vgone() + vput(), consuming the vnode reference. Caller's subsequent vput() was a second release of already-destroyed vnode.
Evidence:
insmntque(dtr=true) lines 2337-2338: vgone(vp); vput(vp);
vfs_hash_insert() lines 178-179: vgone(vp); vput(vp);
Fix: VN_IS_DOOMED(vp) guard prevents second vput() on already-destroyed vnode
Fixed the double free.. and quick check with fsx.
Mon, Nov 23
Wed, Nov 18
@mckusick yes, please do the honors.
This doesn't have a huge impact right now but it does let me continue playing with
softupdates/journaling and it fixes two issues:
Tue, Nov 10
Oct 14 2026
I went ahead and re-enabled reallocblk in my setup and it still works reliably with fsx.
The question is now who can commit this: I gave back my commit bit back more that a year a go :-/.
Oct 10 2026
I passed this through fsx, but more testing would be great.
Oct 6 2026
This just has some compilation cleanups.
I now have updated patches for softupdates+journaling on top of this.
Sep 28 2026
There is a new AI engine (Space Bunny) and after some request to simplify the comments and minor cleanups it came up with this:
Sep 26 2026
The AI concurred with your analysis. This patch gives better performance,
Sep 22 2026
Sep 20 2026
Sep 4 2026
Apr 7 2026
Sep 2 2025
Hmm ...
Sorry to be picky here .. but if you look at the calloc(3) manpage:
void *calloc(size_t number, size_t size);
Aug 30 2025
FWIW, just about the best test one can make for a significant patch change is to have an exp-run over the ports tree.
Aug 8 2025
Jul 29 2025
Jun 15 2025
"git rm" drops the file from the repo, and should appear somehow in the diff. But if you already did it and it doesn't appear I guess it's OK.
Oct 16 2024
Oct 15 2024
Removed most of the stuff that was stale already, specially since the removal of the X11 drivers from the tree.
This remains only as a reference, it is not intended to be committed.
Sep 8 2024
Jul 1 2024
Jun 28 2024
Jun 15 2024
Dec 31 2023
Dec 3 2023
Sep 20 2023
Aug 31 2023
Thank you for doing this! When moving from the linux headers we moved from the linux types to the standard C types but some leftover BSD types were still being used. These changes actually fix some hidden bugs.
Aug 7 2023
Jul 24 2023
I see @dchagin committed something closely related to current!
Jul 4 2023
May 18 2023
Minimal changes, otherwise LGTM.
Apr 2 2023
Mar 12 2023
Mar 11 2023
LGTM, and pretty clever to take a boolean to panic.
Feb 25 2023
Thanks!
The printf vs dtrace call choice is not easy but yes as long as the filesystem is still in usable condition I think we should prefer the dtrace call.
You may want to send a diff to @mckusick syncing the UFS change. FWIW, I think UFS should also embrace DTrace ;).
Feb 18 2023
Feb 11 2023
I think this is the first time I have seen a char string return value. Can we keep the same coding style as in ext2_check_direntry() ?
That is .. assigning error_msg within the function instead of returning it.
While I agree with the sentiment that panicing is a rather extreme measure, it is better to keep consistency between UFS and ext2.
Hmm.. we should keep consistency with UFS .. and that means panic in ext2_dirbad(). My guess is that for this case you shouldn' t call ext2_dirbad().
Feb 2 2023
Dec 17 2022
Dec 3 2022
Oct 26 2022
Oct 13 2022
Jul 11 2022
May 12 2022
- LGTM
Apr 4 2022
LGTM
Mar 5 2022
Feb 28 2022
Feb 21 2022
Feb 20 2022
Feb 2 2022
Jan 1 2022
LGTM, especially since we were not handling the case.
We should probably use PR ## instead of URLs in comments but there is no project policy on that.
LGTM, except for the minor comment issue.
Dec 15 2021
I appreciate this effort going on. Getting good implementations of these functions is tough.,