Bug ID 1219841
Summary dracut: segfault with rd.break option
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee dracut-maintainers@suse.de
Reporter antonio.feijoo@suse.com
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

Commit
https://github.com/openSUSE/dracut/commit/3950f801e26a3aeb1e3bc91e31c7fd4591588252
fixed a regression with multiple `rd.break=` options set on the kernel command
line. But, it detected a call to `strcmp` without checking that the arguments
are not NULL first, which causes a segfault when passing the `rd.break` option
without value on the kernel command line.

> Feb 12 11:37:23 localhost systemd[1]: Starting dracut cmdline hook...
> Feb 12 11:37:23 localhost dracut-cmdline[237]: dracut-059+suse.538.ge7a5cff9-1.3
> Feb 12 11:37:23 localhost dracut-cmdline[237]: Using kernel command line parameters:  rd.driver.pre=btrfs resume=UUID=de0a0a36-ef3b-4935-aae6-209c689c0dd2 root=UUID=5594bae0-44c9-49e5-b17b-8ef41682899e rootfstype=btrfs rootflags=rw,relatime,discard=async,space_cache=v2,subvolid=266,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/snapshot   BOOT_IMAGE=/boot/vmlinuz-6.7.4-1-default root=UUID=5594bae0-44c9-49e5-b17b-8ef41682899e console=tty0 console=ttyS0,9600 security=apparmor mitigations=auto rd.break
> Feb 12 11:37:23 localhost kernel: dracut-getargs[279]: segfault at 0 ip 00007f88b1c88726 sp 00007ffc3fbefc98 error 4 in libc.so.6[7f88b1b31000+16d000] likely on CPU 0 (core 0, socket 0)
> Feb 12 11:37:23 localhost kernel: Code: 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 1a 03 00 00 <62> e1 fe 28 6f 07 62 b2 7d 20 26 d0 62 f1 7d 22 74 0e c5 fb 93 c9
> Feb 12 11:37:23 localhost systemd-coredump[280]: Failed to connect to coredump service: No such file or directory
> Feb 12 11:37:23 localhost systemd[1]: Finished dracut cmdline hook.
> Feb 12 11:37:23 localhost systemd[1]: Starting dracut pre-udev hook...
> Feb 12 11:37:23 localhost kernel: dracut-getargs[315]: segfault at 0 ip 00007f2d52753726 sp 00007ffd0a7f8f78 error 4 in libc.so.6[7f2d525fc000+16d000] likely on CPU 1 (core 0, socket 1)

However these segfaults are not critical, because it happens on a separate C
binary used to parse the kernel command line, so the system boots anyway.

Fix to be backported:
https://github.com/dracutdevs/dracut/pull/2607/commits/b9d395a373a1da0e869d2706e123157e7737c365


You are receiving this mail because: