Date: Wed, 18 Feb 2026 01:03:37 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293253] Possible skipping of one entry when gathering gstat(8) data Message-ID: <bug-293253-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293253 Bug ID: 293253 Summary: Possible skipping of one entry when gathering gstat(8) data Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: firk@cantconnect.ru Unfortunately I don't know how to easily test this (and I didn't tested this), but lib/libgeom/geom_stats.c/geom_stats_snapshot_next() looks like skipping latest entry of devstat array. It checks if the array is ended and returns NULL if so, but the 'gsp' points to just fetched latest entry of it, which is lost. Looked briefly at sys/kern/subr_devstat.c/devstat_alloc(), I didn't found any special handling of that last entry, so it seems it could be used. This may lead to last entry become invisible to gstat(8). -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293253-227>
