lvm cli crash segfault on invalid command (SIGSEGV)
Repro:
lvm foo
fish: Job 1, 'lvm foo' terminated by signal SIGSEGV (Address boundary error)
Same error can be triggered via the lvm
CLI, and specifically if help
subcommand is used on an unknown command:
# lvm
lvm> help foo
foo - (null)
fish: Job 1, 'lvm' terminated by signal SIGSEGV (Address boundary error)
# lvm version
LVM version: 2.03.24(2) (2024-05-16)
Library version: 1.02.198 (2024-05-16)
Driver version: 4.48.0
Configuration: ./configure CONFIG_SHELL=/bin/bash --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --enable-cmdlib --enable-dmeventd --enable-lvmpolld --enable-pkgconfig --enable-readline --enable-udev_rules --enable-udev_sync --enable-write_install --with-cache=internal --with-default-dm-run-dir=/run --with-default-locking-dir=/run/lock/lvm --with-default-pid-dir=/run --with-default-run-dir=/run/lvm --with-libexecdir=/usr/lib/lvm2 --with-systemdsystemunitdir=no --with-thin=internal --with-udev-prefix=/usr