RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1887598 - dm-event.service segfaults creating a snapshot with altered reserved_memory and reserved_stack
Summary: dm-event.service segfaults creating a snapshot with altered reserved_memory a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.3
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 8.0
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1881235
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-12 21:48 UTC by Corey Marthaler
Modified: 2021-09-07 11:50 UTC (History)
11 users (show)

Fixed In Version: lvm2-2.03.11-0.2.20201103git8801a86.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1881235
Environment:
Last Closed: 2021-05-18 15:01:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 2 Corey Marthaler 2020-10-13 01:30:35 UTC
FWIW, this doesn't require thin snaps. Old type snapshots also hit this.

[root@hayes-03 ~]# lvcreate --yes -L 300M snapper -n origin
  Logical volume "origin" created.
[root@hayes-03 ~]# lvcreate --yes -s /dev/snapper/origin -n altered_memory -L 100M
  WARNING: Monitoring snapper/altered_memory failed.
  WARNING: Monitoring snapper/origin failed.
  Logical volume "altered_memory" created.

Comment 3 Zdenek Kabelac 2020-10-13 08:10:06 UTC
All lvm2 monitoring plugins that runs lvm command will hit this issue (raid + thin + snap + mirror + vdo)

Comment 4 Zdenek Kabelac 2020-10-20 21:45:15 UTC
Fixed by https://www.redhat.com/archives/lvm-devel/2020-October/msg00160.html
which effectively disables usage of reserved_stack setting for lvm dmeventd plugin.

Comment 5 Corey Marthaler 2020-11-04 23:18:24 UTC
Fix verified in the latest devel compose, marking Verified:Tested.

    # Configuration option activation/reserved_stack.
    reserved_stack = 512  # edited by QA test script qe_lvmconf (on Wed Nov  4 17:12:44 CST 2020)!

[root@hayes-02 bin]# lvcreate --yes -L 300M snapper -n origin
  Logical volume "origin" created.
[root@hayes-02 bin]# lvcreate --yes -s /dev/snapper/origin -n altered_memory -L 100M
  Logical volume "altered_memory" created.
[root@hayes-02 bin]# grep segfault /var/log/messages
[root@hayes-02 bin]# ps -ef | grep dmeventd
root        5557       1  0 16:16 ?        00:00:00 /usr/sbin/dmeventd -f


kernel-4.18.0-241.el8.dt1    BUILT: Mon Nov  2 08:09:33 CST 2020
lvm2-2.03.11-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
lvm2-libs-2.03.11-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-libs-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-event-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020

Comment 9 Corey Marthaler 2021-01-07 19:43:49 UTC
Fix verified in the latest rpms

kernel-4.18.0-269.el8    BUILT: Thu Dec 31 07:52:55 CST 2020
lvm2-2.03.11-0.4.20201222gitb84a992.el8    BUILT: Tue Dec 22 06:33:49 CST 2020
lvm2-libs-2.03.11-0.4.20201222gitb84a992.el8    BUILT: Tue Dec 22 06:33:49 CST 2020



[root@hayes-02 ~]# grep reserved_stack /etc/lvm/lvm.conf 
        # Configuration option activation/reserved_stack.
        reserved_stack = 512  # edited by QA test script qe_lvmconf (on Thu Jan  7 13:37:46 CST 2021)!
[root@hayes-02 ~]# grep reserved_memory /etc/lvm/lvm.conf 
        # Configuration option activation/reserved_memory.
        reserved_memory = 131072

[root@hayes-02 ~]# lvcreate -ay --thinpool my_pool -L 10G snapper
  Thin pool volume with chunk size 64.00 KiB can address at most 15.81 TiB of data.
  Logical volume "my_pool" created.
[root@hayes-02 ~]# lvcreate -ay --virtualsize 20G -T snapper/my_pool -n my_origin
  WARNING: Sum of all thin volume sizes (20.00 GiB) exceeds the size of thin pool snapper/my_pool (10.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "my_origin" created.
[root@hayes-02 ~]# lvcreate -ay -y -k n -s /dev/snapper/my_origin -n my_snap
  WARNING: Sum of all thin volume sizes (40.00 GiB) exceeds the size of thin pool snapper/my_pool (10.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "my_snap" created.

[root@hayes-02 ~]# grep segfault /var/log/messages
[root@hayes-02 ~]# 
[root@hayes-02 ~]# ps -ef | grep dmeventd
root        4162       1  0 13:14 ?        00:00:00 /usr/sbin/dmeventd -f
root       12350    2991  0 13:40 pts/0    00:00:00 grep --color=auto dmeventd

Comment 11 errata-xmlrpc 2021-05-18 15:01:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (lvm2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1659


Note You need to log in before you can comment on or make changes to this bug.