[Bug 281978] g_io_request panic on md(4) with odd size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Oct 2024 08:09:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281978
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=4bf34c597c44a2393ac5ec483e9cecac128d8202
commit 4bf34c597c44a2393ac5ec483e9cecac128d8202
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-13 21:28:22 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-14 08:08:21 +0000
    md(4): always trim the last partial sector
    Do it also for the preloaded disk, in addition to the dynamically
    configured device.  This is needed to avoid geom checking alignment and
    panicing on read of the last sector, e.g. for partition schemes and
    label tasting.
    PR:     281978
    Reported by:    bz
    Reviewed by:    bz, markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D47102
 sys/dev/md/md.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
-- 
You are receiving this mail because:
You are the assignee for the bug.