lvm commands running with an invalid arguments causes a segfault.

Solution Verified - Updated -

Issue

  • When running lvm commands with an invalid object/argument name causes a segfault instead of only throwing an error message.
$ lvs '#'
Volume group name "#" has invalid characters.
Segmentation fault (core dumped)
$ vgremove foo[
Volume group name "foo[" has invalid characters.
Segmentation fault (core dumped)

Environment

  • Red Hat Enterprise Linux 8.
  • lvm2 version < lvm2-2.03.08-3.el8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content