Public bug reported:
On riscv64, heap allocations from Grub are using the biggest available
block first.
On the SpacemiT V100 system, it was observed during PXE booting that:
- Grub was loaded just below 4 GiB, at 0xf4000000
- The biggest available block was at 0xc010000000 (~45 GiB)
Boot fails with:
Booting UEFI PXEv4 (MAC:6CB311B683B4)
(PciRoot(0x3)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(6CB311B683B4,0x1)/IPv4(0.0.0.0,0x0,DHCP,0.0.0.0,0.0.0.0,0.0.0.0))
relocation overflow
Aborted. Press any key to exit.
Relocation overflow, because the modules need to be in a +/- 2GiB range
of the image, as PC-relative relocations (R_RISCV_CALL_PLT,
R_RISCV_PCREL_HI20) are used by Grub and instruction encoding of those
only allows +/- 2 GiB range from PC.
** Affects: grub2 (Ubuntu)
Importance: Undecided
Assignee: Valentin Haudiquet (vhaudiquet)
Status: In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175038
Title:
grub2: riscv64: heap allocations can fall outside the 2GiB relocation
range
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2175038/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs