Project

General

Profile

Bug #8117

loader.efi: ResetSystem does not use data with EFI_SUCCESS

Added by Toomas Soome over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2017-04-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

The current reboot command in efi/loader/main.c is using the following call:

RS->ResetSystem(EfiResetCold, EFI_SUCCESS, 23, (CHAR16 *)msg);

However, UEFI spec 2.6, page 265 does state:

"ResetData is only valid if ResetStatus is something other than EFI_SUCCESS unless the ResetType is EfiResetPlatformSpecific where a minimum amount of ResetData is always required."

Therefore we should use DataSize 0 and ResetData NULL - those are two last arguments for the call.

History

#1

Updated by Electric Monk over 2 years ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit 48d8443e35c27b5e39226cd33f279567424ad20a

commit  48d8443e35c27b5e39226cd33f279567424ad20a
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-01T13:48:58.000Z

    8117 loader.efi: ResetSystem does not use data with EFI_SUCCESS
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Yuri Pankov <yuri.pankov@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF