Bug 1198637 - Invoking `dmidecode` results in: /sys/firmware/efi/systab: SMBIOS entry point missing
Summary: Invoking `dmidecode` results in: /sys/firmware/efi/systab: SMBIOS entry point...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dmidecode
Version: 23
Hardware: aarch64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Anton Arapov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-04 14:55 UTC by Kashyap Chamarthy
Modified: 2016-01-25 02:20 UTC (History)
5 users (show)

Fixed In Version: dmidecode-3.0-1.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-25 02:20:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
expose SMBIOS 3.0 header in sysfs (6.48 KB, patch)
2015-03-04 15:09 UTC, Mark Salter
no flags Details | Diff

Description Kashyap Chamarthy 2015-03-04 14:55:08 UTC
Description of problem
----------------------

Invoking `dmidecode` results in:

  $ dmidecode 
  # dmidecode 2.12
  /sys/firmware/efi/systab: SMBIOS entry point missing


Seems like the string in the above file is "SMBIOS3":

  $ cat /sys/firmware/efi/systab 
  ACPI20=0x43fa397014
  ACPI=0x43fa397000
  SMBIOS3=0x43fa395000


Version
-------

Fedora Rawhide for AArch64:

  $ uname -r; rpm -q dmidecode
  4.0.0-0.rc1.git1.1.fc23.aarch64
  dmidecode-2.12-8.fc22.aarch64



Debugging information
---------------------

(1) `ltrace` output:

--------------------------------------------------------------------------------
$ debuginfo-install glibc -y
$ ltrace dmidecode
__libc_start_main([ "dmidecode" ] <unfinished ...>
memcpy(0x3ffee4fbac8, "P\030A\0\0\0\0\0\001\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0d\0\0\0\0\0\0\0"..., 320)                   = 0x3ffee4fbac8
getopt_long(1, 0x3ffee4fbe08, "d:hqs:t:uV", 0x3ffee4fbac8, nil)                                                      = -1
__printf_chk(1, 0x40d5d0, 0x40d5c8, 0# dmidecode 2.12
)                                                                               = 17
fopen("/sys/firmware/efi/systab", "r")                                                                               = 0x35410010
fgets("ACPI20=0x43fa397014\n", 63, 0x35410010)                                                                       = 0x3ffee4fbc78
strchr("ACPI20=0x43fa397014\n", '=')                                                                                 = "=0x43fa397014\n"
strcmp("ACPI20", "SMBIOS")                                                                                           = -144
fgets("ACPI=0x43fa397000\n", 63, 0x35410010)                                                                         = 0x3ffee4fbc78
strchr("ACPI=0x43fa397000\n", '=')                                                                                   = "=0x43fa397000\n"
strcmp("ACPI", "SMBIOS")                                                                                             = -144
fgets("SMBIOS3=0x43fa395000\n", 63, 0x35410010)                                                                      = 0x3ffee4fbc78
strchr("SMBIOS3=0x43fa395000\n", '=')                                                                                = "=0x43fa395000\n"
strcmp("SMBIOS3", "SMBIOS")                                                                                          = 204
fgets("SMBIOS3", 63, 0x35410010)                                                                                     = nil
fclose(0x35410010)                                                                                                   = 0
__fprintf_chk(0x3ff862713f0, 1, 0x40d640, 0x40d580/sys/firmware/efi/systab: SMBIOS entry point missing
)                                                                  = 53
free(nil)                                                                                                            = <void>
+++ exited (status 1) +++
--------------------------------------------------------------------------------

(2) `strace` output

--------------------------------------------------------------------------------
$ strace dmidecode
("/usr/sbin/dmidecode", ["dmidecode"], [/* 41 vars */]) = 0
brk(0)                                  = 0x31120000
faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=70299, ...}) = 0
mmap(NULL, 70299, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3ff9fb60000
close(3)                                = 0
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\210\373\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1953744, ...}) = 0
mmap(NULL, 1594256, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3ff9f9d0000
mmap(0x3ff9fb40000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x3ff9fb40000
close(3)                                = 0
mprotect(0x3ff9fb40000, 65536, PROT_READ) = 0
mprotect(0x3ff9fbc0000, 65536, PROT_READ) = 0
munmap(0x3ff9fb60000, 70299)            = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3ff9fb70000
brk(0)                                  = 0x31120000
brk(0x31150000)                         = 0x31150000
brk(0)                                  = 0x31150000
openat(AT_FDCWD, "/sys/firmware/efi/systab", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0400, st_size=65536, ...}) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3ff9fb60000
read(3, "ACPI20=0x43fa397014\nACPI=0x43fa3"..., 65536) = 59
read(3, "", 65536)                      = 0
close(3)                                = 0
munmap(0x3ff9fb60000, 65536)            = 0
write(2, "/sys/firmware/efi/systab: SMBIOS"..., 53/sys/firmware/efi/systab: SMBIOS entry point missing
) = 53
write(1, "# dmidecode 2.12\n", 17# dmidecode 2.12
)      = 17
exit_group(1)                           = ?
+++ exited with 1 +++
--------------------------------------------------------------------------------

Comment 1 Mark Salter 2015-03-04 15:09:20 UTC
Created attachment 997912 [details]
expose SMBIOS 3.0 header in sysfs

Comment 2 Mark Salter 2015-03-04 15:10:01 UTC
Rawhide doesn't have the needed patch which exposes SMBIOS 3.0 in sysfs.

Comment 3 Anton Arapov 2015-03-09 17:38:10 UTC
dmidecode doesn't support SMBIOS 3.0 at all yet.

Comment 4 Jan Kurik 2015-07-15 14:27:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 5 Fedora Update System 2016-01-21 19:28:37 UTC
dmidecode-3.0-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a30f29f497

Comment 6 Fedora Update System 2016-01-22 04:54:18 UTC
dmidecode-3.0-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a30f29f497

Comment 7 Fedora Update System 2016-01-25 02:20:43 UTC
dmidecode-3.0-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.