Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2042224

Summary: Segmentation fault with dmidecode --dump
Product: Red Hat Enterprise Linux 8 Reporter: Frank Liang <xiliang>
Component: dmidecodeAssignee: Coiby <coxu>
Status: CLOSED ERRATA QA Contact: Jiri Dluhos <jdluhos>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.6CC: coxu, huzhao, jdluhos, linl, qzhang, rvr, vkuznets, xiachen, xuazhao, ymao
Target Milestone: rcKeywords: CustomerScenariosInitiative, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dmidecode-3.3-4.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 15:21:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
os_tests.tests.test_general_check.TestGeneralCheck.test_check_dmidecode_dump_segfault.debug none

Description Frank Liang 2022-01-19 03:47:56 UTC
Created attachment 1851778 [details]
os_tests.tests.test_general_check.TestGeneralCheck.test_check_dmidecode_dump_segfault.debug

Description of problem:
Start an m1.medium instance in openstack. Segmentation fault is found when run 'dmidecode --dump'.
# dmidecode --dump
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
11 structures occupying 639 bytes.
Table at 0xBFFFFD80.

Handle 0x0000, DMI type 0, 24 bytes
Header and Data:
00 18 00 00 01 02 00 E8 03 00 08 00 00 00 00 00
00 00 00 04 00 00 FF FF
Strings:
53 65 61 42 49 4F 53 00
SeaBIOS
31 2E 31 33 2E 30 2D 32 2E 6D 6F 64 75 6C 65 2B
31 2E 31 33 2E 30 2D 32 2E 6D 6F 64 75 6C 65 2B65 6C 38 2E 32 2E 31 2B 37 32 38 34 2B 61 61 33
31 2E 31 33 2E 30 2D 32 2E 6D 6F 64 75 6C 65 2B65 6C 38 2E 32 2E 31 2B 37 32 38 34 2B 61 61 3332 61 32 63 34 00
1.13.0-2.module+el8.2.1+7284+aa32a2c4
30 34 2F 30 31 2F 32 30 31 34 00
04/01/2014

Segmentation fault (core dumped)
# rpm -q dmidecode
dmidecode-3.3-1.el8.x86_64

RHEL Version:
RHEL-8.6(4.18.0-359.el8.x86_64)

How reproducible:
100%

Steps to Reproduce:
1.  Start a m1.mediume instance in openstack
2. Run 'dmidecode --dump'

Actual results:
exit with segment fault

Expected results:
end successfully

Additional info:
- No such issue in RHEL-9(5.14.0-39.el9.x86_64)

Comment 2 Frank Liang 2022-01-24 03:21:52 UTC
Save issue in aws r4.16xlarge and x2gd.2xlarge testing.

Comment 3 Coiby 2022-01-24 04:24:24 UTC
Hi,

Thanks for opening the bug. Can you attach the dmidecode binary dump file afer running `sudo dmidecode --dump-bin /tmp/dmidecode_debug.bin` on RHEL9?

Comment 6 Coiby 2022-01-26 12:52:33 UTC
Hi Jiri,

Could you set ITM and qa_ack+ for this bug?

Comment 7 Jiri Dluhos 2022-01-26 12:57:39 UTC
ITM set (please note that this might need an exception, but with a segfault in a basic tool, we should not have problem getting it).
(We already have qa_ack.)

Comment 8 Jiri Dluhos 2022-01-26 14:02:01 UTC
Note: I will try to verify this bug as soon as possible, so hopefully the full range of the ITM (and the related exception) will not be needed.

Comment 9 Jiri Dluhos 2022-01-28 14:28:01 UTC
Formally set ITM to 25 to ensure release+.

Comment 13 Jiri Dluhos 2022-01-31 22:23:43 UTC
Thanks for testing Frank and Zhao! :)
Setting VERIFIED based on successful tests in comment #11 and #12.

Comment 17 Coiby 2022-03-14 06:16:01 UTC
(In reply to Frank Liang from comment #15)
> Hi Coiby,
> 
> I assume this bz will get fixed in RHEL-8.6 with dmidecode-3.3-4.el8.
> And the latest compose(RHEL-8.6.0-20220311.2) has dmidecode-3.3-1.el8.x86_64
> only.
> Could you help take a look? Thanks

Hi Frank,

Thanks for the reminder! I've  now added dmidecode-3.3-4.el8 to errata [1].

[1] https://errata.devel.redhat.com/advisory/84024

Comment 19 errata-xmlrpc 2022-05-10 15:21:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dmidecode bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2034