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 2141837 - /usr/libexec/lvresize_fs_helper: execvp failed: Permission denied
Summary: /usr/libexec/lvresize_fs_helper: execvp failed: Permission denied
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: lvm2
Version: 9.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Marian Csontos
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-10 20:39 UTC by Corey Marthaler
Modified: 2023-05-09 10:37 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.03.17-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 08:23:51 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLUSTERQE-6213 0 None None None 2022-11-29 16:04:59 UTC
Red Hat Issue Tracker RHELPLAN-139092 0 None None None 2022-11-10 20:49:31 UTC
Red Hat Product Errata RHBA-2023:2544 0 None None None 2023-05-09 08:24:05 UTC

Description Corey Marthaler 2022-11-10 20:39:04 UTC
Description of problem:
Looks like this made it into the initial 9.2 build as well.

[root@virt-149 ~]# lvs -a -o +devices
  LV        VG            Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices       
  resize_lv resize_matrix -wi-a-----  30.00g                                                     /dev/sda(0)   

[root@virt-149 ~]#  lvreduce --yes --fs resize -L -631M resize_matrix/resize_lv
  Rounding size to boundary between physical extents: 628.00 MiB.
  File system ext4 found on resize_matrix/resize_lv.
  File system size (30.00 GiB) is larger than the requested size (<29.39 GiB).
  File system reduce is required using resize2fs.
  File system fsck will be run before reduce.
  Reducing file system ext4 to <29.39 GiB (31553748992 bytes) on resize_matrix/resize_lv...
  /usr/libexec/lvresize_fs_helper: execvp failed: Permission denied
  Failed to reduce file system with lvresize_fs_helper.
[root@virt-149 ~]# echo $?
5


Version-Release number of selected component (if applicable):
kernel-5.14.0-183.el9    BUILT: Mon Oct 31 12:48:09 PM CET 2022
lvm2-2.03.17-1.el9    BUILT: Thu Nov 10 05:02:16 PM CET 2022
lvm2-libs-2.03.17-1.el9    BUILT: Thu Nov 10 05:02:16 PM CET 2022


How reproducible:
Everytime

Comment 8 Katerina Koukiou 2022-12-26 18:04:10 UTC
With the recent update lvreduce started crashing

lvm2-libs-2.03.17-3.el9.x86_64
lvm2-2.03.17-3.el9.x86_64

From coredumpctl:


          PID: 10580 (lvresize_fs_hel)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Mon 2022-12-26 12:48:03 EST (13min ago)
  Command Line: /usr/bin/bash /usr/libexec/lvresize_fs_helper --cryptresize --cryptpath /dev/dm-1 --newsizebytes 209715200
    Executable: /usr/bin/bash
 Control Group: /user.slice/user-0.slice/session-6.scope
          Unit: session-6.scope
         Slice: user-0.slice
       Session: 6
     Owner UID: 0 (root)
       Boot ID: 7302608256b3486baa1839421367395c
    Machine ID: c4d88cad93f7425cacadf3286c657396
      Hostname: rhel-9-2-127-0-0-2-2201
       Storage: /var/lib/systemd/coredump/core.lvresize_fs_hel.0.7302608256b3486baa1839421367395c.10580.1672076883000000.zst (present)
     Disk Size: 3.0M
       Message: Process 10580 (lvresize_fs_hel) of user 0 dumped core.
                
                Module linux-vdso.so.1 with build-id 1f1e0afc3ba23b2f20b478cbddd708dfcdbec6ef
                Module ld-linux-x86-64.so.2 with build-id d76902bfc7dd89768b1d0a6b62e8801cbe8471b5
                Module libc.so.6 with build-id da648ed737090ccb922bf9be96d93346eb28912a
                Module libtinfo.so.6 with build-id 7745adf36f8d068cdf99dc45bab9352ade38b6eb
                Module bash with build-id 5d82a44f2a4466ff21f763af86b004d1fcb3a8f1
                Stack trace of thread 10580:
                #0  0x00007f981f2ae193 _int_malloc (libc.so.6 + 0xae193)
                #1  0x00007f981f2af532 __libc_malloc (libc.so.6 + 0xaf532)
                #2  0x000055935e207774 quote_string.part.0 (bash + 0x7c774)
                #3  0x000055935e201828 param_expand (bash + 0x76828)
                #4  0x000055935e20a698 expand_word_internal (bash + 0x7f698)
                #5  0x000055935e1fc3a2 expand_arith_string (bash + 0x713a2)
                #6  0x000055935e201614 param_expand (bash + 0x76614)
                #7  0x000055935e20a698 expand_word_internal (bash + 0x7f698)
                #8  0x000055935e1f50e7 expand_string_assignment (bash + 0x6a0e7)
                #9  0x000055935e1fb896 expand_string_if_necessary (bash + 0x70896)
                #10 0x000055935e1fbed6 do_assignment_internal (bash + 0x70ed6)
                #11 0x000055935e210fe7 expand_word_list_internal.lto_priv.0 (bash + 0x85fe7)
                #12 0x000055935e1d5b5f execute_simple_command (bash + 0x4ab5f)
                #13 0x000055935e1d75ba execute_command_internal (bash + 0x4c5ba)
                #14 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #15 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #16 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #17 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #18 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #19 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #20 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #21 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #22 0x000055935e1d7193 execute_command_internal (bash + 0x4c193)
                #23 0x000055935e1dfda0 execute_function (bash + 0x54da0)
                #24 0x000055935e1d639a execute_simple_command (bash + 0x4b39a)
                #25 0x000055935e1d75ba execute_command_internal (bash + 0x4c5ba)
                #26 0x000055935e1d83db execute_command_internal (bash + 0x4d3db)
                #27 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #28 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #29 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #30 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #31 0x000055935e1d7193 execute_command_internal (bash + 0x4c193)
                #32 0x000055935e1dfda0 execute_function (bash + 0x54da0)
                #33 0x000055935e1d639a execute_simple_command (bash + 0x4b39a)
                #34 0x000055935e1d75ba execute_command_internal (bash + 0x4c5ba)
                #35 0x000055935e1d83db execute_command_internal (bash + 0x4d3db)
                #36 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #37 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #38 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #39 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #40 0x000055935e1d7193 execute_command_internal (bash + 0x4c193)
                #41 0x000055935e1dfda0 execute_function (bash + 0x54da0)
                #42 0x000055935e1d639a execute_simple_command (bash + 0x4b39a)
                #43 0x000055935e1d75ba execute_command_internal (bash + 0x4c5ba)
                #44 0x000055935e1d83db execute_command_internal (bash + 0x4d3db)
                #45 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #46 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #47 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #48 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #49 0x000055935e1d7193 execute_command_internal (bash + 0x4c193)
                #50 0x000055935e1dfda0 execute_function (bash + 0x54da0)
                #51 0x000055935e1d639a execute_simple_command (bash + 0x4b39a)
                #52 0x000055935e1d75ba execute_command_internal (bash + 0x4c5ba)
                #53 0x000055935e1d83db execute_command_internal (bash + 0x4d3db)
                #54 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #55 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #56 0x000055935e1d9758 execute_command (bash + 0x4e758)
                #57 0x000055935e1d839e execute_command_internal (bash + 0x4d39e)
                #58 0x000055935e1d7193 execute_command_internal (bash + 0x4c193)
                #59 0x000055935e1dfda0 execute_function (bash + 0x54da0)
                #60 0x000055935e1d639a execute_simple_command (bash + 0x4b39a)
                #61 0x000055935e1d75ba execute_command_internal (bash + 0x4c5ba)
                #62 0x000055935e1d83db execute_command_internal (bash + 0x4d3db)
                #63 0x000055935e1d9758 execute_command (bash + 0x4e758)
                ELF object binary architecture: AMD x86-64


If this is not sufficient please let me know how to get the proper backtrace. I tried with gdb but it's giving massive amout of logs with all threads full mode.

Comment 10 Katerina Koukiou 2022-12-26 18:15:36 UTC
Reported seperately https://bugzilla.redhat.com/show_bug.cgi?id=2156389

Comment 11 Corey Marthaler 2023-01-12 18:30:06 UTC
Marking VERIFIED in the latest rpms as well.

kernel-5.14.0-229.el9    BUILT: Thu Jan  5 05:38:37 PM CET 2023
lvm2-2.03.17-4.el9    BUILT: Tue Jan 10 06:40:12 PM CET 2023
lvm2-libs-2.03.17-4.el9    BUILT: Tue Jan 10 06:40:12 PM CET 2023


++ itr ext4 + --resizefs ++
mount  /dev/resize_matrix/resize_lv /mnt/resize_lv
umount /mnt/resize_lv
Removing space from resize_matrix/resize_lv on virt-540.cluster-qe.lab.eng.brq.redhat.com
lvreduce --yes --resizefs -L -532M resize_matrix/resize_lv 
  File system ext4 found on resize_matrix/resize_lv.
  File system size (29.39 GiB) is larger than the requested size (<28.88 GiB).
  File system reduce is required using resize2fs.
  File system fsck will be run before reduce.
  Reducing file system ext4 to <28.88 GiB (31004295168 bytes) on resize_matrix/resize_lv...
e2fsck /dev/resize_matrix/resize_lv
/dev/resize_matrix/resize_lv: 11/1933312 files (0.0% non-contiguous), 165397/7705600 blocks
e2fsck done
resize2fs /dev/resize_matrix/resize_lv 30277632k
Resizing the filesystem on /dev/resize_matrix/resize_lv to 7569408 (4k) blocks.
The filesystem on /dev/resize_matrix/resize_lv is now 7569408 (4k) blocks long.

resize2fs done
  Reduced file system ext4 on resize_matrix/resize_lv.
  Size of logical volume resize_matrix/resize_lv changed from 29.39 GiB (7525 extents) to <28.88 GiB (7392 extents).
  Logical volume resize_matrix/resize_lv successfully resized.

resize2fs 1.46.5 (30-Dec-2021)


mount  /dev/resize_matrix/resize_lv /mnt/resize_lv
umount /mnt/resize_lv
PRE:30822400.0 POST:30277632.0
PRE:30160836 POST:29626348

Comment 13 errata-xmlrpc 2023-05-09 08:23:51 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-2023:2544


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