text relocation of grep prevents its use under udevd

Bug #1844524 reported by Thadeu Lima de Souza Cascardo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grep (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]
grep can't be used under udev, preventing kdump-tools to be used after a memory hotplug.

[Test case]
Run grep with systemd-run -t --property MemoryDenyWriteExecute=yes /bin/grep crashkernel /proc/cmdline

[Regression potential]
The fix is a simple rebuild, so should have minimal potential for regression.

-------------------------

# systemd-run -t --property MemoryDenyWriteExecute=yes /bin/grep crashkernel /proc/cmdline
Running as unit: run-u54.service
Press ^] three times within 1s to disconnect TTY.
/bin/grep: error while loading shared libraries: cannot restore segment prot after reloc: Operation not permitted
#

Under ppc64el, grep can't be used under udev, because it restricts mapping to be Write+Execute, with MemoryDenyWriteExecute=yes. A rebuild of grep under bionic fixes the issue.

Changed in grep (Ubuntu):
status: New → Invalid
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Thadeu, or anyone else affected,

Accepted grep into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/grep/3.1-2build1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in grep (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

root@lewis:~# dpkg -s grep | grep Version
Version: 3.1-2build1
root@lewis:~# systemd-run -t --property MemoryDenyWriteExecute=yes grep -i crashkernel= /proc/cmdline
Running as unit: run-u73.service
Press ^] three times within 1s to disconnect TTY.
root=UUID=b995e70a-9241-4f98-b451-b3ecc7fa990c ro console=hvc0 crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
root@lewis:~#

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Thanks!

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (grep/3.1-2build1)

All autopkgtests for the newly accepted grep (3.1-2build1) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:

util-linux/unknown (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/bionic/update_excuses.html#grep

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

The autopkgtest regression was caused by a network timeout. A retry was done and was successful.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grep - 3.3-1build1

---------------
grep (3.3-1build1) eoan; urgency=medium

  * No-change rebuild. LP: #1844524.

 -- Matthias Klose <email address hidden> Wed, 18 Sep 2019 16:34:10 +0200

Changed in grep (Ubuntu):
status: Invalid → Fix Released
Revision history for this message
Robie Basak (racb) wrote : Update Released

The verification of the Stable Release Update for grep has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grep - 3.1-2build1

---------------
grep (3.1-2build1) bionic; urgency=medium

  * No change rebuild. (LP: #1844524)

 -- Tiago Stürmer Daitx <email address hidden> Wed, 18 Sep 2019 15:00:16 +0000

Changed in grep (Ubuntu Bionic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.