Frantisek Sumsal
cdece7e30a
cryptsetup: avoid calling strv_find() on a NULL pointer
...
When the header= option comes before any other type= defining one, we
trip over an assertion:
Jun 04 15:45:33 H testsuite-24.sh[752]: + systemctl start systemd-cryptsetup@detached.service
Jun 04 15:45:33 H systemd[1]: Starting systemd-cryptsetup@detached.service...
Jun 04 15:45:33 H systemd-cryptsetup[4641]: Assertion 'name' failed at src/basic/strv.c:21, function strv_find(). Aborting.
...
Jun 04 15:45:33 H systemd-coredump[4643]: Process 4641 (systemd-cryptse) of user 0 dumped core.
...
Stack trace of thread 4641:
#0 0x00007ff9256afe5c __pthread_kill_implementation (libc.so.6 + 0x8ce5c)
#1 0x00007ff92565fa76 raise (libc.so.6 + 0x3ca76)
#2 0x00007ff9256497fc abort (libc.so.6 + 0x267fc)
#3 0x00007ff926076047 log_assert_failed (libsystemd-shared-253.so + 0x276047)
#4 0x00007ff9260ab317 strv_find (libsystemd-shared-253.so + 0x2ab317)
#5 0x0000000000405927 parse_one_option (systemd-cryptsetup + 0x5927)
#6 0x0000000000407793 parse_options (systemd-cryptsetup + 0x7793)
#7 0x000000000040fa0c run (systemd-cryptsetup + 0xfa0c)
#8 0x000000000041137f main (systemd-cryptsetup + 0x1137f)
#9 0x00007ff92564a510 __libc_start_call_main (libc.so.6 + 0x27510)
#10 0x00007ff92564a5c9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x275c9)
#11 0x0000000000403915 _start (systemd-cryptsetup + 0x3915)
ELF object binary architecture: AMD x86-64
2023-06-05 16:50:13 +02:00
..
2023-03-29 10:34:41 +09:00
2023-06-01 06:47:48 +09:00
2023-04-07 10:55:30 +02:00
2023-06-05 14:21:43 +09:00
2023-06-01 10:25:30 +02:00
2023-06-01 06:48:47 +09:00
2023-03-29 10:34:41 +09:00
2023-03-14 18:00:08 +01:00
2023-06-02 16:49:39 +02:00
2023-06-01 06:48:47 +09:00
2023-06-01 06:47:48 +09:00
2023-06-01 06:47:48 +09:00
2023-06-05 16:50:13 +02:00
2023-03-24 13:43:51 +01:00
2023-06-01 06:47:48 +09:00
2023-05-26 15:07:01 +02:00
2023-04-17 19:56:06 +01:00
2023-06-02 13:31:31 +02:00
2023-06-02 16:41:36 +02:00
2023-06-01 06:48:47 +09:00
2023-04-18 10:38:38 +02:00
2023-05-29 22:53:08 +02:00
2023-06-01 06:48:47 +09:00
2023-05-31 13:15:53 +02:00
2023-05-31 13:15:53 +02:00
2023-04-28 14:06:00 +09:00
2023-04-27 21:42:38 +02:00
2023-05-30 16:35:46 +09:00
2023-06-01 06:48:47 +09:00
2023-05-30 21:18:08 +02:00
2023-05-05 18:42:37 +02:00
2023-06-02 16:43:39 +02:00
2023-06-01 06:51:45 +09:00
2023-05-23 19:45:27 +01:00
2023-05-31 13:15:53 +02:00
2023-06-02 16:49:38 +02:00
2023-05-31 13:15:53 +02:00
2023-05-16 09:26:17 +02:00
2023-05-19 17:42:41 +02:00
2023-06-01 12:07:17 +09:00
2023-06-01 06:47:48 +09:00
2023-05-30 14:50:56 +02:00
2023-05-18 17:57:06 +09:00
2023-06-01 06:48:47 +09:00
2023-06-01 06:47:48 +09:00
2023-06-01 06:47:48 +09:00
2023-06-01 06:47:48 +09:00
2023-06-01 06:48:47 +09:00
2023-05-26 15:09:03 +02:00
2023-06-02 23:27:45 +02:00
2023-06-03 16:48:00 +01:00
2023-05-24 08:33:22 +02:00
2023-05-13 09:16:55 +02:00
2023-06-01 06:47:48 +09:00
2023-06-01 06:47:48 +09:00
2023-05-25 04:01:31 +09:00
2023-06-02 16:49:38 +02:00
2023-05-28 23:53:18 +09:00
2023-06-03 09:13:27 +02:00
2023-05-31 13:15:53 +02:00
2023-06-02 23:27:45 +02:00
2023-05-31 13:15:53 +02:00
2023-04-16 13:26:58 +09:00
2023-06-01 06:47:48 +09:00
2023-06-01 06:47:48 +09:00
2023-05-25 03:56:06 -07:00
2023-05-31 13:15:53 +02:00
2023-05-24 20:06:10 +09:00
2023-05-31 13:15:53 +02:00
2023-06-01 06:47:48 +09:00
2023-05-19 15:21:52 +02:00
2023-06-01 19:15:10 +02:00
2023-03-24 13:43:51 +01:00
2023-06-01 06:47:48 +09:00