bugGNU GRUB - Bugs: bug #65072, Grub version 2.12 for Windows...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65072: Grub version 2.12 for Windows grub-mkimage.exe creates bad code

Submitter:  Dave Pickens <drummerdp>
Submitted:  Fri 22 Dec 2023 02:20:52 AM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Dave Pickens
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Mon 01 Jan 2024 04:30:02 PM UTC, comment #2: 

I have attached two additional files:

output.genefi32.txt    output of grub-mkimage for EFI 32 bit

output.genbios.txt     output of grub-mkimage for non EFI

I noted that the __stack_chk_guard output entries are quite different in the EFI 32 bit versus the failing EFI 64 bit output.

In the non EFI output, the __stack_chk_guard entries do not appear at all.

(file #55497, file #55498)

Dave Pickens <drummerdp>
Fri 22 Dec 2023 04:52:05 AM UTC, comment #1: 

I have also attached file output.genefi64.txt which is the console output of the grub-mkimage command.

Dave Pickens <drummerdp>
Fri 22 Dec 2023 02:20:52 AM UTC, original submission:  

I am testing the newly released version 2.12.

Using grub-mkimage.exe to create a bootable 64 bit EFI kernel.

When the kernel is loaded it gives message

symbol '_stack_chk_guard' not found

See the attached screenshot.
Then the kernel aborts.

I was extremely careful when generating the kernel to ensure that the matching libraries were used by the grub-mkimage command.
The libraries and command are all in the same directory, so it is very unlikely that a mismatch occurred.

This bug renders grub-2.12-for-windows useless.
The kernel will not boot.

I have also attached the Windows .bat script I used to generate the kernels.

Note: The 32 bit i386-efi and non EFI i386-pc kernels work fine.
The problem is strictly with the 64 bit x86_64-efi kernel.


Dave Pickens <drummerdp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #55497:  output.genefi32.txt added by drummerdp (203KiB - text/plain)
file #55498:  output.genbios.txt added by drummerdp (3KiB - text/plain)
file #55479:  output.genefi64.txt added by drummerdp (288KiB - text/plain)
file #55477:  grub-212-error.jpg added by drummerdp (18KiB - image/jpeg - Supporting files)
file #55478:  gen-image.bat added by drummerdp (7KiB - application/octet-stream - Supporting files)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by drummerdp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-01 drummerdp Attached File- Added output.genefi32.txt, #55497
        Attached File- Added output.genbios.txt, #55498
    2023-12-22 drummerdp Attached File- Added output.genefi64.txt, #55479
    2023-12-22 drummerdp Attached File- Added grub-212-error.jpg, #55477
        Attached File- Added gen-image.bat, #55478

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code