DF-3221 / verdict.json
{ "finding_id": "DF-3221", "status": "not_reproduced", "reproduced": 0, "impact": "none", "confidence": "certain", "verdict": "DEAD CODE - closed per the DF-3058 precedent. Line-accurate confirmation: dirfs_mount calls vfs_getnewfsid (dirfs_vfsops.c:156) but every dirfs_statfs (:297-301) and dirfs_statvfs (:316-319) bcopy()s the entire HOST statfs/statvfs struct over sbp, replacing the unique fsid with the host filesystems - two dirfs mounts over the same host fs share an fsid and the mounts also misreport f_type/f_mntonname. Fix preserves mp->mnt_stat.f_fsid across the bcopy at both sites.", "exploit_chain": "", "evidence": "VERDICT.md with path:line citations; run.log where a live demo exists; fix.diff", "kernel_refs": [ "sys/vfs/dirfs/dirfs_vfsops.c:156", "sys/vfs/dirfs/dirfs_vfsops.c:297", "sys/vfs/dirfs/dirfs_vfsops.c:316" ], "poc_changes": "n/a - dead code", "attempts": 0, "guest_uname": "DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #0: Thu Jul 2 06:02:54 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64", "runtime_sec": 30, "guest_dirty": 0, "build_cmd": "see build.sh", "run_cmd": "see run.sh", "code_hash": null, "notes": "", "recommended_fix": "restore mp->mnt_stat.f_fsid after the host-struct bcopy in statfs/statvfs", "fix_status": "not_testable", "fix_verdict": "dirfs is dead code in this tree (no Makefile, absent from conf/files, vkernel-only) - fix.diff authored but not compilable in any configuration" } |