[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1088697: mokutil -sbstate leads to program crash



Package: mokutil
Version: 0.6.0-2
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
Wanted to test the state of secureboot. Wrote the argument wrong.
mokutil -sbstate

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
mokutil -sbstate

   * What was the outcome of this action?
mokutil get a SIGSEV

   * What outcome did you expect instead?
Provide a reasonable error message from that utility.

*** End of the template - remove these template lines ***

Installed mokutil-dbgsym. started it under gdb and tried to get a crashdump.
 gdb mokutil
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
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 mokutil...
Reading symbols from /usr/lib/debug/.build-
id/30/3d216969a1d0708ec4cd90f83d1ab46697741c.debug...
(gdb) start -sbstate
Temporary breakpoint 1 at 0x35b0: file ./src/mokutil.c, line 1780.
Starting program: /usr/bin/mokutil -sbstate
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Temporary breakpoint 1, main (argc=2, argv=0x7fffffffdcd8) at
./src/mokutil.c:1780
1780    ./src/mokutil.c: Datei oder Verzeichnis nicht gefunden.
(gdb) c
Continuing.

Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1  0x00007ffff78a9f1f in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at ./nptl/pthread_kill.c:78
#2  0x00007ffff785afb2 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3  0x00007ffff7845472 in __GI_abort () at ./stdlib/abort.c:79
#4  0x00005555555575a5 in main (argc=<optimized out>, argv=0x7fffffffdcd8) at
./src/mokutil.c:2093

It seems ./src/mokutil.c:2093 is just calling abort(). Should it not give a
more appropriate error message?



-- System Information:
Debian Release: 12.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-28-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mokutil depends on:
ii  libc6         2.36-9+deb12u9
ii  libcrypt1     1:4.4.33-2
ii  libefivar1    37-6
ii  libkeyutils1  1.6.3-2
ii  libssl3       3.0.15-1~deb12u1

mokutil recommends no packages.

mokutil suggests no packages.

-- no debconf information


Reply to: