Summary: | sysutils/grub2-bhyve: fails to boot OpenBSD Current kernel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuichiro NAITO <naito.yuichiro> | ||||||||
Component: | Individual Port(s) | Assignee: | Hiroki Sato <hrs> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Some People | CC: | bsd, freebsd-bugs, grahamperrin, halcyonblue, hrs, osa, sascha.folie | ||||||||
Priority: | --- | Keywords: | bhyve | ||||||||
Version: | Latest | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Description
Yuichiro NAITO
2023-09-15 07:58:35 UTC
Take I updated my patch to simplify the logic. The new logic always allocates the new console boot parameter. If the loading kernel is prior to 7.3, the console boot parameter is replaced by the legacy one. The new one is bigger than the legacy one. So, it doesn't need to reallocate the memory for the legacy boot parameter. It just rearranges the memory image. And I also fixed a "use after free" bug in the previous patch. Created attachment 246762 [details]
grub2-bhyve.patch.2
Can this be merged, please? I can confirm that OpenBSD 7.4 boots in bhyve after this patch is applied. Created attachment 247472 [details]
grub2-bhyve.patch.3
Hi, my previous patch has been committed in the upstream repository. I updated grub2-bhyve patch to refer to the commit. This change minimizes the patch for the Ports tree. Please apply the `grub2-bhyve.patch.3`. Thank you. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c918e3f780ddd4cc6a0b6650854a1a10fe96644f commit c918e3f780ddd4cc6a0b6650854a1a10fe96644f Author: Hiroki Sato <hrs@FreeBSD.org> AuthorDate: 2024-01-07 12:32:30 +0000 Commit: Hiroki Sato <hrs@FreeBSD.org> CommitDate: 2024-01-07 12:32:30 +0000 sysutils/grub2-bhyve: Add patches to fix loading OpenBSD kernel PR: 273814 Submitted by: Yuichiro NAITO sysutils/grub2-bhyve/Makefile | 5 +++-- sysutils/grub2-bhyve/distinfo | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) Committed. |