Bug 1191501 - sbsiglist crashes
Summary: sbsiglist crashes
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Martin Loviska
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-08 19:10 UTC by Michal Suchanek
Modified: 2021-10-08 19:34 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Suchanek 2021-10-08 19:10:25 UTC
sbsiglist --type x509 /boot/vmlinuz-5.14.5-1-default
Segmentation fault (core dumped)
Comment 1 Michal Suchanek 2021-10-08 19:12:55 UTC
gdb $(which sbsiglist)
GNU gdb (GDB; openSUSE Tumbleweed) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/sbsiglist...
Downloading separate debug info for /usr/bin/sbsiglist...
Reading symbols from /home/hramrach/.cache/debuginfod_client/176b8cffc0efc498259fb9dbf07d95c59cef8d3f/debuginfo...
Downloading separate debug info for /home/hramrach/.cache/debuginfod_client/176b8cffc0efc498259fb9dbf07d95c59cef8d3f/debuginfo...
(gdb) run --type x509 /boot/vmlinuz-5.14.5-1-default
Starting program: /usr/bin/sbsiglist --type x509 /boot/vmlinuz-5.14.5-1-default
Downloading separate debug info for /lib64/libuuid.so.1...

Program received signal SIGSEGV, Segmentation fault.
__strlen_sse2 () at ../sysdeps/x86_64/multiarch/strlen-vec.S:126
126	../sysdeps/x86_64/multiarch/strlen-vec.S: Success.
(gdb) bt full
#0  __strlen_sse2 () at ../sysdeps/x86_64/multiarch/strlen-vec.S:126
No locals.
#1  0x00007ffff7fa3792 in uuid_parse (in=in@entry=0x0, uu=uu@entry=0x7fffffffda10 "") at libuuid/src/parse.c:44
        len = <optimized out>
#2  0x00005555555553c9 in parse_guid (guid=0x555555559310, str=0x0) at /usr/src/debug/sbsigntools-0.9.4-1.3.x86_64/src/sbsiglist.c:160
        uuid = '\000' <repeats 15 times>
        uuid = {<optimized out> <repeats 16 times>}
#3  main (argc=<optimized out>, argv=0x7fffffffdb98) at /usr/src/debug/sbsigntools-0.9.4-1.3.x86_64/src/sbsiglist.c:254
        type_str = 0x7fffffffe06c "x509"
        owner_guid_str = 0x0
        ctx = <optimized out>
        c = <optimized out>
(gdb)
Comment 2 Michal Suchanek 2021-10-08 19:34:23 UTC
it says it works on signatures so I suppose it should be detached first but it crashes anyway

sbattach --detach sig /boot/vmlinuz-5.14.5-1-default

sbsiglist --type x509 sig
Segmentation fault (core dumped)
sbsiglist --type sha256 sig
Segmentation fault (core dumped)