[Bug 280742] ioctl on /dev/efi returns ENODEV

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 11 Aug 2024 06:53:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280742

            Bug ID: 280742
           Summary: ioctl on /dev/efi returns ENODEV
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dhs@frame.work
                CC: lwhsu@FreeBSD.org

I'm trying to get the ESRT system table from /dev/efi but sometimes it returns
ENODEV.
The only case where that's returned is here:
https://github.com/freebsd/freebsd-src/blob/7a8d05ba19b7762596c0ff22e668e4d50bac81cf/sys/dev/efidev/efirt.c#L386

lwhsu added a print to that block and found that buf->fw_resource_version
sometimes contains garbage. In the UEFI spec it's specified that it must always
be 1.
So we assume there is some memory corruption happening somewhere.

-- 
You are receiving this mail because:
You are the assignee for the bug.