Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613196 - sys-apps/memtest86+ oversized on x86_64
Summary: sys-apps/memtest86+ oversized on x86_64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-19 11:10 UTC by Andreas Steinmetz
Modified: 2021-12-15 18:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Steinmetz 2017-03-19 11:10:13 UTC
Using (probably not only) lilo fails with memtest86+:

Fatal: Kernel /boot/memtest86plus/memtest is too big

# readelf -l /boot/memtest86plus/memtest

Elf file type is EXEC (Executable file)
Entry point 0x100000
There are 2 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x000000 0x00000000 0x00000000 0x12bfb0 0x12bfb0 RW  0x200000
  PAX_FLAGS      0x000000 0x00000000 0x00000000 0x00000 0x00000     0x4

 Section to Segment mapping:
  Segment Sections...
   00     .data 
   01     



After applying the fix stated in comment 10 of:

https://bugzilla.redhat.com/show_bug.cgi?id=620846



# readelf -l /boot/memtest86plus/memtest

Elf file type is EXEC (Executable file)
Entry point 0x100000
There are 2 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x001000 0x00100000 0x00100000 0x2bfb0 0x2bfb0 RW  0x1000
  PAX_FLAGS      0x000000 0x00000000 0x00000000 0x00000 0x00000     0x4

 Section to Segment mapping:
  Segment Sections...
   00     .data 
   01
Comment 1 Larry the Git Cow gentoo-dev 2021-12-03 16:17:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aee0712e4c0cf7c15440ebfca9eff372ce93d2b1

commit aee0712e4c0cf7c15440ebfca9eff372ce93d2b1
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2021-12-03 16:13:41 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2021-12-03 16:16:30 +0000

    sys-apps/memtest86+: attempt fix for "oversized on x86_64"
    
    Fix from https://bugzilla.redhat.com/show_bug.cgi?id=620846#c10
    
    Bug: https://bugs.gentoo.org/613196
    
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 sys-apps/memtest86+/memtest86+-5.31b-r2.ebuild | 116 +++++++++++++++++++++++++
 1 file changed, 116 insertions(+)
Comment 2 Ben Kohler gentoo-dev 2021-12-03 16:18:07 UTC
Can you see if the new -r2 ebuild works better? I've applied that fix from RH