Date: Wed, 9 Jul 2025 00:44:40 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 5098a5b48357 - stable/14 - md: Use a larger buffer for the ident string Message-ID: <202507090044.5690ieIa022537@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=5098a5b48357d4d51ad8369330d292e6bbd7490e commit 5098a5b48357d4d51ad8369330d292e6bbd7490e Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2025-06-25 21:12:33 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-07-09 00:44:18 +0000 md: Use a larger buffer for the ident string With the old size, the string could easily be truncated, resulting in non-unique identifiers. PR: 287679 Reported by: Phil Krylov <phil@krylov.eu> Reviewed by: kib MFC after: 2 weeks (cherry picked from commit 5286b96c56ff5aa3c1cee824ab8564f0ffffc381) --- sys/dev/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 95926706443b..1b434eda19a5 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -258,7 +258,7 @@ struct md_s { unsigned opencount; unsigned fwheads; unsigned fwsectors; - char ident[32]; + char ident[DISK_IDENT_SIZE]; unsigned flags; char name[20]; struct proc *procp;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507090044.5690ieIa022537>