Bug 1601864

Summary: segfault in hashmap_get
Product: [Fedora] Fedora Reporter: Sami Farin <hvtaifwkbgefbaei>
Component: dracutAssignee: dracut-maint-list
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 28CC: dracut-maint-list, extras-qa, harald, jonathan, zbyszek
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dracut-048-6.git20180718.fc28.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-28 23:47:15 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
dracut.log none

Description Sami Farin 2018-07-17 11:01:10 UTC
Created attachment 1459390 [details]
dracut.log

Description of problem:
audit[413389]: ANOM_ABEND auid=500 uid=0 gid=0 ses=5 pid=413389 comm="dracut-install" exe="/usr/lib/dracut/dracut-install" sig=11 res=1
kernel: show_signal_msg: 78 callbacks suppressed
kernel: dracut-install[413389]: segfault at 0 ip 000055ee4e954f94 sp 00007ffdf3cb81c8 error 4 in dracut-install[55ee4e94d000+10000]
dracut[409167]: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.ugS2Yb/initramfs --kerneldir /lib/modules/4.17.7+/ -o -m cifs ipv6


Version-Release number of selected component (if applicable):
048

How reproducible:
100%

Steps to Reproduce:
1. dracut dracut-4.17.7.img 4.17.7+
2.
3.

Actual results:
segfault (but image still generated)

Expected results:
no segfault

Additional info:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  string_hash_func (p=0x0) at install/hashmap.c:130
130	        for (c = p; *c; c++)
(gdb) bt
#0  string_hash_func (p=0x0) at install/hashmap.c:130
#1  0x0000559d75dc83ca in hashmap_get (h=0x7f943c36c860, key=key@entry=0x0) at install/hashmap.c:362
#2  0x0000559d75dc44d9 in check_hashmap (hm=<optimized out>, item=item@entry=0x0) at install/dracut-install.c:590
#3  0x0000559d75dc4990 in dracut_install () at install/dracut-install.c:610
#4  0x0000559d75dc651e in install_dependent_modules (modlist=0x559d772227b0) at install/dracut-install.c:1251
#5  0x0000559d75dc69bb in install_module () at install/dracut-install.c:1317
#6  0x0000559d75dc6de4 in install_modules () at install/dracut-install.c:1655
#7  0x0000559d75dc344d in main () at install/dracut-install.c:1787
#8  0x00007f943ba0118b in __libc_start_main (main=0x559d75dc2dd0 <main>, argc=9, argv=0x7ffdb4fc3a68, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7ffdb4fc3a58) at ../csu/libc-start.c:308
#9  0x0000559d75dc372a in _start ()

Comment 1 Fedora Update System 2018-07-18 11:42:06 UTC
dracut-048-6.git20180718.fc28.1 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4dd9d6a33d

Comment 2 Harald Hoyer 2018-07-18 11:42:43 UTC
Please try, if the update fixes your issue.

Comment 3 Fedora Update System 2018-07-19 20:20:05 UTC
dracut-048-6.git20180718.fc28.1 has been pushed to the Fedora 28 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-2018-4dd9d6a33d

Comment 4 Fedora Update System 2018-07-22 03:03:41 UTC
dracut-048-6.git20180718.fc28.1 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Sami Farin 2019-03-14 09:15:40 UTC
Guys...?
This with 049-25.git20181204.fc29

 dracut[1398280]: *** Including module: cifs ***
 audit[1402704]: ANOM_ABEND auid=500 uid=0 gid=0 ses=9 pid=1402704 comm="dracut-install" exe="/usr/lib/dracut/dracut-install" sig=11 res=1
 kernel: dracut-install[1402704]: segfault at 0 ip 000055a5740b9444 sp 00007ffecd3e5468 error 4 in dracut-install[55a5740b3000+a000]
 kernel: Code: f2 9d 00 00 48 89 1d eb 9d 00 00 48 89 03 5b c3 66 0f 1f 44 00 00 48 89 df 5b e9 67 a2 ff ff 0f 1f 80 00 00 00 00 f3 0f 1e fa <0f> be 17 b8 05 15 00 00 84 d2 74 18 89 c1 48 83 c7 01 c1 e1 05 01
 dracut[1398280]: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.rTbd5R/initramfs --kerneldir /lib/modules/4.19.29+/ -o -m cifs ipv6

to "fix":
mv /usr/lib/dracut/modules.d/95cifs/module-setup.sh{,it}

Comment 6 Ben Cotton 2019-05-02 19:47:15 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Ben Cotton 2019-05-28 23:47:15 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 8 Red Hat Bugzilla 2023-09-14 04:31:28 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days